/* ==========================================================================
   ELITE WAY INTERNATIONAL SCHOOL — Design System
   Brand: Classic Navy #1A2A44 / Muted Red #7A1F2B / Gold #C6A85E / White
   Headline font: Playfair Display (web substitute for Westerniya Serif)
   Body font: Inter (web substitute for Maxima Nouva)
   Signature motif: "The Pathway" — a diagonal guiding line echoing the
   shield logo's road-to-book mark. Used in dividers, hovers, and the
   scroll progress indicator.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #1A2A44;
  --navy-700: #142036;
  --navy-100: #E7EAEF;
  --red: #7A1F2B;
  --red-600: #631923;
  --gold: #C6A85E;
  --gold-600: #B08F45;
  --gold-100: #F3E9D2;
  --white: #FFFFFF;
  --paper: #F7F7F5;      /* section background, cool off-white (not warm cream) */
  --ink: #23262B;        /* body text, near-black */
  --ink-soft: #5B6068;   /* secondary text */
  --line: #E3E1DB;       /* hairline borders */

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
--sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26, 42, 68, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 42, 68, 0.12);
  --shadow-lg: 0 20px 48px rgba(26, 42, 68, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 200ms;
  --micro: 350ms;
  --slow: 550ms;

  --header-h: 84px;
  --util-h: 40px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--sp-4); color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
section { padding-block: var(--sp-9); }
.section-alt { background: var(--paper); }
/* Tighter vertical rhythm on tablets — less empty space. */
@media (max-width: 768px) {
  section { padding-block: var(--sp-7); }
  .about-part { padding-block: var(--sp-7); }
  .section-head { margin-bottom: var(--sp-6); }
}

/* About page: the former Welcome / Mission / History / Administration /
   Staff / Councils / Accreditation sections are now one #about-us section.
   Each block keeps its anchor id; a hairline replaces the alternating
   backgrounds that used to separate them. */
#about-us { padding-block: 0; }
.about-part { padding-block: var(--sp-9); }
.about-part + .about-part { border-top: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   The Pathway — signature divider motif
   ========================================================================== */
.pathway-divider {
  width: 100%;
  height: 28px;
  display: block;
  margin-block: 0;
}
.pathway-divider path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Page load transition + circular preloader
   ========================================================================== */
#page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
#page-transition span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--micro) ease var(--micro), transform var(--micro) ease var(--micro);
}
#page-transition.reveal span { opacity: 1; transform: translateY(0); }
#page-transition.exit { transform: translateY(-100%); opacity: 0.4; }


/* ==========================================================================
   Header
   ========================================================================== */
.utility-bar {
  background: var(--navy-700);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--micro) var(--ease);
}
.utility-bar.open { max-height: var(--util-h); }
.utility-bar-inner {
  height: var(--util-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin-inline: auto; padding-inline: var(--sp-5);
}
.utility-links { display: flex; gap: var(--sp-5); }
.utility-links a:hover { color: var(--gold); }
.social-icons { display: flex; gap: var(--sp-3); }
.social-icons a {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.social-icons svg { width: 13px; height: 13px; }

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--fast) var(--ease);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  max-width: 1320px; margin-inline: auto; padding-inline: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); }
/* Brand mark holds the school shield. The logo carries its own navy and red,
   so the tile is transparent — a navy tile behind it muddied the crest. */
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark svg { width: 26px; height: 26px; }
/* The supplied logo is a flat PNG with an opaque white ground, and the crest's
   own outline and book are white too — so the background cannot be keyed out
   without hollowing the mark. On the navy footer we therefore present it as a
   deliberate white tile instead of a stray white rectangle. */
.site-footer .brand-mark {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.brand-text { line-height: 1.15; }
.brand-text .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); display: block; }
.brand-text .sub { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

.main-nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav-list { display: flex; align-items: center; gap: var(--sp-4); }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button.nav-link {
  background: none; border: none; padding: var(--sp-2) 0;
  font-weight: 600; font-size: 0.87rem; color: var(--navy);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  position: relative;
}
.nav-list > li > a::after, .nav-list > li > button.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--fast) var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > button.nav-link:hover::after,
.nav-list > li.active > a::after { width: 100%; }
.nav-list > li.active > a { color: var(--red); }
.chev { width: 10px; height: 10px; transition: transform var(--fast) var(--ease); }
.nav-list > li:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 240px; padding: var(--sp-3);
  opacity: 0; visibility: hidden;
  transition: opacity var(--micro) var(--ease), transform var(--micro) var(--ease), visibility var(--micro);
  border-top: 3px solid var(--gold);
}
.nav-list > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--ink);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}
.dropdown a:hover { background: var(--navy-100); color: var(--navy); padding-left: 18px; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.campus-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--navy);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.campus-btn:hover { border-color: var(--gold); background: var(--gold-100); }
.campus-btn svg { width: 15px; height: 15px; }

.menu-toggle {
  background: none; border: none; display: none;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; color: var(--navy); }
.util-toggle {
  background: none; border: none; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--navy);
}
.util-toggle svg { width: 17px; height: 17px; }

/* ==========================================================================
   Campus selector overlay
   ========================================================================== */
.campus-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(20, 32, 54, 0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0; visibility: hidden;
  transition: opacity var(--micro) var(--ease), visibility var(--micro);
}
.campus-overlay.open { opacity: 1; visibility: visible; }
.campus-panel {
  background: var(--white); border-radius: var(--radius-lg);
  width: min(680px, 90vw); max-height: 72vh; overflow-y: auto;
  padding: var(--sp-6);
  transform: translateY(-16px); opacity: 0;
  transition: transform var(--micro) var(--ease), opacity var(--micro) var(--ease);
  box-shadow: var(--shadow-lg);
}
.campus-overlay.open .campus-panel { transform: translateY(0); opacity: 1; }
.campus-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.campus-close {
  background: var(--paper); border: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: background var(--fast) var(--ease);
}
.campus-close:hover { background: var(--navy-100); }
.campus-close svg { width: 16px; height: 16px; }
.campus-grid { display: grid; gap: var(--sp-4); }
.campus-card {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--sp-5); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.campus-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.campus-card h4 { margin-bottom: 4px; }
.campus-card .addr { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.campus-card.placeholder { opacity: 0.6; border-style: dashed; }

/* ==========================================================================
   Mobile nav
   ========================================================================== */
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(340px, 86vw); z-index: 900;
  background: var(--navy); color: var(--white); padding: var(--sp-6) var(--sp-5);
  transform: translateX(100%); transition: transform var(--micro) var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: flex-end; margin-bottom: var(--sp-6); }
.mobile-nav-close { background: none; border: none; color: var(--white); width: 34px; height: 34px; }
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav a, .mobile-nav .m-group-label { display: block; padding: 14px 4px; font-weight: 600; }
.mobile-nav .sub-list { padding-left: var(--sp-4); display: none; }
.mobile-nav .sub-list.open { display: block; }
.mobile-nav .sub-list a { padding: 10px 4px; font-weight: 400; opacity: 0.85; }
.mobile-backdrop {
  position: fixed; inset: 0; z-index: 890; background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transition: opacity var(--micro) var(--ease), visibility var(--micro);
}
.mobile-backdrop.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero / carousel
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-swiper { height: min(88vh, 760px); min-height: 480px; }
.hero-slide {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,32,54,0.92) 0%, rgba(20,32,54,0.65) 48%, rgba(20,32,54,0.35) 100%);
}
/* Layering: photo (0) sits below the readability scrim (1), which sits below
   the headline/content (2). Without the explicit z-index the ::before scrim
   paints beneath a real <img>, leaving the white headline unreadable over a
   bright photo. */
.hero-slide-bg {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
}
/* A real hero photo (JPG, WebP, GIF or SVG) fills the whole slide edge-to-edge.
   object-fit: cover guarantees full coverage with no empty edges — it scales the
   image to fill and crops any overflow. The .hero-slide::before scrim keeps the
   headline readable over any image. Recommended source size: 1920x1080 or larger.
   No zoom/Ken-Burns effect is applied — the image stays still. */
.hero-slide-bg img,
.hero-photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero-photo-slot {
  position: absolute; inset: 0;
  /* Label sits bottom-left so it never collides with the headline, the
     inquiry card, or the carousel arrows while the slot is still empty. */
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: rgba(255,255,255,0.38);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: var(--sp-6);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding-inline: var(--sp-5); margin-inline: auto; width: 100%; }
.hero-eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: var(--sp-3); }
.hero-title { color: var(--white); }
.hero-text { color: rgba(255,255,255,0.82); font-size: 1.08rem; }
.hero-ctas { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
/* On wide screens the inquiry card sits on the right — keep the hero copy
   aligned left within the page container and capped so nothing overlaps it. */
@media (min-width: 1081px) {
  .hero-content { max-width: 1200px; margin-inline: auto; text-align: start; }
  .hero-content > * { max-width: 560px; margin-inline-start: 0; }
}
/* Entrance animation only engages once Swiper has actually initialized (it
   adds .swiper-initialized to the root). Until then, hero text stays fully
   visible — so a slow or blocked CDN never leaves the hero blank. */
.swiper-initialized .hero-eyebrow,
.swiper-initialized .hero-title,
.swiper-initialized .hero-text,
.swiper-initialized .hero-ctas { opacity: 0; transform: translateY(24px); }
.swiper-initialized .swiper-slide-active .hero-eyebrow,
.swiper-initialized .swiper-slide-active .hero-title,
.swiper-initialized .swiper-slide-active .hero-text,
.swiper-initialized .swiper-slide-active .hero-ctas { opacity: 1; transform: translateY(0); }
.swiper-slide-active .hero-eyebrow { transition: opacity var(--slow) ease 200ms, transform var(--slow) var(--ease) 200ms; }
.swiper-slide-active .hero-title { transition: opacity var(--slow) ease 350ms, transform var(--slow) var(--ease) 350ms; }
.swiper-slide-active .hero-text { transition: opacity var(--slow) ease 500ms, transform var(--slow) var(--ease) 500ms; }
.swiper-slide-active .hero-ctas { transition: opacity var(--slow) ease 650ms, transform var(--slow) var(--ease) 650ms; }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.hero-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-50%) scale(1.08); }
.hero-nav svg { width: 18px; height: 18px; }
.hero-prev { left: var(--sp-5); }
.hero-next { right: var(--sp-5); }
.hero-pagination { position: absolute; bottom: var(--sp-5); left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.swiper-pagination-bullet { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); opacity: 1; cursor: pointer; transition: all var(--fast) var(--ease); }
.swiper-pagination-bullet-active { background: var(--gold); width: 24px; border-radius: 4px; }

/* Hero inquiry card */
.hero-inquiry {
  position: absolute; z-index: 6; right: 6%; top: 50%; transform: translateY(-50%);
  width: 340px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-6);
}
.hero-inquiry h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.hero-inquiry .hint { font-size: 0.85rem; margin-bottom: var(--sp-4); }
@media (max-width: 1080px) { .hero-inquiry { display: none; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,168,94,0.25);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: var(--sp-2); }
.form-success {
  display: none; background: var(--gold-100); border: 1px solid var(--gold);
  border-radius: var(--radius-sm); padding: var(--sp-4); font-size: 0.9rem; color: var(--navy); margin-top: var(--sp-4);
}
.form-success.show { display: block; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; transition: transform var(--micro) var(--ease), box-shadow var(--micro) var(--ease), border-color var(--micro) var(--ease);
}
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 4/3; background: var(--navy-100); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.78rem; text-align: center; padding: var(--sp-3); }
.card-body { padding: var(--sp-5); }
.card-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: var(--sp-2); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Highlight / feature cards (home) */
.highlight-card {
  padding: var(--sp-6); border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line); transition: transform var(--micro) var(--ease), box-shadow var(--micro) var(--ease), background var(--micro) var(--ease);
  position: relative;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--white); }
.highlight-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); }
.highlight-icon svg { width: 26px; height: 26px; color: var(--gold); }
@media (max-width: 640px) {
  .highlight-icon { width: 38px; height: 38px; margin-bottom: var(--sp-3); }
  .highlight-icon svg { width: 19px; height: 19px; }
}

/* ==========================================================================
   Filters / tabs
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: 0.85rem; font-weight: 600; color: var(--navy);
  transition: all var(--fast) var(--ease);
}
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-item { transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); }
.filter-item.hidden { display: none; }

/* ==========================================================================
   Timeline (About history — legitimate chronological sequence)
   ========================================================================== */
.timeline { position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: var(--sp-7); }
.timeline-item::before {
  content: ""; position: absolute; left: 12px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold);
}
.timeline-year { font-family: var(--font-display); color: var(--red); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  background: none; border: none; padding: var(--sp-5) 0; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy);
}
.accordion-icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; background: var(--red); top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: transform var(--fast) var(--ease);
}
.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; }
.accordion-item.open .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--micro) var(--ease); }
.accordion-item.open .accordion-panel { max-height: 500px; }
.accordion-panel-inner { padding-bottom: var(--sp-5); color: var(--ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding-top: var(--sp-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-7); padding-bottom: var(--sp-7); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text .name { color: var(--white); }
.footer-brand p { max-width: 320px; margin-top: var(--sp-4); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: var(--sp-4); }
.footer-col ul li { margin-bottom: var(--sp-3); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--sp-5);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-social svg { width: 15px; height: 15px; }

/* ==========================================================================
   Floating quick-action buttons
   ========================================================================== */
.quick-action {
  position: fixed; bottom: var(--sp-5); z-index: 400;
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--fast) var(--ease);
}
.quick-action svg { width: 16px; height: 16px; }
.quick-action:hover { transform: translateY(-3px); }
.quick-action.left { left: var(--sp-5); background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.quick-action.right { right: var(--sp-5); background: var(--gold); color: var(--navy); }
@media (max-width: 560px) {
  .quick-action { padding: 12px 16px; font-size: 0; }
  .quick-action svg { width: 20px; height: 20px; }
}

.whatsapp-fab {
  position: fixed; bottom: 90px; right: var(--sp-5); z-index: 401;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform var(--fast) var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .whatsapp-fab { bottom: 150px; } }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--navy); color: var(--white);
  padding: var(--sp-5); box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  transform: translateY(120%); transition: transform var(--slow) var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px; margin-inline: auto; display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap;
}
.cookie-text { max-width: 640px; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.cookie-text strong { color: var(--white); display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1rem; }
.cookie-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ==========================================================================
   Breadcrumb / page banner (inner pages)
   ========================================================================== */
.page-banner {
  background: var(--navy); color: var(--white); padding-block: var(--sp-8);
  background-image: linear-gradient(120deg, rgba(26,42,68,0.96), rgba(122,31,43,0.85));
  position: relative; overflow: hidden;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .eyebrow { color: var(--gold); }
.page-banner .eyebrow::before { background: var(--white); }
.page-banner h1 { color: var(--white); margin-bottom: var(--sp-2); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold); }

/* ==========================================================================
   Scroll-reveal (AOS is used site-wide; this is the no-JS fallback base)
   ========================================================================== */
[data-aos] { transition-property: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Scroll progress (pathway) bar
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 1000; width: 0%; transition: width 80ms linear; }

/* ==========================================================================
   Misc utility
   ========================================================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--sp-4); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: var(--sp-6); } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-100); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.85rem; text-align: center; padding: var(--sp-4); }

/* A real photo dropped into any framed slot fills it edge-to-edge.
   The frames carry padding for their empty-state [PLACEHOLDER] label; once an
   <img> is present that padding is removed and the photo covers the whole
   frame (object-fit: cover), clipped to the frame's rounded corners. This
   applies to every slot type — campus/director/programs (media-frame),
   and news/activity/course cards (card-media). */
.media-frame:has(img), .card-media:has(img) { padding: 0; }
.media-frame > img, .card-media > img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.stat-row { display: flex; gap: var(--sp-7); flex-wrap: wrap; margin-top: var(--sp-6); }
.stat b { font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); display: block; }
.stat span { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }

.job-card { padding: var(--sp-6); }
.job-meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: var(--sp-3); }
.job-meta span { display: flex; align-items: center; gap: 5px; }

.list-check { margin: 0 0 var(--sp-5); }
.list-check li { position: relative; padding-left: 30px; margin-bottom: var(--sp-3); color: var(--ink-soft); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-100); border: 1px solid var(--gold);
}
.list-check li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 7px; height: 4px;
  border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .main-nav .nav-list { display: none; }
  .menu-toggle { display: flex; }
  .campus-btn { display: none; }
  .util-toggle { display: none; }
  .hero-eyebrow, .hero-title, .hero-text { text-align: left; }
}
@media (max-width: 460px) {
  .header-actions { gap: var(--sp-2); }
  .brand-text .sub { display: none; }
}
@media (max-width: 640px) {
  section { padding-block: var(--sp-6); }
  .about-part { padding-block: var(--sp-6); }
  .section-head { margin-bottom: var(--sp-5); }
  .header-inner { padding-inline: var(--sp-4); }
}

/* ==========================================================================
   Rocket flight — scroll-linked rocket that rides a dashed trace down the
   page, revealing sections as it nears them and landing above the footer
   contact pad. Markup is injected by js/main.js (initRocketFlight); nothing
   here renders without it. Disabled under 768px and for reduced motion.
   ========================================================================== */
.rocket-overlay {
  position: absolute; top: 0; left: 0; width: 100%;
  /* Above the sticky header (500) so the rocket never hides behind it,
     but below the campus overlay (800), mobile nav (900) and cookie bar (950). */
  z-index: 600; pointer-events: none;
}
.rocket-overlay svg.rocket-trace-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rocket-trace-path {
  fill: none; stroke: var(--navy); stroke-width: 2;
  stroke-linecap: round; stroke-dasharray: 3 11; opacity: 0.35;
}

.rocket-wrap {
  position: absolute; top: 0; left: 0; width: 38px; height: 86px;
  margin: -45px 0 0 -19px; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 6px 12px rgba(26, 42, 68, 0.28));
}
.rocket-jitter { width: 100%; height: 100%; animation: ewThrustJitter 0.16s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.rocket-wrap.landed .rocket-jitter { animation: none; }
.rocket-wrap svg { width: 100%; height: 100%; overflow: visible; }
@keyframes ewThrustJitter {
  from { transform: rotate(-0.7deg) scale(1); }
  to   { transform: rotate(0.7deg) scale(1.012); }
}
.rocket-wrap .flame-outer { transform-origin: 30px 100px; animation: ewFlickerOuter 0.26s ease-in-out infinite alternate; transition: opacity 0.4s ease, transform 0.4s ease; }
.rocket-wrap .flame-core  { fill: #E8A34C; transform-origin: 30px 100px; animation: ewFlickerCore 0.18s ease-in-out infinite alternate; transition: opacity 0.4s ease, transform 0.4s ease; }
.rocket-wrap.landed .flame-outer, .rocket-wrap.landed .flame-core { opacity: 0; transform: scaleY(0.15); }
@keyframes ewFlickerOuter { from { transform: scaleY(1) scaleX(1); opacity: 0.85; } to { transform: scaleY(1.22) scaleX(0.86); opacity: 0.55; } }
@keyframes ewFlickerCore  { from { transform: scaleY(0.9) scaleX(1); opacity: 1; }  to { transform: scaleY(1.12) scaleX(0.8); opacity: 0.8; } }
.rocket-wrap .body-shell { fill: url(#ewHullGrad); stroke: var(--navy); stroke-width: 1.25; }
.rocket-wrap .hull-seam { fill: none; stroke: rgba(26, 42, 68, 0.28); stroke-width: 1; }
.rocket-wrap .fin { fill: url(#ewFinGrad); stroke: var(--navy); stroke-width: 1; stroke-linejoin: round; }
.rocket-wrap .window-ring { fill: var(--navy); }
.rocket-wrap .window { fill: url(#ewWindowGrad); }
.rocket-wrap .window-glint { fill: rgba(255, 255, 255, 0.75); }
.rocket-wrap .nose-cap { fill: var(--gold); }

.rocket-dust {
  position: absolute; top: 0; left: 0; width: 10px; height: 10px;
  margin: -5px 0 0 -5px; border-radius: 50%; background: transparent;
  border: 1.5px solid var(--gold); opacity: 0; pointer-events: none;
}
.rocket-dust.puff { animation: ewDustPuff 0.9s ease-out forwards; }
@keyframes ewDustPuff {
  0%   { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0;   transform: scale(9); }
}

/* Sections hidden until the rocket passes near them (class added by JS).
   Without JS (or with it disabled) nothing is hidden. */
.rocket-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.rocket-reveal.is-in { opacity: 1; transform: translateY(0); }

/* Landing pad in the footer partial */
.landing-pad { position: relative; width: min(300px, 70vw); height: 74px; margin: 0 auto var(--sp-6); }
.landing-pad .pad-ring {
  position: absolute; left: 50%; top: 50%; width: 100%; height: 100%;
  transform: translate(-50%, -50%); border-radius: 50% / 70%;
  border: 1px solid rgba(198, 168, 94, 0.45);
}
.landing-pad .pad-ring.inner { width: 60%; height: 60%; border-color: var(--gold); opacity: 0.6; }
.landing-strip { background: var(--navy); padding: var(--sp-7) 0 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .rocket-overlay { display: none; }
  .rocket-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Utility bar additions — quick contact + portal + language placeholder
   ========================================================================== */
.utility-contact { display: flex; align-items: center; gap: var(--sp-4); }
.utility-contact a { display: inline-flex; align-items: center; gap: 6px; }
.utility-contact svg { width: 14px; height: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; opacity: 0.85; }
.lang-switch .sep { opacity: 0.5; }
.lang-switch a.active { color: var(--gold); font-weight: 600; }

/* Language switcher in the header — always visible. It deliberately does NOT
   live in .utility-bar, which is collapsed by default and whose toggle is
   hidden under 980px, so the switcher there was unreachable on mobile. */
.header-lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; opacity: 1;
  white-space: nowrap; flex-shrink: 0;
}
.header-lang a { color: var(--ink-soft); transition: color var(--fast) var(--ease); }
.header-lang a:hover { color: var(--red); }
.header-lang a.active { color: var(--navy); }
.header-lang .sep { color: var(--line); opacity: 1; }
@media (max-width: 460px) {
  .header-lang { padding: 5px 9px; font-size: 0.76rem; gap: 4px; }
}

/* ==========================================================================
   Student Life — service unit cards
   ========================================================================== */
.service-card .service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--gold-100); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
}
.service-card .service-icon svg { width: 26px; height: 26px; }

/* ==========================================================================
   Kindergarten sub-brand — playful accent variant (body.kg-theme)
   Navy stays for legibility; accents warm up per the brief's distinct
   early-years identity.
   ========================================================================== */
body.kg-theme {
  --red: #D85A30;
  --red-600: #B84722;
  --gold: #EF9F27;
  --gold-600: #D18A1B;
  --gold-100: #FAEEDA;
}
body.kg-theme .page-banner { background: linear-gradient(135deg, var(--navy), #2E5077); }

/* ==========================================================================
   Responsive refinements — device QA pass (desktop / tablet / mobile)
   Findings these address, measured at 320/375/414/768/1024/1280/1440 in both
   LTR and RTL:
     - carousel arrows sat on top of the hero paragraph on narrow screens
     - close buttons and small buttons fell under the 40px touch floor
     - card tags and the brand sub-line dropped below the 12px legibility floor
     - brand lockup wrapped mid-word on very small screens
   ========================================================================== */

/* Legibility floor: nothing below 12px anywhere. */
.card-tag { font-size: 0.75rem; }
.brand-text .name { white-space: nowrap; }

/* --- Tablet and below ---------------------------------------------------- */
@media (max-width: 860px) {
  /* The prev/next arrows overlay the hero copy once the slide narrows.
     Swiping and the pagination dots both still change slides. */
  .hero-nav { display: none; }

  /* Touch targets: 44px is the platform guidance, 40px the practical floor. */
  .btn-sm { min-height: 40px; padding-block: 10px; }
  .filter-chip { min-height: 40px; display: inline-flex; align-items: center; }
  .mobile-nav-close,
  .campus-close { width: 44px; height: 44px; }

  /* Give the hero copy the full slide width once the arrows are gone. */
  .hero-content { padding-inline: var(--sp-5); }
}

/* --- Phones -------------------------------------------------------------- */
@media (max-width: 560px) {
  .brand-text .name { font-size: 1rem; }
  .brand-text .sub { font-size: 0.6rem; letter-spacing: 0.08em; }

  /* Floating actions: shrink to icon pills so they stop crowding each other
     and the content behind them. */
  .quick-action span { display: none; }
  .quick-action { padding: 12px; border-radius: 50%; }
  .whatsapp-fab { width: 48px; height: 48px; }

  /* Stat blocks read better stacked two-up than squeezed four-up. */
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* --- Very small phones --------------------------------------------------- */
@media (max-width: 380px) {
  .header-inner { gap: var(--sp-2); }
  .campus-btn { display: none; }
  .hero-ctas .btn { width: 100%; }
}

/* Floating actions on phones: three fixed overlays covered real CTAs
   ("Apply Now", "Explore Our Approach", "About Elite Way" were all
   un-tappable at 375px). Both quick-actions duplicate links that already
   exist in the header and footer, so on phones only WhatsApp remains —
   tucked into the corner rather than floating at mid-height. */
@media (max-width: 640px) {
  .quick-action { display: none; }
  .whatsapp-fab { bottom: var(--sp-5); right: var(--sp-5); }
}

/* Hero CTAs sat under the corner WhatsApp button on phones (the second
   button in each slide landed in the FAB's y-range). Reserve clearance so
   every hero CTA stays fully tappable. */
@media (max-width: 640px) {
  .hero-content { padding-bottom: 76px; }
}

/* Tablet: the two quick-action pills are fixed overlays that sat on top of
   real content (measured at 820px they covered the "20+ Years" and
   "Bilingual" stat blocks). They duplicate links already in the header and
   footer, so — as on phones — only WhatsApp stays from 980px down, which is
   the same breakpoint where the nav collapses. */
@media (max-width: 980px) {
  .quick-action { display: none; }
  .whatsapp-fab { bottom: var(--sp-5); right: var(--sp-5); }
}

/* Keep the empty-slot label comfortably inside the hero on small screens. */
.hero-photo-slot { padding: var(--sp-6); }

/* Mobile hero framing.
   The hero photos are landscape (16:9) with the child composed on the LEFT and
   open space on the right (so the desktop headline sits over the empty side).
   On a narrow phone, object-fit: cover crops to the middle — which is the empty
   side — and cuts the child out. Shift the crop toward the subject, and pull the
   headline to the lower half so the child stays visible above it. A stronger
   bottom-weighted scrim keeps the lower text readable without hiding the child. */
@media (max-width: 768px) {
  .hero-slide-bg img,
  .hero-photo-slot img { object-position: 26% center; }
  .hero-slide { align-items: flex-end; }
  .hero-slide::before {
    background: linear-gradient(180deg,
      rgba(20,32,54,0.30) 0%,
      rgba(20,32,54,0.55) 42%,
      rgba(20,32,54,0.92) 100%);
  }
  .hero-content { padding-bottom: var(--sp-8); }
}

/* =====================================================================
   PREMIUM MAGAZINE ARTICLE  (blog single)  — theme 1.1
   A world-class editorial layout that reuses the site's brand tokens
   (navy / white / gold / muted burgundy). Every block is designed to
   pull the reader down the page: sticky TOC, drop cap, alternating
   figures, pull quotes, stat counters, tips, a branded insight panel,
   FAQ accordion, related cards and a tour CTA.
   ===================================================================== */

/* ---- Reading progress ------------------------------------------------ */
.article-progress { position: fixed; inset-block-start: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 700; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .1s linear; }

/* ---- Hero ------------------------------------------------------------ */
.article-hero { position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.article-hero-media { position: absolute; inset: 0; z-index: 0; }
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.article-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,32,54,.15) 0%, rgba(20,32,54,.55) 55%, rgba(20,32,54,.92) 100%); }
.article-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 900px; margin-inline: auto; padding: var(--sp-8) var(--sp-5) var(--sp-7); color: #fff; }
.article-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(198,168,94,.16); border: 1px solid rgba(198,168,94,.5); color: var(--gold); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; margin: var(--sp-4) 0 var(--sp-5); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); font-size: .9rem; color: rgba(255,255,255,.85); }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ---- Two-column shell: article + sticky TOC -------------------------- */
.article-shell { max-width: 1180px; margin-inline: auto; padding: var(--sp-8) var(--sp-5); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.article-toc { position: sticky; top: 96px; }
.article-toc-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: var(--sp-4); }
.article-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-inline-start: 2px solid var(--line); }
.article-toc li { counter-increment: toc; }
.article-toc a { display: block; padding: 8px 0 8px var(--sp-4); margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold); font-weight: 700; margin-inline-end: 8px; font-size: .8rem; }
.article-toc a:hover, .article-toc a.active { color: var(--navy); border-inline-start-color: var(--gold); font-weight: 600; }

/* ---- Body typography ------------------------------------------------- */
.article-body { max-width: 720px; }
.article-body > p, .article-body > ul, .article-body > ol { font-size: 1.075rem; line-height: 1.85; color: var(--ink); margin-bottom: var(--sp-5); }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: var(--sp-8) 0 var(--sp-4); scroll-margin-top: 90px; display: flex; align-items: center; gap: var(--sp-3); }
.article-body h2 .h-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.article-body h2 .h-ico svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.7; }
.article-body h3 { font-size: 1.25rem; margin: var(--sp-6) 0 var(--sp-3); color: var(--navy); }
.article-body .lead-drop::first-letter { float: inline-start; font-family: var(--font-display); font-size: 3.6em; line-height: .78; font-weight: 700; color: var(--red); margin-inline-end: 10px; margin-block-start: 6px; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--navy); }

/* ---- "What you'll learn" summary card -------------------------------- */
.article-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); margin-bottom: var(--sp-7); box-shadow: var(--shadow-sm); }
.article-summary .eyebrow { color: var(--red); }
.article-summary h2 { font-size: 1.3rem; margin: 6px 0 var(--sp-4); display: block; }
.article-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.article-summary li { position: relative; padding-inline-start: var(--sp-6); font-size: 1rem; line-height: 1.6; color: var(--ink); }
.article-summary li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---- Figures inside the article -------------------------------------- */
.article-figure { margin: var(--sp-7) 0; }
.article-figure img { width: 100%; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }
.article-figure figcaption { margin-top: var(--sp-3); font-size: .85rem; color: var(--ink-soft); text-align: center; font-style: italic; }
.article-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; margin: var(--sp-7) 0; }
.article-split img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-split h3 { margin-top: 0; }
.article-split.is-flip .as-media { order: 2; }

/* ---- Pull quote ------------------------------------------------------ */
.pullquote { margin: var(--sp-8) 0; padding: var(--sp-6) var(--sp-7); border-inline-start: 4px solid var(--gold); background: linear-gradient(120deg, rgba(198,168,94,.07), transparent); position: relative; }
.pullquote::before { content: "\201C"; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--gold); opacity: .5; position: absolute; inset-block-start: -6px; inset-inline-start: 16px; }
.pullquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--navy); font-weight: 600; margin: 0 0 var(--sp-3); }
.pullquote cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* ---- Did You Know? stat cards ---------------------------------------- */
.did-you-know { margin: var(--sp-8) 0; }
.did-you-know > .eyebrow { color: var(--red); }
.did-you-know h2 { margin: 6px 0 var(--sp-5); display: block; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.stat-cards .stat-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); text-align: center; box-shadow: var(--shadow-md); }
.stat-cards .stat-card b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-cards .stat-card span { font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.4; }

/* ---- Parent tip callout ---------------------------------------------- */
.parent-tip { display: flex; gap: var(--sp-4); margin: var(--sp-7) 0; padding: var(--sp-5) var(--sp-6); background: #FBF6EC; border: 1px solid rgba(198,168,94,.4); border-radius: var(--radius-lg); }
.parent-tip .pt-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.parent-tip .pt-ico svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.parent-tip h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.parent-tip p { margin: 0; font-size: .98rem; line-height: 1.65; color: var(--ink); }

/* ---- Elite Way Insight (branded) ------------------------------------- */
.ew-insight { position: relative; margin: var(--sp-8) 0; padding: var(--sp-8) var(--sp-7); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0, #24395c 0%, var(--navy) 60%); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.ew-insight::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -10%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(198,168,94,.22), transparent 70%); }
.ew-insight .eyebrow { color: var(--gold); }
.ew-insight h2 { color: #fff; display: block; margin: 8px 0 var(--sp-4); }
.ew-insight > p { color: rgba(255,255,255,.85); max-width: 60ch; font-size: 1.05rem; line-height: 1.8; }
.ew-insight .insight-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.ew-insight .insight-chips span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 16px; font-size: .88rem; }
.ew-insight .insight-chips svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.8; }

/* ---- Tour CTA -------------------------------------------------------- */
.tour-cta { text-align: center; background: var(--paper); border-block: 1px solid var(--line); padding: var(--sp-9) var(--sp-5); }
.tour-cta .eyebrow { color: var(--red); }
.tour-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: var(--sp-3) auto var(--sp-4); max-width: 18ch; }
.tour-cta p { max-width: 52ch; margin: 0 auto var(--sp-6); color: var(--ink-soft); font-size: 1.05rem; }
.tour-cta .btn-row { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ---- Related articles ------------------------------------------------ */
.related-wrap { max-width: 1180px; margin-inline: auto; padding: var(--sp-9) var(--sp-5); }
.related-wrap .section-head { margin-bottom: var(--sp-6); }

/* ---- Author byline card ---------------------------------------------- */
.article-author { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.article-author .aa-badge { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.article-author .aa-name { font-weight: 700; color: var(--navy); }
.article-author .aa-role { font-size: .88rem; color: var(--ink-soft); }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 980px) {
  .article-shell { grid-template-columns: 1fr; gap: var(--sp-6); }
  .article-toc { position: static; order: -1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-5); }
  .article-toc ol { border-inline-start: none; }
  .stat-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .article-split { grid-template-columns: 1fr; }
  .article-split.is-flip .as-media { order: 0; }
  .article-body { max-width: none; }
  .article-hero-inner { padding: var(--sp-7) var(--sp-5) var(--sp-6); }
}
