/* =========================================================================
   Al-Mubarak Qur'an Academy — Design System
   Premium, accessible, RTL-ready. Light + Dark. No external requests.
   ========================================================================= */

/* Self-hosted Arabic family — used only where Arabic/RTL text appears. */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Brand */
  /* Emerald Green + Gold — Al-Mubarak brand palette */
  --green-900: #043f31;
  --green-800: #065f46;
  --green-700: #08745a;
  --green-600: #0f8b6d;
  --green-500: #27a882;
  --gold-600:  #b98d18;
  --gold-500:  #e0b94a;
  --gold-400:  #f0d67a;
  --cream:     #fafaf7;
  --cream-2:   #f3f1e9;

  /* Semantic (light theme defaults) */
  --bg:         #fafaf7;
  --bg-2:       #f5f8f5;
  --surface:    #ffffff;
  --surface-2:  #f6faf8;
  --ink:        #1f2937;
  --ink-2:      #4b5563;
  --muted:      #6b7280;
  --line:       #dce7e1;
  --line-2:     #eaf1ed;
  --primary:    var(--green-700);
  --primary-ink:#0b2c20;
  --accent:     var(--gold-600);
  --accent-2:   var(--gold-500);
  --on-primary: #f4efe2;
  --danger:     #c0392b;

  /* Form fields */
  --field-bg:        #ffffff;
  --field-brd:       #cfddd5;
  --field-brd-hover: #8ebaa8;

  /* Effects */
  --grad-primary: linear-gradient(135deg, #0f8b6d, #065f46);
  --grad-gold:    linear-gradient(135deg, #e8c86a, #d4af37);
  --shadow-sm: 0 1px 3px rgba(6,95,70,.07), 0 1px 2px rgba(6,95,70,.08);
  --shadow-md: 0 10px 28px rgba(6,95,70,.11), 0 3px 8px rgba(6,95,70,.06);
  --shadow-lg: 0 26px 64px rgba(6,95,70,.17), 0 10px 24px rgba(6,95,70,.08);
  --shadow-gold: 0 10px 28px rgba(212,175,55,.30);
  --glass-bg: rgba(255,255,255,.62);
  --glass-brd: rgba(255,255,255,.55);

  /* Shape & motion */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Type */
  --font-sans: Arial, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: Arial, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-arabic: Arial, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

:root[data-theme="dark"] {
  --bg:         #042f25;
  --bg-2:       #054535;
  --surface:    #065f46;
  --surface-2:  #08745a;
  --ink:        #ffffff;
  --ink-2:      #e4f6ec;
  --muted:      #bdd8c9;
  --line:       #16775e;
  --line-2:     #0d6a52;
  --primary:    var(--green-500);
  --primary-ink:#0a2519;
  --accent:     var(--gold-500);
  --accent-2:   var(--gold-400);
  --on-primary: #f4efe2;
  --danger:     #ff8080;

  /* Form fields (dark) */
  --field-bg:        #054535;
  --field-brd:       #168468;
  --field-brd-hover: #43b894;
  --glass-bg: rgba(6,95,70,.60);
  --glass-brd: rgba(232,200,106,.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55);
  --grad-primary: linear-gradient(135deg, var(--green-600), var(--green-900));
}

/* ---------------------------------------------------------------- Dark-only brand mode
   The academy uses one intentional emerald interface.  Keep the selectors for
   both stored theme values so an older localStorage preference can never
   re-enable the retired light appearance. */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:         #042f25;
  --bg-2:       #054535;
  --surface:    #065f46;
  --surface-2:  #08745a;
  --ink:        #ffffff;
  --ink-2:      #e4f6ec;
  --muted:      #bdd8c9;
  --line:       #16775e;
  --line-2:     #0d6a52;
  --primary:    #0f8b6d;
  --primary-ink:#042f25;
  --accent:     #e0b94a;
  --accent-2:   #f0d67a;
  --on-primary: #fafaf7;
  --field-bg:        #054535;
  --field-brd:       #168468;
  --field-brd-hover: #43b894;
  --glass-bg: rgba(6,95,70,.60);
  --glass-brd: rgba(232,200,106,.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.40);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55);
  --grad-primary: linear-gradient(135deg, #0f8b6d, #043f31);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(16px, .18vw + 15.3px, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/* Arabic copy needs its own letterforms, metrics, and diacritic spacing. */
:lang(ar),
[lang="ar"],
[lang^="ar-"] {
  font-family: var(--font-arabic);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.9;
}
[dir="rtl"]:not(.bismillah) { font-family: var(--font-arabic); letter-spacing: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif); line-height: 1.16; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink);
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tint { background: var(--bg-2); }
/* Every inline SVG icon carries `.ic`; give it a hard default size so an SVG
   without width/height never falls back to the 300x150 replaced-element size. */
.icon,
.ic { width: 1.5rem; height: 1.5rem; flex: none; }
svg.ic, svg.icon { max-width: 100%; }
.ic--sm { width: 1.05rem; height: 1.05rem; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  display: inline-flex; align-items: center; gap: .5em;
  padding: .82em 1.55em; border-radius: 999px; font-weight: 700;
  letter-spacing: .01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn--primary { background: var(--grad-primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn--gold { background: var(--grad-gold); color: #3a2a08; box-shadow: var(--shadow-gold); }
.btn--gold:hover { box-shadow: 0 14px 38px rgba(212,175,55,.42); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--outline { background: transparent; color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.btn--outline:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn--outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--outline-light:hover { background: rgba(255,255,255,.16); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--accent); font-weight: 600; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow--sm { font-size: .92rem; }

.pill {
  display: inline-block; padding: .3em .8em; border-radius: 999px; font-size: .76rem;
  font-weight: 600; letter-spacing: .02em; background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---------------------------------------------------------------- Forms (global) */
.field { display: grid; gap: .45rem; }
.field > label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field > label small { font-weight: 400; color: var(--muted); }

.field input,
.field textarea,
.field select,
.newsletter__form input {
  width: 100%;
  padding: .88em 1em;
  border-radius: 12px;
  border: 1.5px solid var(--field-brd);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 1.02rem;
  font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .8; }

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--field-brd-hover); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

/* Custom select caret (works in both themes) */
.field select {
  padding-inline-end: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  cursor: pointer;
}
[dir="rtl"] .field select { background-position: left 1em center; padding-inline-end: 1em; padding-inline-start: 2.6em; }

.field-error { color: var(--danger); font-size: .84rem; display: flex; align-items: center; gap: .35rem; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--danger); }
.req { color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* Framed form card — used on contact, admissions, newsletter, admin */
.form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.15rem;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--grad-gold);
}

.checkbox { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); font-size: .96rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--primary); flex: none; }
.checkbox a { color: var(--primary); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Eyebrows / heads */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--gold-500); margin-bottom: .8rem; }
.eyebrow--gold { color: var(--accent); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px,5vw,56px); text-align: center; }
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.8rem); color: var(--gold-400); text-shadow: 0 1px 0 rgba(0,0,0,.14); }
.section-sub { margin-top: 1rem; color: var(--ink-2); font-size: clamp(1.05rem, .35vw + .98rem, 1.16rem); line-height: 1.7; }
.section-foot { text-align: center; margin-top: clamp(32px,5vw,52px); }
.lede { color: var(--ink-2); font-size: clamp(1.06rem, .3vw + 1rem, 1.16rem); line-height: 1.7; margin-bottom: 1rem; }

/* Heading hierarchy — one emerald/gold language across every public page. */
.feature-card__title,
.course-card__title a,
.faq__q,
.prose h2,
.vm-card h2,
.fees-note h3,
.enroll-card h3,
.faq-cta h2,
.contact-list strong { color: var(--gold-400); }
.feature-card__text,
.course-card__summary,
.prose p,
.faq__a,
.contact-list a,
.contact-list span { color: var(--ink-2); }

/* ---------------------------------------------------------------- Topbar */
.topbar { background: var(--green-900); color: #d9cfa8; font-size: .9rem; }
.topbar__inner { display: grid; grid-template-columns: minmax(218px, 1fr) auto minmax(218px, 1fr); align-items: center; gap: 1.2rem; min-height: 68px; padding-block: .3rem; }
.topbar__left { min-width: 0; }
.topbar__right { min-width: 0; display: flex; align-items: center; justify-content: flex-end; }
.topbar__center { text-align: center; }

/* Topbar action buttons */
/* Mobile layout: stack the dates, Bismillah, and tagline gracefully. */
@media (max-width: 760px) {
  .topbar__inner { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-height: 0; padding-block: .5rem; }
  .topbar__left, .topbar__center, .topbar__right { width: 100%; display: flex; justify-content: center; }
  .topbar__right { margin-top: 0; }
  .date-box { padding: .32rem .6rem; font-size: .92rem; }
  .topbar__tagline { display: none; }
}


/* Prominent rounded date box */
.date-box {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--gold-400); color: #073022; /* dark text on gold */
  padding: .45rem .9rem; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(2, 18, 12, .25); border: 1px solid rgba(0,0,0,.06);
}
.date-box .hijri { font-weight: 800; }
.date-box .dot { opacity: .6; color: rgba(0,0,0,.35); }

/* Centered, gold Arabic calligraphy cropped from its transparent canvas. */
.bismillah {
  width: clamp(205px, 23vw, 310px); height: clamp(40px, 4.25vw, 58px);
  margin: 0 auto; overflow: hidden; display: block; line-height: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.32));
}
.bismillah img { display: block; width: 100%; height: auto; transform: translateY(-34%); }
@media (max-width: 780px) {
  .bismillah { width: min(66vw, 300px); height: 56px; }
  .date-box { padding: .35rem .7rem; font-size: .88rem; }
}
@media (max-width: 480px) {
  .bismillah { width: min(78vw, 270px); height: 50px; }
}

/* Keep tagline subtle but legible on the right */
.topbar__tagline { font-style: italic; opacity: .95; margin: 0; }

/* Theme adjustments */
:root[data-theme="dark"] .date-box { background: var(--gold-400); color: #073022; }
:root[data-theme="light"] .date-box { background: var(--gold-400); color: #073022; }


/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
/* Glass background on a pseudo-element so backdrop-filter does NOT turn the
   header into the containing block for the fixed mobile drawer. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #ffffff;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header__inner { display: grid; grid-template-columns: minmax(205px, 250px) minmax(0, 1fr) auto; align-items: center; gap: clamp(.65rem, 1.5vw, 1.35rem); padding-block: .3rem; min-height: clamp(74px, 6.2vw, 86px); }

.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
/* Brand logo (transparent PNG) submerges into the header background in both
   themes. In dark mode we lift the darker teal text so it stays legible. */
.brand__logo {
  /* Fill the header vertical space while remaining responsive */
  height: 76px;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-header .brand__logo { filter: none; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(13,53,39,.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.brand__sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.mainnav { min-width: 0; }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: .05rem; list-style: none; }
.nav-menu__cta { display: none; }        /* CTA block only appears inside the mobile drawer */
.nav-link {
  display: inline-block; padding: .48rem clamp(.55rem, 1.1vw, .82rem); border-radius: 10px; font-weight: 600;
  white-space: nowrap;
  color: #1f2937; position: relative; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px; transform: translateX(-50%);
  transition: width .25s var(--ease);
}
.nav-link:hover { color: var(--green-700); background: #f3f8f5; }
.nav-link:hover::after, .nav-link.is-active::after { width: 18px; }
.nav-link.is-active { color: var(--green-800); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; white-space: nowrap; }
.header-actions .btn { flex: 0 0 auto; justify-content: center; white-space: nowrap; }
.site-header .header-login { min-width: 106px; color: #1f2937; border-color: #9ab9aa; background: #fff; }
.site-header .header-login:hover { background: #f3f8f5; color: var(--green-800); }

/* Ensure header CTA is a regular pill (not oversized) and visible on desktop */
.header-cta { display: inline-flex !important; align-items: center; min-width: 154px; padding: .62em .95em; border-radius: 12px; font-weight: 700; }
@media (max-width: 760px) {
  /* Hide header CTAs on small screens to avoid duplicates with topbar actions */
  .header-cta { display: none !important; }
  .header-login { display: none; }
}
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, transform .3s var(--ease);
}
.theme-toggle { display: none !important; }
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-8deg); }
.theme-toggle .ic--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--moon { display: block; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #c9d8cf; place-items: center; color: #1f2937; background: #fff; }
.nav-toggle .ic--close { display: none; }

/* Slide-out drawer backdrop */
.nav-backdrop { position: fixed; inset: 0; background: rgba(6, 24, 16, .5); backdrop-filter: blur(2px); opacity: 0; z-index: 90; transition: opacity .3s var(--ease); }
.nav-backdrop.is-visible { opacity: 1; }
body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-primary); color: var(--on-primary);
  padding-block: clamp(20px, 3vw, 38px) clamp(28px, 3.7vw, 48px);
}
.hero__pattern { position: absolute; inset: 0; color: color-mix(in srgb, var(--gold-400) 24%, transparent); opacity: .9; z-index: -2; }
.geo-pattern { width: 100%; height: 100%; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: .5; }
.hero__glow--1 { width: 480px; height: 480px; background: radial-gradient(circle, var(--green-500), transparent 70%); top: -140px; inset-inline-start: -120px; }
.hero__glow--2 { width: 420px; height: 420px; background: radial-gradient(circle, var(--gold-500), transparent 70%); bottom: -160px; inset-inline-end: -100px; opacity: .28; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.hero__greeting-ar { font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--gold-400); margin-bottom: .5rem; line-height: 1.9; }
.hero__greeting { font-size: .95rem; letter-spacing: .04em; color: #cfe3d6; margin-bottom: 1rem; font-style: italic; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.7rem); color: var(--cream); }
.hero__tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--gold-400); margin-top: .6rem; }
.hero__lead { margin-top: 1.2rem; max-width: 46ch; color: #e4f6ec; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .9rem; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: .75rem; color: #dff3e8; font-size: .9rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust .ic { color: var(--gold-400); }

.hero__aside { display: grid; gap: 1.2rem; }
.glass-card {
  background: var(--glass-bg); border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.hero__quote-card { color: #f0f5f1; }
:root[data-theme="light"] .hero__quote-card { color: #eaf2ec; }
.hero__quote-card .ic--quote { width: 2rem; height: 2rem; color: var(--gold-400); margin-bottom: .6rem; }
.hero__quote-text { font-family: var(--font-serif); font-style: italic; font-size: 1.18rem; line-height: 1.5; }
.hero__quote-src { margin-top: .9rem; font-size: .82rem; letter-spacing: .04em; color: var(--gold-400); font-weight: 600; }
.hero__mini { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; color: #eaf2ec; }
.hero__mini-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-gold); color: #3a2a08; }
.hero__mini strong { display: block; font-size: .98rem; }
.hero__mini span { font-size: .82rem; opacity: .85; }

.hero__scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }
.hero__scroll span { display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--gold-400); border-radius: 2px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 20px; } 100% { opacity: 0; } }

/* float animations */
.float-slow  { animation: floaty 7s ease-in-out infinite; }
.float-slower{ animation: floaty 9s ease-in-out infinite; animation-delay: -2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------------------------------------------------------------- Stats */
.stats { margin-top: -1px; background: var(--surface); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(28px, 4vw, 44px); }
.stat { text-align: center; padding: 1rem; border-inline-end: 1px solid rgba(240,214,122,.22); }
.stat:last-child { border: 0; }
.stat__icon { width: 48px; height: 48px; margin: 0 auto .85rem; display: grid; place-items: center; border-radius: 15px; color: #f8e29a; background: rgba(240,214,122,.16); border: 1px solid rgba(240,214,122,.58); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 20px rgba(0,0,0,.2); }
.stat__icon .ic { width: 25px; height: 25px; }
.stat__value { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: #f8e29a; line-height: 1; display: inline-flex; align-items: baseline; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.stat__suffix { color: #f0d67a; }
.stat__label { margin-top: .5rem; color: #f1faf5; font-weight: 600; font-size: .94rem; letter-spacing: .02em; }

/* ---------------------------------------------------------------- Prophetic guidance */
.guidance-section { background: var(--bg); }
.guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.guidance-card { position: relative; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(1.3rem, 3vw, 2rem); text-align: center; background: var(--surface); border: 1px solid rgba(240,214,122,.3); border-top: 2px solid var(--gold-500); border-radius: 4px; box-shadow: var(--shadow-sm); overflow: hidden; }
.guidance-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(240,214,122,.08), transparent 48%); pointer-events: none; }
.guidance-card > * { position: relative; z-index: 1; }
.guidance-card__mark { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .65rem; color: var(--gold-400); }
.guidance-card__mark .ic { width: 2rem; height: 2rem; }
.guidance-card__quote { max-width: 60ch; color: var(--ink-2); font-family: var(--font-serif); font-size: clamp(1.08rem, 1.7vw, 1.35rem); font-style: italic; line-height: 1.55; }
.guidance-card__source { margin-top: .8rem; color: var(--gold-400); font-size: .88rem; font-weight: 700; letter-spacing: .03em; }

@media (max-width: 760px) {
  .guidance-grid { grid-template-columns: 1fr; }
  .guidance-card { min-height: 170px; }
}

/* ---------------------------------------------------------------- Verse / name meaning */
.name-meaning .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.verse-panel {
  background: var(--grad-primary); color: #eaf2ec; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.verse-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, var(--gold-400) 1px, transparent 0);
  background-size: 22px 22px;
}
.verse-panel > * { position: relative; z-index: 1; }
.verse-panel__ar { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 2; color: var(--gold-400); text-align: center; }
.verse-panel__en { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; text-align: center; margin-top: 1.2rem; }
.verse-panel__ref { text-align: center; margin-top: 1rem; color: var(--gold-400); font-weight: 600; letter-spacing: .05em; font-size: .85rem; }

/* ---------------------------------------------------------------- Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 3px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--gold-400) 18%, transparent), transparent 44%), color-mix(in srgb, var(--primary) 18%, transparent); border: 1px solid color-mix(in srgb, var(--gold-400) 34%, transparent); color: var(--gold-400); margin-bottom: 1.2rem; box-shadow: inset 0 1px rgba(255,255,255,.09), 0 10px 25px rgba(0,0,0,.12); transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s; }
.feature-card__icon .ic { width: 30px; height: 30px; }
.feature-card:hover .feature-card__icon { background: var(--grad-primary); color: var(--gold-400); transform: rotate(-5deg) scale(1.08); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.feature-card__title { font-size: 1.18rem; color: var(--gold-400); margin-bottom: .55rem; }
.feature-card__text { color: var(--ink-2); font-size: .99rem; line-height: 1.7; }

/* ---------------------------------------------------------------- Admissions reasons */
.admission-reasons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.admission-reason { position: relative; overflow: hidden; min-height: 100%; padding: 1.55rem 1.2rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.admission-reason::before { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; top: -74px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--gold-400) 17%, transparent), transparent 68%); pointer-events: none; }
.admission-reason:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold-400) 46%, var(--line)); box-shadow: var(--shadow-lg); }
.admission-reason__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 1.05rem; border-radius: 50%; color: var(--gold-400); background: var(--grad-primary); border: 1px solid color-mix(in srgb, var(--gold-400) 62%, transparent); box-shadow: 0 10px 22px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.12); }
.admission-reason__icon .ic { width: 29px; height: 29px; }
.admission-reason h3 { position: relative; z-index: 1; color: var(--gold-400); font-size: 1.08rem; line-height: 1.4; }
.admission-reason p { position: relative; z-index: 1; margin-top: .68rem; color: var(--ink-2); font-size: .95rem; line-height: 1.65; }

/* ---------------------------------------------------------------- Slider */
.slider { max-width: 900px; margin-inline: auto; text-align: center; }
.slider__track { position: relative; min-height: 190px; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateX(60px) scale(.97);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
  padding: 1rem;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: translateX(0) scale(1);
  position: relative; transition: opacity .6s var(--ease), transform .7s var(--ease);
}
/* Staggered entrance for the active slide's content */
.slide.is-active .slide__kicker { animation: slideItemIn .6s var(--ease) both .05s; }
.slide.is-active .slide__title  { animation: slideItemIn .6s var(--ease) both .14s; }
.slide.is-active .slide__text   { animation: slideItemIn .6s var(--ease) both .22s; }
@keyframes slideItemIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide__kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; color: var(--accent); }
.slide__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--ink); margin: .8rem 0; }
.slide__text { color: var(--ink-2); font-size: 1.12rem; max-width: 60ch; margin-inline: auto; }
/* Autoplay progress bar */
.slider__progress { width: min(220px, 60%); height: 4px; margin: 1.6rem auto 0; background: var(--line); border-radius: 999px; overflow: hidden; }
.slider__progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-gold); }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.1rem; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--primary); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.slider__btn:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: scale(1.08); box-shadow: var(--shadow-md); }
.slider__btn:active { transform: scale(.96); }
.slider__dots { display: flex; gap: .55rem; align-items: center; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--line); cursor: pointer; transition: transform .25s var(--ease), background .25s, width .25s; }
.slider__dots button:hover { background: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.slider__dots button.is-active { background: var(--accent); width: 26px; }
.slider__btn--sm { width: 40px; height: 40px; }

/* Hero slider (inside the glass card on the dark hero) */
.hero-slider { display: block; }
.hero-slider__track { position: relative; min-height: 210px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateX(40px) scale(.98);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
}
.hero-slide.is-active {
  position: relative; opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.hero-slide__kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700; color: var(--gold-400); }
.hero-slide__title { font-family: var(--font-serif); color: var(--gold-400); font-size: clamp(1.4rem, 2.4vw, 1.95rem); margin: .7rem 0 .6rem; line-height: 1.2; }
.hero-slide__text { color: #dbe9e0; font-size: 1rem; line-height: 1.65; }
.hero-slide.is-active .hero-slide__kicker { animation: slideItemIn .6s var(--ease) both .05s; }
.hero-slide.is-active .hero-slide__title { animation: slideItemIn .6s var(--ease) both .14s; }
.hero-slide.is-active .hero-slide__text  { animation: slideItemIn .6s var(--ease) both .22s; }
.hero-slider .slider__progress { width: 100%; margin: 1.2rem 0 0; background: rgba(255,255,255,.14); }
.hero-slider__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.hero-slider__nav .slider__btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.hero-slider__nav .slider__btn:hover { background: var(--grad-gold); color: #3a2a08; border-color: transparent; }
.hero-slider__nav .slider__dots button { background: rgba(255,255,255,.25); }
.hero-slider__nav .slider__dots button.is-active { background: var(--gold-400); }

/* ---------------------------------------------------------------- Five-slide hero banner */
.hero-banner { max-width: 1200px; margin-inline: auto; }
.hero-banner__track { position: relative; height: clamp(330px, 30vw, 390px); overflow: hidden; isolation: isolate; }
.hero-banner__slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  align-items: stretch; opacity: 0; visibility: hidden; transform: translateX(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.hero-banner__slide.is-active {
  position: absolute; opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero-banner__content {
  align-self: center; padding: clamp(10px, 1.7vw, 22px) clamp(18px, 2.4vw, 32px) clamp(10px, 1.7vw, 22px) 0;
  max-width: 640px;
}
.hero-banner__arabic { color: var(--gold-400); font-family: var(--font-arabic); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.5; text-align: start; }
.hero-banner__eyebrow { color: var(--gold-400); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-banner__welcome { margin-top: .5rem; color: var(--cream); font-family: var(--font-serif); font-size: clamp(1rem, 1.5vw, 1.25rem); font-style: italic; line-height: 1.3; }
.hero-banner__title { margin-top: .5rem; color: var(--cream); font-size: clamp(1.95rem, 3.4vw, 3.45rem); max-width: 15ch; }
.hero-banner__tagline { margin-top: .65rem; color: var(--gold-400); font-family: var(--font-serif); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-style: italic; }
.hero-banner__text { margin-top: .65rem; color: #e4f6ec; font-size: clamp(.98rem, 1.1vw, 1.06rem); line-height: 1.62; max-width: 52ch; }
.hero-banner__media {
  position: relative; min-height: 100%; margin: 0; overflow: hidden; border: 2px solid color-mix(in srgb, var(--gold-400) 78%, transparent);
  border-radius: 38% 0 0 38% / 50% 0 0 50%; background: #043f31; box-shadow: -18px 18px 45px rgba(0,0,0,.25);
}
.hero-banner__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,63,49,.28), transparent 38%); pointer-events: none; }
.hero-banner__media img { width: 100%; height: 100%; min-height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-banner__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .65rem; }
.hero-banner__controls .slider__btn { background: rgba(255,255,255,.09); border-color: rgba(232,200,106,.44); color: var(--cream); }
.hero-banner__controls .slider__btn:hover { background: var(--grad-gold); color: #3a2a08; border-color: transparent; }
.hero-banner__status { display: flex; align-items: center; justify-content: center; gap: 1rem; min-width: 0; }
.hero-banner__timing { color: #a6cebd; font-size: .78rem; white-space: nowrap; }
.hero-banner__progress { height: 3px; margin-top: .5rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.16); }
.hero-banner__progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad-gold); }
.hero-banner__slide.is-active .hero-banner__eyebrow { animation: heroBannerItem .55s var(--ease) both .06s; }
.hero-banner__slide.is-active .hero-banner__title { animation: heroBannerItem .6s var(--ease) both .13s; }
.hero-banner__slide.is-active .hero-banner__tagline,
.hero-banner__slide.is-active .hero-banner__text { animation: heroBannerItem .6s var(--ease) both .21s; }
.hero-banner__slide.is-active .hero__actions,
.hero-banner__slide.is-active .hero__trust { animation: heroBannerItem .6s var(--ease) both .3s; }
@keyframes heroBannerItem { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .hero-banner__track { height: 610px; }
  .hero-banner__slide { grid-template-columns: 1fr; grid-template-rows: 220px minmax(0, 1fr); }
  .hero-banner__content { height: 100%; padding: 1rem 0 .4rem; max-width: 720px; display: flex; flex-direction: column; justify-content: center; }
  .hero-banner__media { height: 220px; min-height: 0; aspect-ratio: auto; order: -1; border-radius: 28px; }
  .hero-banner__title { max-width: 18ch; }
}
@media (max-width: 760px) {
  .hero-banner__track { height: 650px; }
  .hero-banner__slide { grid-template-rows: 190px minmax(0, 1fr); }
  .hero-banner__media { height: 190px; min-height: 0; border-radius: 22px; }
}
@media (max-width: 620px) {
  .hero { padding-block: 16px 30px; }
  .hero-banner__track { height: 650px; }
  .hero-banner__slide { grid-template-rows: 190px minmax(0, 1fr); }
  .hero-banner__media { height: 190px; min-height: 0; border-radius: 22px; }
  .hero-banner__title { font-size: clamp(1.85rem, 8.5vw, 2.45rem); }
  .hero-banner__text { line-height: 1.52; }
  .hero__trust { display: none; }
  .hero-banner__controls { gap: .65rem; }
  .hero-banner__controls .slider__btn { width: 42px; height: 42px; }
  .hero-banner__timing { display: none; }
  .hero-banner__status { flex: 1; }
  .hero__scroll { display: none; }
}

/* ---------------------------------------------------------------- Carousel redesign
   A single editorial frame keeps all five banners aligned while giving the
   image, copy, controls, and progress indicator their own visual hierarchy. */
.hero-banner { max-width: 1240px; }
.hero-banner__track {
  height: clamp(430px, 34vw, 470px);
  border: 1px solid rgba(240,214,122,.22);
  border-radius: 30px;
  background: linear-gradient(120deg, rgba(4,47,37,.3), rgba(8,116,90,.22));
  box-shadow: 0 24px 60px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.1);
}
.hero-banner__slide {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2.6vw, 34px);
  transform: translateX(3%) scale(.985);
}
.hero-banner__slide::before {
  content: "";
  position: absolute;
  inset: 10% 48% 10% 0;
  background: radial-gradient(circle at 40% 50%, rgba(39,168,130,.24), transparent 68%);
  pointer-events: none;
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0;
  max-width: 580px;
}
.hero-banner__eyebrow { letter-spacing: .2em; font-size: .78rem; }
.hero-banner__title {
  margin-top: .7rem;
  max-width: 18ch;
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.hero-banner__welcome { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.hero-banner__text {
  max-width: 48ch;
  margin-top: .9rem;
  color: #effaf4;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.52;
}
.hero-banner__slide:first-child .hero-banner__arabic {
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  line-height: 1.2;
}
.hero-banner__slide:first-child .hero-banner__eyebrow {
  text-transform: none;
  letter-spacing: .04em;
  font-size: .8rem;
  white-space: nowrap;
}
.hero-banner__slide:first-child .hero-banner__title {
  max-width: 24ch;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}
.hero-banner__slide:first-child .hero-banner__tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.2;
}
.hero-banner__slide:first-child .hero-banner__text {
  font-size: clamp(.94rem, 1.05vw, 1rem);
  line-height: 1.42;
}
.hero-banner .hero__actions { gap: .55rem; margin-top: .55rem; }
.hero-banner .hero__actions .btn { padding: .72em 1.35em; font-size: .94rem; }
.hero-banner .hero__trust { flex-wrap: nowrap; gap: .65rem; margin-top: .3rem; font-size: .78rem; line-height: 1.35; white-space: nowrap; }
.hero-banner__media {
  z-index: 1;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  border: 1px solid rgba(240,214,122,.82);
  border-radius: 42% 26px 26px 42% / 50% 26px 26px 50%;
  box-shadow: 0 24px 52px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.2);
  transform: translateZ(0);
}
.hero-banner__media::before {
  z-index: 1;
  background: linear-gradient(100deg, rgba(4,47,37,.38), transparent 42%), linear-gradient(0deg, rgba(4,47,37,.18), transparent 48%);
}
.hero-banner__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.hero-banner__media img {
  position: relative;
  z-index: 0;
  object-position: center;
  transform: scale(1.025);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.hero-banner__media-index {
  position: absolute;
  z-index: 3;
  top: 18px;
  inset-inline-end: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240,214,122,.72);
  border-radius: 50%;
  background: rgba(4,47,37,.56);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.hero-banner__slide.is-active .hero-banner__media img { animation: heroMediaReveal 1s var(--ease) both; }
.hero-banner__slide.is-active .hero-banner__eyebrow,
.hero-banner__slide.is-active .hero-banner__arabic,
.hero-banner__slide.is-active .hero-banner__welcome,
.hero-banner__slide.is-active .hero-banner__title,
.hero-banner__slide.is-active .hero-banner__tagline,
.hero-banner__slide.is-active .hero-banner__text,
.hero-banner__slide.is-active .hero__actions,
.hero-banner__slide.is-active .hero__trust { animation: heroCopyReveal .65s var(--ease) both; }
.hero-banner__slide.is-active .hero-banner__eyebrow { animation-delay: .05s; }
.hero-banner__slide.is-active .hero-banner__title { animation-delay: .14s; }
.hero-banner__slide.is-active .hero-banner__text { animation-delay: .23s; }
.hero-banner__slide.is-active .hero__actions { animation-delay: .31s; }
.hero-banner__slide.is-active .hero__trust { animation-delay: .38s; }
@keyframes heroCopyReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroMediaReveal { from { opacity: .55; transform: scale(1.08); filter: saturate(.75); } to { opacity: 1; transform: scale(1.025); filter: saturate(1); } }
.hero-banner__controls {
  max-width: 100%;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(240,214,122,.2);
}
.hero-banner__controls .slider__btn { width: 46px; height: 46px; background: rgba(4,47,37,.36); border-color: rgba(240,214,122,.62); }
.hero-banner__controls .slider__btn:hover { transform: translateY(-2px) scale(1.06); }
.hero-banner__status { gap: clamp(.7rem, 2vw, 1.25rem); }
.hero-banner__counter { color: var(--gold-400); font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.hero-banner__timing { color: #d9eee3; font-size: .84rem; }
.hero-banner__progress { height: 4px; margin-top: .3rem; background: rgba(255,255,255,.18); }
.hero-banner__progress i { box-shadow: 0 0 12px rgba(240,214,122,.65); }

@media (max-width: 1024px) {
  .hero-banner__track { height: 630px; }
  .hero-banner__slide { grid-template-columns: 1fr; grid-template-rows: 215px minmax(0, 1fr); gap: 0; padding: 18px 22px 0; }
  .hero-banner__content { height: 100%; max-width: 760px; padding: 18px 0 12px; justify-content: center; }
  .hero-banner__media { height: 215px; border-radius: 30px; }
  .hero-banner__title { max-width: 18ch; font-size: clamp(2.15rem, 5.8vw, 3.4rem); }
}
@media (max-width: 760px) {
  .hero-banner__track { height: 660px; border-radius: 24px; }
  .hero-banner__slide { grid-template-rows: 205px minmax(0, 1fr); padding: 14px 16px 0; }
  .hero-banner__content { padding: 16px 0 10px; }
  .hero-banner__media { height: 205px; border-radius: 28px; }
  .hero-banner__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-banner .hero__actions .btn { padding: .72em 1.1em; font-size: .92rem; }
  .hero-banner .hero__trust { flex-wrap: wrap; white-space: normal; font-size: .8rem; }
  .hero-banner__controls { margin-top: .8rem; }
  .hero-banner__timing { display: none; }
}
@media (max-width: 620px) {
  .hero-banner__track { height: 650px; }
  .hero-banner__slide { grid-template-rows: 190px minmax(0, 1fr); }
  .hero-banner__media { height: 190px; border-radius: 24px; }
  .hero-banner__media-index { top: 12px; inset-inline-end: 14px; width: 40px; height: 40px; font-size: .95rem; }
  .hero-banner__counter { font-size: .98rem; }
  .hero-banner__controls .slider__btn { width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------- Courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.course-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.course-card__img-link {
  display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--gold-400) 22%, var(--line));
  border-radius: 14px; background: var(--green-900);
}
.course-card__img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
  opacity: 1; transform: none; transition: transform .45s var(--ease), filter .45s var(--ease);
}
.course-card:hover .course-card__img,
.course-card__img-link:hover .course-card__img { transform: scale(1.055); filter: saturate(1.06); }
.course-detail__hero { margin: 1.1rem 0 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--green-900); }
.course-detail__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; display: block; opacity: 1; transform: none; }
.animate-image { opacity: 1; transform: none; animation: none; }
.course-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.course-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-primary); color: var(--gold-400); }
.course-card__code { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); letter-spacing: .05em; }
.course-card__title { font-size: 1.26rem; margin-bottom: .65rem; }
.course-card__title a { color: var(--gold-400); transition: color .2s; }
.course-card__title a:hover { color: var(--gold-500); }
.course-card__summary { color: var(--ink-2); font-size: .99rem; line-height: 1.68; flex: 1; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial__stars { display: flex; gap: .15rem; color: var(--gold-500); margin-bottom: 1rem; }
.ic--star { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.testimonial__text { font-family: var(--font-serif); font-style: italic; font-size: 1.06rem; color: var(--ink); line-height: 1.6; }
.testimonial__by { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); color: var(--gold-400); font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; }
.testimonial__by strong { display: block; color: var(--ink); font-size: .96rem; }
.testimonial__by em { color: var(--muted); font-size: .85rem; font-style: normal; }

/* ---------------------------------------------------------------- FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.faq-intro .section-title { text-align: start; }
.faq-intro .btn { margin-top: 1.6rem; }
.faq-list { display: grid; gap: .8rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq[open] { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { transition: transform .3s var(--ease); color: var(--accent); flex: none; }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 1.4rem 1.25rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- Newsletter */
.newsletter {
  background: var(--grad-primary); color: #eaf2ec; border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.newsletter::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle at 1px 1px, var(--gold-400) 1px, transparent 0); background-size: 24px 24px; }
.newsletter > * { position: relative; }
.newsletter__title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.newsletter__text p { color: #cfe3d6; margin-top: .6rem; max-width: 46ch; }
.newsletter__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__form input { padding: .85em 1.1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; min-width: 240px; }
.newsletter__form input::placeholder { color: #bcd2c6; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--green-900); color: #b9c8bf; margin-top: clamp(40px, 6vw, 80px); }
.footer-cta { background: linear-gradient(135deg, var(--green-800), var(--green-900)); border-bottom: 1px solid rgba(201,162,74,.14); }
.footer-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(36px, 5vw, 56px); }
.footer-cta__title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-top: .3rem; }
.footer-cta__text { color: #cbd8cf; margin-top: .5rem; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem 2.4rem; padding-block: clamp(40px, 5vw, 60px); align-items: start; }
.footer-col { min-width: 0; }
.brand--footer { width: min(100%, 278px); padding: .5rem .72rem; border-radius: 16px; background: #fafaf7; border: 1px solid rgba(232,200,106,.45); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.brand--footer .brand__logo { width: 100%; height: auto; max-height: none; object-fit: contain; }
.footer-about { margin-top: 1rem; color: #d6e7de; font-size: .97rem; line-height: 1.72; max-width: 40ch; }
.social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.social__link { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cbd8cf; transition: background .2s, color .2s, transform .2s; }
.social__link:hover { background: var(--grad-gold); color: #3a2a08; transform: translateY(-3px); }
.social__link--colored { width: 44px; height: 44px; padding: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); color: inherit; }
.social__link--colored:hover, .social__link--colored:focus-visible { background: rgba(255,255,255,.13); color: inherit; border-color: rgba(232,200,106,.72); transform: translateY(-3px); }
.social-svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.footer-heading { color: var(--gold-400); font-size: 1.08rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer-links { list-style: none; display: grid; gap: .7rem; }
.footer-links a { color: #d6e7de; font-size: .97rem; transition: color .2s; display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-links--contact .ic--sm { color: var(--gold-400); }
.footer-hours { display: inline-flex; align-items: center; gap: .5rem; color: #d6e7de; font-size: .97rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; font-size: .91rem; color: #bfd4c9; }
.footer-policy { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; }
.footer-policy a:hover { color: var(--gold-400); }

/* Credits bar — designer/developer attribution */
.footer-credit { background: rgba(0, 0, 0, .18); border-top: 1px solid rgba(255,255,255,.06); }
.footer-credit__inner { display: flex; justify-content: center; padding-block: .95rem; }
.footer-credit__text { font-size: .88rem; color: #bfd4c9; display: inline-flex; align-items: center; gap: .4rem; letter-spacing: .01em; }
.footer-credit__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--gold-400); transition: color .2s var(--ease); }
.footer-credit__link:hover { color: #fff; }
.footer-credit__link .ic { color: var(--gold-400); transition: transform .3s var(--ease); }
.footer-credit__link:hover .ic { transform: rotate(90deg) scale(1.1); }

/* ---------------------------------------------------------------- Floating buttons */
.to-top, .wa-float { position: fixed; z-index: 90; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.to-top { bottom: 24px; inset-inline-end: 24px; width: 46px; height: 46px; background: var(--primary); color: var(--on-primary); opacity: 0; pointer-events: none; transform: translateY(20px); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.wa-float { isolation: isolate; bottom: 82px; inset-inline-end: 24px; width: 58px; height: 58px; background: #25d366; color: #fff; border: 2px solid rgba(255,255,255,.86); box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,.42); animation: waPulse 3.2s ease-in-out infinite 1s; }
.wa-float::before { content: ""; position: absolute; inset: -7px; z-index: -1; border: 1px solid rgba(37,211,102,.58); border-radius: inherit; animation: waRing 3.2s ease-out infinite 1s; pointer-events: none; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px) scale(1.06); animation-play-state: paused; }
.wa-float .ic { width: 2.05rem; height: 2.05rem; overflow: visible; flex: 0 0 auto; stroke-width: 1.55; }
.wa-float__label { position: absolute; right: calc(100% + 12px); top: 50%; display: flex; flex-direction: column; gap: .05rem; min-width: 174px; padding: .55rem .75rem; border: 1px solid rgba(240,214,122,.32); border-radius: 12px; background: rgba(4,47,37,.96); color: #f5fff9; box-shadow: 0 12px 28px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translate(8px, -50%); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.wa-float__label strong { color: var(--gold-400); font-size: .78rem; line-height: 1.25; }
.wa-float__label small { color: #e4f6ec; font-size: .75rem; line-height: 1.3; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }
@keyframes waPulse { 0%, 70%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,.42); } 82% { box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 0 9px rgba(37,211,102,0); } }
@keyframes waRing { 0%, 70%, 100% { opacity: 0; transform: scale(.86); } 12% { opacity: 1; } 42% { opacity: 0; transform: scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::before { animation: none; }
}

/* ---------------------------------------------------------------- Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Interior pages */
.page-hero { background: var(--grad-primary); color: var(--on-primary); padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero__pattern { position: absolute; inset: 0; color: color-mix(in srgb, var(--gold-400) 22%, transparent); z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #bcd2c6; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gold-400); }
.page-hero__title { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--cream); }
.page-hero__sub { margin-top: 1rem; max-width: 60ch; color: #dbe9e0; font-size: 1.08rem; }
.prose { max-width: 72ch; }
.prose p { color: var(--ink-2); margin-bottom: 1.1rem; }
.prose h2 { color: var(--gold-400); margin: 2rem 0 1rem; font-size: 1.6rem; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { max-width: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .admission-reasons { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .name-meaning .container { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
}
/* Mobile navigation drawer — triggers before the header bar gets cramped */
@media (max-width: 1080px) {
  .header-login,
  .header-cta { display: none !important; }    /* CTAs move into the drawer */
  .mainnav { position: static; margin-inline-start: 0; }
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed; top: 0; bottom: 0; left: auto; right: -420px;
    width: min(86vw, 360px); flex-direction: column; align-items: stretch;
    background: #ffffff; padding: 5.5rem 1.4rem 2rem; gap: .25rem; box-shadow: var(--shadow-lg);
    transition: right .35s var(--ease); z-index: 95; visibility: hidden;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-menu.is-open { right: 0; visibility: visible; }
  .nav-link { display: block; padding: .95rem 1rem; border-radius: 12px; font-size: 1.06rem; }
  .nav-link:hover { background: #f3f8f5; }
  .nav-link::after { display: none; }
  .nav-menu__cta {
    display: flex; flex-direction: column; gap: .7rem;
    margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid #dce7e1;
  }
  .nav-menu__cta .btn { width: 100%; justify-content: center; padding: .85em 1em; }
  .nav-toggle[aria-expanded="true"] .ic--menu { display: none; }
  .nav-toggle[aria-expanded="true"] .ic--close { display: block; }
}
@media (max-width: 760px) {
  .topbar__tagline { display: none; }
  .topbar__inner { justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .admission-reasons { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .course-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__form input { min-width: 0; flex: 1; }
}
@media (max-width: 440px) {
  .admission-reasons { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- RTL */
[dir="rtl"] .hero__lead, [dir="rtl"] .hero__trust { direction: rtl; }
[dir="rtl"] .link-arrow .ic, [dir="rtl"] .btn .ic--sm { transform: scaleX(-1); }
[dir="rtl"] .nav-menu { right: auto; left: -420px; transition: left .35s var(--ease); }
[dir="rtl"] .nav-menu.is-open { left: 0; }

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .float-slow, .float-slower { animation: none; }
}
