/* ============================================================
   BLESSED GROUP OF SCHOOLS — BASNPS / BASHS
   assets/css/main.css — CSS Design System v1
   BASNPS Simbock · BASHS Nomayos · Yaoundé, Cameroon
   www.blessedgroupofschools.com
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES — SITE PALETTE (LOCKED)
   ============================================================ */

:root {
  /* === Brand Colours — Exact Site Palette === */
  --brand:        #0E49A5;   /* Primary blue — nav, headings, CTAs, BASNPS identity */
  --brand-dark:   #092D6B;   /* Dark blue — footer, depth, BASHS identity */
  --brand-light:  #3B72D4;   /* Medium blue — hover states, secondary buttons */
  --brand-xlight: #E8F0FD;   /* Very light blue — tinted backgrounds, code blocks */
  --gold:         #C8A55A;   /* Gold — prestige accents, dividers, badge borders */
  --ink:          #0A0F1E;   /* Near black — primary body text */
  --ink2:         #1E2640;   /* Dark ink — secondary text, card titles */
  --muted:        #6B7494;   /* Muted grey-blue — captions, labels, footnotes */
  --border:       #E4E8F5;   /* Light blue-grey — table borders, dividers */
  --cream:        #F8F9FD;   /* Near white — alternating section backgrounds */
  --white:        #FFFFFF;   /* Pure white — card backgrounds */
  --red:          #E53E3E;   /* Red — CTA, WhatsApp, admissions, alerts */

  /* === Campus Identity Colours === */
  --campus-basnps: var(--brand);       /* #0E49A5 — Nursery & Primary */
  --campus-bashs:  var(--brand-dark);  /* #092D6B — High School */

  /* === Typography === */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-accent:  'Oswald', Impact, sans-serif;

  /* === Font Sizes — Fluid Scale === */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */
  --text-6xl:  4.5rem;     /* 72px */

  /* === Line Heights === */
  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* === Letter Spacing === */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.2em;

  /* === Spacing Scale === */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* === Border Radius === */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm:  0 1px 3px rgba(9, 45, 107, 0.08), 0 1px 2px rgba(9, 45, 107, 0.04);
  --shadow-md:  0 4px 16px rgba(9, 45, 107, 0.10), 0 2px 6px rgba(9, 45, 107, 0.06);
  --shadow-lg:  0 10px 40px rgba(9, 45, 107, 0.14), 0 4px 12px rgba(9, 45, 107, 0.08);
  --shadow-xl:  0 20px 60px rgba(9, 45, 107, 0.18), 0 8px 24px rgba(9, 45, 107, 0.10);
  --shadow-gold: 0 4px 24px rgba(200, 165, 90, 0.25);

  /* === Transitions === */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-slower: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* === Z-Index Scale === */
  --z-base:    1;
  --z-dropdown:100;
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
  --z-loader:  999;

  /* === Layout === */
  --container-max:  1280px;
  --container-wide: 1440px;
  --nav-height:     80px;
  --nav-height-sm:  64px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   3. SELF-HOSTED FONTS — WOFF2 ONLY (No Google Fonts CDN)
   ============================================================ */

/* Playfair Display — Display / Headings */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Outfit — Body / UI */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Oswald — Accent / Stats / Counters */
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   4. TYPOGRAPHY SYSTEM
   ============================================================ */

/* Display Headings — Playfair Display */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--ink);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--ink2);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--ink2);
}

h6, .h6 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-normal);
  color: var(--ink2);
}

/* Body text */
p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--ink2);
  font-weight: 400;
}

.caption {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-normal);
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--muted);
}

/* Stat / Counter typography — Oswald */
.stat-number {
  font-family: var(--font-accent);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: var(--tracking-tight);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-2);
}

/* Section label — overline */
.section-overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.section-overline::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Gold divider under section title */
.title-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.title-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   5. LAYOUT & GRID
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: 800px;
}

/* Section spacing */
.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* Background variants */
.bg-white   { background-color: var(--white); }
.bg-cream   { background-color: var(--cream); }
.bg-brand   { background-color: var(--brand); }
.bg-dark    { background-color: var(--brand-dark); }
.bg-xlight  { background-color: var(--brand-xlight); }

/* Text colour utilities */
.text-white   { color: var(--white); }
.text-gold    { color: var(--gold); }
.text-brand   { color: var(--brand); }
.text-muted   { color: var(--muted); }
.text-ink     { color: var(--ink); }

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto-fit-sm {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-auto-fit-md {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fit-lg {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

/* Flex utilities */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center    { justify-content: center; }
.justify-between   { justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* ============================================================
   6. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.nav--transparent {
  background: transparent;
}

.nav--scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.nav--scrolled .nav__logo-text,
.nav--scrolled .nav__link {
  color: var(--ink);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-badge {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav--scrolled .nav__logo-badge {
  border-color: var(--border);
}

/* Footer uses logo-white.png (white silhouette) — needs a darker/translucent
   badge background so the white logo remains visible against it. */
.footer .nav__logo-badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.nav__logo-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  transition: color var(--transition-base);
}

.nav__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: var(--tracking-wide);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__link:hover {
  background: rgba(255,255,255,0.12);
}

.nav--scrolled .nav__link:hover {
  background: var(--brand-xlight);
  color: var(--brand);
}

.nav__link--active {
  color: var(--gold);
}

.nav__cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav__cta:hover {
  background: #c73333;
  transform: translateY(-1px);
}

/* Language toggle */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 3px;
  min-height: 44px;
}

.nav__lang-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  letter-spacing: var(--tracking-wide);
  min-height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__lang-btn--active {
  background: var(--gold);
  color: var(--ink);
}

.nav--scrolled .nav__lang {
  background: var(--brand-xlight);
}

.nav--scrolled .nav__lang-btn {
  color: var(--muted);
}

.nav--scrolled .nav__lang-btn--active {
  background: var(--gold);
  color: var(--ink);
}

/* Hamburger — mobile */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-md);
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav--scrolled .nav__hamburger-line {
  background: var(--ink);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-dark);
  z-index: var(--z-overlay);
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slower);
}

.nav__mobile-menu.is-open {
  transform: translateX(0);
}

.nav__mobile-link {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--white);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  min-height: 56px;
  display: flex;
  align-items: center;
}

.nav__mobile-link:hover {
  color: var(--gold);
  padding-left: var(--space-4);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* PLACEHOLDER: Replace with real BASNPS campus photo from zip.
     Recommended: science-lab or primary-pupils image for BASNPS Simbock.
     African-school contextual stock acceptable as interim — not Western stock. */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 45, 107, 0.82) 0%,
    rgba(14, 73, 165, 0.65) 50%,
    rgba(9, 45, 107, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  padding-top: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__subheadline {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-10);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Info panel — right side of hero */
.hero__info-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 165, 90, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(12px);
}

.hero__info-stat {
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__info-stat:last-child {
  border-bottom: none;
}

.hero__info-number {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero__info-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-1);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.4; transform: scaleY(0.5); }
}

/* ============================================================
   8. MARQUEE TICKER
   ============================================================ */

.ticker {
  background: var(--brand-dark);
  border-top: 1px solid rgba(200, 165, 90, 0.2);
  border-bottom: 1px solid rgba(200, 165, 90, 0.2);
  overflow: hidden;
  padding: var(--space-3) 0;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  gap: var(--space-12);
  animation: ticker 30s linear infinite;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.ticker__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   9. STATS SECTION
   ============================================================ */

.stats {
  background: var(--brand-dark);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-4);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-item:hover::after {
  opacity: 1;
}

/* Counter element — IntersectionObserver target */
[data-counter] {
  font-family: var(--font-accent);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

/* ============================================================
   10. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-8);
  min-height: 48px;
  min-width: 44px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

/* Primary — Red */
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: #c73333;
  border-color: #c73333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 62, 62, 0.35);
}

/* Secondary — Blue */
.btn--secondary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn--secondary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 73, 165, 0.35);
}

/* Outline — White (on dark bg) */
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Outline — Brand */
.btn--outline-brand {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--outline-brand:hover {
  background: var(--brand);
  color: var(--white);
}

/* Gold accent button */
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: #b8952f;
  border-color: #b8952f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Large variant */
.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10);
  min-height: 56px;
}

/* Small variant */
.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
  min-height: 36px;
}

/* ============================================================
   11. CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  /* All images use WebP with loading="lazy" and srcset — see HTML */
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-6);
}

.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-xlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

/* Campus card variants */
.card--campus {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.card--campus .card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card--campus .card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--campus:hover .card__bg img {
  transform: scale(1.06);
}

.card--campus .card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 45, 107, 0.92) 0%, transparent 55%);
  z-index: 1;
}

.card--campus.basnps .card__overlay {
  background: linear-gradient(to top, rgba(14, 73, 165, 0.92) 0%, transparent 55%);
}

.card--campus .card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
}

/* Gold bar on hover — campus card */
.card--campus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
  z-index: 3;
}

.card--campus:hover::after {
  transform: scaleY(1);
}

/* Programme card */
.card--programme {
  position: relative;
  overflow: hidden;
  border: none;
}

.card--programme .card__icon {
  width: 56px;
  height: 56px;
  background: var(--brand-xlight);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: background var(--transition-base);
}

.card--programme:hover .card__icon {
  background: var(--brand);
}

.card--programme:hover .card__icon svg {
  color: var(--white);
}

/* ============================================================
   12. SECTION HEADER
   ============================================================ */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-header--on-dark h2 {
  color: var(--white);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: var(--leading-relaxed);
}

.section-header--on-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   13. GALLERY / MASONRY
   ============================================================ */

.gallery {
  columns: 3;
  column-gap: var(--space-4);
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 73, 165, 0);
  transition: background var(--transition-base);
}

.gallery__item:hover::after {
  background: rgba(14, 73, 165, 0.3);
}

/* Gallery filters */
.gallery-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.gallery-filter {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* ============================================================
   14. TESTIMONIALS
   ============================================================ */

.testimonial {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
  pointer-events: none;
}

.testimonial__body {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--ink2);
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   15. ADMISSIONS / CTA SECTION
   ============================================================ */

.admissions {
  background: var(--red);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.admissions::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.admissions::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.admissions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.admissions__heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  color: var(--white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.admissions__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.admissions__urgency {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-8);
}

.admissions__urgency-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Admissions form */
.admissions-form {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.admissions-form__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 73, 165, 0.12);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7494' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

/* ============================================================
   16. WHATSAPP FLOAT BUTTON
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(229, 62, 62, 0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  min-height: 52px;
  animation: floatPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(229, 62, 62, 0.55);
}

.whatsapp-float__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(229, 62, 62, 0.45); }
  50%       { box-shadow: 0 4px 32px rgba(229, 62, 62, 0.65); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================================
   17. FOOTER
   ============================================================ */

.footer {
  background: var(--brand-dark);
  padding: var(--space-24) 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer__link:hover {
  color: var(--white);
  padding-left: var(--space-2);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.footer__contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer__legal-link:hover {
  color: var(--white);
}

/* ============================================================
   18. BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.breadcrumb__item {
  font-size: var(--text-sm);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__item a {
  color: var(--brand);
  transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
  color: var(--brand-light);
}

.breadcrumb__separator {
  color: var(--border);
}

/* ============================================================
   19. PAGE LOADER
   ============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--brand);
  z-index: var(--z-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-6);
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__logo {
  width: 72px;
  height: 72px;
  background: var(--gold);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.page-loader__bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.page-loader__bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  animation: loaderBar 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

@keyframes loaderBar {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* ============================================================
   20. UTILITIES
   ============================================================ */

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

.hidden { display: none !important; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

.rounded-full { border-radius: var(--radius-full); }

.gold-bar {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   21. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__info-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .hero__info-stat {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4);
    text-align: center;
  }

  .hero__info-stat:last-child {
    border-right: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-item:nth-child(even),
  .stat-item:last-child {
    border-bottom: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .admissions__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .gallery {
    columns: 2;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: var(--nav-height-sm);
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: var(--space-16);
  }

  .hero__content {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-8);
  }

  .hero__info-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    padding: var(--space-4);
  }

  .hero__info-stat {
    border-right: none;
    text-align: center;
    padding: var(--space-3) var(--space-2);
  }

  .hero__info-number {
    font-size: var(--text-xl);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: var(--space-6) var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .gallery {
    columns: 2;
    column-gap: var(--space-2);
  }

  .gallery__item {
    margin-bottom: var(--space-2);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .admissions-form {
    padding: var(--space-6);
  }

  .testimonial {
    padding: var(--space-6);
  }

  .whatsapp-float {
    bottom: var(--space-5);
    right: var(--space-4);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-auto-fit-sm,
  .grid-auto-fit-md,
  .grid-auto-fit-lg {
    grid-template-columns: 1fr;
  }

  /* ============================================================
     CRITICAL FIX — collapse inline multi-column grids on mobile
     Many sections use inline style="display:grid;grid-template-
     columns:1fr 1fr" (or repeat(3,1fr), repeat(5,1fr), 1fr auto,
     auto 1fr, 1fr 1fr 1fr) for desktop side-by-side layouts.
     These have no built-in responsive behaviour and were causing
     horizontal overflow / content cut off on phones. Force all of
     them to a single stacked column below 768px. Attribute
     selectors + !important are required to override inline styles.
     ============================================================ */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* When a two-column grid collapses, remove any order overrides
     used for desktop image/text reversal so content reads
     top-to-bottom in natural source order on mobile. */
  [style*="grid-template-columns:1fr 1fr"] [style*="order:2"] {
    order: 2 !important;
  }
  [style*="grid-template-columns:1fr 1fr"] [style*="order:1"] {
    order: 1 !important;
  }
}

/* ============================================================
   Tablet refinement — 769px to 1024px
   Soften 3/5-column grids to 2 columns before the full mobile
   single-column collapse above takes over at 768px.
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Small mobile — ≤ 360px */
@media (max-width: 360px) {
  .hero__info-panel {
    grid-template-columns: 1fr;
  }

  .gallery {
    columns: 1;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. PRINT
   ============================================================ */

@media print {
  .nav,
  .whatsapp-float,
  .page-loader,
  .ticker,
  .hero__scroll {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* ============================================================
   END OF main.css — Blessed Group of Schools
   BASNPS / BASHS — Yaoundé, Cameroon
   www.blessedgroupofschools.com
   ============================================================ */
