@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700;900&display=swap');

/* ================================================================
   ENEM GRATUITO — estilos da landing page
   Prefixo "eg-" em todas as classes para evitar colisão.
   ================================================================ */

/* scroll suave global */
html { scroll-behavior: smooth; }

/* ----------------------------------------------------------------
   TIPOGRAFIA GLOBAL — Titillium Web em todos os headings
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', sans-serif;
}

/* ----------------------------------------------------------------
   UTILITÁRIOS COMPARTILHADOS
   ---------------------------------------------------------------- */
.eg-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    letter-spacing: .4px;
    font-family: 'Titillium Web', sans-serif;
    transition: filter .2s ease, transform .15s ease;
}
.eg-btn:hover {
    text-decoration: none;
    filter: brightness(.9);
    transform: translateY(-1px);
}

.eg-btn--dark       { background-color: #1A1A1A; color: #fff; }
.eg-btn--dark:hover { color: #fff; }

.eg-btn--yellow       { background-color: #FFDD00; color: #1A1A1A; }
.eg-btn--yellow:hover { color: #1A1A1A; }

.eg-btn--teal       { background-color: #00A59A; color: #fff; }
.eg-btn--teal:hover { color: #fff; }

.eg-btn--store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFDD00;
    border: none;
    color: #1A1A1A;
    border-radius: 5px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Titillium Web', sans-serif;
}
.eg-btn--store:hover { color: #1A1A1A; filter: brightness(.93); }

/* ----------------------------------------------------------------
   SEÇÃO 1 · HERO — banner cobre toda a seção
   ---------------------------------------------------------------- */
.eg-hero {
    position: relative;
    background-color: #FFD600;
    overflow: hidden;
    min-height: 460px;
}

.eg-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.eg-hero__content {
    position: relative;
    z-index: 1;
    padding: 70px 0 80px;
}

.eg-hero__text { max-width: 460px; }

.eg-hero__logo-frase {
    width: 100%;
    max-width: 360px;
    margin-bottom: 22px;
    display: block;
}

.eg-hero__body {
    font-size: 16px;
    line-height: 1.55;
    color: #fff;
    margin-bottom: 10px;
}

.eg-hero__graca {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
}

.eg-hero__cta { font-size: 14px; }

/* ----------------------------------------------------------------
   SEÇÃO 2 · LOGOS
   ---------------------------------------------------------------- */
.eg-logos {
    background-color: #363634;
    padding: 22px 0;
}

.eg-logos__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.eg-logos__logo {
    max-height: 48px;
    width: auto;
    display: block;
}

/* ----------------------------------------------------------------
   SEÇÃO 3 · FORMULÁRIO — fundo #FFDD00, logo canto inferior esq.
   ---------------------------------------------------------------- */
.eg-form-sec {
    display: none;
    background-color: #FFDD00;
    position: relative;
    padding: 60px 0 80px;
}

/* stretch colunas + centraliza texto verticalmente no card do form */
.eg-form-sec__row {
    display: flex;
    align-items: stretch;
}

.eg-form-sec__text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eg-form-sec__title {
    font-size: 28px;
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1.2;
    margin: 0 0 20px;
}

.eg-form-sec__desc {
    font-size: 13px;
    color: #1A1A1A;
    line-height: 1.7;
    margin: 0;
}

.eg-form-sec__logo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: auto;
    display: block;
}

/* card do formulário */
.eg-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 6px 28px rgba(0,0,0,.12);
}

.eg-field { margin-bottom: 18px; }

.eg-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.eg-field__input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #C8C8C8;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #1A1A1A;
    background: #fff;
    transition: border-color .2s;
}

.eg-field__input:focus {
    outline: none;
    border-color: #1A1A1A;
}

.eg-field__error {
    font-size: 12px;
    color: #E53935;
    margin-top: 4px;
}

.eg-form-card__submit {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* ----------------------------------------------------------------
   SEÇÃO 4 · APP LEO — background cobre toda a seção
   ---------------------------------------------------------------- */
.eg-app {
    position: relative;
    background-color: #111111;
    overflow: hidden;
    min-height: 360px;
}

.eg-app__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.eg-app__content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.eg-app__text { max-width: 520px; }

.eg-app__title {
    font-size: 28px;
    font-weight: 900;
    color: #FFD600;
    line-height: 1.2;
    margin: 0 0 22px;
}

.eg-app__desc {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin-bottom: 8px;
}

.eg-app__btns {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   SEÇÃO 5 · DISCIPLINAS
   ---------------------------------------------------------------- */
.eg-disc {
    background-color: #0D0D0D;
    padding: 60px 0 50px;
}

.eg-disc__title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: 0 0 60px;   /* margem generosa entre título e carrossel */
    letter-spacing: .3px;
}

.eg-disc__wrap {
    position: relative;
    padding: 0 52px;   /* espaço reservado para as setas laterais */
}

/* card de disciplina — aspecto 570:780 */
.eg-disc-card { display: flex; flex-direction: column; }

.eg-disc-card__link { display: block; line-height: 0; }

.eg-disc-card__img {
    width: 100%;
    aspect-ratio: 570 / 780;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    height: auto;
}

.eg-disc-card__btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 0;
    background-color: #00C3A5;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    letter-spacing: .4px;
    transition: background-color .2s;
}
.eg-disc-card__btn:hover { background-color: #009E86; color: #fff; text-decoration: none; }

/* ── SETAS DE NAVEGAÇÃO ──────────────────────────────────────────
   Posiciona o .owl-nav como overlay absoluto (relativo ao
   #owl-disciplines que tem position:relative do próprio owl),
   estendendo -52px para cada lado para cobrir o padding do wrap.
   Os botões são itens flex — clicáveis e corretamente posicionados. */
#owl-disciplines .owl-nav {
    position: absolute !important;
    top: 0 !important;
    bottom: 56px !important;   /* acima da área do botão MATRICULE-SE */
    left: -52px !important;
    right: -52px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    margin: 0 !important;
}

#owl-disciplines .owl-nav .owl-prev,
#owl-disciplines .owl-nav .owl-next {
    pointer-events: all !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.22) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    cursor: pointer !important;
    transition: background .2s !important;
}

#owl-disciplines .owl-nav .owl-prev:hover,
#owl-disciplines .owl-nav .owl-next:hover {
    background: rgba(255,255,255,.42) !important;
}

#owl-disciplines .owl-nav .arrow-nav {
    color: #fff !important;
    font-size: 26px !important;
    line-height: 1 !important;
    display: block !important;
}

/* ----------------------------------------------------------------
   SEÇÃO 6 · AULÕES
   ---------------------------------------------------------------- */
.eg-auloes {
    background-color: #00A59A;
    padding: 0;              /* sem bottom padding — a row toca o fim da seção */
    overflow: hidden;
}

/* colunas esticadas → persona vai até o fim verticalmente */
.eg-auloes__row {
    display: flex;
    align-items: stretch;
}

.eg-auloes__persona-col {
    display: flex;
    align-items: flex-end;   /* cola ao rodapé exato da seção */
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;       /* sem espaço extra abaixo da persona */
}

.eg-auloes__persona {
    width: 100%;
    max-width: 380px;
    display: block;
}

/* remove padding lateral Bootstrap, mantém espaço interno no conteúdo */
.eg-auloes .eg-auloes__content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 60px;
    padding-bottom: 60px;   /* espaço entre o texto e o fim da seção */
}

.eg-auloes__pretitle {
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: .5px;
    margin: 0 0 2px;
}

.eg-auloes__title {
    font-size: 28px;
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1.15;
    margin: 0 0 18px;
}

.eg-auloes__desc {
    font-size: 15px;
    color: rgba(0,0,0,.7);
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 480px;
}

.eg-auloes__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
    max-width: 500px;
}

.eg-aulaoe {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.eg-aulaoe__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #E0E0E0;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.eg-aulaoe__text {
    display: flex;
    flex-direction: column;
    color: #1A1A1A;
    line-height: 1.3;
}
.eg-aulaoe__text strong { font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.eg-aulaoe__text small  { font-size: 11px; opacity: .6; }

.eg-auloes__cta { font-size: 14px; color: #1A1A1A; }
.eg-auloes__cta:hover { color: #1A1A1A; }

/* ----------------------------------------------------------------
   SEÇÃO 7 · SORTEIO LOUD
   ---------------------------------------------------------------- */
.eg-sorteio {
    background-color: #FFC107;
    padding: 70px 0;
}

/* colunas esticadas → texto flex-centralizado */
.eg-sorteio__row {
    display: flex;
    align-items: stretch;
}

.eg-sorteio__text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eg-sorteio__pretitle {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 0 0 4px;
    color: #555;
}
.eg-sorteio__pretitle--white { color: #fff; }

.eg-sorteio__title {
    font-size: 26px;
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1.15;
    margin: 0 0 18px;
}

.eg-sorteio__desc {
    font-size: 16px;
    color: #1A1A1A;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 380px;
}

.eg-sorteio__cta { font-size: 14px; align-self: flex-start; }

.eg-sorteio__image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eg-sorteio__img { width: 100%; max-width: 460px; display: block; }

/* ----------------------------------------------------------------
   SEÇÃO 8 · CTA FINAL — conteúdo alinhado à esquerda
   ---------------------------------------------------------------- */
.eg-final {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.eg-final__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.eg-final__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
}

.eg-final__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 100px 0;   /* padding aumentado em desktop */
}

.eg-final__title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 14px;
    text-align: left;
}

.eg-final__desc {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
    text-align: left;
}

.eg-final__logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.eg-final__logo { max-height: 48px; width: auto; display: block; }

/* ================================================================
   MODAL DE SUCESSO DO FORMULÁRIO
   ================================================================ */
#form-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.fsm-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 48px 44px 40px;
    width: 520px;
    max-width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.fsm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    line-height: 1;
    padding: 4px;
}
.fsm-close i { font-size: 22px; }

.fsm-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.fsm-title {
    font-size: 22px;
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1.3;
    margin: 0 0 16px;
    font-family: 'Titillium Web', sans-serif;
}

.fsm-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.65;
    margin: 0 0 28px;
}

.fsm-btn {
    display: inline-block;
    background-color: #1FB40B;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Titillium Web', sans-serif;
    letter-spacing: .4px;
    transition: background .2s, transform .15s;
}
.fsm-btn:hover {
    background-color: #189909;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .fsm-card { padding: 40px 22px 32px; }
    .fsm-title { font-size: 18px; }
    .fsm-desc  { font-size: 14px; }
    .fsm-btn   { width: 100%; }
}

/* ================================================================
   MODAL — compatibilidade com enem.js
   ================================================================ */
.blue { color: #00A6A5; }

#custom-modal { position: fixed; inset: 0; z-index: 1000; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }

.modal-card {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px 50px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    width: 700px; max-width: 95%;
    max-height: 90vh; overflow-y: auto;
    border-left: 8px solid #6B2FE0;
    font-family: 'Titillium Web', sans-serif;
}

.modal-title    { font-size: 28px !important; font-weight: 700; color: #1D1D1B; margin-bottom: 10px; }
.modal-subtitle { font-size: 18px; color: #1D1D1B; margin-bottom: 25px; }

.offer-table { border: 1px solid #000; border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.offer-table table { width: 100%; border-collapse: collapse; }
.offer-table thead tr, .offer-table tbody tr { display: flex; }
.offer-table th {
    display: flex; flex-direction: column; justify-content: center;
    height: 30px; padding: 20px;
    color: #00A6A5; text-align: center;
    font-size: 24px; font-weight: 700; line-height: 30px;
}
.offer-table th:first-child { width: 214px; }
.offer-table th:last-child  { width: 369px; }
.offer-table tbody tr { border-bottom: 1px solid rgba(70,65,65,.6); }
.offer-table tbody tr:last-child { border-bottom: none; }
.offer-table td { padding: 18px 15px; display: flex; align-items: center; justify-content: center; }
.offer-table td:first-child { width: 214px; color: #000; text-align: center; font-size: 22px; font-weight: 600; }
.offer-table td:last-child  { flex: 1; color: #000; text-align: center; font-size: 20px; font-weight: 600; line-height: 1.2; }
.highlight-offer { font-weight: 700 !important; font-size: 22px !important; }

.modal-cta-section { text-align: center; margin-top: 30px; }
.cta-text { font-size: 16px; color: #1D1D1B; line-height: 1.6; margin-bottom: 20px; }

.btn-matricula {
    display: inline-block; background-color: #1FB40B; color: #fff !important;
    padding: 16px 60px; border-radius: 30px; font-size: 16px; font-weight: 700;
    text-decoration: none; transition: all .3s ease; margin-bottom: 15px;
}
.btn-matricula:hover {
    background-color: #1a9a09; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31,180,11,.3); text-decoration: none; color: #fff;
}
.link-catalogo {
    display: block; color: #1D1D1B; font-size: 14px; text-decoration: underline;
    background-color: #FFED8A; margin: 0 auto; padding: 10px 20px;
    border-radius: 4px; max-width: fit-content;
}
.link-catalogo:hover { color: #00A6A5; }

#close-modal { border: none; background: none; position: absolute; top: 15px; right: 15px; color: #000; cursor: pointer; }
#close-modal i { font-size: 24px; }
h2.eg-disc__title{
    margin-bottom:30px !important;
}
/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .eg-hero__content  { padding: 50px 0 60px; }
    .eg-app__content   { padding: 48px 0; }
    .eg-disc__title    { font-size: 20px; margin-bottom: 40px; }
    .eg-auloes__title  { font-size: 24px; }
    .eg-sorteio__title,
    .eg-sorteio__pretitle { font-size: 22px; }
    .eg-final__title   { font-size: 26px; }
    .eg-final__content { padding: 80px 0; }
}

@media (max-width: 767px) {
    /* Hero */
    .eg-hero { min-height: 0; }
    .eg-hero__bg { object-position: center top; }
    .eg-hero__content { padding: 40px 0 50px; }
    .eg-hero__text { max-width: 100%; }
    .eg-hero__logo-frase { max-width: 260px; }
    .eg-hero__cta { display: block; text-align: center; }

    /* Logos */
    .eg-logos__inner { flex-direction: column; gap: 20px; align-items: center; }
    .eg-logos__logo  { max-height: 42px; }

    /* Form */
    .eg-form-sec { padding: 40px 0 90px; }
    .eg-form-sec__row { flex-direction: column; }
    .eg-form-sec__title { font-size: 22px; }
    .eg-form-sec__form-col { margin-top: 24px; }
    .eg-form-card { padding: 28px 20px; }
    .eg-form-sec__logo { width: 140px; }

    /* App */
    .eg-app__bg { object-position: right center; }
    .eg-app__content { padding: 40px 0; }
    .eg-app__title { font-size: 22px; }
    .eg-app__btns { flex-direction: column; gap: 10px; align-items: flex-start; }

    /* Disciplines */
    .eg-disc { padding: 40px 0 36px; }
    .eg-disc__title { font-size: 16px; padding: 0 12px; margin-bottom: 28px; }
    .eg-disc__wrap  { padding: 0 38px; }

    /* Aulões */
    .eg-auloes { padding: 0; }
    .eg-auloes__row { flex-direction: column; }
    .eg-auloes__persona-col { order: 2; padding-bottom: 0; } /* persona vai para o fim */
    .eg-auloes .eg-auloes__content { order: 1; padding-top: 28px; padding-bottom: 40px; padding-left: 15px; padding-right: 15px; }
    .eg-auloes__persona { max-width: 220px; }
    .eg-auloes__title { font-size: 22px; }
    .eg-auloes__grid { grid-template-columns: 1fr; }
    .eg-auloes__cta { display: block; text-align: center; }

    /* Sorteio */
    .eg-sorteio { padding: 48px 0; }
    .eg-sorteio__row { flex-direction: column; }
    .eg-sorteio__pretitle,
    .eg-sorteio__title { font-size: 20px; }
    .eg-sorteio__image-col { margin-top: 28px; }
    .eg-sorteio__img { max-width: 300px; }
    .eg-sorteio__cta { display: block; text-align: center; width: 100%; align-self: stretch; }

    /* Final */
    .eg-final { min-height: 0; }
    .eg-final__content { padding: 60px 0; }
    .eg-final__title { font-size: 22px; }
    .eg-final__logos { flex-direction: column; gap: 20px; align-items: flex-start; }
    .eg-final__logo  { max-height: 42px; }

    /* Modal */
    .modal-card { width: 96%; padding: 25px 15px; }
    .modal-title { font-size: 20px !important; }
    .modal-subtitle { font-size: 14px; }
    .offer-table th { padding: 15px 8px; font-size: 16px; height: auto; }
    .offer-table th:first-child { width: 110px; }
    .offer-table th:last-child  { width: auto; flex: 1; }
    .offer-table td { padding: 12px 8px; }
    .offer-table td:first-child { width: 110px; font-size: 14px; }
    .offer-table td:last-child  { font-size: 13px; }
    .highlight-offer { font-size: 16px !important; }
    .btn-matricula   { padding: 14px 30px; font-size: 14px; width: 100%; }
    .cta-text        { font-size: 13px; }
    .link-catalogo   { font-size: 12px; padding: 8px 15px; }
}
