/* ==========================================================================
   Página de curso — /graduacao/<curso> (pages/curso.php)
   ========================================================================== */

/* ---------- Hero ---------- */

.course-hero {
    background: var(--cor-azul-profundo);
    color: var(--cor-branco);
}

.course-hero__inner {
    padding-block: var(--esp-7) 7.5rem;
}

/* Imagem de fundo do curso com camada azul por cima (contraste do texto branco).
   A camada é mais forte à esquerda, onde fica o texto, e mais leve à direita. */
.course-hero--com-fundo {
    /*background-image:
        linear-gradient(90deg, rgba(10, 31, 77, 0.85) 0%, rgba(10, 31, 77, 0.86) 45%, rgba(10, 31, 77, 0.7) 100%),
        var(--hero-fundo);*/
    background-image: linear-gradient(
        90deg, 
        rgba(10, 31, 77, 0.85) 0%, 
        rgba(10, 31, 77, 0.5) 40%, 
        rgba(10, 31, 77, 0.15) 100%
    ), var(--hero-fundo);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 960px) {
    .course-hero--com-fundo {
        background-image:
            linear-gradient(rgba(10, 31, 77, 0.88), rgba(10, 31, 77, 0.92)),
            var(--hero-fundo);
    }
}

.course-hero__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--esp-12);
    margin-top: var(--esp-10);
}

.course-hero__content {
    flex: 1 1 480px;
    min-width: 0;
}

.course-hero__eyebrow {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cor-laranja);
}

.course-hero__title {
    margin-top: var(--esp-3);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-extrabold);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--cor-branco);
}

.course-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esp-3);
    margin-top: var(--esp-8);
}

.course-hero__media {
    flex: 1 1 420px;
    min-width: 0;
}

.course-hero__image {
    aspect-ratio: 4 / 3;
    border-radius: var(--raio-xl);
    overflow: hidden;
    object-fit: cover;
}

/* Ilustração (quando o curso não tem FOTO_BANNER) */
.course-hero__image.media--ilustracao {
    object-fit: contain;
    padding: var(--esp-8);
    background: var(--cor-azul-hero);
}

@media (max-width: 960px) {
    .course-hero__inner {
        padding-bottom: 6rem;
    }

    .course-hero__grid {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: var(--esp-8);
        margin-top: var(--esp-5);
    }

    .course-hero__content,
    .course-hero__media {
        flex: none;
        width: 100%;
    }

    .course-hero__actions .btn {
        flex: 1 1 100%;
    }
}

/* ---------- Layout em duas colunas ---------- */

.course-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--esp-12);
    padding-block: var(--esp-14) var(--esp-20);
}

.course-layout__main {
    display: flex;
    flex: 999 1 560px;
    flex-direction: column;
    gap: var(--esp-18);
    min-width: 0;
}

.course-layout__aside {
    position: sticky;
    top: 4.5rem;
    flex: 1 1 320px;
    min-width: 0;
}

.course-layout__nota {
    font-size: var(--fs-sm);
    color: var(--cor-texto-mudo);
}

@media (max-width: 960px) {
    .course-layout {
        padding-block: var(--esp-10) var(--esp-14);
    }

    .course-layout__main {
        gap: var(--esp-14);
    }

    .course-layout__aside {
        position: static;
    }
}

/* ---------- Seções ---------- */

.course-section {
    scroll-margin-top: 4.5rem;
}

.course-section .prose,
.course-section .coord-card,
.course-section .docente-grid,
.course-section .download-list,
.course-section .carousel,
.course-section .link-list-grid,
.course-section .card-grid {
    margin-top: var(--esp-6);
}

.course-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--esp-4);
}

.course-section__nota {
    margin-top: var(--esp-3);
    font-size: var(--fs-sm);
    color: var(--cor-texto-mudo);
}

/* "O curso": texto + imagem lado a lado */
.course-section--com-imagem {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--esp-10);
}

.course-section__texto {
    flex: 3 1 360px;
    min-width: 0;
}

.course-section__figura {
    flex: 2 1 260px;
    min-width: 0;
}

.course-section__figura .media {
    border-radius: var(--raio-xl);
}

/* Valores em imagem */
.valores__imagem {
    width: 100%;
    margin-top: var(--esp-6);
    border-radius: var(--raio-lg);
}

/* ---------- Faixa final ---------- */

.cta-band {
    background: var(--cor-azul-marinho);
    color: var(--cor-branco);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--esp-6);
    padding-block: var(--esp-14);
}

.cta-band__titulo {
    max-width: 680px;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: var(--fw-extrabold);
    color: var(--cor-branco);
}

.cta-band__texto {
    margin-top: var(--esp-2);
    font-size: var(--fs-lg);
    color: var(--cor-texto-claro);
}

/* ---------- Barra de ações fixa (mobile) ---------- */

.mobile-cta {
    display: none;
}

@media (max-width: 960px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: flex;
        gap: var(--esp-3);
        padding: var(--esp-3) var(--esp-4) calc(var(--esp-4) + env(safe-area-inset-bottom));
        border-top: 1px solid var(--cor-borda);
        background: var(--cor-branco);
        box-shadow: 0 -6px 20px rgba(10, 31, 77, 0.08);
    }

    .mobile-cta .btn {
        flex: 1;
    }
}
