
/* Estrutura compartilhada das páginas internas */
:where(.toeic-page, .units-page) .page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 70px;
    background:
        linear-gradient(115deg, rgba(229,52,56,.10), transparent 34%),
        radial-gradient(circle at 84% 16%, rgba(229,52,56,.22), transparent 28%),
        linear-gradient(135deg, #07122d 0%, #13246b 100%);
    color: #ffffff;
}

:where(.toeic-page, .units-page) .page-hero::before,
:where(.toeic-page, .units-page) .page-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

:where(.toeic-page, .units-page) .page-hero::before {
    top: 46px;
    right: -70px;
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.30));
    transform: rotate(-18deg);
}

:where(.toeic-page, .units-page) .page-hero::after {
    bottom: 54px;
    left: -80px;
    width: 320px;
    height: 2px;
    background: linear-gradient(90deg, rgba(229,52,56,.72), transparent);
    transform: rotate(15deg);
}

:where(.toeic-page, .units-page) .page-hero .container {
    position: relative;
    z-index: 2;
}

:where(.toeic-page, .units-page) .page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(340px,480px);
    gap: 42px;
    align-items: center;
}

:where(.toeic-page, .units-page) .page-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px,5.2vw,76px);
    line-height: 1.08;
    letter-spacing: -.012em;
}

:where(.toeic-page, .units-page) .page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.75;
}

:where(.toeic-page, .units-page) .hero-list,
:where(.toeic-page, .units-page) .clean-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

:where(.toeic-page, .units-page) .hero-list li,
:where(.toeic-page, .units-page) .clean-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

:where(.toeic-page, .units-page) .hero-list li::before,
:where(.toeic-page, .units-page) .clean-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    color: #ffffff;
    font-weight: 800;
}

:where(.toeic-page, .units-page) .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

:where(.toeic-page, .units-page) .page-section {
    padding: clamp(64px,8vw,104px) 0;
}

:where(.toeic-page, .units-page) .page-section.soft {
    background: var(--nci-soft);
}

:where(.toeic-page, .units-page) .page-section.dark {
    background: linear-gradient(135deg,#07122d,#13246b);
    color: #ffffff;
}

:where(.toeic-page, .units-page) .page-section.dark h2,
:where(.toeic-page, .units-page) .page-section.dark h3 {
    color: #ffffff;
}

:where(.toeic-page, .units-page) .page-section.dark p,
:where(.toeic-page, .units-page) .page-section.dark li {
    color: rgba(255,255,255,.78);
}

:where(.toeic-page, .units-page) .media-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 26px 70px rgba(0,0,0,.22);
}

:where(.toeic-page, .units-page) .feature-grid,
:where(.toeic-page, .units-page) .modules-grid,
:where(.toeic-page, .units-page) .info-pill-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

:where(.toeic-page, .units-page) .feature-card,
:where(.toeic-page, .units-page) .module-card,
:where(.toeic-page, .units-page) .info-pill-grid article {
    padding: 28px;
    border: 1px solid var(--nci-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--nci-shadow-soft);
}

:where(.toeic-page, .units-page) .feature-card h3,
:where(.toeic-page, .units-page) .module-card h3,
:where(.toeic-page, .units-page) .info-pill-grid h3 {
    margin: 0 0 10px;
    color: var(--nci-ink);
    font-size: 22px;
    line-height: 1.2;
}

:where(.toeic-page, .units-page) .feature-card p,
:where(.toeic-page, .units-page) .module-card p,
:where(.toeic-page, .units-page) .info-pill-grid p {
    margin: 0;
    color: var(--nci-muted);
    line-height: 1.68;
}

:where(.toeic-page, .units-page) .feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--nci-blue);
    color: #ffffff;
    font-weight: 850;
}

:where(.toeic-page, .units-page) .two-column-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(340px,470px);
    gap: 38px;
    align-items: start;
}

:where(.toeic-page, .units-page) .lead-panel {
    width: 100%;
    padding: clamp(24px,3vw,36px);
    border: 1px solid var(--nci-line);
    border-radius: 28px;
    background: #ffffff;
    color: var(--nci-ink);
    box-shadow: var(--nci-shadow-soft);
}

:where(.toeic-page, .units-page) .lead-panel h2 {
    margin: 0 0 10px;
    color: var(--nci-ink);
    font-size: clamp(24px,2.5vw,34px);
    line-height: 1.12;
}

:where(.toeic-page, .units-page) .lead-panel p {
    color: var(--nci-muted) !important;
    font-size: 14px;
    line-height: 1.65;
}

:where(.toeic-page, .units-page) .info-accordion {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

:where(.toeic-page, .units-page) .info-accordion-item {
    overflow: hidden;
    border: 1px solid var(--nci-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--nci-shadow-card);
}

:where(.toeic-page, .units-page) .info-accordion-item summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    list-style: none;
    font-weight: 850;
    cursor: pointer;
}

:where(.toeic-page, .units-page) .info-accordion-item summary::-webkit-details-marker {
    display: none;
}

:where(.toeic-page, .units-page) .info-accordion-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 22px;
}

:where(.toeic-page, .units-page) .info-accordion-item[open] summary::after {
    content: "−";
}

:where(.toeic-page, .units-page) .info-accordion-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--nci-muted);
    line-height: 1.65;
}

@media (max-width: 991px) {
    :where(.toeic-page, .units-page) .page-hero-grid,
    :where(.toeic-page, .units-page) .two-column-form {
        grid-template-columns: 1fr !important;
    }

    :where(.toeic-page, .units-page) .feature-grid,
    :where(.toeic-page, .units-page) .modules-grid,
    :where(.toeic-page, .units-page) .info-pill-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    :where(.toeic-page, .units-page) .page-hero {
        padding: 72px 0 54px;
    }

    :where(.toeic-page, .units-page) .page-hero h1 {
        font-size: clamp(34px,12vw,48px);
        line-height: 1.1;
    }

    :where(.toeic-page, .units-page) .page-hero p {
        font-size: 16px;
    }

    :where(.toeic-page, .units-page) .hero-actions {
        width: 100%;
    }

    :where(.toeic-page, .units-page) .hero-actions .btn {
        width: 100%;
    }

    :where(.toeic-page, .units-page) .page-section {
        padding: 58px 0;
    }

    :where(.toeic-page, .units-page) .lead-panel {
        padding: 24px;
        border-radius: 24px;
    }
}

/* Página de Unidades — V9 */
.units-page .units-page-hero .page-hero-grid {
    align-items: center;
}

.units-page .units-page-hero .media-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 26px 70px rgba(0,0,0,.22);
}

.units-page .units-page-hero .media-card img {
    display: block;
    width: 100%;
    min-height: 420px;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.units-page-section {
    background: #fff;
}

.units-page-section .section-heading {
    max-width: 780px;
}

.units-page-section .units-filter-panel {
    margin-top: 28px;
}

.units-page-section .units-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
    margin-top: 28px;
}

.units-page-section .unit-card {
    height: 100%;
    min-width: 0;
}

.units-page-section .unit-card-top {
    flex: 0 0 auto;
}

.units-page-section .unit-actions {
    margin-top: auto;
}

.units-page .two-column-form {
    align-items: start;
}

@media (max-width: 1180px) {
    .units-page-section .units-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 991px) {
    .units-page .units-page-hero .page-hero-grid,
    .units-page .two-column-form {
        grid-template-columns: 1fr !important;
    }

    .units-page .units-page-hero .media-card img {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .units-page-section .units-filter-panel {
        grid-template-columns: 1fr !important;
        padding: 12px;
    }

    .units-page-section .units-filter-search {
        grid-column: auto;
    }

    .units-page-section .units-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .units-page-section .unit-card {
        min-height: 0;
    }

    .units-page .units-page-hero .media-card {
        border-radius: 24px;
    }

    .units-page .units-page-hero .media-card img {
        min-height: 240px;
        aspect-ratio: 16 / 10;
    }
}

#contato-form .info-pill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
@media (max-width:767px){#contato-form .info-pill-grid{grid-template-columns:1fr;}}

/* V10.2 — contorno do CTA secundário */
.units-page .units-page-hero .btn-ghost-light{border:1px solid rgba(255,255,255,.78)!important;color:#fff!important;background:transparent!important;}
.units-page .units-page-hero .btn-ghost-light:hover{background:#fff!important;color:var(--nci-blue)!important;}

.units-page .page-hero .btn-ghost-light{border:1px solid rgba(255,255,255,.72)!important;color:#fff!important;}
