/* ============================================================
   Brighter Horizons Academy — مدارس الآفاق المضيئة
   Navy + gold brand system. Mobile first breakpoints at the end.
   ============================================================ */

:root {
  --gold:        #FED891;
  --gold-dark:   #C9A84C;
  --gold-deep:   #9A7230;
  --gold-pale:   #FEF3D0;
  --navy:        #1A2B5E;
  --navy-mid:    #243975;
  --navy-deep:   #0C1528;
  --white:       #FFFFFF;
  --off-white:   #FAF8F2;
  --text-dark:   #1A1A2E;
  --text-mid:    #444466;
  --text-light:  #7A7A9A;
  --divider:     rgba(201, 168, 76, 0.22);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 72px;
  --shell: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

:is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px;
  transform: translate(-50%, -160%);
  z-index: 2000; background: var(--gold); color: var(--navy);
  padding: 10px 20px; border-radius: 4px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: transform .2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(26, 43, 94, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(254, 216, 145, 0.25);
  transition: height .3s;
}
nav.scrolled { height: 60px; }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* No crest in the bar: the arch is filled white, which reads as a bright blob
   at 46px however it is framed. The hero shows the mark at 118px a moment
   later, so the wordmark can carry the nav on its own. */
.nav-logo-text strong {
  display: block; font-family: var(--serif);
  font-size: 17px; font-weight: 600; color: var(--gold); letter-spacing: .5px;
  line-height: 1.2;
}
.nav-logo-text > span {
  font-size: 10px; font-weight: 300; color: rgba(255, 255, 255, .5);
  letter-spacing: 2px; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  position: relative;
  text-decoration: none; font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, .78); letter-spacing: 1px; text-transform: uppercase;
  padding-bottom: 4px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy) !important;
  padding: 9px 22px; border-radius: 4px;
  font-weight: 700 !important; letter-spacing: .5px !important;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(254, 216, 145, .5); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 10px;
  flex-direction: column; justify-content: space-between;
  background: none; border: 1px solid rgba(254, 216, 145, .3);
  border-radius: 4px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--gold); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-gold, .btn-ghost {
  display: inline-block;
  padding: 14px 38px; border-radius: 4px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s, color .25s, background .25s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); font-weight: 700;
  box-shadow: 0 4px 22px rgba(254, 216, 145, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(254, 216, 145, .55); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .38); color: var(--white); font-weight: 500;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(254, 216, 145, .08); }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 56px) 20px 132px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../img/hero.webp') center / cover no-repeat;
}
/* Video sits over the still, and fades in only once it can actually play, so a
   slow connection never shows a black rectangle. */
.hero-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
  pointer-events: none;
}
.hero-video.ready { opacity: 1; }
/* Both tints ride above photo AND video — this is what keeps the H1 legible. */
.hero-glow {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(254, 216, 145, .10) 0%, transparent 65%),
    linear-gradient(to bottom,
      rgba(26, 43, 94, .86) 0%,
      rgba(26, 43, 94, .76) 55%,
      rgba(26, 43, 94, .94) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 860px; }

.hero-crest {
  display: grid; place-items: center; margin: 0 auto 26px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(254, 216, 145, .6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  animation: fadeUp .7s ease both;
}
.hero-crest img { width: 104px; height: auto; object-fit: contain; }
.hero-tag {
  display: inline-block; margin-bottom: 22px;
  background: rgba(254, 216, 145, .12);
  border: 1px solid rgba(254, 216, 145, .45);
  color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 20px; border-radius: 2px;
  animation: fadeUp .7s .1s ease both;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 7.5vw, 88px); font-weight: 600; line-height: 1.08;
  color: var(--white); margin-bottom: 14px;
  animation: fadeUp .7s .2s ease both;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-arabic {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 28px); font-weight: 300;
  color: rgba(255, 255, 255, .62); letter-spacing: 3px; margin-bottom: 22px;
  animation: fadeUp .7s .28s ease both;
}
.hero-rule {
  width: 56px; height: 2px; margin: 0 auto 26px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  animation: fadeUp .7s .32s ease both;
}
.hero-sub {
  max-width: 580px; margin: 0 auto 42px;
  font-size: 17px; font-weight: 300; line-height: 1.82;
  color: rgba(255, 255, 255, .76);
  animation: fadeUp .7s .38s ease both;
}
.hero-sub strong { color: var(--gold); font-weight: 600; }
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .7s .46s ease both;
}

.hero-stats {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  display: flex; justify-content: center; list-style: none;
  background: rgba(20, 34, 74, .96);
  border-top: 1px solid rgba(254, 216, 145, .25);
  animation: fadeUp .7s .6s ease both;
}
.hero-stat {
  flex: 1; max-width: 220px; text-align: center;
  padding: 18px 14px; border-right: 1px solid rgba(254, 216, 145, .15);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block; font-family: var(--serif);
  font-size: 32px; font-weight: 700; color: var(--gold); line-height: 1.1;
}
.hero-stat span {
  font-size: 10.5px; color: rgba(255, 255, 255, .55);
  text-transform: uppercase; letter-spacing: 1.4px;
}

/* ── ACCREDITATION STRIP ────────────────────────────────── */
.accred {
  background: var(--navy-deep);
  padding: 26px 5%;
  border-bottom: 1px solid rgba(254, 216, 145, .14);
}
.accred-inner {
  max-width: var(--shell); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.accred-item { display: flex; align-items: center; gap: 13px; }
.accred-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(254, 216, 145, .1);
  border: 1px solid rgba(254, 216, 145, .26);
}
.accred-item strong {
  display: block; font-size: 13px; font-weight: 700; color: var(--gold);
  letter-spacing: .3px;
}
.accred-item span { font-size: 11.5px; color: rgba(255, 255, 255, .5); }

/* ── SHARED SECTION FURNITURE ───────────────────────────── */
section { padding: 96px 5%; }

.sec-head, .mv-head { max-width: var(--shell); margin: 0 auto 48px; }

.section-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 10px;
}
.section-kicker::before { content: ''; width: 28px; height: 1.5px; background: var(--gold-dark); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 50px); font-weight: 600; line-height: 1.18;
  color: var(--navy); margin-bottom: 14px;
}
.section-sub {
  font-size: 15.5px; font-weight: 300; line-height: 1.82;
  color: var(--text-mid); max-width: 600px;
}
.section-body {
  font-size: 15px; line-height: 1.82; color: var(--text-mid); margin-top: 16px;
  max-width: 600px;
}
.gold-rule { width: 44px; height: 2px; background: var(--gold-dark); margin: 18px 0 30px; }

/* ── ABOUT ──────────────────────────────────────────────── */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: center; max-width: var(--shell); margin: 0 auto;
}
/* The About media is a 9:16 film, so it gets a portrait frame centred in the
   column rather than being cropped into a landscape box. */
.about-media { display: flex; justify-content: center; }
.about-video-frame {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 9 / 16;
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 20px 50px rgba(26, 43, 94, .22);
}
.about-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-video-frame .film-play::after { width: 64px; height: 64px; }
.about-video-frame .film-play svg { width: 26px; height: 26px; }
/* Holds the 2006-2026 seal, whose navy and silver need a light ground — the
   old navy plaque would have swallowed it. */
.about-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; pointer-events: none;
  background: var(--white);
  padding: 12px 16px; border-radius: 6px;
  border-bottom: 3px solid var(--gold-dark);
  box-shadow: 0 6px 24px rgba(12, 21, 40, .3);
}
.about-badge img { display: block; width: 104px; height: auto; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.av {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px; background: var(--off-white); border-radius: 4px;
  border-left: 2px solid var(--gold-pale); transition: border-color .2s;
}
.av:hover { border-left-color: var(--gold-dark); }
.av-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-pale), #F5E090);
  display: grid; place-items: center; font-size: 15px;
}
.av-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.av-text span { font-size: 12px; color: var(--text-light); }

/* ── MISSION & VISION ───────────────────────────────────── */
#mission { background: var(--off-white); }
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: var(--shell); margin: 0 auto;
}
.mv-card {
  background: var(--white); border: 1px solid var(--divider);
  border-top: 3px solid var(--gold-dark);
  border-radius: 6px; padding: 34px 32px;
  transition: box-shadow .3s, transform .3s;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26, 43, 94, .1); }
.mv-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; font-size: 21px;
  background: var(--gold-pale); margin-bottom: 16px;
}
.mv-card h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--navy); margin-bottom: 12px;
}
.mv-card p { font-size: 15px; line-height: 1.85; color: var(--text-mid); }
/* The mission runs to two paragraphs; without this they butt together. */
.mv-card p + p:not(.mv-ar) { margin-top: 14px; }
.mv-ar {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 15.5px !important; line-height: 2 !important;
  color: var(--navy) !important;
}

/* ── THE BHA DIFFERENCE ─────────────────────────────────── */
#difference { background: var(--white); }
.diff-list {
  display: flex; flex-direction: column; gap: 30px;
  max-width: var(--shell); margin: 0 auto;
}
.diff-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--off-white); border: 1px solid var(--divider);
  border-radius: 8px; overflow: hidden;
}
.diff-row:nth-child(even) .diff-media { order: 2; }
.diff-media { height: 100%; min-height: 300px; }
.diff-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diff-body { padding: 40px 44px 40px 0; }
.diff-row:nth-child(even) .diff-body { padding: 40px 0 40px 44px; }
.diff-num {
  font-family: var(--serif); font-size: 40px; font-weight: 300;
  color: var(--gold-dark); line-height: 1; margin-bottom: 6px;
}
.diff-body h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--navy); margin-bottom: 4px;
}
.diff-ar {
  font-family: var(--serif); font-size: 20px; color: var(--gold-deep);
  margin-bottom: 14px;
}
.diff-body > p:not(.diff-ar):not(.diff-ar-body) {
  font-size: 15px; line-height: 1.82; color: var(--text-mid);
}
.diff-ar-body {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--divider);
  font-size: 15px; line-height: 2; color: var(--navy);
}

/* ── PROGRAMS ───────────────────────────────────────────── */
#programs { background: var(--off-white); }
.prog-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: var(--shell); margin: 0 auto;
}
.prog-card {
  position: relative; background: var(--white);
  border: 1px solid var(--divider); border-radius: 6px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.prog-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.prog-card:hover { transform: translateY(-7px); box-shadow: 0 18px 44px rgba(26, 43, 94, .13); }
.prog-card:hover::before { transform: scaleX(1); }
.prog-img { width: 100%; height: 185px; object-fit: cover; display: block; }
.prog-body { padding: 22px; }
.prog-num {
  font-family: var(--serif); font-size: 42px; font-weight: 300;
  color: var(--gold-pale); line-height: 1; margin-bottom: 8px;
}
.prog-body h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--navy); margin-bottom: 8px;
}
.prog-body p { font-size: 13px; line-height: 1.72; color: var(--text-mid); }
.prog-tag {
  display: inline-block; margin-top: 12px;
  background: var(--gold-pale); color: var(--gold-deep);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}

/* ── GRADUATES ──────────────────────────────────────────── */
#graduates {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
}
#graduates::before {
  content: ''; position: absolute; top: -35%; left: -10%;
  width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(254, 216, 145, .08) 0%, transparent 70%);
}
.grad-inner { position: relative; max-width: var(--shell); margin: 0 auto; }
.grad-head { max-width: 640px; margin-bottom: 52px; }
#graduates .section-kicker { color: var(--gold); }
#graduates .section-kicker::before { background: var(--gold); }
#graduates .section-title { color: var(--white); }
#graduates .section-sub { color: rgba(255, 255, 255, .6); }
#graduates .gold-rule { background: var(--gold); }
.grad-big { color: var(--gold); }

.grad-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none;
}
.grad-stat {
  text-align: center; padding: 30px 16px; border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(254, 216, 145, .18);
  transition: background .3s, border-color .3s, transform .3s;
}
.grad-stat:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(254, 216, 145, .45);
  transform: translateY(-4px);
}
.grad-ico { display: block; font-size: 26px; margin-bottom: 10px; }
.grad-stat strong {
  display: block; font-family: var(--serif);
  font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.grad-stat > span:last-child {
  display: block; margin-top: 8px;
  font-size: 12px; color: rgba(255, 255, 255, .6);
  text-transform: uppercase; letter-spacing: 1.2px;
}

/* ── WHY BHA ────────────────────────────────────────────── */
#why { background: var(--white); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: var(--shell); margin: 0 auto;
}
.why-card {
  padding: 30px 26px; border-radius: 6px;
  background: var(--off-white); border: 1px solid var(--divider);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dark);
  box-shadow: 0 14px 38px rgba(26, 43, 94, .1);
}
.why-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%; font-size: 22px; margin-bottom: 18px;
  background: var(--gold-pale); border: 1px solid rgba(201, 168, 76, .3);
}
.why-card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--navy); margin-bottom: 10px;
}
.why-card p { font-size: 13.5px; line-height: 1.78; color: var(--text-mid); }

/* ── FILM ───────────────────────────────────────────────── */
#film {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
}
#film::before {
  content: ''; position: absolute; top: -30%; right: -12%;
  width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(254, 216, 145, .08) 0%, transparent 70%);
}
.film-head {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto 44px; text-align: center;
}
.film-head .section-kicker { justify-content: center; }
#film .section-kicker { color: var(--gold); }
#film .section-kicker::before { background: var(--gold); }
#film .section-title { color: var(--white); }
#film .section-sub { color: rgba(255, 255, 255, .62); margin: 0 auto; }
#film .gold-rule { background: var(--gold); margin-left: auto; margin-right: auto; }
.film-arabic {
  /* dir="rtl" orders the characters; centring keeps it under the heading. */
  font-family: var(--serif); font-size: 22px; font-weight: 300;
  color: var(--gold); letter-spacing: 1px; margin-top: 6px; text-align: center;
}

.film-player {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; text-align: center;
}
/* Widescreen now: the feature film is 16:9, not the 9:16 phone clip. */
.film-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(254, 216, 145, .3);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
  background: #000;
}
.film-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  border: none; cursor: pointer;
  background: linear-gradient(to bottom, rgba(26, 43, 94, .2), rgba(26, 43, 94, .5));
  transition: opacity .25s;
}
.film-play::after {
  content: ''; position: absolute;
  width: 82px; height: 82px; border-radius: 50%;
  background: rgba(254, 216, 145, .95);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .4);
  transition: transform .25s;
}
.film-play svg {
  position: relative; z-index: 1;
  width: 34px; height: 34px; fill: var(--navy); margin-left: 5px;
}
.film-play:hover::after { transform: scale(1.08); }
.film-play[hidden] { display: none; }

.film-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.film-meta span {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.film-meta span + span { position: relative; padding-left: 18px; }
.film-meta span + span::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--gold-dark);
}
.film-cta { margin-top: 26px; }

/* ── TUITION ────────────────────────────────────────────── */
#tuition { background: var(--off-white); }
.tuition-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
  max-width: var(--shell); margin: 0 auto;
}
.tuition-cta { margin-top: 30px; }
.tuition-table {
  background: var(--white); border: 1px solid var(--divider);
  border-radius: 8px; padding: 10px 26px 22px;
}
.tuition-table table { width: 100%; border-collapse: collapse; }
.tuition-table caption {
  caption-side: top; text-align: left; padding: 18px 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-deep);
}
.tuition-table th, .tuition-table td {
  text-align: left; padding: 11px 8px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}
.tuition-table thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light);
}
.tuition-table :is(.col-was, .was, .col-now, .fee) { text-align: right; }
.tuition-table tbody th {
  font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy);
}
.tuition-table tbody td { color: var(--text-mid); }
.tuition-table tbody tr:last-child :is(th, td) { border-bottom: none; }

/* Stage grouping keeps 14 grade rows scannable */
.stage-row th {
  padding: 18px 8px 7px !important;
  font-family: var(--sans) !important;
  font-size: 10.5px !important; font-weight: 700 !important;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-deep) !important;
  border-bottom: 1px solid var(--gold-dark) !important;
}
.tuition-table tbody tr:first-child th { padding-top: 4px !important; }

.was { color: var(--text-light) !important; white-space: nowrap; font-size: 13px; }
.was s { text-decoration-color: #C0392B; text-decoration-thickness: 1.5px; }
.fee { font-weight: 700; color: var(--navy) !important; white-space: nowrap; font-size: 15.5px; }
.cut .fee { color: #B02A1E !important; }        /* discounted grades stand out */
.cut { background: rgba(254, 243, 208, .35); }

.tuition-offer {
  margin: 24px 0 0; padding: 16px 18px;
  background: var(--gold-pale); border-left: 3px solid var(--gold-dark); border-radius: 4px;
}
.tuition-offer strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px;
}
.tuition-offer span { font-size: 13px; line-height: 1.6; color: var(--text-mid); }

.tuition-note {
  margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--text-light);
}

/* ── GALLERY ────────────────────────────────────────────── */
#gallery { background: var(--white); }
.gal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: var(--shell); margin: 0 auto;
}
.gal-item {
  position: relative; overflow: hidden; border-radius: 6px;
  padding: 0; border: none; background: none; cursor: zoom-in;
  display: block;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-overlay {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(26, 43, 94, .55) 0%, transparent 55%);
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-big  { grid-column: span 2; grid-row: span 2; height: 410px; }
.gal-tall { grid-row: span 2; height: 410px; }
.gal-reg  { height: 196px; }

/* Play badge marks the gallery tiles that are video, not stills. */
.gal-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none;
}
.gal-play::after {
  content: ''; position: absolute;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(254, 216, 145, .92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: transform .3s;
}
.gal-play svg { position: relative; z-index: 1; width: 22px; height: 22px; fill: var(--navy); margin-left: 3px; }
.gal-item:hover .gal-play::after { transform: scale(1.12); }
.gal-item[data-video] .gal-overlay { opacity: .55; }
.gal-item[data-video]:hover .gal-overlay { opacity: 1; }

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  border: none; padding: 0; background: transparent; overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 14, 30, .92); }
.lightbox[open] { display: grid; place-items: center; }
#lbImg, .lb-video {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .6);
}
/* Vertical clips would otherwise fill the whole viewport height. */
.lb-video { width: auto; height: auto; background: #000; }
#lbImg[hidden], .lb-video[hidden] { display: none; }
.lb-close, .lb-nav {
  position: fixed; z-index: 2;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(254, 216, 145, .3); }
.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 34px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
#testimonials { background: var(--off-white); }
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: var(--shell); margin: 0 auto;
}
.test-card {
  background: var(--white); border: 1px solid var(--divider);
  border-radius: 6px; padding: 30px 26px;
  transition: box-shadow .3s;
}
.test-card:hover { box-shadow: 0 10px 36px rgba(26, 43, 94, .09); }
.test-quote {
  display: block; font-family: var(--serif); font-size: 64px; line-height: .75;
  color: var(--gold-pale); margin-bottom: 14px;
}
.test-card blockquote p {
  font-size: 14.5px; line-height: 1.82; color: var(--text-mid);
  font-style: italic; margin-bottom: 22px;
}
.test-author { display: flex; align-items: center; gap: 12px; }
.test-av {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy);
}
.test-author strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.test-author span span, .test-author > span > span { font-size: 11.5px; color: var(--text-light); }

/* ── FAQ ────────────────────────────────────────────────── */
#faq { background: var(--white); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--divider); border-radius: 6px;
  background: var(--off-white); margin-bottom: 12px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--gold-dark); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0;
  font-family: var(--sans); font-size: 22px; font-weight: 400; color: var(--gold-deep);
  transition: transform .25s;
}
.faq-item[open] summary::after { content: '−'; }   /* literal minus, not a hex escape */
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item p {
  padding: 0 22px 20px; margin: 0;
  font-size: 15px; line-height: 1.82; color: var(--text-mid);
}
/* Question: English on top, Arabic beneath — the same pairing the Difference
   pillars use, so a reader scanning in either language finds their line. */
.faq-q { display: flex; flex-direction: column; gap: 3px; }
.faq-q-ar {
  font-family: var(--serif); font-size: 16px; font-weight: 400;
  color: var(--gold-deep); line-height: 1.5;
}
/* Full Arabic paragraph, so dir="rtl" right-aligning it is correct here —
   unlike the film subtitle, which is a label and stays left. */
.faq-item p:not(.faq-a-ar) { padding-bottom: 14px; }
.faq-a-ar {
  margin: 0 22px 20px !important; padding: 14px 0 0 !important;
  border-top: 1px solid var(--divider);
  font-size: 15px; line-height: 2; color: var(--navy) !important;
}

/* ── CONTACT ────────────────────────────────────────────── */
#contact {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
}
#contact::after {
  content: ''; position: absolute; left: -80px; bottom: -80px;
  width: 450px; height: 450px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(254, 216, 145, .07) 0%, transparent 70%);
}
#contact .section-kicker { color: var(--gold); }
#contact .section-kicker::before { background: var(--gold); }
#contact .section-title { color: var(--white); }
#contact .section-sub { color: rgba(255, 255, 255, .6); }
#contact .gold-rule { background: var(--gold); }

.contact-layout {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
}
.contact-inner { text-align: center; }
.contact-inner .section-kicker { justify-content: center; }
#contact .section-sub { margin: 0 auto; }
#contact .gold-rule { margin-left: auto; margin-right: auto; }
.c-items {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 22px 48px; margin-top: 34px;
}
.c-item { display: flex; align-items: center; gap: 16px; text-align: left; }
.c-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 5px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(254, 216, 145, .12); border: 1px solid rgba(254, 216, 145, .28);
}
.c-item strong {
  display: block; font-size: 11px; font-weight: 600; color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px;
}
.c-item a { font-size: 14.5px; color: rgba(255, 255, 255, .75); text-decoration: none; }
.c-item a:hover { color: var(--gold); }

.socials { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.soc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 5px;
  border: 1px solid rgba(254, 216, 145, .28);
  background: rgba(254, 216, 145, .08);
  text-decoration: none; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: background .22s, border-color .22s, color .22s, transform .22s;
}
.soc-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.soc-btn:hover {
  background: rgba(254, 216, 145, .18); border-color: var(--gold);
  color: var(--gold); transform: translateY(-2px);
}

/* ── MAP ────────────────────────────────────────────────── */
.map-wrap {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 64px auto 0;
  border: 1px solid rgba(254, 216, 145, .25); border-radius: 8px;
  overflow: hidden; background: rgba(255, 255, 255, .04);
}
.map-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 18px 24px;
  border-bottom: 1px solid rgba(254, 216, 145, .2);
}
.map-head h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold);
}
.map-frame { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.15); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--navy-deep); padding: 40px 5% 24px;
  border-top: 1px solid rgba(254, 216, 145, .15);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: var(--shell); margin: 0 auto;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
/* The lockup keeps its navy wordmark rather than being knocked out to white:
   recolouring it turns the اقرأ inside the crest cream, and cream on the gold
   sunburst behind it is unreadable. A plaque gives it the light ground it
   was drawn for. */
.footer-plaque {
  flex-shrink: 0; display: block;
  background: var(--off-white);
  padding: 14px 18px; border-radius: 6px;
  border-bottom: 3px solid var(--gold-dark);
}
.footer-plaque img { display: block; width: 130px; height: auto; }
.footer-brand-text span {
  display: block; font-size: 11px; color: rgba(255, 255, 255, .34); letter-spacing: 1px;
}
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: rgba(255, 255, 255, .42);
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  max-width: var(--shell); margin: 20px auto 0;
  text-align: center; font-size: 12px; color: rgba(255, 255, 255, .24);
}

/* ── MOTION ─────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* Reveal-on-scroll only runs when JS is there to switch it back on,
   otherwise the whole page would stay invisible. */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
/* Tighten the bar before it gets anywhere near wrapping. */
@media (max-width: 1240px) {
  nav { padding: 0 3%; }
  .nav-links { gap: 18px; }
  .nav-cta { padding: 9px 16px; }
}

@media (max-width: 1080px) {
  .accred-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
  .prog-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .test-grid    { grid-template-columns: repeat(2, 1fr); }
  .grad-stats   { grid-template-columns: repeat(3, 1fr); }
  .tuition-inner { grid-template-columns: 1fr; gap: 44px; }

  /* The full nav needs ~1060px for logo + 7 links; below that use the menu.
     (It silently wrapped and overflowed between 900px and 1060px before.) */
  nav { padding: 0 4%; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(20, 34, 74, .99);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(254, 216, 145, .25);
    padding: 8px 5% 20px;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block; padding: 15px 0; font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .nav-links a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 14px; border-bottom: none !important; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .mv-grid { grid-template-columns: 1fr; }

  .diff-row, .diff-row:nth-child(even) { grid-template-columns: 1fr; gap: 0; }
  .diff-row:nth-child(even) .diff-media { order: 0; }
  .diff-media { min-height: 0; height: 240px; }
  .diff-body, .diff-row:nth-child(even) .diff-body { padding: 30px 26px 34px; }
}

@media (max-width: 720px) {
  section { padding: 68px 5%; }
  .hero { padding-bottom: 190px; }
  .hero-crest { width: 120px; height: 120px; }
  .hero-crest img { width: 82px; }

  .hero-stats { flex-wrap: wrap; }
  .hero-stat {
    flex: 1 1 50%; max-width: none;
    border-right: 1px solid rgba(254, 216, 145, .15);
    border-top: 1px solid rgba(254, 216, 145, .12);
  }
  .hero-stat:nth-child(even) { border-right: none; }

  .accred-inner { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .c-items { flex-direction: column; align-items: center; gap: 20px; }
  .prog-grid, .why-grid, .test-grid { grid-template-columns: 1fr; }
  .grad-stats { grid-template-columns: 1fr 1fr; }

  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-big, .gal-tall { grid-column: span 1; grid-row: span 1; height: 200px; }
  .gal-reg { height: 150px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }

  .lb-nav { width: 42px; height: 42px; font-size: 28px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
