@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root{
    --course-dark:#022742;
    --course-green:#14a94e;
    --course-gold:#d7a33b;
    --course-text:#536b82;
    --course-soft:#f2f6fb;
}

.course-page{
    font-family:Montserrat,Arial,sans-serif;
    color:var(--course-dark);
}

.course-container{
    width:min(1180px,calc(100% - 48px));
    margin:0 auto;
}

/* HERO COMPACTO */
.course-hero{
    position:relative;
    height:420px;
    min-height:420px;
    display:flex;
    align-items:center;
    overflow:hidden;
    color:#fff;
    background:linear-gradient(105deg,#031c38 0%,#073c6b 58%,#0b5c83 100%);
}

.course-hero.has-banner{
    background-color:#032b4d;
    background-image:var(--course-banner);
    background-size:auto 100%;
    background-position:right center;
    background-repeat:no-repeat;
}

.course-hero-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:
        linear-gradient(
            90deg,
            rgba(1,25,50,.98) 0%,
            rgba(3,43,78,.92) 34%,
            rgba(3,43,78,.62) 56%,
            rgba(3,43,78,.18) 76%,
            rgba(3,43,78,.05) 100%
        );
}

.course-hero-content{
    position:relative;
    z-index:2;
    width:min(1180px,calc(100% - 48px));
    margin-left:auto;
    margin-right:auto;
}

.course-hero-copy{
    width:min(560px,52%);
    padding:24px 0 28px;
}

.course-badge{
    display:inline-flex;
    padding:7px 13px;
    border:1px solid rgba(215,163,59,.90);
    border-radius:8px;
    color:#efbf59;
    background:rgba(3,30,55,.48);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}

.course-hero h1{
    margin:16px 0 14px;
    font-size:clamp(38px,3.25vw,52px);
    line-height:1.03;
    letter-spacing:-1.9px;
    text-shadow:0 3px 18px rgba(0,0,0,.20);
}

.course-hero-subtitle{
    max-width:560px;
    margin:0;
    color:rgba(255,255,255,.91);
    font-size:14px;
    line-height:1.65;
}

.course-hero-facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 18px;
    margin-top:22px;
}

.course-hero-fact{
    display:flex;
    gap:10px;
    align-items:center;
}

.course-fact-icon{
    flex:0 0 34px;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid var(--course-gold);
    border-radius:50%;
    color:var(--course-gold);
    font-size:12px;
    font-weight:900;
}

.course-hero-fact strong,
.course-hero-fact small{
    display:block;
}

.course-hero-fact strong{
    font-size:13px;
}

.course-hero-fact small{
    margin-top:2px;
    color:rgba(255,255,255,.70);
    font-size:9px;
}

.course-actions{
    display:flex;
    flex-wrap:wrap;
    gap:11px;
    margin-top:24px;
}

.course-btn{
    display:inline-flex;
    min-height:44px;
    padding:0 20px;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-size:11px;
    font-weight:800;
    text-decoration:none;
    transition:.25s ease;
}

.course-btn:hover{
    transform:translateY(-3px);
}

.course-btn-primary{
    color:#fff;
    background:var(--course-green);
    box-shadow:0 10px 22px rgba(20,169,78,.23);
}

.course-btn-primary:hover{
    color:#fff;
    background:#109743;
}

.course-btn-outline{
    color:#fff;
    border:1px solid rgba(255,255,255,.68);
    background:rgba(0,0,0,.10);
}

.course-btn-outline:hover{
    color:#fff;
    background:rgba(255,255,255,.10);
}

/* CONTEÚDO */
.course-section{
    padding:66px 0;
    background:#fff;
}

.course-section-soft{
    background:var(--course-soft);
}

.course-about{
    border-top:1px solid #edf1f5;
}

.course-about-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:50px;
    align-items:center;
}

.course-eyebrow{
    display:block;
    color:var(--course-green);
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.course-about-copy h2,
.course-section h2,
.course-cta h2{
    margin:9px 0 16px;
    font-size:32px;
    line-height:1.15;
}

.course-about-copy p,
.course-section p{
    color:var(--course-text);
    font-size:15px;
    line-height:1.8;
}

.course-about-card{
    overflow:hidden;
    border:1px solid #dfe7ee;
    border-radius:18px;
    background:#f9fbfd;
    box-shadow:0 14px 32px rgba(2,39,66,.07);
}

.course-about-card>div{
    padding:15px 18px;
    border-bottom:1px solid #e1e8ee;
}

.course-about-card>div:last-child{
    border-bottom:0;
}

.course-about-card span,
.course-about-card strong{
    display:block;
}

.course-about-card span{
    color:#71869a;
    font-size:11px;
}

.course-about-card strong{
    margin-top:4px;
    font-size:14px;
}

/* PROGRAMA */
.course-section-heading{
    margin-bottom:30px;
    text-align:center;
}

.course-program-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.course-program-item{
    display:flex;
    gap:11px;
    align-items:flex-start;
    min-height:72px;
    padding:18px;
    border:1px solid #dfe7ee;
    border-radius:13px;
    background:#fff;
    transition:.25s ease;
}

.course-program-item:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 30px rgba(2,39,66,.10);
}

.course-program-item>span{
    flex:0 0 22px;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #0d68a5;
    border-radius:50%;
    color:#0d68a5;
    font-size:11px;
}

.course-program-item p{
    margin:0;
    color:#273e52;
    font-size:13px;
    line-height:1.45;
}

/* PROFESSORES / DIFERENCIAIS */
.course-two-columns{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

.course-content-card{
    padding:32px;
    border:1px solid #e1e8ef;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 28px rgba(2,39,66,.07);
    transition:.25s ease;
}

.course-content-card:hover{
    transform:translateY(-6px);
    box-shadow:0 23px 46px rgba(2,39,66,.12);
}

.course-card-icon{
    display:flex;
    width:48px;
    height:48px;
    margin-bottom:16px;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#eef5fa;
}

.course-content-card h2{
    font-size:26px;
}

.course-differentials>div{
    display:flex;
    gap:10px;
}

.course-differentials span{
    color:var(--course-green);
    font-weight:900;
}

.course-differentials p{
    margin:0 0 8px;
    font-size:14px;
}

/* CTA */
.course-cta{
    padding:66px 0;
    background:#eef5fa;
}

.course-cta-box{
    max-width:930px;
    margin:0 auto;
    padding:42px;
    text-align:center;
    border-radius:22px;
    background:#fff;
    box-shadow:0 18px 44px rgba(2,39,66,.11);
}

.course-cta-box p{
    max-width:680px;
    margin:0 auto 22px;
    color:var(--course-text);
}

@media(max-width:900px){
    .course-hero{
        height:auto;
        min-height:460px;
    }

    .course-hero-copy{
        width:68%;
    }

    .course-about-grid{
        grid-template-columns:1fr;
    }

    .course-program-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .course-two-columns{
        grid-template-columns:1fr;
    }
}

@media(max-width:650px){
    .course-container{
        width:calc(100% - 28px);
    }

    .course-hero{
        height:auto;
        min-height:540px;
        background-position:66% center;
    }

    .course-hero-overlay{
        background:rgba(1,28,53,.82);
    }

    .course-hero-copy{
        width:100%;
        padding:32px 0;
    }

    .course-hero h1{
        font-size:36px;
    }

    .course-hero-facts{
        grid-template-columns:1fr;
    }

    .course-actions{
        flex-direction:column;
    }

    .course-btn{
        width:100%;
    }

    .course-program-grid{
        grid-template-columns:1fr;
    }

    .course-cta-box{
        padding:30px 20px;
    }
}

/* =========================================================
   SOBRE O CURSO V34
   Evita repetição do hero e trabalha benefícios do curso
   ========================================================= */

.course-about-modern{
    padding:58px 0 62px;
    background:#fff;
}

.course-about-heading{
    max-width:760px;
    margin:0 auto 34px;
    text-align:center;
}

.course-about-heading h2{
    margin:8px 0 12px;
    color:var(--course-dark);
    font-size:32px;
    line-height:1.18;
}

.course-about-heading p{
    max-width:720px;
    margin:0 auto;
    color:var(--course-text);
    font-size:14px;
    line-height:1.7;
}

.course-benefits-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
}

.course-benefit-item{
    display:flex;
    gap:13px;
    padding:8px 24px;
    border-right:1px solid #e2e8ee;
}

.course-benefit-item:first-child{
    padding-left:0;
}

.course-benefit-item:last-child{
    padding-right:0;
    border-right:0;
}

.course-benefit-icon{
    flex:0 0 38px;
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:2px;
    border-radius:50%;
    color:#fff;
    background:var(--course-green);
    font-size:15px;
    font-weight:900;
    box-shadow:0 8px 18px rgba(20,169,78,.18);
}

.course-benefit-item h3{
    margin:0 0 8px;
    color:var(--course-dark);
    font-size:14px;
    line-height:1.35;
}

.course-benefit-item p{
    margin:0;
    color:var(--course-text);
    font-size:12px;
    line-height:1.65;
}

@media(max-width:950px){
    .course-benefits-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:24px 0;
    }

    .course-benefit-item:nth-child(2){
        border-right:0;
    }

    .course-benefit-item:nth-child(3){
        padding-left:0;
    }
}

@media(max-width:650px){
    .course-about-modern{
        padding:48px 0;
    }

    .course-about-heading{
        text-align:left;
    }

    .course-about-heading h2{
        font-size:28px;
    }

    .course-benefits-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .course-benefit-item,
    .course-benefit-item:first-child,
    .course-benefit-item:nth-child(3),
    .course-benefit-item:last-child{
        padding:0;
        border-right:0;
    }
}


/* V35 - Ícones profissionais dos cards Professores e Diferenciais */
.course-card-icon-svg{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#eef5f9;
    color:#d6a526;
    box-shadow:inset 0 0 0 1px rgba(214,165,38,.10);
}

.course-card-icon-svg svg{
    width:25px;
    height:25px;
    display:block;
}

.course-content-card:hover .course-card-icon-svg{
    transform:translateY(-2px);
    transition:transform .2s ease;
}


/* V36 - Quantidade dinâmica de benefícios na seção Sobre */
.course-benefits-grid-1{
    grid-template-columns:minmax(0,620px);
    justify-content:center;
}

.course-benefits-grid-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.course-benefits-grid-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.course-benefits-grid-1 .course-benefit-item,
.course-benefits-grid-2 .course-benefit-item:last-child,
.course-benefits-grid-3 .course-benefit-item:last-child{
    border-right:0;
}

@media(max-width:950px){
    .course-benefits-grid-3{
        grid-template-columns:1fr;
    }

    .course-benefits-grid-3 .course-benefit-item{
        padding:0;
        border-right:0;
    }
}


/* V38 - preserva o banner inteiro na altura do hero */
@media(max-width:900px){
    .course-hero.has-banner{
        background-size:auto 100%;
        background-position:right center;
    }
}

@media(max-width:650px){
    .course-hero.has-banner{
        background-size:auto 100%;
        background-position:72% center;
    }
}


/* =========================================================
   V39 - HERO PADRONIZADO SEM CORTAR CONTEÚDO
   Para títulos longos, compacta apenas o HTML.
   Mantém o hero desktop em 420px.
   ========================================================= */

@media(min-width:901px){
    .course-hero{
        height:420px;
        min-height:420px;
    }

    .course-hero-content{
        height:100%;
        display:flex;
        align-items:center;
    }

    .course-hero-copy{
        box-sizing:border-box;
        padding:14px 0 16px;
    }

    .course-hero-long-title .course-hero-copy{
        width:min(570px,52%);
        padding:12px 0 14px;
    }

    .course-hero-long-title .course-badge{
        padding:5px 11px;
        font-size:10px;
    }

    .course-hero-long-title h1{
        margin:10px 0 9px;
        font-size:clamp(34px,2.8vw,43px);
        line-height:1.02;
        letter-spacing:-1.4px;
    }

    .course-hero-long-title .course-hero-subtitle{
        max-width:560px;
        font-size:12.5px;
        line-height:1.48;
    }

    .course-hero-long-title .course-hero-facts{
        gap:8px 16px;
        margin-top:13px;
    }

    .course-hero-long-title .course-hero-fact{
        gap:8px;
    }

    .course-hero-long-title .course-fact-icon{
        flex-basis:30px;
        width:30px;
        height:30px;
        font-size:10px;
    }

    .course-hero-long-title .course-hero-fact strong{
        font-size:12px;
    }

    .course-hero-long-title .course-hero-fact small{
        font-size:8px;
    }

    .course-hero-long-title .course-actions{
        gap:10px;
        margin-top:13px;
    }

    .course-hero-long-title .course-btn{
        min-height:39px;
        padding:0 17px;
        font-size:10px;
    }
}


/* =========================================================
   V40 - CORREÇÃO DEFINITIVA DO HERO COM TÍTULO LONGO
   Mantém 420px e faz todo o HTML caber dentro da área.
   ========================================================= */

@media(min-width:901px){

    .course-hero{
        height:420px;
        min-height:420px;
    }

    .course-hero-content{
        height:100%;
        display:block;
        overflow:visible;
    }

    .course-hero-copy{
        box-sizing:border-box;
        padding:16px 0 12px;
    }

    .course-hero-long-title .course-hero-copy{
        width:min(570px,52%);
        padding:14px 0 10px;
    }

    .course-hero-long-title .course-badge{
        padding:4px 10px;
        font-size:9px;
        line-height:1.2;
    }

    .course-hero-long-title h1{
        margin:8px 0 8px;
        font-size:clamp(32px,2.55vw,40px);
        line-height:.98;
        letter-spacing:-1.2px;
    }

    .course-hero-long-title .course-hero-subtitle{
        max-width:560px;
        font-size:12px;
        line-height:1.42;
    }

    .course-hero-long-title .course-hero-facts{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:6px 14px;
        margin-top:10px;
    }

    .course-hero-long-title .course-hero-fact{
        gap:7px;
    }

    .course-hero-long-title .course-fact-icon{
        flex:0 0 28px;
        width:28px;
        height:28px;
        border-width:1.5px;
        font-size:9px;
    }

    .course-hero-long-title .course-hero-fact strong{
        font-size:11px;
        line-height:1.15;
    }

    .course-hero-long-title .course-hero-fact small{
        margin-top:1px;
        font-size:7.5px;
        line-height:1.1;
    }

    .course-hero-long-title .course-actions{
        gap:9px;
        margin-top:10px;
    }

    .course-hero-long-title .course-btn{
        min-height:36px;
        padding:0 15px;
        border-radius:8px;
        font-size:9px;
    }
}


/* =========================================================
   V41 - AJUSTE FINO DO HERO
   Mantém 420px, mas devolve presença visual ao conteúdo.
   ========================================================= */

@media(min-width:901px){

    .course-hero-long-title .course-hero-copy{
        width:min(610px,54%);
        padding:16px 0 14px;
    }

    .course-hero-long-title .course-badge{
        padding:6px 12px;
        font-size:10px;
        line-height:1.2;
    }

    .course-hero-long-title h1{
        margin:11px 0 10px;
        font-size:clamp(36px,3vw,46px);
        line-height:1.01;
        letter-spacing:-1.5px;
    }

    .course-hero-long-title .course-hero-subtitle{
        max-width:590px;
        font-size:13.5px;
        line-height:1.5;
    }

    .course-hero-long-title .course-hero-facts{
        gap:8px 18px;
        margin-top:14px;
    }

    .course-hero-long-title .course-hero-fact{
        gap:8px;
    }

    .course-hero-long-title .course-fact-icon{
        flex:0 0 31px;
        width:31px;
        height:31px;
        border-width:1.5px;
        font-size:10px;
    }

    .course-hero-long-title .course-hero-fact strong{
        font-size:12px;
        line-height:1.15;
    }

    .course-hero-long-title .course-hero-fact small{
        margin-top:1px;
        font-size:8px;
        line-height:1.1;
    }

    .course-hero-long-title .course-actions{
        gap:10px;
        margin-top:14px;
    }

    .course-hero-long-title .course-btn{
        min-height:40px;
        padding:0 18px;
        border-radius:9px;
        font-size:10px;
    }
}


/* =========================================================
   V43 - HERO POR MODALIDADE
   Pós-graduação: conteúdo maior e foto com respiro à direita.
   Extensivo/intensivo continuam usando as regras anteriores.
   ========================================================= */
@media(min-width:901px){
    .course-hero.course-modalidade-pos-graduacao .course-hero-copy{
        width:min(650px,57%);
        padding:18px 0 16px;
    }

    .course-hero.course-modalidade-pos-graduacao h1{
        margin:13px 0 11px;
        font-size:clamp(44px,3.65vw,57px);
        line-height:1.01;
        letter-spacing:-1.9px;
    }

    .course-hero.course-modalidade-pos-graduacao .course-hero-subtitle{
        max-width:625px;
        font-size:15px;
        line-height:1.55;
    }

    .course-hero.course-modalidade-pos-graduacao .course-hero-facts{
        margin-top:17px;
        gap:10px 20px;
    }

    .course-hero.course-modalidade-pos-graduacao .course-fact-icon{
        flex:0 0 34px;
        width:34px;
        height:34px;
    }

    .course-hero.course-modalidade-pos-graduacao .course-hero-fact strong{
        font-size:13.5px;
    }

    .course-hero.course-modalidade-pos-graduacao .course-actions{
        margin-top:17px;
    }

    .course-hero.course-modalidade-pos-graduacao .course-btn{
        min-height:43px;
        padding:0 21px;
        font-size:11px;
    }

    /* A FOTO fica menor e recuada; o hero continua com a mesma largura. */
    .course-hero.course-modalidade-pos-graduacao.has-banner{
        background-size:auto 92%;
        background-position:calc(100% - 32px) center;
    }
}


/* =========================================================
   V44 - ALINHAMENTO HORIZONTAL DO HERO
   Mantém o conteúdo alinhado ao mesmo container do cabeçalho.
   Não altera altura, tipografia ou imagem do banner.
   ========================================================= */
@media (min-width: 901px) {
    .course-hero-content {
        width: min(1180px, calc(100% - 48px));
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .course-hero-content {
        width: min(1180px, calc(100% - 36px));
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================
   V45 - BANNER COMO BACKGROUND INTEGRAL DO HERO
   Faz a arte ocupar todo o hero e elimina o efeito de imagem
   pequena/solta à direita. A leitura do texto é preservada
   pelo overlay em degradê.
   ========================================================= */
@media (min-width: 901px) {
    .course-hero.has-banner,
    .course-hero.course-modalidade-pos-graduacao.has-banner {
        background-image: var(--course-banner);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #032b4d;
    }

    .course-hero.course-modalidade-pos-graduacao.has-banner {
        background-position: center center;
    }

    .course-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(1,25,50,.98) 0%,
            rgba(2,36,66,.94) 30%,
            rgba(2,39,70,.82) 47%,
            rgba(2,39,70,.40) 64%,
            rgba(2,39,70,.08) 82%,
            rgba(2,39,70,0) 100%
        );
    }
}

@media (max-width: 900px) {
    .course-hero.has-banner,
    .course-hero.course-modalidade-pos-graduacao.has-banner {
        background-size: cover;
        background-position: 68% center;
        background-repeat: no-repeat;
    }
}

@media (max-width: 650px) {
    .course-hero.has-banner,
    .course-hero.course-modalidade-pos-graduacao.has-banner {
        background-size: cover;
        background-position: 72% center;
    }
}