 {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #17202a;
    position: relative;
}

/* ==============================
   MARCA D'ÁGUA
============================== */

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(600px, 70vw);
    height: min(600px, 70vh);

    background-image: url("/marca-dagua.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.12;

    pointer-events: none;
    z-index: 999;
}

/* ==============================
   CABEÇALHO
============================== */

header {
    background: #111827;
    color: white;
    padding: 18px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    opacity: 0.7;
}

/* ==============================
   ÁREA PRINCIPAL
============================== */

main {
    max-width: 1200px;
    margin: auto;

    position: relative;
    z-index: 1;
}

/* ==============================
   HERO
============================== */

.hero {
    min-height: 500px;

    display: flex;
    align-items: center;

    padding: 70px 6%;

    background: rgba(255, 255, 255, 0.90);

    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
}

.tag {
    display: inline-block;

    background: #e5e7eb;
    color: #111827;

    padding: 8px 14px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 20px 0;
}

.hero p {
    font-size: 19px;
    color: #667085;
    line-height: 1.6;
}

/* ==============================
   BOTÕES
============================== */

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    background: #111827;
    color: white;

    border: none;

    padding: 14px 25px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;
    font-weight: bold;
}

button:hover {
    opacity: 0.85;
}

button.secondary {
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
}

/* ==============================
   CURSOS
============================== */

.courses {
    padding: 70px 6%;
}

.courses h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.course-card {
    background: rgba(255, 255, 255, 0.90);

    padding: 30px;

    border-radius: 15px;

    max-width: 500px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

    position: relative;
    z-index: 1;
}

.course-card h3 {
    font-size: 22px;
}

.course-card p {
    color: #667085;
    line-height: 1.6;
}

/* ==============================
   RODAPÉ
============================== */

footer {
    background: #111827;
    color: white;

    text-align: center;

    padding: 25px;

    margin-top: 30px;

    position: relative;
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* ==============================
   CELULAR
============================== */

@media (max-width: 700px) {

    body::before {
        width: 80vw;
        height: 70vh;
        opacity: 0.10;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 50px 6%;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .buttons {
        flex-direction: column;
    }
/* =========================================================
   TÁTICO CURSO — AJUSTE FINAL DA HOME
   Estas regras têm prioridade somente na página inicial.
========================================================= */

body.home-page {
    margin: 0 !important;
    padding: 0 !important;

    background: #080a0f !important;

    color: #ffffff !important;

    min-height: 100vh;
}


body.home-page main {
    width: 100% !important;

    max-width: none !important;

    margin: 0 !important;

    padding: 0 !important;

    background: transparent !important;
}


body.home-page .home-hero {
    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(200, 163, 85, 0.10),
            transparent 35%
        ),
        #080a0f !important;
}


body.home-page .home-section {
    background: transparent !important;
}


body.home-page footer {
    background: #080a0f !important;
}


body.home-page header {
    margin: 0 !important;
}


/* Remove interferências da marca-d'água antiga
   somente da home, pois o novo layout já possui
   sua própria composição visual. */

body.home-page::before {
    z-index: 999 !important;
    opacity: 0.08 !important;
}


/* Garante que o conteúdo fique acima da marca-d'água */

body.home-page .home-header,
body.home-page main,
body.home-page .home-footer {
    position: relative;

    z-index: 2;
}


/* =========================================================
   AJUSTE DOS CARDS
========================================================= */

body.home-page .home-course-card {
    background: #0e121a !important;

    color: #ffffff !important;
}


body.home-page .home-course-card h3 {
    color: #ffffff !important;
}


body.home-page .home-course-card p {
    color: #94a3b8 !important;
}


/* =========================================================
   SCROLL
========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

    body.home-page .home-section {
        width: 90% !important;
    }

    body.home-page .home-hero-grid {
        width: 90% !important;
    }

}
    button {
        width: 100%;
    }
}
/* =========================================================
   AJUSTE - PÁGINA PÚBLICA DO CURSO
   ========================================================= */

body.curso-publico-page .courses > div {
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Área "Por que fazer este curso?" */
body.curso-publico-page #porqueFazerCurso {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: #080A0F !important;
    border: 1px solid rgba(200, 163, 85, 0.15) !important;
    border-radius: 14px !important;
    padding: 25px !important;
    color: #d5d8de !important;
}

/* Texto da área "Por que fazer" */
body.curso-publico-page #porqueFazerCurso p {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #d5d8de !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* Área de acesso ao curso */
body.curso-publico-page .course-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Cada item */
body.curso-publico-page .course-card p {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 65px;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #080A0F !important;
    border: 1px solid rgba(200, 163, 85, 0.18) !important;
    border-radius: 12px !important;
    color: #d5d8de !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Mantém os 5 itens organizados */
body.curso-publico-page .course-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

@media (max-width: 700px) {
    body.curso-publico-page .course-card {
        grid-template-columns: 1fr !important;
    }

    body.curso-publico-page #porqueFazerCurso {
        padding: 20px !important;
    }
}
/* AJUSTE FINAL - TEXTO POR QUE FAZER O CURSO */

body.curso-publico-page #porqueFazerCurso {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 28px !important;
}

body.curso-publico-page #porqueFazerCurso p {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}
/* =========================================================
   CORREÇÃO DEFINITIVA - TEXTO "POR QUE FAZER ESTE CURSO?"
   ========================================================= */

body.curso-publico-page #porqueFazerCurso {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 28px !important;
}

body.curso-publico-page #porqueFazerCurso p {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
    line-height: 1.8 !important;
    font-size: 16px !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* Remove qualquer limitação de largura herdada */
body.curso-publico-page #porqueFazerCurso * {
    max-width: none !important;
}
/* CORREÇÃO DAS CORES DOS NOMES DAS AULAS */

body .pagina-curso .modulo-card {
    color: #ffffff !important;
}

body .pagina-curso .modulo-card h3 {
    color: #E5C378 !important;
}

body .pagina-curso .aula-card {
    background: #080A0F !important;
    color: #ffffff !important;
}

body .pagina-curso .aula-card h4 {
    color: #ffffff !important;
}

body .pagina-curso .aula-card p {
    color: #c8cbd2 !important;
}

body .pagina-curso .aula-card a {
    color: #ffffff !important;
}

body .pagina-curso .area-ia {
    color: #ffffff !important;
}

body .pagina-curso .area-ia p {
    color: #c8cbd2 !important;
}
/* CONTRASTE DO NOME DAS AULAS */

body.pagina-curso .aula-card h4,
body.pagina-curso .aula-card h4 *,
body.pagina-curso .aula-card strong,
body.pagina-curso .aula-card span {
    color: #E5E7EB !important;
}

/* Fundo escuro do card da aula */
body.pagina-curso .aula-card {
    background: #0E121A !important;
}

/* Texto da aula */
body.pagina-curso .aula-card {
    color: #E5E7EB !important;
}
/* COR DEFINITIVA DO NOME DAS AULAS */

#modulos .aula-card h4,
#modulos .aula-card h4 span,
#modulos .aula-card h4 strong,
#modulos .aula-card h4 b {
    color: #374151 !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* Se o nome estiver diretamente dentro de outro elemento */
#modulos .aula-card > div,
#modulos .aula-card > p {
    color: #374151;
}
/* =========================================================
   CORREÇÃO DO NOME DAS AULAS
   ========================================================= */

body.pagina-curso #modulos strong {
    color: #1f2937 !important;
    background: transparent !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}

/* Nome da aula concluída ou não concluída */
body.pagina-curso #modulos .course-card strong {
    color: #1f2937 !important;
}

/* Mantém o card da aula organizado */
body.pagina-curso #modulos .course-card > div {
    color: #1f2937;
}
/* =========================================================
   TÁTICOS - TESTE GRÁTIS 6 DIAS
========================================================= */

.home-trial-section {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 25px 0 10px;
}

.home-trial-box {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 32px 38px;

    border: 1px solid rgba(200, 163, 85, 0.55);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(200, 163, 85, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #15120b,
            #0e121a
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 0 35px rgba(200, 163, 85, 0.04);
}

.home-trial-box::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    top: -70px;

    border: 1px solid rgba(200, 163, 85, 0.2);

    border-radius: 50%;

    box-shadow:
        0 0 0 25px rgba(200, 163, 85, 0.03),
        0 0 0 50px rgba(200, 163, 85, 0.02);
}

.home-trial-content {
    position: relative;
    z-index: 2;

    max-width: 720px;
}

.home-trial-label {
    display: inline-flex;

    align-items: center;

    padding: 7px 12px;

    margin-bottom: 12px;

    border: 1px solid rgba(54, 194, 117, 0.35);
    border-radius: 999px;

    background: rgba(54, 194, 117, 0.08);

    color: #36c275;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.home-trial-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.05;

    font-weight: 900;

    text-transform: uppercase;
}

.home-trial-title span {
    color: #e5c378;
}

.home-trial-description {
    margin: 12px 0 0;

    color: #94a3b8;

    font-size: 13px;

    line-height: 1.7;
}

.home-trial-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 16px;
}

.home-trial-item {
    color: #cbd5e1;

    font-size: 11px;

    font-weight: 700;
}

.home-trial-item::before {
    content: "✓";

    color: #36c275;

    margin-right: 6px;
}

.home-trial-button {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 24px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #e5c378,
            #b88b2f
        );

    color: #080a0f;

    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    text-decoration: none;

    box-shadow:
        0 0 25px rgba(200, 163, 85, 0.2);

    transition: 0.2s;
}

.home-trial-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 0 32px rgba(200, 163, 85, 0.35);
}


/* =========================================================
   TESTE GRÁTIS - CELULAR
========================================================= */

@media (max-width: 620px) {

    .home-trial-section {
        padding: 15px 0 5px;
    }

    .home-trial-box {
        flex-direction: column;

        align-items: stretch;

        padding: 25px 22px;

        gap: 20px;
    }

    .home-trial-title {
        font-size: 28px;
    }

    .home-trial-description {
        font-size: 12px;
    }

    .home-trial-list {
        flex-direction: column;

        gap: 7px;
    }

    .home-trial-button {
        width: 100%;
    }
}

/* =========================================================
   TÁTICOS CURSO — CARROSSEL DE EDITAIS
   ========================================================= */

body.home-page .home-editais-wrapper {
    position: relative;
    width: 100%;
}

body.home-page .home-editais-grid {
    display: flex !important;
    align-items: flex-start;
    gap: 24px;
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 55px 25px !important;
    box-sizing: border-box;
}

body.home-page .home-editais-grid::-webkit-scrollbar {
    display: none;
}

body.home-page .home-editais-grid .home-edital-card {
    position: relative;
    flex: 0 0 430px !important;
    width: 430px !important;
    min-width: 430px !important;
    max-width: 430px !important;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(200, 163, 85, 0.40);
    border-radius: 18px;
    background: #0e121a;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

body.home-page .home-editais-grid .home-edital-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 163, 85, 0.80);
}

body.home-page .home-editais-grid .home-edital-card img {
    width: 100% !important;
    height: 555px !important;
    display: block;
    object-fit: cover;
    background: #080a0f;
}

body.home-page .home-editais-grid .home-edital-footer {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: #e5c378;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.home-page .home-editais-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 163, 85, 0.65);
    border-radius: 50%;
    background: rgba(8, 10, 15, 0.92);
    color: #e5c378;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    transition: 0.2s ease;
}

body.home-page .home-editais-arrow:hover {
    background: #c8a355;
    color: #080a0f;
    transform: translateY(-50%) scale(1.08);
}

body.home-page .home-editais-prev {
    left: 8px;
}

body.home-page .home-editais-next {
    right: 8px;
}

/* =========================================================
   CARROSSEL DE EDITAIS — TABLET
   ========================================================= */

@media (max-width: 1000px) {
    body.home-page .home-editais-grid .home-edital-card {
        flex: 0 0 380px !important;
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
    }

    body.home-page .home-editais-grid .home-edital-card img {
        height: 500px !important;
    }
}

/* =========================================================
   CARROSSEL DE EDITAIS — CELULAR
   ========================================================= */

@media (max-width: 620px) {
    body.home-page .home-editais-grid {
        gap: 16px;
        padding: 10px 38px 20px !important;
    }

    body.home-page .home-editais-grid .home-edital-card {
        flex: 0 0 84vw !important;
        width: 84vw !important;
        min-width: 84vw !important;
        max-width: 84vw !important;
    }

    body.home-page .home-editais-grid .home-edital-card img {
        height: 112vw !important;
        max-height: 620px;
    }

    body.home-page .home-editais-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    body.home-page .home-editais-prev {
        left: 1px;
    }

    body.home-page .home-editais-next {
        right: 1px;
    }
}


