/* theme.css — Agility Fellows v1.4.0
   Bundle: components + nav + nav-user + nav-logo + faq-fix + responsive
   Tokens: defined in tokens.css (loaded first via functions.php af-tokens)
   DO NOT hardcode hex values here — use var(--token-name) from tokens.css
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── 1. COMPONENTS ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: var(--font-base); color: var(--text-pri); background: var(--white); }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--wrap-pad); }
.section { padding: var(--section-lg) 0; }
.section--white     { background: var(--white); }
.section--off-white { background: var(--off-white); }
.section--warm      { background: #F5F0E8; } /* warm cream — add --bg-warm to tokens.css if needed */
.section--teal      { background: var(--teal); }

.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; display: block; }

.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: 30px; font-weight: 700; color: var(--text-pri); line-height: 1.25; margin-bottom: 12px; }
.section-head p  { font-size: 16px; color: var(--text-sec); line-height: 1.6; }
.section-head--center { text-align: center; }

.section-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.section-divider__line  { flex: 1; height: 1px; background: var(--border); }
.section-divider__label { font-size: 10px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 3px; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border-radius: var(--btn-radius); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; border: none; transition: opacity 0.15s, transform 0.1s; white-space: nowrap; }
.btn:hover  { opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn--gold          { background: var(--gold); color: var(--text-white); }
.btn--teal          { background: var(--teal); color: var(--text-white); }
.btn--outline-teal  { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--outline-white { background: transparent; color: var(--text-white); border: 2px solid rgba(255,255,255,0.5); }
.btn--sm   { height: 40px; padding: 0 18px; font-size: 13px; }
.btn--full { width: 100%; }

/* Hero */
.hero { background: var(--white); padding: var(--section-lg) 0; }
.hero__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--teal); border-radius: 50px; color: var(--teal); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px; }
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.hero__title { font-size: 56px; font-weight: 700; color: var(--text-pri); line-height: 1.1; margin-bottom: 20px; }
.hero__desc  { font-size: 18px; color: var(--text-sec); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero__btns  { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__photo-wrap { position: relative; }
.hero__photo-card { border-radius: var(--radius-3xl); overflow: hidden; box-shadow: 0 8px 48px rgba(0,0,0,0.14); position: relative; }
.hero__photo-img  { width: 100%; height: 480px; object-fit: cover; object-position: center; display: block; }
.hero__date-card  { position: absolute; bottom: 28px; left: 28px; background: var(--white); border-radius: 10px; padding: 14px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.14); }
.hero__date-card-label { font-size: 10px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.hero__date-card-date  { font-size: 18px; font-weight: 700; color: var(--text-pri); }

/* Stats bar */
.stats-bar { padding: 0; }
.stats-bar__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; padding: 32px 0; }
.stats-bar__vdivider { width: 1px; height: 48px; background: var(--border); margin: 0 auto; }
.stats-bar__hdivider { height: 1px; background: var(--border); margin: 0; }
.stats-bar__cell { text-align: center; padding: 0 20px; }
.stats-bar__icon { display: flex; justify-content: center; margin-bottom: 8px; }
.stats-bar__value { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.stats-bar__value--teal { color: var(--teal); }
.stats-bar__value--gold { color: var(--gold); }
.stats-bar__label { font-size: 13px; color: var(--text-sec); }

/* About */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: start; }
.about-grid__heading { font-size: 30px; font-weight: 700; color: var(--text-pri); line-height: 1.25; margin-bottom: 20px; }
.about-grid__heading-teal { color: var(--teal); }
.about-grid__body { font-size: 15px; line-height: 1.85; color: var(--text-sec); margin-bottom: 28px; }
.about-grid__body p { margin-bottom: 14px; }
.about-coverage__heading { font-size: 15px; font-weight: 700; color: var(--text-pri); margin-bottom: 14px; }
.about-coverage__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 20px; }
.about-coverage__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sec); }
.about-coverage__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.about-grid__photo-card { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.about-grid__photo-img  { width: 100%; height: 460px; object-fit: cover; object-position: center; display: block; }

/* Eligibility */
.eligibility-section { background: var(--white); }
.eligibility-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.eligibility-card { background: var(--off-white); border-radius: var(--radius-lg); padding: var(--card-pad-md); border-top: 3px solid var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.eligibility-card__icon-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-alpha-7); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.eligibility-card__title { font-size: 18px; font-weight: 600; color: var(--teal); margin-bottom: 20px; }
.eligibility-card__list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.eligibility-card__check { flex-shrink: 0; margin-top: 2px; }

/* Selection */
.selection-section { background: var(--off-white); }
.selection-cards { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.selection-cards__line { position: absolute; top: 36px; left: 10%; right: 10%; height: 2px; background: linear-gradient(to right, var(--teal), var(--gold), var(--teal)); z-index: 0; }
.selection-card { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.selection-card__circle { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.selection-card__circle--gold { background: var(--gold); }
.selection-card__section-label { font-size: 9px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.selection-card__title  { font-size: 14px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.selection-card__points { font-size: 22px; font-weight: 700; color: var(--text-pri); margin: 6px 0; }
.selection-card__item   { font-size: 11px; color: var(--text-sec); line-height: 1.4; margin-bottom: 3px; }
.selection-card__tag    { display: inline-block; margin-top: 12px; padding: 4px 12px; background: var(--white); border: 1px solid var(--border); border-radius: 50px; font-size: 11px; color: var(--text-sec); font-weight: 600; }
.selection-warning { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 13px 18px; background: var(--gold-alpha-7); border: 1px solid rgba(200,150,46,0.4); border-radius: var(--radius-md); color: var(--text-sec); }
.selection-warning svg { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.selection-warning p { font-size: 13px; line-height: 1.65; }

/* Dates */
.dates-section { background: var(--white); }
.date-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.date-card { background: var(--off-white); border-radius: var(--radius-lg); padding: var(--card-pad-md); text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.date-card--dark { background: var(--teal); }
.date-card__icon  { display: flex; justify-content: center; margin-bottom: 16px; }
.date-card__label { font-size: 10px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.date-card__date  { display: block; font-size: 20px; font-weight: 700; color: var(--teal); }
.date-card--dark .date-card__date { color: var(--text-white); }
.date-card__note  { font-size: 12px; color: var(--text-sec); margin-top: 6px; }
.date-card--dark .date-card__note { color: rgba(255,255,255,0.6); }

/* CTA Banner */
.cta-banner { background: var(--white); }
.cta-card { background: var(--teal); border-radius: var(--radius-3xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 12px 48px rgba(0,72,81,0.22); }
.cta-card__photo-panel { position: relative; min-height: 380px; }
.cta-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cta-card__photo-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,72,81,0.08), rgba(0,72,81,0.52)); }
.cta-card__badge { position: absolute; bottom: 32px; left: 28px; background: rgba(0,0,0,0.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 14px 22px; border: 1px solid rgba(255,255,255,0.18); }
.cta-card__badge-value { color: var(--gold); font-size: 24px; font-weight: 700; }
.cta-card__badge-label { color: rgba(255,255,255,0.82); font-size: 12px; margin-top: 2px; }
.cta-card__content { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.cta-card__deco { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-card__deco--top    { top: -48px;   right: -48px;  width: 180px; height: 180px; border: 1px solid rgba(200,150,46,0.15); }
.cta-card__deco--bottom { bottom: -64px; right: -64px;  width: 240px; height: 240px; border: 1px solid rgba(200,150,46,0.10); }
.cta-card__eyebrow { color: var(--gold); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; }
.cta-card__title { color: var(--text-white); font-size: 38px; font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.cta-card__desc  { color: var(--text-white-78); font-size: 15px; line-height: 1.8; margin-bottom: 36px; }
.cta-card__checklist { margin-bottom: 36px; }
.cta-card__checklist-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cta-card__check-circle { width: 18px; height: 18px; border-radius: 50%; background: rgba(200,150,46,0.25); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-card__checklist-item span { color: var(--text-white-75); font-size: 13px; }
.cta-card__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Accordion / Mini FAQ */
.accordion__item   { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; }
.accordion__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; background: var(--white); border: none; width: 100%; text-align: left; }
.accordion__header:hover                { background: #f0eeea; } /* warm hover — add --warm-hover to tokens.css */
.accordion__header[aria-expanded="true"]{ background: #EEF6FB; } /* teal tint — add --teal-tint to tokens.css */
.accordion__title  { font-size: 14px; font-weight: 500; color: var(--text-pri); padding-right: 12px; }
.accordion__body   { display: none; padding: 0 18px 18px; background: #EEF6FB; font-size: 14px; color: var(--text-sec); line-height: 1.75; }
.accordion__body.is-open { display: block; }

/* Page header */
.page-header { padding: 48px 0; }
.page-header--teal  { background: var(--teal); }
.page-header--white { background: var(--white); border-bottom: 1px solid var(--border); }
.page-header .breadcrumb { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.page-header h1     { font-size: 32px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
.page-header .subtitle  { font-size: 15px; color: rgba(255,255,255,0.72); }

/* Login page layout */
.login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-page__panel { position: relative; background: var(--teal); overflow: hidden; }
.login-page__bg { position: absolute; inset: 0; background-size: cover; background-position: center top; z-index: 0; }
.login-page__overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,72,81,0.92) 0%, rgba(0,72,81,0.78) 60%, rgba(0,72,81,0.88) 100%); z-index: 1; }
.login-page__panel-content { position: relative; z-index: 3; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-page__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.login-page__heading { color: var(--text-white); font-size: 40px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.login-page__subtext { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.8; max-width: 360px; margin-bottom: 40px; }
.login-page__dates-card { padding: 18px 22px; background: rgba(255,255,255,0.08); border-radius: 10px; border-left: 3px solid var(--gold); }
.login-page__dates-label { color: var(--gold); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.login-page__dates-val   { color: rgba(255,255,255,0.8); font-size: 13px; }
.login-page__form-panel  { background: var(--off-white); display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-page__form-wrap   { width: 100%; max-width: 440px; }
.login-page__card { background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 4px 28px rgba(0,0,0,0.08); }
.tab-toggle { background: var(--border); border-radius: 50px; padding: 4px; display: flex; margin-bottom: 24px; }
.tab-toggle__btn { flex: 1; padding: 9px 0; border-radius: 50px; border: none; background: transparent; color: var(--text-sec); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.tab-toggle__btn.active { background: var(--white); color: var(--teal); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

/* Form fields */
.af-form .field { margin-bottom: 16px; }
.af-form label  { display: block; font-size: 13px; font-weight: 500; color: var(--text-pri); margin-bottom: 6px; }
.af-form input, .af-form select { width: 100%; height: 48px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--input-pad); font-size: 14px; outline: none; box-sizing: border-box; background: var(--white); }
.af-form input:focus, .af-form select:focus { border-color: var(--teal); }
.required { color: var(--teal); }

/* Terms */
.terms-layout { display: grid; grid-template-columns: 240px 1fr; gap: 52px; max-width: var(--max-w); margin: 0 auto; padding: 56px var(--wrap-pad); }
.terms-sidebar { position: sticky; top: 80px; background: var(--white); border-radius: var(--radius-2xl); padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); align-self: start; }
.terms-sidebar__heading { font-size: 10px; font-weight: 700; color: var(--text-sec); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.terms-sidebar__link { display: block; padding: 7px 10px; border-radius: 6px; font-size: 12px; color: var(--text-sec); line-height: 1.4; margin-bottom: 2px; border-left: 3px solid transparent; transition: all 0.15s; }
.terms-sidebar__link:hover, .terms-sidebar__link.is-active { background: #EEF6FB; color: var(--teal); border-left-color: var(--teal); font-weight: 600; }
.terms-content__section { margin-bottom: 48px; max-width: 720px; }
.terms-content__section h2 { font-size: 22px; font-weight: 700; color: var(--teal); margin-bottom: 16px; }
.terms-content__section p  { font-size: 15px; line-height: 1.85; color: var(--text-sec); margin-bottom: 16px; }

/* Banners */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.6; }
.banner--info    { background: #EEF6FB; border-left: 3px solid var(--teal); color: var(--text-sec); }
.banner--warning { background: var(--gold-alpha-7); border-left: 3px solid var(--gold); color: var(--text-sec); }

/* Skip link */
.skip-link { position: absolute; top: -40px; left: 8px; background: var(--teal); color: var(--text-white); padding: 8px 16px; border-radius: 0 0 4px 4px; font-size: 13px; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* Site footer */
.site-footer { background: var(--teal); color: var(--text-white); padding: 56px 0 20px; }
.site-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; margin-bottom: 32px; }
.site-footer__col-heading { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.site-footer__links li { margin-bottom: 10px; }
.site-footer__links a { color: rgba(255,255,255,0.72); font-size: 14px; transition: opacity 0.15s; }
.site-footer__links a:hover { opacity: 0.55; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px var(--wrap-pad) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-footer__copy  { font-size: 12px; color: rgba(255,255,255,0.45); }
.site-footer__legal { display: flex; gap: 16px; }
.site-footer__legal a { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ─── 2. NAV ─────────────────────────────────────────────────────────────────── */

.site-header { position: sticky; top: 0; z-index: var(--z-nav); background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.primary-nav { height: 64px; background: var(--white); border-bottom: 1px solid var(--border); }
.primary-nav--teal { background: var(--teal); border-bottom: none; }
.primary-nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.primary-nav__logo  { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.af-logo-mark { width: 34px; height: 34px; background: var(--teal); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-white); font-weight: 800; font-size: 13px; flex-shrink: 0; }
.primary-nav--teal .af-logo-mark { background: rgba(255,255,255,0.15); }
.primary-nav__brand { display: flex; flex-direction: column; }
.primary-nav__brand-name { font-weight: 700; font-size: 13px; color: var(--teal); line-height: 1.2; }
.primary-nav__brand-sub  { font-size: 10px; color: var(--text-muted); line-height: 1.2; }
.primary-nav--teal .primary-nav__brand-name { color: var(--text-white); }
.primary-nav--teal .primary-nav__brand-sub  { color: rgba(255,255,255,0.55); }
.primary-nav__links { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.primary-nav__link  { font-size: 13px; font-weight: 500; color: var(--text-sec); text-decoration: none; transition: opacity 0.15s; white-space: nowrap; }
.primary-nav--teal .primary-nav__link { color: rgba(255,255,255,0.8); }
.primary-nav__link:hover { opacity: 0.65; }
.primary-nav__cta { flex-shrink: 0; }
.primary-nav__hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; flex-shrink: 0; transition: background 0.15s; }
.primary-nav__hamburger:hover { background: rgba(255,255,255,0.12); }
.primary-nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.primary-nav--teal .primary-nav__hamburger span { background: var(--white); }

/* Section nav */
.section-nav { position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--teal); z-index: 199; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--wrap-pad); transform: translateY(-100%); transition: transform 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.section-nav--visible { transform: translateY(0); }
.section-nav__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.section-nav__logo .af-logo-mark { width: 28px; height: 28px; font-size: 11px; background: rgba(255,255,255,0.15); }
.section-nav__brand { font-size: 12px; font-weight: 700; color: var(--text-white); }
.section-nav__links { display: flex; align-items: center; gap: 8px; }
.section-nav__link  { font-size: 12px; color: rgba(255,255,255,0.75); text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.section-nav__link:hover, .section-nav__link--active { background: rgba(255,255,255,0.12); color: var(--text-white); opacity: 1; }
.section-nav__cta .btn { height: 34px; padding: 0 14px; font-size: 12px; }
.section-nav__hamburger { display: none; }
#nav-progress-bar { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--gold); width: 0%; transition: width 0.1s linear; }
.primary-nav--hidden { transform: translateY(-100%); transition: transform 0.3s ease; }

/* Mobile menu */
.mobile-menu__overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.48); z-index: 299; opacity: 0; transition: opacity 0.25s ease; }
.mobile-menu__overlay--open { display: block; opacity: 1; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; max-width: 90vw; background: var(--white); z-index: 300; display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t-page); box-shadow: -4px 0 32px rgba(0,0,0,0.18); overflow-y: auto; }
.mobile-menu--open { transform: translateX(0); }
.mobile-menu__top  { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); min-height: 64px; }
.mobile-menu__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mobile-menu__logo .primary-nav__brand-name { color: var(--teal); font-size: 13px; font-weight: 700; }
.mobile-menu__close { width: 36px; height: 36px; border-radius: 50%; background: var(--off-white); border: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--text-sec); display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.mobile-menu__close:hover { background: var(--teal); color: var(--text-white); }
.mobile-menu__nav  { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.mobile-menu__link { display: block; padding: 15px 24px; font-size: 15px; font-weight: 500; color: var(--text-pri); text-decoration: none; border-bottom: 1px solid var(--border); transition: background 0.15s, color 0.15s; }
.mobile-menu__link:hover { background: var(--off-white); color: var(--teal); }
.mobile-menu__link--cta { margin: 20px 24px 0; border-bottom: none; background: var(--gold); color: var(--text-white); border-radius: var(--radius-md); text-align: center; font-weight: 600; }
.mobile-menu__link--cta:hover { background: var(--gold-dark); color: var(--text-white); }

/* ─── 3. NAV USER PILL ───────────────────────────────────────────────────────── */

.d3-nav__user-wrap { position: relative; }
.d3-nav__user-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; background: var(--off-white); border: 1px solid var(--border); border-radius: 50px; cursor: pointer; font-family: var(--font-base); font-size: 13px; font-weight: 500; color: var(--text-pri); transition: all 0.15s ease; white-space: nowrap; }
.d3-nav__user-pill:hover, .d3-nav__user-pill[aria-expanded="true"] { background: var(--white); border-color: var(--teal); color: var(--teal); }
.d3-nav__user-initial { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--text-white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.d3-nav__user-chevron { transition: transform 0.2s ease; color: var(--text-sec); flex-shrink: 0; }
.d3-nav__user-pill[aria-expanded="true"] .d3-nav__user-chevron { transform: rotate(180deg); color: var(--teal); }
.d3-nav__dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.12); padding: 6px; z-index: 300; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.d3-nav__dropdown.d3-nav__dropdown--open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.d3-nav__dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--text-pri); text-decoration: none; transition: background 0.12s ease, color 0.12s ease; font-family: var(--font-base); }
.d3-nav__dropdown-item svg { color: var(--text-sec); flex-shrink: 0; }
.d3-nav__dropdown-item:hover { background: var(--off-white); color: var(--teal); }
.d3-nav__dropdown-item:hover svg { color: var(--teal); }
.d3-nav__dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.d3-nav__dropdown-item--logout { color: var(--text-sec); }
.d3-nav__dropdown-item--logout:hover { background: #FFF5F5; color: #e53e3e; } /* error red — no token */
.d3-nav__dropdown-item--logout:hover svg { color: #e53e3e; }

/* ─── 4. NAV LOGO & APP OVERRIDES ───────────────────────────────────────────── */

.d3-nav { height: 76px; }
.d3-nav__agility-logo { height: 55px; width: auto; display: block; flex-shrink: 0; object-fit: contain; }
.d3-nav__brand-divider { color: #D1CFC9; font-size: 20px; font-weight: 300; line-height: 1; flex-shrink: 0; margin: 0 4px; user-select: none; }
.d3-nav__brand-name { color: var(--teal); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; }
.af-app__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; flex-wrap: nowrap; }
.af-app__agility-logo { height: 55px; width: auto; display: block; flex-shrink: 0; object-fit: contain; }
.af-app__brand-divider { color: #D1CFC9; font-size: 18px; font-weight: 300; line-height: 1; flex-shrink: 0; user-select: none; }
.af-app__brand-name { color: var(--teal); font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; }
.af-app__topbar { min-height: 87px !important; align-items: center; }
.af-app__save-btn { display: inline-flex !important; align-items: center !important; font-size: 13px !important; font-weight: 500 !important; color: #374151 !important; cursor: pointer !important; font-family: var(--font-base) !important; padding: 7px 18px !important; height: auto !important; border-radius: 50px !important; border: 1px solid var(--border) !important; background: var(--white) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important; transition: all 0.15s ease !important; line-height: 1 !important; }
.af-app__save-btn:hover { color: var(--teal) !important; border-color: var(--teal) !important; background: var(--off-white) !important; box-shadow: 0 2px 8px rgba(0,72,81,0.10) !important; }
.af-app__nav { overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.af-app__nav::-webkit-scrollbar { display: none; }
.af-app__nav-item--future { opacity: 0.38; cursor: not-allowed !important; }
.af-app__nav-item[disabled], .af-app__nav-item[disabled]:hover { opacity: 0.38; cursor: not-allowed !important; background: transparent !important; pointer-events: none; }
.af-app__nav-item--done .af-app__nav-num::after { content: '✓'; font-size: 10px; }
.ksb-cta__footnote { font-size: 11.5px; color: rgba(255,255,255,0.55); line-height: 1.6; margin: 0 0 22px; font-style: italic; max-width: 420px; }
.ksb-about, .ksb-eligibility, .ksb-selection, .ksb-dates, .ksb-cta { scroll-margin-top: 6px; }
[id] { scroll-margin-top: 82px; }
body.af-submitted [data-cta="apply"], body.af-submitted [data-cta="resume"] { opacity: 1 !important; pointer-events: auto !important; cursor: pointer !important; }

/* ─── 5. FAQ FIX ─────────────────────────────────────────────────────────────── */

.faq-item__answer { display: none !important; padding: 0 !important; margin: 0 !important; border: none !important; background: transparent !important; }
.faq-item--open .faq-item__answer { display: block !important; padding: 0 0 20px !important; }
.faq-item--open .faq-item__answer p { font-size: 14px !important; color: var(--text-sec) !important; line-height: 1.8 !important; margin: 0 0 10px !important; max-width: 660px !important; }
.faq-item--open .faq-item__answer p:last-child { margin-bottom: 0 !important; }
.faq-item--open .faq-item__answer ol,.faq-item--open .faq-item__answer ul { padding-left: 22px !important; margin: 8px 0 14px !important; }
.faq-item--open .faq-item__answer ol { list-style: decimal !important; }
.faq-item--open .faq-item__answer ul { list-style: disc !important; }
.faq-item--open .faq-item__answer li { list-style: inherit !important; font-size: 14px !important; color: var(--text-sec) !important; line-height: 1.8 !important; margin-bottom: 6px !important; max-width: 640px !important; }
.faq-item--open .faq-item__answer li:last-child { margin-bottom: 0 !important; }
.faq-item--open .faq-item__answer strong,.faq-item--open .faq-item__answer b { font-weight: 700 !important; color: var(--text-pri) !important; }
.faq-item--open .faq-item__answer em,.faq-item--open .faq-item__answer i { display: block !important; margin: 10px 0 !important; font-size: 13px !important; font-weight: 600 !important; color: var(--teal) !important; font-style: normal !important; letter-spacing: 0.5px !important; }
.faq-item__plus  { display: block; }
.faq-item__minus { display: none; }
.faq-item--open .faq-item__plus  { display: none !important; }
.faq-item--open .faq-item__minus { display: block !important; }
.faq-item--open .faq-item__toggle { background: var(--teal) !important; border-color: var(--teal) !important; }
.faq-item { border: none !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; background: transparent !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; list-style: none !important; }
.faq-item__btn { width: 100% !important; text-align: left !important; padding: 16px 0 !important; background: transparent !important; border: none !important; border-radius: 0 !important; cursor: pointer !important; display: flex !important; justify-content: space-between !important; align-items: center !important; font-family: inherit !important; box-shadow: none !important; margin: 0 !important; gap: 12px !important; }
.faq-group { margin: 0 0 40px !important; padding: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; }
.tc-section { scroll-margin-top: 100px !important; }
.wrap.faq-body { padding: 44px var(--wrap-pad); }
@media (max-width: 768px) { .wrap.faq-body { padding: 28px var(--wrap-pad-mob); } }
@media (max-width: 480px)  { .wrap.faq-body { padding: 24px var(--wrap-pad-xs); } }

/* ─── 6. RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .selection-section__cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .key-figures__top, .key-figures__bottom { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .key-figures__stat:nth-child(2) { border-right: none; }
  .key-figures__stat:nth-child(3) { border-right: 1px solid var(--border-warm); }
  .about-section__grid { grid-template-columns: 1fr; gap: 36px; }
  .about-section__img { height: 320px; }
  .cta-section__card { grid-template-columns: 1fr; }
  .cta-section__image-wrap { min-height: 280px; }
}
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .wrap { padding: 0 var(--wrap-pad-mob); }
  .wrap.primary-nav__inner { padding: 0 var(--wrap-pad-mob); }
  .primary-nav__inner { height: 56px; }
  .primary-nav { height: 56px; }
  .primary-nav__links { display: none; }
  .primary-nav__cta   { display: none; }
  .primary-nav__hamburger { display: flex; color: var(--teal); }
  .section-nav--visible { height: 48px; }
  .section-nav__links  { display: none; }
  .section-nav__cta    { display: none; }
  .section-nav__hamburger { display: flex; color: var(--white); }
  .hero-section { min-height: 90vw; }
  .hero-section__content { padding: 72px 20px 56px; }
  .hero-section__ctas { flex-direction: column; }
  .hero-section__ctas .btn { width: 100%; }
  .key-figures__top, .key-figures__bottom { grid-template-columns: repeat(2, 1fr); }
  .key-figures__stat { border-right: none; border-bottom: 1px solid var(--border-warm); padding: 12px 8px; }
  .key-figures__stat:last-child { border-bottom: none; }
  .section { padding: 48px 0; }
  .about-section__covers-grid { grid-template-columns: 1fr; }
  .about-section__img { height: 220px; }
  .eligibility-section__cards { grid-template-columns: 1fr; }
  .selection-section__cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dates-section__cards { grid-template-columns: 1fr; gap: 16px; }
  .cta-section__content { padding: 32px 24px; }
  .cta-section__btns { flex-direction: column; }
  .cta-section__btns .btn { width: 100%; }
  .site-footer { padding: 40px 0 0; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; padding: 0 24px 28px; }
  .site-footer__bottom-inner { flex-direction: column; gap: 8px; padding: 16px 24px; }
  .site-footer__legal { gap: 16px; }
  .login-page { grid-template-columns: 1fr; }
  .login-page__panel { min-height: 180px; order: -1; }
  .login-page__panel-content { padding: 28px 24px; justify-content: flex-start; }
  .login-page__heading  { font-size: 24px; }
  .login-page__subtext  { font-size: 13px; margin-bottom: 16px; }
  .login-page__dates-card { margin-bottom: 16px; }
  .login-page__discover-btn { display: none; }
  .login-page__form-panel { padding: 24px 20px; align-items: flex-start; }
  .login-page__card { padding: 28px 24px; }
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 24px; }
  .terms-layout { display: block; }
  .terms-sidebar { display: none; }
  .terms-mobile-nav { display: block; }
  .faq-filters { overflow-x: auto; flex-wrap: nowrap; }
  .form-progress { overflow-x: auto; }
  .form-progress__label { display: none; }
  .form-step__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero-section__title { font-size: 28px; }
  .selection-section__cards { grid-template-columns: 1fr; }
  .key-figures__top, .key-figures__bottom { grid-template-columns: 1fr 1fr; }
  .eligibility-card { padding: 24px 20px; }
  .login-page__card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .hero-section__ctas .btn, .cta-section__btns .btn { font-size: 14px; }
  .mini-faq__cta .btn { width: 100%; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .date-card { padding: 24px 20px; }
  .date-card__date { font-size: 22px; }
}
@media print {
  .site-header, .site-footer, .mobile-menu { display: none !important; }
  body { background: white; color: black; }
}
