/* =========================================================
   On Point Education Centre — Shared Styles
   ========================================================= */

:root {
  --red: #C8102E;
  --red-dark: #a40d25;
  --blue: #1E3A8A;
  --blue-dark: #162d6b;
  --orange: #F97316;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5d;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1200px;
  --header-h: 78px;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn i, .btn svg { width: 18px; height: 18px; }

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(200, 16, 46, .28);
}
.btn-red:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(200, 16, 46, .35); }

.btn-white {
  background: var(--white);
  color: var(--red);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: #fff7f8; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.85);
}
.btn-outline-white:hover { background: var(--white); color: var(--ink); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.1;
  max-width: 220px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.primary-nav a:hover { color: var(--red); background: rgba(200, 16, 46, .06); }
.primary-nav a.active { color: var(--red); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.lang-btn {
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.lang-btn.active { color: var(--white); background: var(--blue); }
.lang-btn:not(.active):hover { color: var(--blue); }
.lang-divider { color: var(--line); font-weight: 600; }

.btn-enroll { padding: 10px 20px; font-size: 14px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img:first-child {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .5);
}
.hero-watermark {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 480px;
  max-width: 60%;
  opacity: .07;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 680px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,.94);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 60px;
}
.hero-floating-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.hero-floating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--red);
  margin-bottom: 2px;
}
.hero-floating-card span {
  display: block;
  font-size: .85rem;
  color: var(--ink-soft);
}
.floating-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: var(--white);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.floating-icon i, .floating-icon svg { width: 22px; height: 22px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}
.section-head .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

/* ---------- Welcome ---------- */
.welcome { background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 58, 138, .12), rgba(200, 16, 46, .12));
  color: var(--blue);
  display: grid;
  place-items: center;
}
.feature-icon i, .feature-icon svg { width: 28px; height: 28px; }
.feature-card:nth-child(2) .feature-icon { color: var(--red); }
.feature-card:nth-child(3) .feature-icon { color: var(--orange); }
.feature-card:nth-child(4) .feature-icon { color: var(--blue); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p {
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--blue));
  opacity: 0;
  transition: opacity .25s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card:hover::before { opacity: 1; }
.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
  opacity: .85;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Stats ---------- */
.stats {
  background: var(--bg);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  padding: 24px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin-bottom: 10px;
}
.stat-num-blue { color: var(--blue); }
.stat-num-orange { color: var(--orange); }
.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .3px;
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(249, 115, 22, .25) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.cta-inner > p {
  font-size: 1.15rem;
  opacity: .95;
  margin-bottom: 30px;
}
.cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.cta-badge {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.btn-cta { padding: 16px 32px; font-size: 16px; }

/* =========================================================
   PAGE HERO (interior pages)
   ========================================================= */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 90px 0 80px;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, .14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(200, 16, 46, .18), transparent 50%);
}
.page-hero-watermark {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 360px;
  max-width: 50%;
  opacity: .06;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  margin: 18px 0 12px;
}
.page-hero p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  opacity: .92;
  margin: 0;
}

/* =========================================================
   SPLIT (two-column text/image)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.split-text p { font-size: 1.05rem; color: var(--ink-soft); }
.split-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* =========================================================
   MISSION & VISION
   ========================================================= */
.mv-section { background: var(--bg); }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.mv-mission::before { background: linear-gradient(90deg, var(--red), var(--orange)); }
.mv-vision::before { background: linear-gradient(90deg, var(--blue), var(--orange)); }

.mv-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--white);
}
.mv-mission .mv-icon { background: linear-gradient(135deg, var(--red), var(--orange)); }
.mv-vision .mv-icon { background: linear-gradient(135deg, var(--blue), var(--orange)); }
.mv-icon i, .mv-icon svg { width: 30px; height: 30px; }

.mv-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.mv-card p { color: var(--ink-soft); margin: 0; line-height: 1.75; }

/* =========================================================
   CORE VALUES
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, .12), rgba(200, 16, 46, .12));
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.value-icon i, .value-icon svg { width: 26px; height: 26px; }
.value-card:nth-child(2) .value-icon { color: var(--orange); }
.value-card:nth-child(3) .value-icon { color: var(--red); }
.value-card:nth-child(4) .value-icon { color: var(--blue); }
.value-card:nth-child(5) .value-icon { color: var(--orange); }
.value-card:nth-child(6) .value-icon { color: var(--red); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* =========================================================
   PRINCIPAL MESSAGE
   ========================================================= */
.principal-section { background: var(--bg); }
.principal-solo { max-width: 820px; margin: 0 auto; }
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(249, 115, 22, .25), transparent 55%);
}

.principal-quote {
  margin: 18px 0 24px;
  padding: 0 0 0 22px;
  border-left: 4px solid var(--red);
  font-style: italic;
  color: var(--ink-soft);
}
.principal-quote p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 0 14px;
}
.principal-quote p:last-child { margin-bottom: 0; }

.principal-signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}
.principal-signature strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--red);
}
.principal-signature span {
  font-size: .9rem;
  color: var(--ink-soft);
}

/* =========================================================
   STAT TILES (smaller, 4-up)
   ========================================================= */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.stat-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.stat-tile-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-tile:nth-child(2) .stat-tile-num { color: var(--blue); }
.stat-tile:nth-child(3) .stat-tile-num { color: var(--orange); }
.stat-tile:nth-child(4) .stat-tile-num { color: var(--blue); }
.stat-tile-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .2px;
}

/* =========================================================
   PATHWAY CARDS
   ========================================================= */
.pathways-section { background: var(--bg); }
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}
.pathway-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pathway-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pathway-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.pathway-card-featured::before { background: linear-gradient(90deg, var(--red), var(--orange)); }

.pathway-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.pathway-card-featured .pathway-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.pathway-icon i, .pathway-icon svg { width: 30px; height: 30px; }

.pathway-age {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(30, 58, 138, .08);
  color: var(--blue);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pathway-card-featured .pathway-age {
  background: rgba(200, 16, 46, .08);
  color: var(--red);
}
.pathway-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.pathway-card > p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.subject-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.subject-badge {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pathway-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  color: var(--red);
  font-size: 15px;
  transition: color .2s ease, transform .2s ease;
}
.pathway-link:hover { color: var(--red-dark); transform: translateX(4px); }

/* =========================================================
   SUBJECT BLOCKS / SUBJECT CARDS
   ========================================================= */
.subject-block { margin-bottom: 56px; scroll-margin-top: 100px; }
.subject-block:last-child { margin-bottom: 0; }
.subject-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.subject-block-head h3 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--blue);
}
.subject-block-tag {
  padding: 6px 14px;
  background: rgba(249, 115, 22, .12);
  color: var(--orange);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.subject-grid {
  display: grid;
  gap: 18px;
}
.subject-grid-3 { grid-template-columns: repeat(3, 1fr); }
.subject-grid-4 { grid-template-columns: repeat(4, 1fr); }

.subject-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.subject-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 138, .1), rgba(200, 16, 46, .1));
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.subject-icon i, .subject-icon svg { width: 22px; height: 22px; }
.subject-card:nth-child(2n) .subject-icon { color: var(--red); }
.subject-card:nth-child(3n) .subject-icon { color: var(--orange); }

.subject-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.subject-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   ASSESSMENT — feature stack
   ========================================================= */
.assessment-section { background: var(--bg); }
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-block:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.feature-block-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-block-icon i, .feature-block-icon svg { width: 22px; height: 22px; }
.feature-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.feature-block p {
  margin: 0;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* =========================================================
   UNIVERSITY GRID
   ========================================================= */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.uni-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.uni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.uni-flag {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 12px;
}
.uni-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}

/* =========================================================
   PAGE HERO — warm variant (red + blue blend)
   ========================================================= */
.page-hero-warm {
  background:
    linear-gradient(135deg, var(--blue) 0%, #4c1d95 50%, var(--red) 100%);
}

/* =========================================================
   LEVELS GRID (3-up enrolment cards)
   ========================================================= */
.levels-section { background: var(--bg); }
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.level-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.level-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.level-card:nth-child(2)::before { background: linear-gradient(90deg, var(--orange), var(--red)); }
.level-card:nth-child(3)::before { background: linear-gradient(90deg, var(--red), var(--blue)); }

.level-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.level-card:nth-child(2) .level-icon { background: linear-gradient(135deg, var(--orange), var(--red)); }
.level-card:nth-child(3) .level-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.level-icon i, .level-icon svg { width: 28px; height: 28px; }

.level-age {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(30, 58, 138, .08);
  color: var(--blue);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.level-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.level-card > p { color: var(--ink-soft); margin-bottom: 22px; flex-grow: 1; }
.level-btn {
  align-self: flex-start;
  padding: 10px 22px;
  font-size: 14px;
}

/* =========================================================
   APPLY — Timeline
   ========================================================= */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  margin: 0 0 50px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--red));
  border-radius: 3px;
  z-index: 0;
}
.timeline-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
  z-index: 1;
}
.timeline-num {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(30, 58, 138, .2);
  position: relative;
  z-index: 2;
  transition: transform .25s ease;
}
.timeline-step:hover .timeline-num { transform: scale(1.06); }
.timeline-step:nth-child(2) .timeline-num { border-color: var(--orange); color: var(--orange); box-shadow: 0 6px 20px rgba(249, 115, 22, .25); }
.timeline-step:nth-child(3) .timeline-num { border-color: var(--red); color: var(--red); box-shadow: 0 6px 20px rgba(200, 16, 46, .25); }
.timeline-step:nth-child(4) .timeline-num {
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-color: transparent;
  color: var(--white);
}
.timeline-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.timeline-step p {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.apply-cta { text-align: center; margin-top: 12px; }

/* =========================================================
   PREPARE — Checklist
   ========================================================= */
.prepare-section { background: var(--bg); }
.checklist {
  max-width: 720px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 1rem;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.checklist-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--orange);
}
.check-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 138, .12), rgba(249, 115, 22, .12));
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.check-icon i, .check-icon svg { width: 20px; height: 20px; }
.checklist-item:nth-child(even) .check-icon { color: var(--red); }
.checklist-item:nth-child(3n) .check-icon { color: var(--orange); }

.checklist-note {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 22px;
  background: rgba(249, 115, 22, .08);
  border: 1px dashed rgba(249, 115, 22, .4);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: .95rem;
  text-align: center;
}
.checklist-note i, .checklist-note svg {
  width: 18px; height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

/* =========================================================
   FAQ — Accordion
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease, background .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); background: rgba(200, 16, 46, .03); }
.faq-item[open] summary { color: var(--red); }

.faq-chevron {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform .25s ease, color .25s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-answer {
  padding: 0 24px 22px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}
.faq-answer p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* =========================================================
   CTA aside text (admissions phone fallback)
   ========================================================= */
.cta-aside {
  margin-top: 22px !important;
  font-size: .95rem;
  opacity: .85;
  margin-bottom: 0 !important;
}

/* =========================================================
   ACTIVITY GRID (sports / arts — 4-up vibrant cards)
   ========================================================= */
.activity-section { padding-top: 70px; padding-bottom: 70px; }
.sports-section { background: var(--bg); }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.activity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.activity-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  transition: height .25s ease;
  z-index: -1;
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.activity-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform .25s ease;
}
.activity-card:hover .activity-icon { transform: scale(1.06) rotate(-4deg); }
.activity-icon i, .activity-icon svg { width: 30px; height: 30px; }

.activity-card:nth-child(2) .activity-icon { background: linear-gradient(135deg, var(--orange), var(--red)); }
.activity-card:nth-child(3) .activity-icon { background: linear-gradient(135deg, var(--red), var(--blue)); }
.activity-card:nth-child(4) .activity-icon { background: linear-gradient(135deg, #4c1d95, var(--blue)); }

.activity-arts.activity-card:nth-child(1) .activity-icon { background: linear-gradient(135deg, var(--red), var(--orange)); }
.activity-arts.activity-card:nth-child(2) .activity-icon { background: linear-gradient(135deg, #4c1d95, var(--red)); }
.activity-arts.activity-card:nth-child(3) .activity-icon { background: linear-gradient(135deg, var(--blue), #4c1d95); }
.activity-arts.activity-card:nth-child(4) .activity-icon { background: linear-gradient(135deg, var(--orange), var(--blue)); }

.activity-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.activity-card p {
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   ACADEMIC CLUBS (2-up larger feature cards)
   ========================================================= */
.clubs-section { background: var(--bg); }
.club-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.club-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.club-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.club-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  background-size: 40px 40px;
  background-image:
    radial-gradient(circle, currentColor 1px, transparent 1.5px);
  pointer-events: none;
}
.club-robotics::before { color: var(--blue); }
.club-math::before { color: var(--red); }

.club-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.club-robotics .club-icon { background: linear-gradient(135deg, var(--blue), #4c1d95); }
.club-math .club-icon { background: linear-gradient(135deg, var(--red), var(--orange)); }
.club-icon i, .club-icon svg { width: 34px; height: 34px; }

.club-card h3 {
  font-size: 1.55rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.club-robotics h3 { color: var(--blue); }
.club-math h3 { color: var(--red); }

.club-card p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* =========================================================
   FIELD TRIPS (3-up)
   ========================================================= */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trip-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.trip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.trip-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.trip-card:nth-child(2) .trip-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.trip-card:nth-child(3) .trip-icon { background: linear-gradient(135deg, #4c1d95, var(--red)); }
.trip-icon i, .trip-icon svg { width: 26px; height: 26px; }
.trip-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.trip-card p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   CULTURAL EVENTS
   ========================================================= */
.events-section { background: var(--bg); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.event-card-featured {
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(249, 115, 22, .15);
}

.event-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.event-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.event-card:hover .event-photo img { transform: scale(1.05); }

.event-photo-gradient {
  display: grid;
  place-items: center;
  color: var(--white);
}
.event-photo-gradient i, .event-photo-gradient svg {
  width: 64px; height: 64px;
  opacity: .85;
}
.event-photo-africa { background: linear-gradient(135deg, #f59e0b, var(--red), #4c1d95); }
.event-photo-career { background: linear-gradient(135deg, var(--blue), #0ea5e9, var(--orange)); }

.event-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.event-date {
  position: absolute;
  top: -36px;
  right: 22px;
  width: 64px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.event-date-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}
.event-date-day i, .event-date-day svg {
  width: 22px; height: 22px;
  color: var(--red);
}
.event-date-month {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.event-date-annual { border-color: var(--blue); }
.event-date-annual .event-date-day i { color: var(--blue); }

.event-card h3 {
  font-size: 1.4rem;
  margin: 12px 0 4px;
  padding-right: 60px;
}
.event-meta {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .4px;
  margin-bottom: 12px;
}
.event-card p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   PHOTO STRIP / GALLERY TEASER
   ========================================================= */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.photo-strip-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
}
.photo-strip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.photo-strip-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-strip-card:hover img { transform: scale(1.08); }

.photo-strip-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  backdrop-filter: blur(6px);
}

.photo-strip-placeholder {
  background: linear-gradient(135deg, rgba(30, 58, 138, .08), rgba(200, 16, 46, .08));
  border: 2px dashed rgba(30, 58, 138, .25);
}
.photo-placeholder-mini {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
}
.photo-placeholder-mini i, .photo-placeholder-mini svg {
  width: 38px; height: 38px;
  color: var(--blue);
  opacity: .7;
}
.photo-placeholder-mini span {
  font-size: .9rem;
  font-weight: 500;
}

.photo-strip-cta { text-align: center; }

/* =========================================================
   PAGE HERO — compact variant (gallery, etc.)
   ========================================================= */
.page-hero-compact { padding: 70px 0 60px; }

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar-section {
  background: var(--white);
  padding: 28px 0 12px;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-bottom: 18px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.filter-btn:hover {
  color: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 6px 16px rgba(200, 16, 46, .25);
}

/* =========================================================
   GALLERY GRID (CSS columns masonry)
   ========================================================= */
.gallery-section { padding-top: 50px; padding-bottom: 70px; }

.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}

.gallery-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, opacity .35s ease;
  font: inherit;
  color: inherit;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.gallery-card.is-hidden {
  display: none;
}
.gallery-card.is-fade {
  opacity: 0;
  transform: scale(.97);
}

.gallery-media {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.gallery-media img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-card:hover .gallery-media img { transform: scale(1.05); }

/* Placeholder art — gradient panels with icons */
.placeholder-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.placeholder-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.15), transparent 60%);
}
.placeholder-art i, .placeholder-art svg {
  width: 64px; height: 64px;
  opacity: .9;
  position: relative;
  z-index: 1;
  transition: transform .35s ease;
}
.gallery-card:hover .placeholder-art i, .gallery-card:hover .placeholder-art svg {
  transform: scale(1.12) rotate(-4deg);
}

/* Placeholder palettes — varied aspect ratios for masonry rhythm */
.placeholder-africa .placeholder-art { background: linear-gradient(135deg, #f59e0b, var(--red), #4c1d95); aspect-ratio: 4 / 5; }
.placeholder-soccer .placeholder-art { background: linear-gradient(135deg, var(--blue), #0ea5e9); aspect-ratio: 1 / 1; }
.placeholder-mining .placeholder-art { background: linear-gradient(135deg, var(--orange), #b45309); aspect-ratio: 4 / 5; }
.placeholder-career .placeholder-art { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); aspect-ratio: 1 / 1; }
.placeholder-robotics .placeholder-art { background: linear-gradient(135deg, #4c1d95, var(--red)); aspect-ratio: 4 / 5; }
.placeholder-athletics .placeholder-art { background: linear-gradient(135deg, var(--red), var(--orange)); aspect-ratio: 1 / 1; }
.placeholder-geography .placeholder-art { background: linear-gradient(135deg, #047857, #0ea5e9); aspect-ratio: 4 / 5; }
.placeholder-assembly .placeholder-art { background: linear-gradient(135deg, var(--red), var(--blue)); aspect-ratio: 1 / 1; }

/* Gallery caption */
.gallery-caption {
  padding: 16px 18px 18px;
}
.gallery-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.gallery-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 600;
}

/* Hover overlay caption on real photos */
.gallery-card:not(.gallery-placeholder) .gallery-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-card:not(.gallery-placeholder):hover .gallery-media::after { opacity: 1; }

/* Empty state */
.gallery-empty {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 60px 20px;
  margin: 0;
}

/* Update note */
.gallery-note {
  margin-top: 50px;
  padding: 30px 28px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gallery-note > i, .gallery-note > svg {
  width: 36px; height: 36px;
  color: var(--orange);
}
.gallery-note p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 560px;
}
.gallery-note-socials {
  display: flex;
  gap: 10px;
}
.gallery-note-socials .social-link {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
}
.gallery-note-socials .social-link:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 26, .94);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 60px 70px;
  animation: lb-fade-in .25s ease;
}
.lightbox[hidden] { display: none; }

@keyframes lb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(960px, 100%);
  max-height: 100%;
  width: 100%;
}

.lb-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 70vh;
  animation: lb-scale-in .3s ease;
}
.lb-media img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  object-fit: contain;
}
.lb-media .placeholder-art {
  width: min(560px, 100%);
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-media .placeholder-art i, .lb-media .placeholder-art svg {
  width: 96px; height: 96px;
}

@keyframes lb-scale-in {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lb-info {
  text-align: center;
  color: var(--white);
  max-width: 720px;
}
.lb-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lb-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.lb-info p {
  color: rgba(255,255,255,.85);
  margin: 0 0 14px;
  font-size: 1rem;
}
.lb-counter {
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

/* Lightbox controls */
.lb-close, .lb-nav {
  position: fixed;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
  z-index: 201;
}
.lb-close:hover, .lb-nav:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
  transform: scale(1.05);
}
.lb-close i, .lb-close svg, .lb-nav i, .lb-nav svg {
  width: 24px; height: 24px;
}
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.05); }
.lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-nav:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.lb-nav:disabled:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-50%);
}

/* =========================================================
   CONTACT — info column + map
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}
.contact-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--orange);
}
.contact-card-wa { border-color: rgba(37, 211, 102, .35); background: linear-gradient(135deg, var(--white), rgba(37, 211, 102, .04)); }
.contact-card-wa:hover { border-color: var(--whatsapp); }

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--white);
}
.contact-icon i, .contact-icon svg { width: 22px; height: 22px; }
.contact-icon-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.contact-icon-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.contact-icon-orange { background: linear-gradient(135deg, var(--orange), #b45309); }
.contact-icon-wa { background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)); }

.contact-body { flex: 1; min-width: 0; }
.contact-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.contact-body p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
  word-break: break-word;
}
.contact-link {
  color: var(--blue);
  font-weight: 500;
  transition: color .2s ease;
}
.contact-link:hover { color: var(--red); text-decoration: underline; }

.contact-action {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  transition: transform .2s ease, color .2s ease;
}
.contact-action:hover { color: var(--red-dark); transform: translateX(3px); }
.contact-action-wa { color: var(--whatsapp-dark); }
.contact-action-wa:hover { color: #167a3a; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.form-section { background: var(--bg); }

.contact-form {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-row .form-field { margin-bottom: 0; }

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: .2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
  background: var(--white);
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--red);
  background: rgba(200, 16, 46, .03);
}

.form-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}
.form-field.has-error .form-error { display: block; }

.form-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.form-toast {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .35);
  color: var(--whatsapp-dark);
  border-radius: 10px;
  font-weight: 600;
  animation: toast-in .3s ease;
}
.form-toast[hidden] { display: none; }
.form-toast i, .form-toast svg { width: 20px; height: 20px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SOCIAL CARDS (3-up)
   ========================================================= */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.social-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 18px;
}
.social-card-icon i, .social-card-icon svg { width: 26px; height: 26px; }
.social-card-fb .social-card-icon { background: linear-gradient(135deg, #1877f2, #0c5dc4); }
.social-card-yt .social-card-icon { background: linear-gradient(135deg, #ff0000, #b80000); }
.social-card-wa .social-card-icon { background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)); }

.social-card-fb:hover { border-color: #1877f2; }
.social-card-yt:hover { border-color: #ff0000; }
.social-card-wa:hover { border-color: var(--whatsapp); }

.social-card h3 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.social-card-handle {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  word-break: break-word;
}
.social-card-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  transition: transform .2s ease;
}
.social-card:hover .social-card-cta { transform: translateX(4px); }

.quick-faq-section { background: var(--bg); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0b1226;
  color: #cbd5e1;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
}
.footer-brand-row strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--white);
}
.footer-tag {
  font-style: italic;
  color: var(--orange);
  margin: 0 0 8px;
}
.footer-meta {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a {
  color: #cbd5e1;
  font-size: 14.5px;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-links a:hover { color: var(--orange); padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.footer-contact i, .footer-contact svg {
  width: 18px; height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact a { color: inherit; word-break: break-all; }
.footer-contact a:hover { color: var(--orange); }

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background .2s ease, transform .2s ease;
}
.social-link:hover { background: var(--orange); transform: translateY(-3px); }
.social-link i, .social-link svg { width: 18px; height: 18px; }

.footer-wa-btn { padding: 10px 18px; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}
.footer-bottom-inner p { margin: 0; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  z-index: 90;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, .55);
}
.float-wa i, .float-wa svg { width: 28px; height: 28px; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* =========================================================
   ENGLISH EXCELLENCE PROGRAMME
   ========================================================= */
.english-section {
  background: linear-gradient(135deg, rgba(30, 64, 175, .05), rgba(234, 88, 12, .05));
}
.english-section .split {
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}
.english-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}
.english-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.english-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.english-points i, .english-points svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue);
}
.english-highlight {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.english-highlight-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 10px;
}
.english-highlight strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.english-highlight p {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: .98rem;
}
.english-highlight-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30, 64, 175, .08);
  color: var(--blue);
  font-size: .88rem;
  font-weight: 600;
}
.english-highlight-foot i, .english-highlight-foot svg { width: 16px; height: 16px; }

/* =========================================================
   NOTABLE ACHIEVEMENTS
   ========================================================= */
.achieve-section { background: var(--bg); }
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.achieve-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.achieve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.achieve-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.achieve-icon i, .achieve-icon svg { width: 28px; height: 28px; }
.achieve-icon-red { background: linear-gradient(135deg, var(--red), var(--orange)); }
.achieve-icon-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.achieve-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.achieve-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.achieve-card p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   NEWS PAGE
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-featured { border-top: 5px solid var(--red); }
.news-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.news-card-icon i, .news-card-icon svg { width: 26px; height: 26px; }
.news-icon-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.news-icon-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.news-icon-orange { background: linear-gradient(135deg, var(--orange), #b45309); }
.news-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.news-card h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.35; }
.news-card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.news-note {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.news-note > i, .news-note > svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--orange);
}
.news-note p { margin: 0; flex: 1; min-width: 240px; color: var(--ink-soft); }
.news-note-socials { display: flex; gap: 10px; }
.news-note-socials .social-link {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.news-note-socials .social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* =========================================================
   CONTACT PAGE WITHOUT MAP
   ========================================================= */
.contact-grid-nomap { grid-template-columns: 1fr; }
.contact-grid-nomap .contact-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}
.social-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

/* =========================================================
   PHOTOGRAPHY — shared image treatment
   ========================================================= */
.why-accent img, .intro-figure img, .fun-figure img,
.assessment-figure img, .levels-figure img, .team-figure img,
.community-figure img, .principal-figure img, .card-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  object-fit: cover;
}
.why-accent, .intro-figure, .fun-figure,
.assessment-figure, .levels-figure, .team-figure,
.community-figure, .principal-figure {
  margin: 0;
  max-width: 100%;
}
figcaption {
  display: block;
  margin-top: 10px;
  font-size: .88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Section band figures — centred and capped so they support, not dominate */
.why-accent, .intro-figure, .assessment-figure, .levels-figure {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.why-accent img, .intro-figure img,
.assessment-figure img, .levels-figure img {
  aspect-ratio: 16 / 9;
}
.why-accent { margin-bottom: 44px; }
.why-accent img { object-position: center 35%; }

/* Intro / Fun & Play (student life) */
.intro-figure { margin-top: 40px; }
.intro-figure img { object-position: center 30%; }

.fun-section { background: var(--bg); }
.fun-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.fun-figure img { aspect-ratio: 3 / 2; }

/* Assessment / Levels supporting images */
.assessment-figure { margin-bottom: 32px; }
.assessment-figure img { object-position: center 25%; }
.levels-figure { margin-bottom: 44px; }
.levels-figure img { object-position: center 30%; }

/* Card media strip (pathway + trip cards) */
.card-media {
  margin: -32px -28px 22px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.card-media img {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 9;
  transition: transform .4s ease;
}
.pathway-card-photo:hover .card-media img,
.trip-card-photo:hover .card-media img { transform: scale(1.04); }
.trip-card-photo .card-media { margin: -28px -26px 20px; }

/* About: principal + team + community */
.principal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}
.principal-figure img {
  width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.principal-figure figcaption { text-align: center; }
.principal-figure figcaption strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
}
.principal-figure figcaption span {
  display: block;
  font-size: .86rem;
  color: var(--ink-soft);
}
.team-section { background: var(--bg); }
.team-figure, .community-figure {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.team-figure img, .community-figure img { aspect-ratio: 3 / 2; }

/* Homepage principal teaser */
.principal-teaser-section { background: var(--bg); }
.principal-teaser {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.principal-teaser:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.principal-teaser img {
  width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}
.principal-teaser-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.principal-teaser-body p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.75;
}
.principal-teaser-name {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
}
.principal-teaser-role {
  display: block;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.principal-teaser-link {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--red);
}
.principal-teaser:hover .principal-teaser-link { text-decoration: underline; }

/* Gallery hover zoom */
.gallery-media { overflow: hidden; }
.gallery-media img { transition: transform .4s ease; }
.gallery-card:hover .gallery-media img { transform: scale(1.03); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-text { font-size: 16px; max-width: 180px; }
  .split { gap: 36px; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .subject-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .uni-grid { grid-template-columns: repeat(3, 1fr); }
  .level-grid { grid-template-columns: 1fr; gap: 22px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .timeline::before { display: none; }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .trip-grid { grid-template-columns: 1fr; gap: 18px; }
  .event-grid { grid-template-columns: 1fr; gap: 22px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .club-grid { grid-template-columns: 1fr; gap: 22px; }
  .gallery-grid { column-count: 3; }
  .fun-grid { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .social-grid { grid-template-columns: 1fr; gap: 18px; }
  .social-grid-2 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid { grid-template-columns: 1fr; gap: 20px; }
  .english-section .split { grid-template-columns: 1fr; }
  .fun-grid { grid-template-columns: 1fr; gap: 20px; }
  .principal-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; }
  .why-accent, .intro-figure, .assessment-figure, .levels-figure { max-width: 560px; }
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-image img { aspect-ratio: 16 / 10; }
  .mv-grid { grid-template-columns: 1fr; gap: 22px; }
  .pathway-grid { grid-template-columns: 1fr; gap: 22px; }
  .subject-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .subject-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .uni-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-grid-nomap .contact-col { grid-template-columns: 1fr; }
  .principal-layout { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .principal-figure img { width: min(300px, 100%); }
  .card-media { margin: -28px -24px 20px; }
  .gallery-grid { column-count: 2; }
  .fun-grid { grid-template-columns: 1fr; }
  .team-figure, .community-figure, .split-image img { max-width: 100%; }
}

@media (max-width: 880px) {
  .hamburger { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-150%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .primary-nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .primary-nav a.active::after { display: none; }
  .primary-nav a:last-child { border-bottom: 0; }

  .btn-enroll { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text { font-size: 15px; max-width: 150px; }
  .lang-toggle { padding: 3px 8px; }
  .lang-btn { padding: 3px 6px; font-size: 12px; }

  .hero { min-height: 90vh; padding: 60px 0 80px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-floating-card { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .mv-card { padding: 32px 24px; }
  .principal-quote { padding-left: 16px; }
  .page-hero { padding: 60px 0 56px; }
  .stat-tiles { grid-template-columns: 1fr; gap: 12px; }
  .subject-grid-3, .subject-grid-4 { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: 1fr; gap: 12px; }
  .pathway-card { padding: 32px 24px; }
  .subject-block-head { flex-direction: column; align-items: flex-start; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline-num { width: 52px; height: 52px; font-size: 1.4rem; }
  .checklist-item { padding: 16px 18px; font-size: .95rem; }
  .faq-item summary { font-size: 1rem; padding: 18px 20px; }
  .faq-answer { padding: 0 20px 18px; }
  .activity-grid { grid-template-columns: 1fr; gap: 16px; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip-card { aspect-ratio: 16 / 10; }
  .club-card { padding: 32px 24px; }
  .event-body { padding: 22px 22px 26px; }
  .event-card h3 { padding-right: 0; }
  .event-date { top: -28px; right: 18px; width: 56px; }
  .gallery-grid { column-count: 1; column-gap: 0; }
  .gallery-card { margin-bottom: 16px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 13px; }
  .lightbox { padding: 70px 16px 90px; }
  .lb-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-info h3 { font-size: 1.2rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-field { margin-bottom: 20px; }
  .contact-form { padding: 28px 22px; }
  .contact-card { padding: 18px 18px; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }

  .float-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
