/* Evaz Online Academy: website prototype styles (Phase 4)
   Mobile-first. Uses CSS logical properties (inline-start/end) so one stylesheet
   serves right-to-left Pashto and Dari and left-to-right English.
   Colour tokens come from 03-brand-identity/palette/evaz-colors.css. */

:root {
  --evaz-emerald: #0B3D32;
  --evaz-emerald-700: #155E4B;
  --evaz-emerald-900: #072A22;
  --evaz-mint: #E4EFEA;
  --evaz-ivory: #F8F5EC;
  --evaz-white: #FFFFFF;
  --evaz-gold: #C49A3C;
  --evaz-gold-deep: #8A6A1F;
  --evaz-gold-light: #F1D69A;
  --evaz-ink: #1C2421;
  --evaz-stone: #5F6763;
  --evaz-line: #DDD7C6;

  --font-display-en: 'Marcellus', 'Times New Roman', serif;
  --font-text-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display-ar: 'Noto Naskh Arabic', 'Vazirmatn', Tahoma, serif;
  --font-text-ar: 'Vazirmatn', 'Noto Naskh Arabic', Tahoma, sans-serif;

  --font-body: var(--font-text-en);
  --font-display: var(--font-display-en);
  --fs-body: 1rem;
  --lh-body: 1.6;
  --lh-head: 1.2;

  --radius: 14px;
  --gutter: 16px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(11, 61, 50, .06), 0 6px 20px rgba(11, 61, 50, .07);
}

/* Pashto and Dari: Arabic-script fonts, slightly larger, taller lines (brand guide §5). */
:root:lang(ps), :root:lang(fa) {
  --font-body: var(--font-text-ar);
  --font-display: var(--font-display-ar);
  --fs-body: 1.0625rem;
  --lh-body: 1.9;
  --lh-head: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--evaz-ink);
  background: var(--evaz-ivory);
  padding-block-end: 76px; /* room for the sticky mobile CTA */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--evaz-emerald-700); }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-head); color: var(--evaz-emerald); margin: 0 0 .5em; }
:root:lang(en) h1, :root:lang(en) h2 { font-weight: 400; letter-spacing: .005em; }
:root:lang(ps) h1, :root:lang(ps) h2, :root:lang(fa) h1, :root:lang(fa) h2 { font-weight: 700; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; line-height: 1.45; }
:root:lang(ps) h3, :root:lang(fa) h3 { font-weight: 700; line-height: 1.7; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .dir-icon { transform: scaleX(-1); }
.ph { color: var(--evaz-gold-deep); background: rgba(196, 154, 60, .12); border-bottom: 1px dashed var(--evaz-gold); padding-inline: .15em; border-radius: 3px; white-space: nowrap; }
.topbar .ph, .site-footer .ph, .hero .ph { color: var(--evaz-gold-light); background: rgba(241, 214, 154, .12); }
:focus-visible { outline: 3px solid var(--evaz-gold); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--evaz-gold-light); color: var(--evaz-emerald); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.05rem; }
.btn--primary { background: var(--evaz-emerald-700); color: var(--evaz-white); }
.btn--primary:hover { background: var(--evaz-emerald); }
.btn--gold { background: var(--evaz-gold-light); color: var(--evaz-emerald); }
.btn--gold:hover { background: #F6E2B6; }
.btn--ghost { color: var(--evaz-ivory); border-color: rgba(241, 214, 154, .55); }
.btn--ghost:hover { border-color: var(--evaz-gold-light); background: rgba(255, 255, 255, .06); }
.btn--wa { background: var(--evaz-emerald-700); color: var(--evaz-white); width: 52px; padding: 0; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--evaz-emerald-700); }
.text-link:hover { text-decoration: underline; }

/* ---------- top bar ---------- */
.topbar { background: var(--evaz-emerald-900); color: var(--evaz-mint); font-size: .8rem; line-height: 1.5; }
.topbar__inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 6px; }
.topbar p { margin: 0; }
.topbar__login { display: none; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__login a { color: var(--evaz-gold-light); text-decoration: none; }
.topbar__login a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(248, 245, 236, .97); border-bottom: 1px solid var(--evaz-line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { flex: none; margin-inline-end: auto; }
.brand img { width: 128px; height: auto; margin-block: -4px; }
.site-header__tools { display: flex; align-items: center; gap: 8px; }
.lang-globe { display: none; color: var(--evaz-stone); }
.header-cta { display: none; white-space: nowrap; }

.lang-switch { display: flex; gap: 2px; background: var(--evaz-white); border: 1px solid var(--evaz-line); border-radius: 999px; padding: 3px; }
.lang-switch a {
  display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 9px;
  border-radius: 999px; text-decoration: none; color: var(--evaz-ink); font-size: .9rem; line-height: 1; font-weight: 500;
}
.lang-switch a[lang="ps"], .lang-switch a[lang="fa-AF"] { font-family: var(--font-text-ar); font-size: .95rem; }
.lang-switch a[lang="en"] { font-family: var(--font-text-en); }
.lang-switch a:hover { background: var(--evaz-mint); }
.lang-switch a[aria-current] { background: var(--evaz-emerald); color: var(--evaz-white); }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--evaz-line); background: var(--evaz-white); color: var(--evaz-emerald); cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn__close { display: none; }
.nav-open .menu-btn__open { display: none; }
.nav-open .menu-btn__close { display: inline-flex; }

/* Mobile navigation: a panel under the header. */
.site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--evaz-ivory); border-bottom: 1px solid var(--evaz-line); max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: 0 16px 30px rgba(11, 61, 50, .12); }
.nav-open .site-nav { display: block; }
.site-nav__list { padding: 8px var(--gutter) 20px; }
.site-nav__list > li { border-bottom: 1px solid var(--evaz-line); }
.site-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 6px 4px; color: var(--evaz-ink); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--evaz-emerald-700); font-weight: 700; }
.site-nav .sub { padding-inline-start: 16px; padding-block-end: 6px; }
.site-nav .sub a { min-height: 42px; color: var(--evaz-stone); font-weight: 400; }
.site-nav .chev { display: none; }

/* ---------- first-visit language bar ---------- */
.langbar { background: var(--evaz-mint); border-bottom: 1px solid #CFE0D8; }
.langbar__inner { position: relative; display: grid; gap: 10px; padding-block: 14px; padding-inline-end: 56px; }
.langbar__title { margin: 0; font-weight: 700; color: var(--evaz-emerald); line-height: 1.7; }
.langbar__title span[lang="en"] { font-family: var(--font-text-en); }
.langbar__title span[lang="ps"], .langbar__title span[lang="fa-AF"] { font-family: var(--font-text-ar); }
.langbar__note { margin: 0; font-size: .9rem; color: var(--evaz-stone); }
.lang-switch--big { justify-self: start; }
.lang-switch--big a { min-height: 44px; min-width: 76px; font-size: 1rem; }
.langbar__close { position: absolute; inset-inline-end: var(--gutter); top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--evaz-emerald); cursor: pointer; }
.langbar__close .icon { width: 22px; height: 22px; }

/* ---------- section basics ---------- */
section { padding-block: 56px; }
.section-head { max-width: 720px; margin-block-end: 28px; }
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.section-intro { color: var(--evaz-stone); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .6em; color: var(--evaz-gold-deep); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--evaz-gold); }
:root:lang(ps) .eyebrow, :root:lang(fa) .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.eyebrow--light { color: var(--evaz-gold-light); }

/* Rounded tile, the brand's frame shape (Concept C): corner radius = one fifth of the width. */
.tile { border-radius: 20%; aspect-ratio: 1; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--evaz-emerald); color: var(--evaz-ivory); padding-block: 44px 52px; }
.hero::before { /* faint eight-pointed-star motif, ~6% opacity (brand guide: one motif per layout) */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 24 24'%3E%3Cpath fill='%23F1D69A' d='M12 4l2 3.2 3.7-.9-.9 3.7L20 12l-3.2 2 .9 3.7-3.7-.9L12 20l-2-3.2-3.7.9.9-3.7L4 12l3.2-2-.9-3.7 3.7.9Z'/%3E%3C/svg%3E");
}
.hero__grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero h1 { color: var(--evaz-ivory); font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); margin-block-end: .45em; }
:root:lang(ps) .hero h1, :root:lang(fa) .hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.6; }
.hero__lead { font-size: 1.08rem; color: #E8EFEA; max-width: 40em; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-block: 24px; }
.hero__points { display: grid; gap: 8px; font-size: .95rem; color: var(--evaz-mint); }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; }
.hero__points .icon { color: var(--evaz-gold-light); margin-block-start: .25em; }
.hero__art { display: none; }
.tile--hero { width: min(320px, 100%); max-width: 100%; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .3)); }
.tile--hero img { width: 100%; }

/* ---------- mission ---------- */
.mission__grid { display: grid; gap: 32px; }
.mission__text { font-size: 1.1rem; }
.values { display: grid; gap: 14px; }
.values li { background: var(--evaz-white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.values__dot { width: 14px; height: 14px; fill: var(--evaz-gold); margin-block-end: 10px; }
.values h3 { margin-block-end: .25em; }
.values p { margin: 0; color: var(--evaz-stone); font-size: .95rem; }

/* ---------- courses ---------- */
.courses { background: var(--evaz-white); }
.course-grid { display: grid; gap: 16px; }
.course-card { position: relative; display: flex; flex-direction: column; background: var(--evaz-ivory); border: 1px solid var(--evaz-line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.course-card:hover, .course-card:focus-within { border-color: var(--evaz-gold); box-shadow: var(--shadow); }
.course-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-block-end: 14px; }
.tile--mini { width: 52px; height: 52px; background: var(--evaz-emerald); color: var(--evaz-gold-light); display: grid; place-items: center; }
.tile--mini .icon { width: 24px; height: 24px; }
.course-card--adab .tile--mini { background: var(--evaz-emerald-700); }
.badge { display: inline-block; background: var(--evaz-gold-light); color: #5A4410; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.6; }
.course-card h3 { font-size: 1.2rem; margin-block-end: .35em; }
.course-card h3 a { color: var(--evaz-emerald); text-decoration: none; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is clickable */
.course-card p { color: var(--evaz-ink); font-size: .97rem; }
.course-card__meta { color: var(--evaz-stone) !important; font-size: .88rem !important; border-top: 1px solid var(--evaz-line); padding-top: 10px; margin-top: auto; margin-bottom: .4em; }
.course-card__fee { font-weight: 600; font-size: .92rem !important; margin-bottom: .8em; }
.course-card__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--evaz-emerald-700); font-size: .95rem; }

/* ---------- benefits ---------- */
.benefits { background: var(--evaz-mint); }
.benefit-grid { display: grid; gap: 14px; }
.benefit-grid li { background: var(--evaz-white); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.benefit__icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--evaz-mint); color: var(--evaz-emerald-700); display: grid; place-items: center; }
.benefit__icon .icon { width: 24px; height: 24px; }
.benefit-grid h3 { margin-block-end: .2em; }
.benefit-grid p { margin: 0; color: var(--evaz-stone); font-size: .95rem; }

/* ---------- method timeline ---------- */
.timeline { display: grid; gap: 0; counter-reset: s; }
.timeline li { position: relative; padding-inline-start: 62px; padding-block-end: 22px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--evaz-line); }
.timeline li:last-child::before { display: none; }
.timeline__num { position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--evaz-emerald); color: var(--evaz-gold-light); display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.timeline h3 { margin-block: 8px .2em; }
.timeline p { margin: 0; color: var(--evaz-stone); font-size: .95rem; }
.method__note { display: flex; gap: 12px; align-items: flex-start; background: var(--evaz-white); border-inline-start: 4px solid var(--evaz-gold); border-radius: 8px; padding: 14px 18px; margin: 10px 0 0; }
.note-dot { width: 12px; height: 12px; fill: var(--evaz-gold); flex: none; margin-block-start: .6em; }

/* ---------- teachers ---------- */
.teachers { background: var(--evaz-white); }
.teachers__grid { display: grid; gap: 28px; }
.teachers__female { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--evaz-emerald); }
.teachers__female .icon { color: var(--evaz-gold-deep); margin-block-start: .3em; }
.teacher-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.teacher-card { background: var(--evaz-ivory); border: 1px dashed var(--evaz-gold); border-radius: var(--radius); padding: 16px; text-align: center; font-size: .9rem; }
.teacher-card p { margin: 0 0 .2em; color: var(--evaz-stone); }
.tile--portrait { width: 88px; height: 88px; margin: 0 auto 12px; background: var(--evaz-mint); display: grid; place-items: center; }
.portrait-dot { width: 18px; height: 18px; fill: var(--evaz-gold); }
.teacher-card__name { font-weight: 700; color: var(--evaz-ink) !important; }
.teacher-card__pending { margin-top: .6em !important; font-size: .8rem; color: var(--evaz-gold-deep) !important; }

/* ---------- enrolment steps ---------- */
.steps { background: var(--evaz-emerald); color: var(--evaz-ivory); }
.steps .section-title { color: var(--evaz-ivory); }
.step-grid { display: grid; gap: 14px; }
.step-grid li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(241, 214, 154, .25); border-radius: var(--radius); padding: 20px; }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--evaz-gold-light); color: var(--evaz-gold-light); font-weight: 700; margin-block-end: 10px; }
.step-grid h3 { color: var(--evaz-white); margin-block-end: .2em; }
.step-grid p { margin: 0; color: #D6E3DD; font-size: .95rem; }
.steps__cta { margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 24px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--evaz-white); border: 1px solid var(--evaz-line); border-radius: 12px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; cursor: pointer; font-weight: 600; list-style: none; color: var(--evaz-emerald); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s; color: var(--evaz-gold-deep); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--evaz-ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--evaz-ivory); padding-block: 0 56px; }
.cta-band__inner { position: relative; overflow: hidden; background: var(--evaz-emerald-700); color: var(--evaz-ivory); border-radius: 24px; padding: 32px 24px; display: grid; gap: 20px; }
.cta-band h2 { color: var(--evaz-white); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.cta-band p { margin: 0; color: #E3EEE8; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- contact + footer ---------- */
.contact { background: var(--evaz-white); border-top: 1px solid var(--evaz-line); padding-block: 40px; }
.contact__list { display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .icon { width: 26px; height: 26px; color: var(--evaz-emerald-700); margin-block-start: .2em; }
.contact__list strong { display: block; color: var(--evaz-emerald); }
.site-footer { background: var(--evaz-emerald); color: #D6E3DD; padding-block: 44px 24px; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; }
.site-footer__brand img { width: 92px; flex: none; }
.site-footer__brand p { margin: 0; color: var(--evaz-gold-light); }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--evaz-gold-light); margin: 0 0 .6em; }
.site-footer nav ul { display: grid; gap: 2px; margin-block-end: 1.2em; }
.site-footer nav a { color: #E8EFEA; text-decoration: none; display: inline-block; padding-block: 5px; }
.site-footer nav a:hover { color: var(--evaz-white); text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(241, 214, 154, .25); margin-top: 24px; padding-top: 20px; font-size: .85rem; }
.site-footer__base p { margin-block-end: .6em; }
.safeguard { display: flex; gap: 10px; align-items: flex-start; color: var(--evaz-white); }
.safeguard .icon { color: var(--evaz-gold-light); margin-block-start: .2em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }
.site-footer__bottom p { margin: 0; }
.lang-switch--footer { background: transparent; border-color: rgba(241, 214, 154, .35); }
.lang-switch--footer a { color: #E8EFEA; }
.lang-switch--footer a:hover { background: rgba(255, 255, 255, .08); }
.lang-switch--footer a[aria-current] { background: var(--evaz-gold-light); color: var(--evaz-emerald); }

/* Sticky call-to-action on phones (thumb zone). */
.mobile-cta { transition: transform .2s; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 245, 236, .97); border-top: 1px solid var(--evaz-line); box-shadow: 0 -6px 20px rgba(11, 61, 50, .08); }
.mobile-cta .btn--gold { flex: 1; background: var(--evaz-emerald-700); color: var(--evaz-white); }
.mobile-cta .btn--wa { background: var(--evaz-gold-light); color: var(--evaz-emerald); }

/* Hidden while the hero buttons are on screen, so the same button never shows twice. */
.page-home .mobile-cta.is-hidden { transform: translateY(110%); }

/* ---------- placeholder pages ---------- */
.stub { min-height: 50vh; text-align: center; }
.stub .tile--mini { margin: 0 auto 18px; width: 64px; height: 64px; }
.stub h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.stub p { max-width: 36em; margin-inline: auto; color: var(--evaz-stone); }

/* ================= breakpoints ================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .values { grid-template-columns: 1fr 1fr; }
  .course-grid, .benefit-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .contact__list { grid-template-columns: repeat(3, 1fr); }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .brand img { width: 150px; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .lang-switch--big { justify-self: auto; }
}

@media (min-width: 900px) {
  body { padding-block-end: 0; }
  .mobile-cta { display: none; }
  .topbar__login { display: inline-flex; }
  section { padding-block: 80px; }
  .hero { padding-block: 72px 84px; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .hero__art { display: block; }
  .hero__points { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .mission__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .timeline li { padding-inline-start: 0; padding-block: 62px 0; }
  .timeline li::before { inset-inline-start: 50px; inset-inline-end: -18px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .teachers__grid { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
  .faq__grid { grid-template-columns: 1fr 2fr; gap: 56px; }
  .cta-band__inner { grid-template-columns: 1.4fr auto; align-items: center; padding: 48px 56px; }
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .site-footer__brand { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .site-footer__brand img { width: 120px; }
  .langbar__inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1100px) {
  .course-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Full desktop navigation. Pashto and Dari labels are long, so the menu button stays until 1240px. */
@media (min-width: 1240px) {
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; min-height: 44px; padding-inline: 1.1em; font-size: .95rem; background: var(--evaz-emerald-700); color: var(--evaz-white); }
  .header-cta:hover { background: var(--evaz-emerald); }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav__list { display: flex; gap: 2px; padding: 0; }
  .site-nav__list > li { border: 0; position: relative; }
  .site-nav a { min-height: 44px; padding: 4px 10px; border-radius: 8px; font-size: .95rem; white-space: nowrap; gap: 4px; }
  .site-nav a:hover { background: var(--evaz-mint); }
  .site-nav .chev { display: inline-block; width: 1em; height: 1em; }
  .nav-only-mobile { display: none; }
  .site-nav .sub { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 270px; background: var(--evaz-white); border: 1px solid var(--evaz-line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .site-nav .sub a { color: var(--evaz-ink); min-height: 40px; }
  .site-header__inner { gap: 18px; min-height: 76px; }
  .brand { margin-inline-end: 0; }
  .site-nav { margin-inline-end: auto; }
}
