:root {
    --bg: #f7f6f2;
    --bg-soft: #eceae4;
    --ink: #181042;
    --ink-soft: #4c4868;
    --brand: #0d0f5e;
    --brand-dark: #080a40;
    --brand-2: #00a8e8;
    --accent: #ffd400;
    --pink: #e01e65;
    --white: #fff;
    --line: rgba(19, 4, 92, 0.12);
    --shadow: 0 20px 60px rgba(24, 16, 66, 0.12);
    --radius: 24px;
    --container: min(1180px, calc(100vw - 32px));
    --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: linear-gradient(145deg, #ffffff 0%, var(--bg) 45%, #ececf7 100%); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.topbar { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__links, .footer__cta, .footer__columns, .footer__address-grid, .benefits-grid, .news-grid, .admin-form, .admin-grid, .admin-actions, .login__form, .admin-header__actions { display: grid; gap: 16px; }
.footer__columns h3{color:#fd429f;}
.topbar__links { grid-template-columns: repeat(auto-fit, minmax(120px, max-content)); justify-content: center; padding: 8px 0; font-size: .94rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: 5px; }
.topbar__icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.topbar__hamburger { display: none; }
.nav { background: var(--brand); color: var(--white); border-bottom: 2px solid rgba(255,255,255,.08); }
.nav .container { width: min(1600px, calc(100vw - 32px)); }
.topbar__links {margin-left: auto; margin-right: auto;}
.topbar__links a{margin-left: auto; margin-right: auto;}

.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 28px 0; }
.nav__hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background .18s; color: inherit; }
.nav__hamburger:hover { background: rgba(255,255,255,.12); }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .22s, opacity .18s; }
.nav__inner.is-open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__inner.is-open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav__inner.is-open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__menu { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.nav__menu--left { flex: 1; justify-content: flex-end; }
.nav__menu--right { flex: 1; justify-content: flex-start; }
.nav__menu a { text-transform: uppercase; font-weight: 700; letter-spacing: .03em; font-size: .82rem; padding: 6px 10px; border-radius: 8px; transition: background .18s; white-space: nowrap; }
.nav__menu a:hover { background: rgba(255,255,255,.12); }
.nav__brand { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 900; line-height: 1; text-align: center; white-space: nowrap; padding: 6px 18px; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; }
.nav__ava-btn { display: inline-flex !important; align-items: center; gap: 6px; background: transparent !important; color: #fff !important; font-weight: 800 !important; font-size: .78rem !important; padding: 7px 14px !important; border-radius: 999px !important; border: 2px solid rgba(255,255,255,.7) !important; white-space: nowrap; margin-left: 8px; letter-spacing: .04em; transition: background .28s cubic-bezier(.22,1,.36,1), border-color .28s ease, transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, letter-spacing .28s ease !important; }
.nav__ava-btn:hover { background: #fd429f !important; border-color: #fd429f !important; transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 22px rgba(253,66,159,.55); letter-spacing: .08em !important; }
.nav__ava-short { display: none; }
.nav__drawer { display: none; flex-direction: column; align-items: stretch; background: var(--brand); border-top: 1px solid rgba(255,255,255,.1); padding: 8px 16px 14px; }
.nav__drawer a { display: block; text-transform: uppercase; font-weight: 700; letter-spacing: .03em; font-size: .82rem; padding: 11px 16px; border-radius: 8px; color: #fff; text-align: center; transition: background .18s; white-space: normal; }
.nav__drawer a:hover { background: rgba(255,255,255,.12); }
.nav__brand--footer { font-size: clamp(2rem, 4vw, 3rem); border: none; padding: 0; }
/* Logo image replaces brand text */
.nav__logo-img { display: block; height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.nav__logo-img--footer { height: 52px; max-width: 260px; }
/* ── Hero banner — full-width image ──────────────────────────────── */
.hero { position: relative; background: #04093b; overflow: hidden; padding-bottom: 0; }

.hero__track { position: relative; z-index: 1; }
.hero__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.hero__slide.is-active { opacity: 1; pointer-events: auto; position: relative; }

/* Full-width banner image */
.hero__bg {
    display: block; width: 100%;
    min-height: 480px; max-height: 640px;
    object-fit: cover; object-position: center;
}

/* Pill buttons overlaid at bottom center of the slide */
.hero__buttons {
    position: absolute; bottom: 28px; left: 0; right: 0;
    display: flex; justify-content: center;
    gap: 14px; flex-wrap: wrap;
    z-index: 2;
}
.hero__btn {
    display: inline-block;
    padding: 13px 44px; border-radius: 999px;
    font-size: .88rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    text-decoration: none; border: 0;
    transition: transform .18s, box-shadow .18s;
}
.hero__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.hero__btn--primary  { background: rgba(29,35,184,.92); color: var(--white); border: 2px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.hero__btn--secondary { background: #fd429f ; color: var(--white); align-content: center; border: 2px solid rgba(255,255,255,.3) }

/* Side arrows */
.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(0,0,0,.3); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white); font-size: 2rem; line-height: 1;
    display: grid;
    cursor: pointer; transition: background .2s;
}
.hero__arrow:hover { background: rgba(0,0,0,.55); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

/* Dot indicators */
.hero__dots {
    display: flex; justify-content: center;
    gap: 8px; padding: 10px 0 18px;
    background: #04093b;
    position: relative; z-index: 1;
}
.hero__dots button {
    width: 10px; height: 10px; padding: 0;
    border-radius: 999px; border: 0;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.hero__dots button.is-active { width: 30px; background: var(--white); }

.modality__content, .page-block, .manual-card, .login__form, .admin-section, .news-featured { background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.modality__content, .page-block, .manual-card, .login__form, .admin-section { padding: 32px; }
.eyebrow { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
.section__title { font-size: clamp(2.8rem, 7vw, 5.5rem); text-align: center; margin: 16px 20px; line-height: .95; text-transform: uppercase; font-weight: 700; letter-spacing: -.04em; margin-bottom: 28px;}
.section__title--light { color: var(--white); }
.hero__dots button, .btn, .modal__close { border: 0; cursor: pointer; }
.section { padding: 88px 0; }
.section--dark { background: linear-gradient(180deg, var(--brand) 0%, #0b0d55 100%); }
.section--soft { background: linear-gradient(145deg, rgba(13,15,94,.06) 0 28%, transparent 28% 100%), var(--bg); }
.card-grid, .page__blocks, .manual-grid, .modality-list { display: grid; gap: 18px; }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card-grid--courses, .news-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-card, .course-card, .news-card { overflow: hidden; border-radius: var(--radius); position: relative; box-shadow: var(--shadow); }
.feature-card { min-height: 340px; color: var(--white); background: var(--brand); cursor: pointer; transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease; --fc-filter: rgba(10,20,90,.62); display: flex; flex-direction: column; will-change: transform; }
.feature-card:hover { transform: translateY(-12px); box-shadow: 0 28px 60px rgba(13,18,102,.38), 0 4px 12px rgba(0,0,0,.12); }
/* Image wrapper with color overlay via ::after */
.feature-card__img-wrap { position: relative; height: 220px; flex-shrink: 0; overflow: hidden; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.feature-card:hover .feature-card__img-wrap { transform: scale(1.09); }
.feature-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s ease; }
.feature-card:hover .feature-card__img-wrap img { filter: brightness(1.12) saturate(1.1); }
.feature-card__img-wrap::after { content: ''; position: absolute; inset: 0; background: var(--fc-filter); pointer-events: none; transition: opacity .4s ease; }
.feature-card:hover .feature-card__img-wrap::after { opacity: .68; }
/* Fallback for cards without img-wrap (backwards compat) */
.feature-card > img { width: 100%; height: 220px; object-fit: cover; opacity: .8; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.feature-card h3 { margin: 24px 12px 10px 12px; font-size: clamp(1.1rem, 1.5vw, 1.8rem); line-height: 1.25; text-transform: uppercase; word-break: break-word; text-align: center; flex: 1; }
.feature-card__icon { position: absolute; right: 20px; bottom: 106px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: #2a44de; font-size: 1.5rem; transition: transform .38s cubic-bezier(.22,1,.36,1), background .28s ease, box-shadow .38s ease; z-index: 2; }
.feature-card:hover .feature-card__icon { transform: scale(1.18) rotate(-8deg) translateY(-3px); background: #FD429F; box-shadow: 0 8px 28px rgba(253,66,159,.6); }
.course-card { min-height: 280px; background-size: cover; background-position: center; color: var(--white); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; cursor: pointer; transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease; }
.course-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(253,66,159,.28) 0%, transparent 55%); opacity: 0; transition: opacity .45s ease; pointer-events: none; border-radius: inherit; z-index: 0; }
.course-card:hover::before { opacity: 1; }
.course-card:hover { transform: translateY(-12px); box-shadow: 0 28px 60px rgba(13,18,102,.12), 0 4px 12px rgba(0,0,0,.14); }
.course-card h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 2.6vw, 1.5rem); text-transform: uppercase; line-height: 1.1; word-break: break-word; text-align: center; position: relative; z-index: 1; }
.course-card__tags, .manual-card__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.course-card__tags span { padding: 4px 10px; border-radius: 999px; background: rgba(37, 82, 255, .9); font-size: .72rem; font-weight: 600; transition: background .28s ease, transform .35s cubic-bezier(.22,1,.36,1); position: relative; z-index: 1; }
.course-card:hover .course-card__tags span { background: #FD429F; transform: translateY(-2px); }
.modality { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; }
.modality--reverse { direction: rtl; }
.modality--reverse > * { direction: ltr; }
.modality img, .news-featured img { width: 100%; border-radius: var(--radius); min-height: 360px; object-fit: cover; box-shadow: var(--shadow); }
.modality img { height: 100%; display: block; }
.modality__content { margin-left: -72px; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.modality--reverse .modality__content { margin-left: 0; margin-right: -72px; }
.modality__text { max-height: 160px; overflow: hidden; transition: max-height .48s cubic-bezier(.4,0,.2,1); position: relative; }
.modality__text::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 64px; background: linear-gradient(transparent, rgba(255,255,255,.95)); pointer-events: none; transition: opacity .3s ease; }
.modality__text.is-expanded::after { opacity: 0; }
.modality__read-more { display: none; align-items: center; gap: 6px; margin-top: 14px; background: none; border: 1.5px solid var(--brand); color: var(--brand); border-radius: 99px; padding: 7px 20px; font-size: .82rem; font-weight: 700; letter-spacing: .03em; cursor: pointer; transition: background .2s, color .2s; }
.modality__read-more:hover { background: var(--brand); color: #fff; }
.modality__content h3, .benefits-grid a, .manual-card h2, .page-block h2, .news-featured h3, .news-card h3, .footer h3 { text-transform: uppercase; font-weight: 900; }
.modality__content h3 { font-size: clamp(2rem, 5vw, 2.2rem); margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--brand); color: var(--white); font-weight: 800; }
.btn--light { background: var(--white); color: var(--brand); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
/* ── Cursos — banner full-width ─────────────────────────────────────── */
.courses-banner { width: 100%; line-height: 0; }
.courses-banner img { width: 100%; display: block; height: auto; }
.courses-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 24px 16px; line-height: normal; background: #fff; }
.courses-link { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: opacity .18s; }
.courses-link:hover { opacity: .82; }

/* ── Bolsas e Parcelamentos ──────────────────────────────────────────── */
.bolsas { background: transparent; position: relative; overflow: hidden; padding: 56px 0; }
.bolsas__inner { max-width:1100px; margin:0 auto; padding:0 32px; display:flex; align-items:center; gap:40px; position:relative; z-index:1; }
.bolsas__img { flex:0 0 auto; width:clamp(220px,30vw,380px); align-self:flex-end; }
.bolsas__img img { width:100%; display:block; height:auto; }
.bolsas__content { flex:1; }
.bolsas__content--full { text-align:center; }
.bolsas__content--full .bolsas__grid { justify-items:center; }
.bolsas__title { font-size:clamp(1.6rem,3.5vw,2.8rem); font-weight:900; color:var(--brand); text-transform:uppercase; letter-spacing:.02em; margin:0 0 36px; }
.bolsas__grid { display:grid; grid-template-columns:1fr 1fr; gap:18px 48px; }
.bolsas__item { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--brand); font-weight:700; font-size:clamp(1.8rem,1.4vw,1rem); text-transform:uppercase; letter-spacing:.04em; line-height:1.25; transition:opacity .2s; }
.bolsas__item:hover { opacity:.65; }
.bolsas__tri { width:0; height:0; border-left:13px solid #7dc3e8; border-bottom:9px solid transparent; border-top:9px solid transparent; flex-shrink:0; }
@media (max-width:700px) {
  .bolsas__inner { flex-direction:column; align-items:stretch; }
  .bolsas__img { width:100%; max-width:260px; margin:0 auto; }
  .bolsas__grid { grid-template-columns:1fr; }
}
.structure-callout { min-height: 220px; display: grid; place-items: start; }
.news-featured { display:flex; align-items:stretch; gap:0; padding:28px; margin-bottom:28px; border-radius:38px; cursor:pointer; position:relative; overflow:hidden; transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.news-featured:hover { transform:translateY(-6px); box-shadow:0 24px 56px rgba(13,18,102,.25), 0 4px 16px rgba(0,0,0,.1); }
.news-featured__bg { position:absolute; inset:-2px; background-size:cover; background-position:center; transform:scale(1.12); opacity:0; transition:opacity .7s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); z-index:0; }
.news-featured__bg::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(5,10,60,.92) 0%,rgba(10,22,105,.82) 100%);}
.news-featured:hover .news-featured__bg { opacity:1; transform:scale(1); }
.news-featured__img-col { flex:0 0 55%; margin-right:28px; overflow:hidden; border-radius:var(--radius); min-height:360px; position:relative; z-index:1; }
.news-featured__img-col img { width:100%; height:100%; min-height:360px; object-fit:cover; display:block; border-radius:inherit; box-shadow:var(--shadow); transition:transform .8s cubic-bezier(.22,1,.36,1); }
.news-featured:hover .news-featured__img-col img { transform:scale(1.05); }
.news-featured__body { flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:8px 16px; position:relative; z-index:2; }
.news-featured__body span { transition:color .4s ease; }
.news-featured__body h3 { transition:color .4s ease .08s; }
.news-featured__body p { transition:color .4s ease .15s; }
.news-featured:hover .news-featured__body span { color:rgba(255,255,255,.65) !important; }
.news-featured:hover .news-featured__body h3 { color:#fff !important; }
.news-featured:hover .news-featured__body p { color:rgba(255,255,255,.88) !important; }
.news-featured span, .news-card span, .page__intro { color: var(--ink-soft); }
.news-featured h3 { font-size: clamp(2rem, 1vw, 3.2rem); line-height: 1; margin-bottom: 16px; }
.news-card { background: var(--white); padding-bottom: 18px; cursor: pointer; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 20px 48px rgba(13,18,102,.18), 0 4px 12px rgba(0,0,0,.08); }
.news-card img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.news-card:hover img { transform: scale(1.07); }
.news-card h3 { transition: color .25s ease; }
.news-card:hover h3 { color: var(--brand); }
.news-card span, .news-card h3 { display: block; padding: 0 18px; font-size: 0.92rem;}
.news-card span { margin-top: 18px; }
.manuals-home {
    background:
        linear-gradient(145deg, rgba(19, 4, 92, 0.03) 0 28%, transparent 28% 100%),
        #fff;
}
.manuals-home__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.manuals-home__title {
    text-align: left;
    margin-bottom: 10px;
}
.manuals-home__intro {
    margin: 0;
    text-align: left;
}
.manuals-home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.manuals-home__card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.manuals-home__card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.manuals-home__body {
    padding: 24px;
}
.manuals-home__body h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.35rem;
    text-transform: uppercase;
}
.manuals-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.footer { background: var(--brand); color: var(--white); }
.footer__cta { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.footer__cta a, .footer__addresses a { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); }
.footer__brand { gap: 28px; }
.footer__brand-sep { width: 1px; height: 100px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.footer__emec { display: flex; align-items: center; justify-content: center; text-decoration: none; transition: opacity .2s; }
.footer__emec:is(a):hover { opacity: .8; }
.footer__emec-img { width: auto; height: 120px; object-fit: contain; border-radius: 4px; }
.footer__emec-label { display: none; }
.footer__main { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 40px 0; }
.footer__brand { display: flex; align-items: center; justify-content: center; }
.footer__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); width: 100%; }
.footer__columns a { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .82); }
.footer__addresses { background: rgba(255, 255, 255, .08); }
.footer__address-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 26px 0; }
.footer__addresses a { position: relative; overflow: hidden; transition: background .35s ease; }
.footer__addresses a h3, .footer__addresses a p { position: relative; z-index: 1; }
.footer__addresses a::after { content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) scale(.72); width: 160px; height: 160px; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325266e' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; background-position: center; opacity: 0; transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.footer__addresses a:hover { background: rgba(255,255,255,.08); }
.footer__addresses a:hover::after { opacity: 1; transform: translateY(-50%) scale(1); }
.footer__addr-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.footer__addresses a:hover .footer__addr-cta { opacity: 1; transform: translateY(0); }
.footer__bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .container { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: .82rem; opacity: .75; }
.footer__bottom span, .footer__bottom a { color: inherit; text-decoration: none; }
.footer__social { background: var(--brand); padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer__social-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.footer__social-btn { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.1); color:#fff; font-size:1.2rem; text-decoration:none; position:relative; overflow:hidden; isolation:isolate; transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, background .25s ease; }
.footer__social-btn::before { content:''; position:absolute; inset:-120%; background:conic-gradient(from 0deg,#ff0080,#ff4d00,#ffe000,#00e5ff,#a855f7,#ff0080); opacity:0; mix-blend-mode:screen; transition:opacity .35s ease; pointer-events:none; }
.footer__social-btn::after { content:''; position:absolute; inset:0; background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.45) 50%,transparent 75%); transform:translateX(-150%) skewX(-20deg); pointer-events:none; }
.footer__social-btn:hover { background:var(--sc,rgba(255,255,255,.25)); color:#fff; transform:scale(1.22) translateY(-4px); box-shadow:0 10px 32px rgba(0,0,0,.45),0 0 0 1.5px rgba(255,255,255,.2),0 0 22px var(--sc,rgba(255,255,255,.3)); }
.footer__social-btn:hover::before { animation:holo-flash .9s ease forwards; }
.footer__social-btn:hover::after { animation:holo-glare .65s ease forwards; }
@keyframes holo-flash { 0%{opacity:0;transform:rotate(0deg)} 35%{opacity:1;transform:rotate(130deg)} 100%{opacity:0;transform:rotate(360deg)} }
@keyframes holo-glare { to { transform:translateX(260%) skewX(-20deg); } }
.page { padding: 72px 0; }
.page__intro { max-width: 780px; margin: 0 auto 34px; text-align: center; font-size: 1.1rem; }
.page__blocks, .manual-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.page__rich-content { max-width: 860px; margin: 0 auto; font-size: 1rem; line-height: 1.75; color: var(--ink); }
.page__rich-content h1, .page__rich-content h2, .page__rich-content h3 { font-weight: 900; text-transform: uppercase; margin-top: 0; line-height: 2.66rem;}
.page__rich-content h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.page__rich-content h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.page__rich-content h3 { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.page__rich-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; height: auto; }
.page__rich-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page__rich-content th, .page__rich-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.page__rich-content th { background: var(--brand); color: #fff; font-weight: 700; }
.page__rich-content a { color: var(--brand-2); text-decoration: underline; }
.page__rich-content ul, .page__rich-content ol { padding-left: 1.5em; margin: 12px 0; }
.page__rich-content blockquote { border-left: 4px solid var(--brand-2); margin: 20px 0; padding: 12px 20px; background: var(--bg-soft); border-radius: 0 12px 12px 0; font-style: italic; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.modal__dialog { position: relative; width: min(920px, calc(100vw - 24px)); margin: 5vh auto; background: var(--white); border-radius: var(--radius); padding: 24px; z-index: 1; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); }
.modal__frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.admin-body { background: #f1f2f8; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 24px; background: var(--brand); color: var(--white); }
.admin-header span { display: block; color: rgba(255, 255, 255, .78); }
.admin, .login { width: var(--container); margin: 0 auto; padding: 28px 0 60px; }
.login { min-height: 100vh; display: grid; place-items: center; }
.login__form { width: min(460px, 100%); }
.admin-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-subsection { padding: 20px; border-radius: 18px; background: #f9f9ff; border: 1px solid var(--line); }
.admin-section h2, .admin-section h3 { margin-top: 0; }
label { display: grid; gap: 8px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
.alert { padding: 14px 16px; border-radius: 16px; background: #ffe5e5; color: #8c2020; }
.alert--success { background: #dff5e6; color: #185a2b; }
@media (max-width: 980px) {
    .topbar__links { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; padding: 6px 8px; overflow-x: auto; scrollbar-width: none; }
    .topbar__links::-webkit-scrollbar { display: none; }
    .topbar__links a { gap: 4px; padding: 4px 10px; justify-content: center; font-size: .82rem; }
    .topbar__text { display: inline; }
    .nav__inner { grid-template-columns: auto 1fr auto; gap: 0 12px; padding: 14px 0; }
    .nav__hamburger { display: flex; grid-column: 1; grid-row: 1; }
    .nav__brand { grid-column: 2; grid-row: 1; justify-content: flex-start; padding: 6px 0; }
    .nav__menu--left { display: none; }
    .nav__menu--right { grid-column: 3; grid-row: 1; flex-wrap: nowrap; }
    .nav__menu--right a:not(#nav-ava-btn) { display: none; }
    .nav__ava-btn { margin-left: 0 !important; }
    .modality, .footer__main, .admin-grid--2, .admin-grid--3, .admin-grid--4 { grid-template-columns: 1fr; }
    .news-featured { flex-direction:column; }
    .news-featured__img-col { flex:none; margin-right:0; margin-bottom:16px; min-height:220px; }
    .news-featured:hover .news-featured__img-col { flex-basis:auto; }
    .modality--reverse { direction: ltr; }
    .modality__content, .modality--reverse .modality__content { margin-left: 0; margin-right: 0; }
    .manuals-home__header { align-items: start; flex-direction: column; }
    .manuals-home__title, .manuals-home__intro { text-align: left; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero__bg { min-height: 260px; max-height: 420px; }
    .hero__arrow { display: none; }
    /* ── topbar: hamburger fora do fluxo + 3 links com largura total ── */
    .topbar { position: relative; }
    .topbar__hamburger { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 0 6px; font-size: 1.2rem; color: inherit; line-height: 1; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); z-index: 2; }
    .topbar--expanded .topbar__hamburger { top: 12px; transform: none; }
    .topbar__links { justify-content: flex-start; overflow: hidden; flex-wrap: nowrap; padding-left: 34px; }
    .topbar__links a:nth-child(n+5) { display: none; }
    .topbar__links a { font-size: .78rem; white-space: nowrap; flex-shrink: 1; min-width: 0; padding: 4px 8px; }
    .topbar--expanded .topbar__links { overflow: visible; flex-wrap: wrap; gap: 2px 0; padding-bottom: 8px; padding-left: 34px; }
    .topbar--expanded .topbar__links a { flex-shrink: 0; }
    .topbar--expanded .topbar__links a:nth-child(n+5) { display: inline-flex; }
    /* ── nav: reduzir espaço lateral e tamanhos ── */
    .nav .container { width: calc(100vw - 20px); }
    .nav__logo-img { height: 26px; max-width: 130px; }
    .nav__logo-img--footer { height: 52px; max-width: 220px; }
    .nav__ava-btn { font-size: .78rem !important; padding: 7px 14px !important; letter-spacing: .04em !important; gap: 6px !important; }
    .nav__ava-text { display: none; }
    .nav__ava-short { display: inline; }
    /* ── footer columns: 2 colunas no mobile ── */
    .footer__columns { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
    .footer__columns h3 { font-size: .68rem; letter-spacing: .05em; margin-bottom: 10px; }
    .footer__columns a { font-size: .78rem; margin-bottom: 7px; }
    /* ── cookie banner: layout em coluna no mobile ── */
    #cookie-banner { padding: 16px !important; }
    #cookie-banner > div { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    #cookie-banner p { min-width: unset !important; }
    #cookie-banner button { width: 100% !important; padding: 12px 16px !important; text-align: center !important; }
}

/* ── Fale Conosco — cards + formulário ─────────────────────────────── */
.contact-hero {
    background: linear-gradient(135deg, #0d1260 0%, var(--brand) 50%, #1d23b8 100%);
    color: var(--white);
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(116, 66, 253, 0.18) 0%, transparent 65%);
    pointer-events: none;
}
.contact-hero__title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.03em;
    margin: 0 0 14px;
    position: relative;
}
.contact-hero__sub {
    font-size: 1.05rem;
    opacity: .75;
    margin: 0;
    position: relative;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.contact-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    background: #0d1260;
    box-shadow: 0 6px 28px rgba(13,18,102,.22);
    transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease;
    cursor: pointer;
}
/* Top accent line slides in on hover */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 4;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .38s cubic-bezier(.22,1,.36,1);
}
.contact-card:hover::before { transform: scaleX(1); }
.contact-card:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(13,18,102,.36); }
.contact-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.contact-card__bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter .4s ease, transform .5s cubic-bezier(.22,1,.36,1);
    filter: brightness(.85) saturate(.9);
}
.contact-card__bg--placeholder { background: linear-gradient(135deg, #1a1d8a 0%, #0d0f5e 100%); }
.contact-card:hover .contact-card__bg { transform: scale(1.08); filter: brightness(.75) saturate(1); }
/* Bottom gradient overlay — image visible at top, dark at bottom */
.contact-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10,12,80,.96) 0%,
        rgba(10,12,80,.55) 45%,
        rgba(10,12,80,.08) 100%);
    transition: background .38s ease;
}
.contact-card:hover .contact-card__overlay {
    background: linear-gradient(to top,
        rgba(10,12,80,.98) 20%,
        rgba(10,12,80,.65) 60%,
        rgba(10,12,80,.22) 100%);
}
.contact-card__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 22px 26px;
    color: #fff;
    z-index: 2;
    pointer-events: none;
    gap: 6px;
}
.contact-card__title {
    font-size: clamp(.95rem, 2vw, 1.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    text-align: left;
}
/* CTA text slides up on hover */
.contact-card__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.0);
    transform: translateY(8px);
    transition: color .32s ease, transform .32s ease;
}
.contact-card__cta i { font-size: .8rem; transition: transform .28s ease; }
.contact-card:hover .contact-card__cta { color: rgba(255,255,255,.85); transform: translateY(0); }
.contact-card:hover .contact-card__cta i { transform: translateX(4px); }
.contact-form-wrap { max-width: 680px; margin: 0 auto; }
.contact-form-head { text-align: center; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__field label { display: flex; font-size: .82rem; font-weight: 700; color: var(--ink); }
.contact-form__req { color: #e01e65; }
.contact-form__field input,
.contact-form__field textarea {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid #dbe3f0; border-radius: 14px;
    background: #fff; font: inherit; font-size: .95rem;
    color: var(--ink); transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13,15,94,.1);
}
.contact-form__field textarea { min-height: 140px; resize: vertical; }
.contact-form__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand); color: #fff;
    border: none; border-radius: 999px;
    padding: 16px 40px; font: inherit; font-size: 1rem; font-weight: 800;
    cursor: pointer; letter-spacing: .04em; text-transform: uppercase;
    transition: background .22s, transform .22s, box-shadow .22s;
    align-self: stretch;
}
.contact-form__btn:hover {
    background: #1a1d8a; transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13,15,94,.28);
}
.contact-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: 14px;
    font-size: .92rem; font-weight: 600;
}
.contact-alert--success { background: #d1fae5; color: #065f46; }
.contact-alert--error   { background: #fee2e2; color: #991b1b; }

/* ── Tutores ─────────────────────────────────────────────────────────── */
.tutor-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.tutor-filter { padding: 9px 22px; border-radius: 999px; border: 2px solid var(--brand); background: transparent; color: var(--brand); font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .22s, color .22s, transform .22s; }
.tutor-filter:hover { transform: translateY(-2px); }
.tutor-filter.is-active { background: var(--brand); color: #fff; }

.tutor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 20px; }

.tutor-card { background: #fff; border-radius: 22px; box-shadow: 0 4px 24px rgba(13,18,102,.09); display: flex; flex-direction: row; align-items: center; gap: 18px; padding: 16px 18px; transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease; }
.tutor-card:hover { transform: translateY(-8px); box-shadow: 0 22px 56px rgba(13,18,102,.18); }

.tutor-card__photo { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--brand) 0%, #2a44de 100%); display: flex; align-items: center; justify-content: center; border: 5px solid #e0e7ff; transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease; }
.tutor-card:hover .tutor-card__photo { transform: scale(1.06); box-shadow: 0 10px 32px rgba(13,18,102,.22); }
.tutor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tutor-card__photo span { font-size: 2.8rem; font-weight: 900; color: rgba(255,255,255,.85); }

.tutor-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.tutor-card__infos { display: flex; flex-wrap: wrap; gap: 6px; }
.tutor-card__info { display: flex; align-items: center; gap: 12px; background: #f4f6ff; border-radius: 14px; padding: 8px 10px; flex: 1; min-width: 180px; transition: background .25s; }
.tutor-card:hover .tutor-card__info { background: #eef1ff; }
.tutor-card__info--name  { flex: unset; min-width: unset; width: 100%; align-items: center; padding: 8px 12px; }
.tutor-card__info--tags  { flex: unset; min-width: unset; width: 100%; align-items: center; gap: 14px; }
.tutor-card__info--ava   { flex: unset; min-width: unset; width: 100%; background: transparent; padding: 0; }
.tutor-card__info-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; flex-shrink: 0; color: #fff; font-size: 1rem; }
.tutor-card__info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tutor-card__info-label { font-size: .72rem; font-weight: 700; color: #525252; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.tutor-card__info-value { font-size: .88rem; font-weight: 600; color: var(--ink); word-break: break-word; text-decoration: none; }
a.tutor-card__info-value { color: var(--brand); }
a.tutor-card__info-value:hover { text-decoration: underline; }

.tutor-card__name { font-size: 1.05rem; font-weight: 700; color: var(--brand); text-transform: uppercase; line-height: 1.2; letter-spacing: .02em; }
.tutor-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tutor-card__tag { padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.tutor-card__tag--course { background: #e0e7ff; color: #3730a3; }
.tutor-card__tag--mod    { background: #fce7f3; color: #9d174d; }

.tutor-card__ava-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fd429f; color: #fff; font-size: .68rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; transition: background .22s, transform .22s, box-shadow .22s; }
.tutor-card__ava-btn:hover { background: #e0187e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(253,66,159,.45); }

@media (max-width: 900px) { .tutor-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .tutor-card { flex-direction: column; align-items: center; gap: 18px; padding: 22px 18px; }
    .tutor-card__photo { width: 130px; height: 130px; }
    .tutor-card__info--name, .tutor-card__info--tags { text-align: center; justify-content: left; }
}

/* ── Contact detail panel ───────────────────────────────────────────── */
#contact-detail-wrap { margin-top: 36px; }
.contact-detail {
    display: none;
    animation: detail-in .25s ease;
}
@keyframes detail-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.contact-detail.is-open { display: block; }

/* Header bar */
.contact-detail__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px;
    background: linear-gradient(120deg, var(--brand) 0%, #2225b8 100%);
    color: #fff;
    border-radius: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(13,18,102,.22);
    position: relative;
    overflow: hidden;
}
.contact-detail__header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(116, 66, 253, 0.25) 0%, transparent 60%);
    pointer-events: none;
}
.contact-detail__header-left { display: flex; align-items: center; gap: 14px; position: relative; }
.contact-detail__header-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
    display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0;
}
.contact-detail__name { font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.contact-detail__name-sub { font-size: .72rem; font-weight: 500; opacity: .75; margin-top: 2px; }
.contact-detail__close {
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: .95rem;
    transition: background .2s, transform .2s; flex-shrink: 0; position: relative;
}
.contact-detail__close:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }

/* Cards row */
.contact-detail__grid {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

/* Info card */
.contact-detail__info {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(13,15,94,.06);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-detail__row {
    display: flex; gap: 14px; align-items: flex-start;
    margin-bottom: 22px;
}
.contact-detail__row:last-child { margin-bottom: 0; }
.contact-detail__row > i {
    font-size: 1.25rem; color: var(--brand);
    margin-top: 2px; flex-shrink: 0;
}
.contact-detail__row strong {
    display: block; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .07em; color: #9ca3af; margin-bottom: 5px;
}
.contact-detail__row p { margin: 0; color: #111827; line-height: 1.6; font-size: .93rem; }
.contact-detail__link {
    display: inline-block;
    color: var(--brand); font-weight: 700; font-size: .97rem;
    text-decoration: none;
}
.contact-detail__link:hover { text-decoration: underline; }
.contact-detail__link--block { display: block; margin-top: 3px; }
.contact-detail__link--wa { color: #16a34a; }
.contact-detail__link--wa:hover { color: #15803d; }

/* Photo card */
.contact-detail__photo {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 2px 12px rgba(13,15,94,.1);
}
.contact-detail__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Map card */
.contact-detail__map {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 2px 12px rgba(13,15,94,.1);
}
.contact-detail__map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 300px; }

/* cols variants unused with flex — kept for fallback */
.contact-detail__cols-2 .contact-detail__info,
.contact-detail__cols-2 .contact-detail__photo,
.contact-detail__cols-2 .contact-detail__map { flex: 1; }

.contact-card.is-selected .contact-card__overlay { background: rgba(13,15,94,.6); }
.contact-card.is-selected { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(13,18,102,.25); }

@media (max-width: 900px) {
    .contact-detail__grid { flex-direction: column; }
    .contact-detail__photo,
    .contact-detail__map { min-height: 240px; }
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .contact-hero { padding: 44px 0 32px; }
    .contact-form__row { grid-template-columns: 1fr; gap: 14px; }
    .hero__btn {
    display: inline-block;
    padding: 10px 22px; border-radius: 999px;
    font-size: .6rem; font-weight: 600;

    }
.hero__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.hero__btn--primary  { background: rgba(29,35,184,.92); color: var(--white); border: 2px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.hero__btn--secondary { background: #16a34a; color: var(--white); align-content: center; border: 2px solid rgba(255,255,255,.3) }

}

/* ── AVA Guide ──────────────────────────────────────────────────────── */
.ava-guide-hero { background: var(--brand); color: #fff; padding: 64px 0 52px; text-align: center; }
.ava-guide-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin: 0 0 12px; }
.ava-guide-hero__sub { font-size: clamp(.95rem, 1.8vw, 1.12rem); opacity: .8; margin: 0 auto; max-width: 540px; }

/* Steps list */
.ava-guide-steps { display: flex; flex-direction: column; gap: 48px; }

/* Step card — horizontal two-column layout */
.ava-step {
    display: grid; grid-template-columns: 1fr 1.1fr;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; position: relative;
    min-height: 340px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.ava-step:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(24,16,66,.16); }

/* Alternate layout: even steps — image on left, text on right */
.ava-step:nth-child(even) .ava-step__content { order: 2; }
.ava-step:nth-child(even) .ava-step__media   { order: 1; }
.ava-step:nth-child(even) .ava-step__num      { left: auto; right: 28px; }

/* Step number badge */
.ava-step__num {
    position: absolute; top: 24px; left: 28px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 900; box-shadow: 0 4px 14px rgba(13,15,94,.35);
}

/* Text content */
.ava-step__content {
    padding: 72px 44px 40px;
    display: flex; flex-direction: column; justify-content: center;
}
.ava-step__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; color: var(--ink); }
.ava-step__desc  { font-size: .95rem; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.ava-step__cta {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    margin-top: 24px; padding: 12px 28px; border-radius: 999px;
    background: var(--brand); color: #fff;
    font-size: .88rem; font-weight: 700; text-decoration: none;
    transition: background .2s, transform .2s;
}
.ava-step__cta:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* Media side (GIF / image) */
.ava-step__media {
    background: #eef1fb;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; min-height: 340px;
}
.ava-step__img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Fallback — no image uploaded (single-column centred card) */
.ava-step--no-media {
    grid-template-columns: 1fr;
    min-height: auto;
}
.ava-step--no-media .ava-step__content { padding: 72px 44px 44px; }
.ava-step--no-media .ava-step__media   { display: none; }
.ava-step--no-media:nth-child(even) .ava-step__num { right: auto; left: 28px; }

/* Responsive */
@media (max-width: 840px) {
    .ava-step, .ava-step:nth-child(even) { grid-template-columns: 1fr; }
    .ava-step:nth-child(even) .ava-step__content { order: 1; }
    .ava-step:nth-child(even) .ava-step__media   { order: 2; }
    .ava-step:nth-child(even) .ava-step__num      { right: auto; left: 28px; }
    .ava-step__content { padding: 64px 28px 32px; }
    .ava-step__media { min-height: 260px; }
    .ava-guide-hero { padding: 48px 0 38px; }
}

/* ── Academic Calendar ───────────────────────────────────────────────── */
.calendar-hero { background: var(--brand); color: #fff; padding: 60px 0 48px; text-align: center; }
.calendar-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin: 0 0 10px; }
.calendar-hero__sub { font-size: clamp(.9rem, 1.6vw, 1.05rem); opacity: .8; margin: 0 auto; max-width: 520px; }
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cal-filter { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cal-filter-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 999px; border: none; cursor: pointer;
    font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .03em;
    background: #dfdfdf; color: var(--brand);
    transition: background .18s, color .18s;
}
.cal-filter-btn:hover { background: #e0e7ff; }
.cal-filter-btn.is-active { background: var(--brand); color: #fff; }
.cal-filter-btn .cal-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cal-pdf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 260px; flex-shrink: 0;
    padding: 10px 22px; border-radius: 999px;
    background: #dc2626; color: #fff;
    border: none; font: inherit;
    font-size: .88rem; font-weight: 700;
    box-shadow: 0 3px 12px rgba(220,38,38,.35);
    transition: background .2s, box-shadow .2s, transform .18s;
    white-space: nowrap; cursor: pointer;
}
.cal-pdf-btn:hover {
    background: #b91c1c;
    box-shadow: 0 5px 18px rgba(220,38,38,.5);
    transform: translateY(-1px);
}
.cal-pdf-btn i { font-size: 1.1rem; color: #fff !important; }

/* ── Month group: single card containing its rows ─── */
.cal-month-group {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(24,16,66,.07);
    margin-bottom: 20px;
    overflow: hidden;
}
.cal-month-label {
    font-size: .68rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: .12em; color: white;
    background: var(--brand); padding: 8px 16px; margin: 0;
    border-bottom: 1px solid var(--line);
}

/* ── Event row ───────────────────────────────────── */
.cal-event {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px;
    background: transparent; position: relative;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0; margin-bottom: 0;
    transition: background .15s;
}
.cal-event:last-child { border-bottom: none; }
.cal-event:hover { background: #f7f9ff; }

/* Date badge */
.cal-event__date {
    text-align: center; min-width: 36px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: 3px 0;
}
.cal-event__day { font-size: 1.45rem; font-weight: 900; line-height: 1; }
.cal-event__mon { font-size: .6rem; text-transform: uppercase; font-weight: 700; opacity: .55; margin-top: 1px; }

/* Content */
.cal-event__body { flex: 1; min-width: 0; }
.cal-event__title {
    font-weight: 600; font-size: .9rem; margin: 0 0 3px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cal-event__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-event__cat {
    display: inline-flex; align-items: center;
    padding: 1px 8px; border-radius: 999px;
    font-size: .64rem; font-weight: 700;
}
.cal-event__range { font-size: .72rem; opacity: .5; }
.cal-event__desc {
    font-size: .78rem; opacity: .55; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Google Agenda — inline, right side, always subtle */
.cal-event__gcal {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .68rem; font-weight: 700; color: #1a73e8;
    background: #e8f0fe; border: 1px solid #c5d8fc; border-radius: 999px;
    padding: 3px 9px; text-decoration: none; white-space: nowrap;
    opacity: .45; pointer-events: auto;
    transition: opacity .15s, background .15s;
}
.cal-event:hover .cal-event__gcal { opacity: 1; background: #d2e3fc; }

/* ── Sidebar upcoming ────────────────────────────── */
.cal-upcoming {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 14px rgba(24,16,66,.07);
    padding: 20px 18px; position: sticky; top: 24px;
}
.cal-upcoming__title {
    font-size: .68rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: .08em; color: var(--brand); margin: 0 0 12px;
    display: flex; align-items: center; gap: 6px;
}
.cal-upcoming-item {
    display: grid; grid-template-columns: 8px 1fr auto;
    align-items: center; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid var(--line);
}
.cal-upcoming-item:last-child { border-bottom: none; }
.cal-upcoming-item__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cal-upcoming-item__title { font-weight: 600; font-size: .8rem; line-height: 1.35; }
.cal-upcoming-item__date {
    font-size: .7rem; font-weight: 700; opacity: .5;
    white-space: nowrap; text-align: right;
}

.cal-empty { text-align: center; padding: 48px 20px; opacity: .45; font-size: .95rem; }

@media (max-width: 900px) {
    .cal-layout { flex-direction: column; }
    .cal-sidebar { width: 100% !important; position: static !important; }
    .cal-upcoming { padding: 16px; }
}
@media (max-width: 640px) {
    .cal-layout { flex-direction: column; }
    .cal-sidebar { display: none; }
    .cal-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .cal-pdf-btn { width: 100%; justify-content: center; border-radius: 12px; }
    .cal-event__gcal { display: none; }
    .cal-event__title { white-space: normal; }
    .calendar-hero { padding: 44px 0 34px; }
}

/* ── Calendar Spotlight ─────────────────────────────────────────────── */
.cal-spotlight-section {
    background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
    padding: 28px 0 32px;
    border-bottom: 1px solid var(--line);
}
.cal-spot { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cal-spot__label {
    font-size: .75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: var(--brand); opacity: .7;
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.cal-spot__arrow {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--brand); background: #fff; color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 20; flex-shrink: 0;
    transition: background .2s, color .2s, opacity .2s;
}
.cal-spot__arrow:hover:not(:disabled) { background: var(--brand); color: #fff; }
.cal-spot__arrow:disabled { opacity: .28; cursor: default; }
.cal-spot__track {
    position: relative;
    width: 100%; max-width: 740px;
    height: 420px;
    padding: 0 32px;
    box-sizing: border-box;
    margin: 4px 0;
    overflow: visible;
}
.cal-spot__item {
    position: absolute;
    top: 50%; left: 0; right: 0;
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
    transform-origin: center top;
    will-change: transform, opacity, filter;
    transition: transform .42s cubic-bezier(.4,0,.2,1),
                opacity   .42s cubic-bezier(.4,0,.2,1),
                filter    .42s cubic-bezier(.4,0,.2,1);
}
.cal-spot__card {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff; border-radius: 18px;
    box-shadow: 0 6px 32px rgba(24,16,66,.11);
    padding: 22px 26px 20px;
    border-left: 5px solid var(--cc, #6366f1);
    pointer-events: none;
}
.cal-spot__item[data-active="1"] .cal-spot__card { pointer-events: auto; box-shadow: 0 12px 48px rgba(24,16,66,.18); }
.cal-spot__badge {
    display: flex; flex-direction: column; align-items: center;
    background: var(--cc, #6366f1); color: #fff;
    border-radius: 12px; padding: 10px 12px 8px; min-width: 56px;
    text-align: center; flex-shrink: 0; line-height: 1.1;
}
.cal-spot__badge-day { font-size: 2rem; font-weight: 900; }
.cal-spot__badge-mon { font-size: .72rem; font-weight: 700; text-transform: uppercase; margin-top: 2px; opacity: .9; }
.cal-spot__badge-yr  { font-size: .62rem; opacity: .75; margin-top: 1px; }
.cal-spot__info { flex: 1; min-width: 0; }
.cal-spot__tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; margin-bottom: 7px;
    background: var(--cc-bg, #e0e7ff); color: var(--cc, #6366f1);
}
.cal-spot__title { font-size: 1.1rem; font-weight: 800; margin: 0 0 7px; color: var(--ink); line-height: 1.3; }
.cal-spot__desc  { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 8px; }
.cal-spot__foot  { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cal-spot__range { font-size: .76rem; color: #9ca3af; }
.cal-spot__gcal-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 700; color: #1a73e8;
    background: #e8f0fe; border-radius: 999px; padding: 4px 12px;
    text-decoration: none; border: 1px solid #c5d8fc;
    transition: background .15s;
}
.cal-spot__gcal-link:hover { background: #d2e3fc; }
.cal-spot__counter {
    font-size: .78rem; color: #9ca3af; margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
    .cal-spot__track { height: 360px; }
    .cal-spot__badge-day { font-size: 1.5rem; }
    .cal-spot__title { font-size: .96rem; }
    .cal-spot__card { padding: 16px 16px 14px; gap: 14px; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-hero { background: var(--brand); color: #fff; padding: 60px 0 48px; text-align: center; }
.faq-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin: 0 0 10px; }
.faq-hero__sub { font-size: clamp(.9rem, 1.6vw, 1.05rem); opacity: .8; margin: 0 auto; max-width: 520px; }
.faq-search-wrap { max-width: 560px; margin: 32px auto 0; position: relative; }
.faq-search { width: 100%; padding: 14px 20px 14px 48px; border-radius: 999px; border: none; font: inherit; font-size: .95rem; color: var(--ink); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.faq-search:focus { outline: 2px solid var(--brand); }
.faq-search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 1.1rem; pointer-events: none; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.faq-cat-btn {
    display: inline-flex; padding: 6px 16px; border-radius: 999px; border: none;
    cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700;
    background: #eef2ff; color: #6366f1;
    transition: background .18s, color .18s;
}
.faq-cat-btn.is-active { background: var(--brand); color: #fff; }
.faq-cat-btn:hover:not(.is-active) { background: #e0e7ff; }
.faq-group-title {
    font-size: .75rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: .1em; color: var(--brand); opacity: .65;
    border-bottom: 2px solid var(--line); padding-bottom: 6px; margin: 0 0 12px;
}
.faq-item {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(24,16,66,.06);
    margin-bottom: 8px; overflow: hidden;
    transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 6px 24px rgba(24,16,66,.1); }
.faq-item__q {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; cursor: pointer;
    font-weight: 700; font-size: .97rem; color: var(--ink);
    list-style: none;
}
.faq-item__q::marker { display: none; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item[open] .faq-item__q { color: var(--brand); }
.faq-item__chevron {
    font-size: 1rem; flex-shrink: 0; color: var(--brand);
    transition: transform .22s ease;
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a {
    padding: 0 22px 18px;
    font-size: .92rem; color: var(--ink-soft); line-height: 1.7;
}
.faq-none { text-align: center; padding: 48px 20px; opacity: .45; }
@media (max-width: 640px) {
    .faq-hero { padding: 44px 0 34px; }
    .faq-cats { justify-content: center; }
}

/* ── Nivelamento ──────────────────────────────────────────────────── */

/* ── Hero ── */
.nivel-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
    background-color: #050930;
}
.nivel-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .28s ease;
    will-change: opacity;
}
.nivel-hero__bg.is-fading { opacity: 0; }
.nivel-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(5,9,55,.88) 0%, rgba(12,20,95,.78) 50%, rgba(5,9,48,.94) 100%);
}
.nivel-hero__body {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 88px 0 44px;
}
.nivel-hero__label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .5;
    margin-bottom: 16px;
}
.nivel-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -.01em;
}
.nivel-hero__sub {
    font-size: 1.05rem;
    opacity: .75;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 560px;
}

/* ── Course anchor tabs (simple pill nav when multiple courses) ── */
.nivel-hero__tabs {
    position: relative;
    z-index: 1;
    padding: 28px 0 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.nivel-hero__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 11px 28px;
    color: rgba(255,255,255,.82);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.nivel-hero__tab:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.5);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Detail section ── */
.nivel-detail {
    padding: 80px 0 88px;
    background: #fff;
    animation: none;
}
.nivel-detail--alt { background: #f2f4fb; }
.nivel-detail--in { animation: nivelFadeUp .38s ease forwards; }
@keyframes nivelFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 2-column grid: certificado | info */
.nivel-detail__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

/* ── Col 1: Certificado ── */
.nivel-col-cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 24px;
}
.nivel-tilt {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 48px 96px rgba(13,15,94,.28),
        0 12px 32px rgba(13,15,94,.14),
        0 0 0 1px rgba(13,15,94,.05);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
}
.nivel-cert-img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.nivel-cert-ph {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(140deg, var(--brand) 0%, #2d3491 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,.35);
}
.nivel-cert-ph i { font-size: 5.5rem; }
.nivel-cert-ph span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nivel-cert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #eef0ff 0%, #f5f6ff 100%);
    border: 1.5px solid #d8dbff;
    border-radius: 16px;
    padding: 14px 20px;
    width: 100%;
    box-sizing: border-box;
}
.nivel-cert-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(13,15,94,.25);
}
.nivel-cert-card__icon i {
    font-size: 1.2rem;
    color: #fff;
}
.nivel-cert-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.nivel-cert-card__label {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: .6;
}
.nivel-cert-card__title {
    font-size: .88rem;
    font-weight: 800;
    color: #0d0f5e;
    line-height: 1.2;
}

/* ── Col 2: Info ── */
.nivel-col-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
/* Info boxes estilo calendário */
.nivel-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nivel-info-box {
    background: #fff;
    border: 1.5px solid #e4e7f3;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(13,15,94,.05);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.nivel-info-box:hover {
    box-shadow: 0 6px 20px rgba(13,15,94,.1);
    transform: translateY(-2px);
    border-color: #d0d4f0;
}
/* Badge (colored square) */
.nivel-info-box__badge {
    width: 52px;
    min-width: 52px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
}
.nivel-info-box__badge--blue   { background: linear-gradient(135deg, var(--brand) 0%, #1a237e 100%); }
.nivel-info-box__badge--pink  { background: linear-gradient(135deg, #fd429f 0%, #fd429f 100%); }
.nivel-info-box__badge--light-blue { background: linear-gradient(135deg, #00A7E7 0%, #017fb1 100%); }
/* Icon-only badge (clock) */
.nivel-info-box__badge-icon { font-size: 1.5rem; color: #fff; }
/* Date badge parts */
.nivel-info-box__badge-day {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}
.nivel-info-box__badge-mon {
    font-size: .55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.85);
    margin-top: 2px;
}
.nivel-info-box__badge-yr {
    font-size: .5rem;
    color: rgba(255,255,255,.65);
    margin-top: 1px;
}
/* Text content */
.nivel-info-box__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.nivel-info-box__label {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: .55;
}
.nivel-info-box__value {
    font-size: .88rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}
.nivel-info-box__value em {
    font-style: normal;
    font-weight: 500;
    color: #6b7280;
    margin: 0 3px;
    font-size: .8rem;
}
.nivel-detail--alt .nivel-info-box { background: #fff; }

.nivel-course__title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #080c50;
    line-height: 1.08;
    letter-spacing: -.01em;
    margin-bottom: 42px;
    display: flex;
    justify-content: center;
}

/* Instructor */
.nivel-inst {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    background: #fff;
    border: 2px solid #e4e7f3;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(13,15,94,.07);
}
.nivel-detail--alt .nivel-inst { background: #fff; }
.nivel-inst__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dde0f5;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13,15,94,.15);
}
.nivel-inst__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #3730a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13,15,94,.2);
}
.nivel-inst__avatar i { font-size: 2.4rem; color: rgba(255,255,255,.82); }
.nivel-inst__body { min-width: 0; flex: 1; }
.nivel-inst__role {
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: .5;
    margin-bottom: 5px;
}
.nivel-inst__name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 7px;
    line-height: 1.2;
}
.nivel-inst__email {
    font-size: .85rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: color .18s;
}
.nivel-inst__email:hover { color: var(--brand); }
.nivel-inst__email i { font-size: .9rem; }

/* 3 botões inline */
.nivel-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.nivel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 15px 18px;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    position: relative;
    overflow: hidden;
}
.nivel-btn i { font-size: 1rem; flex-shrink: 0; }
.nivel-btn span { flex: 1; text-align: center; }

/* Edital — azul escuro preenchido */
.nivel-btn--edital {
    background: linear-gradient(135deg, var(--brand) 0%, #1a237e 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(13,15,94,.28);
}
.nivel-btn--edital::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
    pointer-events: none;
}
.nivel-btn--edital:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,15,94,.38); color: #fff; }

/* Inscrição — verde */
.nivel-btn--enroll {
    background: linear-gradient(135deg, #ff70b7 0%, #fd429f 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(14,100,54,.28);
}
.nivel-btn--enroll::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
    pointer-events: none;
}
.nivel-btn--enroll:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(14,100,54,.36); color: #fff; }

/* Conteúdo Programático — outline */
.nivel-btn--ementa {
    background: transparent;
    color: var(--brand);
    border: 2px solid rgba(13,15,94,.18);
    box-shadow: none;
    justify-content: center;
    padding: 14px 18px;
}
.nivel-btn--ementa:hover { background: #f0f2ff; border-color: var(--brand); }
.nivel-btn--ementa.is-active { background: #eef0ff; border-color: var(--brand); }
.nivel-btn__chev { margin-left: auto; font-size: .85rem; transition: transform .28s ease; }

/* Desabilitado */
.nivel-btn--disabled {
    background: #f1f2f5;
    color: #b0b4c8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
}

/* ── Ementa colapsável ── */
.nivel-ementa-wrap {
    margin-top: 32px;
    background: linear-gradient(135deg, #f7f8ff 0%, #eef1ff 100%);
    border: 1px solid rgba(13,15,94,.07);
    border-radius: 24px;
    padding: 40px 48px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}
.nivel-detail--alt .nivel-ementa-wrap { background: #fff; border-color: rgba(13,15,94,.06); }
.nivel-ementa-wrap--in { opacity: 1; transform: translateY(0); }
.nivel-ementa-lbl {
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: .55;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nivel-ementa-body {
    font-size: .96rem;
    color: #374151;
    line-height: 1.85;
    column-count: 2;
    column-gap: 56px;
}
.nivel-ementa-body p { margin: 0 0 12px; break-inside: avoid; }
.nivel-ementa-body ul, .nivel-ementa-body ol { margin: 0 0 12px; padding-left: 22px; break-inside: avoid; }
.nivel-ementa-body li { margin-bottom: 6px; }
.nivel-ementa-body h1,.nivel-ementa-body h2,.nivel-ementa-body h3 { break-after: avoid; margin: 0 0 8px; color: #0d0f5e; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .nivel-detail__grid { grid-template-columns: 1fr; gap: 44px; }
    .nivel-col-cert { position: static; max-width: 460px; margin: 0 auto; }
    .nivel-ementa-body { column-count: 1; }
    .nivel-ementa-wrap { padding: 32px 28px; }
    .nivel-btns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nivel-hero { min-height: 52vh; }
    .nivel-hero__body { padding: 64px 0 32px; }
    .nivel-detail { padding: 56px 0 64px; }
    .nivel-detail__grid { gap: 36px; margin-bottom: 0; }
    .nivel-inst { flex-direction: column; text-align: center; padding: 20px 18px; }
    .nivel-inst__email { justify-content: center; }
    .nivel-col-cert { max-width: 300px; }
    .nivel-btns { grid-template-columns: 1fr; }
    .nivel-ementa-wrap { padding: 28px 20px; margin-top: 24px; }
}

/* ── WhatsApp float button ──────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
    text-decoration: none;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(0,0,0,.36); }
.wa-float i { font-size: 1.9rem; color: #fff; line-height: 1; }
@media (max-width: 640px) {
    .wa-float { width: 52px; height: 52px; bottom: 20px; right: 16px; }
    .wa-float i { font-size: 1.6rem; }
}

/* ── Sobre page ────────────────────────────────────────────────────── */
@keyframes sobreSlideUp   { from { opacity:0; transform:translateY(44px); } to { opacity:1; transform:translateY(0); } }
@keyframes sobreFadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes sobreBounce    { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(12px); } }
@keyframes sobreKenburns  { from { transform:scale(1.1); } to { transform:scale(1); } }

/* Nav: fixed, transparente, topbar colapsa ao rolar */
.sobre-page { padding-top:0; }
.sobre-header { position:fixed; top:0; left:0; right:0; z-index:100; }
.sobre-header .topbar { max-height:60px; overflow:hidden; transition:max-height .35s ease, opacity .3s ease; }
.sobre-header--scrolled .topbar { max-height:0; opacity:0; pointer-events:none; }
.sobre-header .nav { background:transparent !important; transition:background .35s ease, box-shadow .35s ease; }
.sobre-header--scrolled .nav { background:var(--brand) !important; box-shadow:0 4px 24px rgba(0,0,0,.25); }
.sobre-header .nav a,.sobre-header .nav button { color:#fff !important; }

/* ── Seção 1: Hero fullscreen ─────────────────────────────────────── */
.sobre-hero { position:relative; height:100vh; min-height:520px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sobre-hero__bg-wrap { position:absolute; inset:0; overflow:hidden; }
.sobre-hero__bg { position:absolute; inset:-6%; background-size:cover; background-position:center; animation:sobreKenburns 14s cubic-bezier(.25,.46,.45,.94) both; }
.sobre-hero__bg--fallback { background:linear-gradient(145deg,#0d1266 0%,#1a237e 50%,#6a0572 100%); }
.sobre-hero__overlay { position:absolute; inset:0; z-index:1; background:linear-gradient(165deg,rgba(8,14,72,.88) 0%,rgba(8,14,72,.58) 52%,rgba(90,10,60,.52) 100%); }
.sobre-hero__content { position:relative; z-index:2; text-align:center; color:#fff; padding:0 24px; max-width:900px; }
.sobre-hero__eyebrow { display:flex; align-items:center; justify-content:center; gap:14px; font-size:.68rem; font-weight:800; letter-spacing:.28em; text-transform:uppercase; opacity:.65; margin-bottom:28px; animation:sobreSlideUp .7s ease both; }
.sobre-hero__eyebrow-line { display:block; width:32px; height:1px; background:rgba(255,255,255,.5); flex-shrink:0; }
.sobre-hero__title { font-size:clamp(2.6rem,7vw,5.5rem); font-weight:900; line-height:1.06; text-transform:uppercase; margin:0 0 32px; letter-spacing:-.01em; animation:sobreSlideUp .85s .12s ease both; }
.sobre-hero__accent { width:56px; height:5px; background:linear-gradient(90deg,#4f6ef7,#fd429f); border-radius:3px; margin:0 auto 30px; animation:sobreFadeIn .9s .3s ease both; }
.sobre-hero__subtitle { font-size:clamp(1rem,1.8vw,1.25rem); opacity:.8; line-height:1.65; max-width:620px; margin:0 auto; animation:sobreFadeIn .9s .45s ease both; }
.sobre-scroll-hint { position:absolute; bottom:38px; left:50%; transform:translateX(-50%); z-index:3; background:none; border:2px solid rgba(255,255,255,.3); border-radius:50%; width:48px; height:48px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:rgba(255,255,255,.65); animation:sobreBounce 2.2s ease infinite, sobreFadeIn 1s 1.2s ease both; transition:border-color .25s, color .25s; }
.sobre-scroll-hint:hover { border-color:rgba(255,255,255,.7); color:#fff; }

/* ── Seção 2: Split — esquerda sticky, direita rola ──────────────── */
.sobre-split { display:flex; align-items:flex-start; }

/* Coluna esquerda: slideshow + título — sticky nativo */
.sobre-split__left { position:sticky; top:0; width:50%; height:100vh; overflow:hidden; flex-shrink:0; }

/* Slideshow */
.sobre-slideshow { position:absolute; inset:0; }
.sobre-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.4s ease; will-change:opacity; }
.sobre-slide.is-active { opacity:1; animation:sobreSlideZoom 18s ease-in-out infinite; }
@keyframes sobreSlideZoom { 0%,100% { transform:scale(1.07); } 50% { transform:scale(1); } }

.sobre-split__bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.sobre-split__overlay { position:absolute; inset:0; background:linear-gradient(165deg,rgba(8,14,72,.9) 0%,rgba(8,14,72,.65) 55%,rgba(90,10,60,.55) 100%); }
.sobre-split__label { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; height:100vh; padding:0 48px 0 max(5%,36px); color:#fff; }
.sobre-split__eyebrow { font-size:.62rem; font-weight:800; letter-spacing:.24em; text-transform:uppercase; opacity:.55; margin-bottom:20px; }
.sobre-split__title { font-size:clamp(1.6rem,3vw,2.6rem); font-weight:900; line-height:1.1; text-transform:uppercase; margin:0 0 22px; }
.sobre-split__accent { width:48px; height:4px; background:linear-gradient(90deg,#4f6ef7,#fd429f); border-radius:2px; margin-bottom:18px; }
.sobre-split__subtitle { font-size:.9rem; opacity:.65; line-height:1.6; }

/* Coluna direita: conteúdo branco — rola normalmente */
.sobre-split__right { width:50%; flex-shrink:0; }
.sobre-split__panel { background:#fff; padding:80px 60px 96px; min-height:100vh; }
.sobre-panel-rich { font-size:1.05rem; line-height:1.85; color:#2d3748; }
.sobre-panel-rich h2 { color:var(--brand); font-size:1.5rem; font-weight:800; margin:1.8em 0 .6em; line-height:1.2; }
.sobre-panel-rich h3 { color:var(--brand); font-size:1.15rem; font-weight:700; margin:1.4em 0 .5em; }
.sobre-panel-rich p { margin-bottom:1.3em; }
.sobre-panel-rich img { max-width:100%; border-radius:10px; margin:1em 0; box-shadow:0 6px 24px rgba(0,0,0,.1); }
.sobre-panel-rich a { color:var(--brand); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.sobre-panel-rich ul,.sobre-panel-rich ol { padding-left:1.5em; margin-bottom:1.3em; }
.sobre-panel-rich li { margin-bottom:.4em; }
.sobre-panel-rich blockquote { border-left:4px solid var(--brand); margin:1.5em 0; padding:.8em 1.2em; background:#f0f4ff; border-radius:0 8px 8px 0; font-style:italic; color:#4c5066; }
.sobre-panel-rich table { width:100%; border-collapse:collapse; margin:1.2em 0; font-size:.92rem; }
.sobre-panel-rich th { background:var(--brand); color:#fff; padding:9px 14px; text-align:left; }
.sobre-panel-rich td { padding:8px 14px; border-bottom:1px solid #e5e7eb; }
.sobre-panel-rich tr:nth-child(even) td { background:#f8f9fc; }

/* Mobile */
@media (max-width:768px) {
    .sobre-hero { min-height:100svh; }
    .sobre-hero__title { font-size:clamp(2rem,9vw,3rem); }
    .sobre-split { flex-direction:column; }
    .sobre-split__left { position:relative; width:100%; height:65vw; min-height:260px; max-height:380px; }
    .sobre-split__label { height:100%; justify-content:flex-end; padding:0 20px 28px; }
    .sobre-split__title { font-size:clamp(1.4rem,5vw,1.9rem); margin-bottom:12px; }
    .sobre-split__right { width:100%; }
    .sobre-split__panel { padding:36px 20px 60px; min-height:0; }
}
