/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #626262;
  --navy-dark: #3d3d3d;
  --navy-light: #7a7a7a;
  --gold: #bdffbd;
  --gold-light: #d9ffd9;
  --gold-dark: #3a8c3a;
  --white: #ffffff;
  --grey-50: #f8f8f8;
  --grey-100: #f2f2f2;
  --grey-200: #e8e8e8;
  --grey-300: #d0d0d0;
  --grey-500: #888888;
  --grey-700: #4a4a4a;
  --grey-900: #222222;
  --green: #2d8c5e;
  --green-light: #e8f7f0;
  --amber: #9b7c0d;
  --amber-light: #d4a224;
  --amber-tint: rgba(155, 124, 13, 0.12);
  --red: #c0392b;
  --red-light: #fdf0ef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ===== UTILITY CLASSES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

.section-tag {
  display: inline-block;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(155, 124, 13, 0.22);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--grey-700);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(189,255,189,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189,255,189,0.45);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(98,98,98,0.3);
}
.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98,98,98,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ── Hero CTA breathing animation ── */
@keyframes breathe-primary {
  0%, 100% { filter: brightness(1)    drop-shadow(0 0  0px rgba(189,255,189,0.00)); }
  50%       { filter: brightness(1.1) drop-shadow(0 4px 20px rgba(189,255,189,0.70)); }
}
@keyframes breathe-ghost {
  0%, 100% { filter: brightness(1)    drop-shadow(0 0  0px rgba(255,255,255,0.00)); }
  50%       { filter: brightness(1.12) drop-shadow(0 4px 18px rgba(255,255,255,0.42)); }
}
.btn-breathe-primary {
  animation: breathe-primary 3.2s ease-in-out infinite;
}
.btn-breathe-ghost {
  animation: breathe-ghost 3.2s ease-in-out 1.6s infinite;
}
.btn-breathe-primary:hover,
.btn-breathe-ghost:hover {
  animation-play-state: paused;
  filter: none;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #7a6209;
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 3px solid #5c4808;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-links a { color: rgba(255,255,255,0.80); transition: var(--transition); }
.top-bar-links a:hover { color: #f5d66b; }
.top-bar-contact { display: flex; gap: 20px; }
.top-bar-contact a { color: rgba(255,255,255,0.80); transition: var(--transition); }
.top-bar-contact a:hover { color: #f5d66b; }

/* ===== HEADER / NAV (Bootstrap 5) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
}
.site-header .navbar {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 14px 0;
  /* Smoothly animate every property that changes when .scrolled is toggled */
  transition:
    background-color .45s ease,
    box-shadow      .45s ease,
    -webkit-backdrop-filter .45s ease,
    backdrop-filter .45s ease;
}

/* ── Scroll-aware header ─────────────────────────────────────────────────
   At rest: solid white navbar with black/dark text.
   On scroll: transparent navbar (with subtle blur for legibility) and
   every nav link / logo line switches to the theme green colour. */
.site-header.scrolled .navbar {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
}
/* Animate the colour transition on every text element in the header */
.site-header .navbar-nav .nav-link,
.site-header .logo-name,
.site-header .logo-tagline,
.site-header .navbar-toggler,
.site-header .navbar-toggler i,
.site-header .portal-btn {
  transition: color .4s ease, background-color .4s ease, border-color .4s ease, text-shadow .4s ease;
}
/* Deep gold with soft layered shadow when scrolled */
.site-header.scrolled .navbar-nav .nav-link,
.site-header.scrolled .logo-name,
.site-header.scrolled .logo-tagline,
.site-header.scrolled .navbar-toggler i {
  color: #7a6209;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.30),       /* crisp drop shadow for legibility */
    0 0 12px rgba(122, 98, 9, 0.30);     /* soft gold ambient glow */
}
.site-header.scrolled .navbar-nav .nav-link:hover,
.site-header.scrolled .navbar-nav .nav-link.active,
.site-header.scrolled .navbar-nav .nav-link.show {
  color: #7a6209;
  background: rgba(122, 98, 9, .10);
}
.site-header.scrolled .navbar-nav .nav-link.active::after { background: #7a6209; }
/* Logo */
.navbar-brand.logo-wrap,
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 0;
}
.logo-icon {
  height: 62px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-icon img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  font-style: italic;
}
/* Nav links — scoped to Bootstrap navbar */
.navbar-nav { gap: 2px; }
.navbar-nav .nav-link {
  padding: 8px 13px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--grey-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--navy);
  background: var(--grey-100);
}
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
/* Suppress Bootstrap's auto-generated caret on our custom trigger */
.nav-mega-trigger.dropdown-toggle::after { display: none; }
/* Navbar toggler (replaces custom hamburger) */
.navbar-toggler {
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-toggler:focus { box-shadow: none; outline: none; }
.navbar-toggler i { font-size: 1.2rem; color: var(--navy); transition: var(--transition); }
.navbar-toggler[aria-expanded="true"] i::before { content: '\f00d'; }
/* Header actions (portal button area) */
.header-actions { display: flex; align-items: center; gap: 10px; }
.portal-btn {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(98,98,98,0.3);
  white-space: nowrap;
  text-decoration: none;
}
.portal-btn:hover {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98,98,98,0.4);
  color: var(--white);
}
.portal-btn .dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
/* Mobile collapsed nav */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--grey-200);
    padding: 10px 0 16px;
    margin-top: 6px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .navbar-nav { width: 100%; padding: 0 8px; }
  .navbar-nav .nav-link { padding: 10px 16px; border-radius: var(--radius-sm); white-space: normal; }
  .header-actions { padding: 12px 24px 0; }
}

/* ===== MEGA MENU (Bootstrap-integrated) ===== */
.mega-arrow {
  font-size: 0.65rem;
  color: var(--grey-500);
  margin-left: 2px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}
.mega-dropdown:hover .mega-arrow,
.mega-dropdown.show .mega-arrow {
  transform: rotate(180deg);
  color: var(--navy);
}
/* ---- Desktop: floating panel ---- */
@media (min-width: 992px) {
  /* Anchor the mega panel to the navbar's .container (not each trigger button).
     This keeps the panel centered on the navbar — so menus triggered from the
     right edge (Pay Fees, etc.) no longer overflow past the viewport. */
  .site-header .navbar .container { position: relative; }
  .mega-dropdown { position: static; }

  .mega-menu.dropdown-menu {
    display: block !important;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-14px);
    /* min() keeps the panel inside the viewport on any screen size,
       leaving 16px breathing room on each side as the safety margin. */
    width: min(960px, calc(100vw - 32px));
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 28px 72px rgba(0,0,0,0.14), 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid var(--grey-200) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2000;
    margin: 0;
    padding: 0 !important;
    /* Scrollable when the menu is taller than the viewport (long menus on
       short laptops, zoomed-in browsers, etc.). The cap accounts for the
       top bar + nav row + a 32px safety margin below. */
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(31,122,31,0.35) transparent;
  }
  .mega-menu.dropdown-menu::-webkit-scrollbar { width: 8px; }
  .mega-menu.dropdown-menu::-webkit-scrollbar-track { background: transparent; }
  .mega-menu.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(31,122,31,0.32);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .mega-menu.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(31,122,31,0.55);
    background-clip: padding-box;
    border: 2px solid transparent;
  }
  /* The little ▲ pointer used to align to each trigger — now that the panel
     is centered on the navbar (not the trigger) it's misleading. Hide it. */
  .mega-menu.dropdown-menu::before { display: none; }

  .mega-menu.dropdown-menu.show,
  .mega-dropdown:hover > .mega-menu.dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }
}
/* ---- Mobile: inline accordion ---- */
@media (max-width: 991.98px) {
  .mega-menu.dropdown-menu {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid var(--grey-200) !important;
    border-radius: 12px !important;
    background: var(--grey-50) !important;
    margin: 6px 0 !important;
    padding: 0 !important;
    /* Cap the inline expanded menu so it doesn't push the rest of the nav
       way off-screen — users scroll inside it instead. */
    max-height: 60vh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(31,122,31,0.35) transparent;
    -webkit-overflow-scrolling: touch;
  }
  .mega-menu.dropdown-menu::-webkit-scrollbar { width: 6px; }
  .mega-menu.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(31,122,31,0.35);
    border-radius: 999px;
  }
  .mega-menu.dropdown-menu::before { display: none; }
  .mega-grid { grid-template-columns: 1fr !important; gap: 4px !important; }
  .mega-inner { padding: 16px !important; }
  .mega-header-bar { display: none !important; }
  .mega-item { padding: 10px 12px; }
  .mega-arrow { display: inline-block; }

  /* Also make the whole collapsed navbar list scrollable so the menu items
     and any expanded mega panel always remain reachable. */
  .navbar-collapse {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* ---- Shared panel internals ---- */
.mega-inner { padding: 30px 34px; }
.mega-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--grey-100);
}
.mega-header-bar::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.mega-header-bar span {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--grey-500);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 11px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--grey-900);
  border: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
  cursor: pointer;
  min-width: 0; /* lets flex children shrink properly inside the grid cell */
}
.mega-item:hover {
  background: rgba(189,255,189,0.2);
  border-color: rgba(58,140,58,0.3);
  box-shadow: 0 6px 20px rgba(189,255,189,0.32);
}
.mega-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
  will-change: transform;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.mega-item:hover .mega-icon {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}
.mega-text { min-width: 0; flex: 1; }
.mega-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.mega-item:hover .mega-title { color: var(--gold-dark); }
.mega-desc {
  font-size: 0.7rem;
  color: var(--grey-500);
  line-height: 1.5;
  /* Clamp to 3 lines to keep cell heights consistent across a 4-col row */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured "open full page" link at top of mega panel */
.mega-featured-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(189,255,189,0.18), rgba(189,255,189,0.06));
  border: 1px solid rgba(58,140,58,0.22);
  text-decoration: none;
  color: var(--grey-900);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.mega-featured-item:hover {
  background: rgba(189,255,189,0.32);
  border-color: rgba(58,140,58,0.45);
  box-shadow: 0 6px 20px rgba(189,255,189,0.3);
  color: var(--grey-900);
}
.mega-featured-item .mega-icon {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.mega-featured-item .mega-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.mega-featured-item .mega-desc {
  font-size: 0.78rem;
}
.mega-featured-arrow {
  margin-left: auto;
  color: var(--gold-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.mega-featured-item:hover .mega-featured-arrow {
  transform: translateX(4px);
}
@media (max-width: 991.98px) {
  .mega-featured-item { margin-bottom: 12px; }
  .mega-featured-arrow { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0e1a0e; /* fallback while video loads */
}

/* ── YouTube background video ── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* scale(1.12) pushes the YouTube logo/watermark outside overflow:hidden */
  transform: translate(-50%, -50%) scale(1.12);
  /* scale to cover any viewport while keeping 16:9 ratio */
  width: 100vw;
  height: 56.25vw;   /* 16:9 → width × (9/16) */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 → height × (16/9) */
  border: none;
  pointer-events: none;
}

/* ── Gradient overlay ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* left-to-right dark-to-tinted so text on left pops;
     radial vignette deepens all four edges                */
  background:
    linear-gradient(
      112deg,
      rgba(4, 8, 4, 0.97) 0%,
      rgba(10, 24, 10, 0.88) 35%,
      rgba(6, 14, 6, 0.80) 62%,
      rgba(3, 6, 3, 0.92) 100%
    ),
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(189,255,189,0.10);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(155, 124, 13, 0.55);
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--gold); }

/* Per-word spans created by the physics animation */
.hero-word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
  min-height: 3.4em; /* reserves space so layout doesn't shift as text types in */
}
.type-cursor {
  color: var(--gold);
  font-weight: 300;
  animation: type-blink 0.7s step-end infinite;
}
@keyframes type-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero services (replaces numeric stats) */
.hero-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  flex-wrap: initial;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(189,255,189,0.18), rgba(189,255,189,0.06));
  border: 1px solid rgba(189,255,189,0.32);
  color: #bdffbd;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.service-item:hover .service-icon {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(189,255,189,0.28), rgba(189,255,189,0.10));
  box-shadow: 0 10px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.service-item .stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .hero-services { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── Floating side rail (Tutors + Campus Tour) ─────────────────────────── */
.side-rail {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.side-rail-item {
  pointer-events: auto;
  width: 46px;
  height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #fff !important;
  border-radius: 14px 0 0 14px;
  box-shadow: -6px 8px 18px rgba(15, 23, 42, 0.18);
  transform: translateX(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, width 0.25s ease;
}
.side-rail-item:hover {
  transform: translateX(0);
  box-shadow: -12px 12px 26px rgba(15, 23, 42, 0.32);
}
.side-rail-item i { font-size: 1.05rem; }
.side-rail-item span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.side-rail-tutors { background: linear-gradient(135deg, #1f7a1f, #166534); }
.side-rail-tour   { background: linear-gradient(135deg, #b08400, #92560a); }

/* ── Desktop: side-rail-items is a transparent passthrough wrapper ── */
.side-rail-items { display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.side-rail-items > * { pointer-events: auto; }
.side-rail-toggle { display: none; }

/* ── Mobile: anchored at vertical center, expands DOWNWARD from the toggle ── */
@media (max-width: 768px) {
  .side-rail {
    top: 50%;                       /* anchor at vertical center */
    transform: translateY(-50%);    /* true centering */
    bottom: auto;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
  }

  /* Toggle button — small square that always sits at vertical center */
  .side-rail-toggle {
    display: flex;
    pointer-events: auto;
    width: 38px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f7a1f, #166534);
    color: #fff;
    border: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 6px 14px rgba(15, 23, 42, 0.30);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.25s ease;
    padding: 0;
    position: relative;
    z-index: 2;
  }
  .side-rail-toggle i { transition: transform 0.3s ease; }

  /* Items: positioned BELOW the toggle, slide in from right when expanded.
     This guarantees they never hide under the top navbar. */
  .side-rail-items {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    opacity: 0;
    transform: translateX(60px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s ease;
  }
  .side-rail-item {
    width: 46px;
    height: 150px;                  /* taller so "CAMPUS TOUR" fits vertically */
    gap: 8px;                       /* tighter icon→text spacing */
    transform: none;
    border-radius: 14px 0 0 14px;
    flex-direction: column;
    padding: 6px 0;                 /* small top/bottom breathing room */
  }
  .side-rail-item:hover { transform: none; }
  .side-rail-item i { font-size: 0.92rem; }   /* slightly smaller icon */
  .side-rail-item span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.64rem;             /* down from 0.72 — fits long labels */
    letter-spacing: 0.04em;         /* tighter tracking */
  }

  /* ── Expanded state ── */
  .side-rail.expanded .side-rail-items {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  .side-rail.expanded .side-rail-toggle i { transform: rotate(180deg); }
  .side-rail.expanded .side-rail-toggle {
    background: linear-gradient(135deg, #166534, #14532d);
  }
}

/* ── Hero CTAs on mobile: two compact pill buttons, side-by-side,
   on every phone (portrait + landscape). Never stack, never wrap
   mid-label. Padding & font scale down as the viewport shrinks so
   both buttons fit on a single row down to ~320px. */
@media (max-width: 600px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 36px;
  }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: auto;
    padding: 11px 18px !important;
    font-size: 0.86rem !important;
    white-space: nowrap;
  }
  .hero-actions .btn i { font-size: 0.85em; }
}

/* iPhone SE-class screens — shave a touch more so both pills still
   fit comfortably on a single row at 320–375px viewport widths. */
@media (max-width: 380px) {
  .hero-actions { gap: 8px; margin-bottom: 30px; }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    padding: 10px 14px !important;
    font-size: 0.80rem !important;
  }
}

.hero-image {
  display: none; /* replaced by full-bleed video */
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

/* ===== AUDIENCE CARDS ===== */
.audience-section {
  padding: 80px 0;
  background: var(--grey-50);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--grey-200);
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--navy), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.audience-card:hover::before { transform: scaleX(1); }

.audience-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--gold);
}
.audience-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.audience-card p {
  color: var(--grey-700);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ===== NEWS & EVENTS PREVIEW ===== */
.news-section { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.news-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-body { padding: 24px; }
.news-date { font-size: 0.78rem; color: var(--grey-500); margin-bottom: 8px; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 0.88rem; color: var(--grey-700); line-height: 1.6; margin-bottom: 16px; }
.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.news-link:hover { color: var(--amber); gap: 10px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-name { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.footer-brand .logo-tagline { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(189,255,189,0.1), transparent 70%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; font-size: 1.05rem; position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  position: relative;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ===== ABOUT PAGE ===== */
.about-intro { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 480px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.about-badge {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge .year { font-size: 1.6rem; font-family: 'DM Serif Display', serif; display: block; line-height: 1; }
.about-badge .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--grey-700); line-height: 1.75; margin-bottom: 20px; }
.values-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.value-item { display: flex; align-items: flex-start; gap: 14px; }
.value-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.value-text h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; }
.value-text p { font-size: 0.84rem; color: var(--grey-500); margin: 0; }

.leadership-section { padding: 80px 0; background: var(--grey-50); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.team-avatar {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.team-info { padding: 24px; }
.team-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-info .role { font-size: 0.82rem; color: var(--amber); font-weight: 600; margin-bottom: 10px; display: block; }
.team-info p { font-size: 0.85rem; color: var(--grey-700); line-height: 1.6; }

/* ===== ADMISSIONS ===== */
.steps-section { padding: 80px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(98,98,98,0.3);
}
.step-card h3 { font-size: 1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.85rem; color: var(--grey-700); line-height: 1.6; }

.requirements-section { padding: 80px 0; background: var(--grey-50); }
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.req-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}
.req-card h3 { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--grey-700);
  padding: 10px 14px;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
}
.req-item::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: '\f00c'; color: var(--green); flex-shrink: 0; }

/* ===== ACADEMICS ===== */
.programmes-section { padding: 80px 0; }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.programme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
  transition: var(--transition);
}
.programme-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--gold); }
.programme-icon { font-size: 2.4rem; margin-bottom: 16px; }
.programme-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.programme-card p { font-size: 0.87rem; color: var(--grey-700); line-height: 1.65; margin-bottom: 16px; }
.programme-tag {
  display: inline-block;
  background: var(--grey-100);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  margin: 2px;
}

/* ===== BOARDING ===== */
.boarding-features { padding: 80px 0; }
.boarding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.boarding-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
  text-align: center;
  transition: var(--transition);
}
.boarding-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.boarding-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.boarding-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.boarding-card p { font-size: 0.87rem; color: var(--grey-700); line-height: 1.6; }

/* ===== PAY FEES ===== */
.fees-section { padding: 80px 0; }
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.fee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
  overflow: hidden;
  transition: var(--transition);
}
.fee-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.fee-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 24px;
  text-align: center;
}
.fee-card-header h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.fee-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
}
.fee-period { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.fee-card-body { padding: 24px; }
.fee-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.fee-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--grey-100); font-size: 0.88rem; }
.fee-item .label { color: var(--grey-700); }
.fee-item .amount { font-weight: 600; color: var(--navy); }

.payment-section { padding: 80px 0; background: var(--grey-50); }
.payment-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.payment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}
.payment-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.payment-card p { font-size: 0.88rem; color: var(--grey-700); line-height: 1.65; margin-bottom: 24px; }

/* ===== CAMPUS TOUR ===== */
.tour-gallery { padding: 80px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: var(--white); font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif; }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--grey-900);
  transition: var(--transition);
  background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(98,98,98,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .programme-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .hero-image { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
  .boarding-grid { grid-template-columns: 1fr; }
  .fees-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .programme-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  /* .hero-actions stays inline (two pills side-by-side) — see the dedicated
     hero CTA block above for the scaled padding/font on small phones. */
}

/* ===== FEE ENQUIRY SECTION ===== */
.fee-enquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.fee-enquiry-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.fee-enquiry-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--amber-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.9rem;
  color: var(--amber);
}
.fee-enquiry-card h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
.fee-enquiry-card > p { color: var(--grey-600); font-size: 0.9rem; line-height: 1.75; margin-bottom: 28px; }
.fee-enquiry-card .feq-group { text-align: left; margin-bottom: 18px; }
.fee-enquiry-card .feq-group label { display: block; font-weight: 600; font-size: 0.84rem; color: var(--navy); margin-bottom: 7px; letter-spacing: 0.01em; }
.fee-enquiry-card .feq-group select,
.fee-enquiry-card .feq-group input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  color: var(--grey-900);
  background: var(--grey-50);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
}
.fee-enquiry-card .feq-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b7c0d' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.fee-enquiry-card .feq-group select:focus,
.fee-enquiry-card .feq-group input[type="email"]:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3.5px var(--amber-tint);
  background: var(--white);
}
.fee-enquiry-card .feq-group input[type="email"]::placeholder { color: var(--grey-400); }
#feeSubmitBtn { width: 100%; justify-content: center; margin-top: 8px; font-size: 0.97rem; }
.fee-privacy-note {
  margin-top: 16px;
  font-size: 0.77rem;
  color: var(--grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fee-privacy-note i { color: var(--amber); }

.fee-enquiry-info { display: flex; flex-direction: column; gap: 16px; }
.fee-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.fee-info-item:hover { border-color: var(--amber); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.fee-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--amber-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--amber);
  flex-shrink: 0;
}
.fee-info-item h4 { font-size: 0.93rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.fee-info-item p { font-size: 0.82rem; color: var(--grey-600); line-height: 1.65; margin: 0; }
.fee-info-item p a { color: var(--amber); text-decoration: none; }
.fee-info-item p a:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .fee-enquiry-wrap { grid-template-columns: 1fr; gap: 32px; }
  .fee-enquiry-card { padding: 32px 24px; }
}

/* ===== LOTTIE SUCCESS MODAL ===== */
.lottie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: lottieOverlayIn 0.28s ease forwards;
}
@keyframes lottieOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.lottie-modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px 36px;
  text-align: center;
  max-width: 400px;
  width: 92%;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  animation: lottieCardIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
}
@keyframes lottieCardIn { from { transform: translateY(44px) scale(0.94); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.lottie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-500);
  font-size: 0.85rem;
  transition: background 0.18s, color 0.18s;
}
.lottie-modal-close:hover { background: var(--grey-200); color: var(--navy); }
.lottie-modal-card h3 { font-size: 1.6rem; color: var(--navy); margin: 6px 0 10px; }
.lottie-modal-card p { color: var(--grey-600); font-size: 0.9rem; line-height: 1.65; margin-bottom: 26px; }
.lottie-modal-card .btn { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────────────────
   SITEWIDE RESPONSIVE CATCH-ALL FOR INLINE GRIDS
   ─────────────────────────────────────────────────────────────────────
   Many older pages declare grids inline as
   `style="display:grid; grid-template-columns:repeat(3,1fr);..."`.
   These attribute selectors auto-collapse those grids on tablet and
   phone breakpoints WITHOUT having to touch every page individually.
   Page-specific overrides (e.g. ct-facilities-grid in campus-tour.php)
   still win because they're more specific.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  /* Tighten gaps on inline grids — fewer columns means more space per row */
  [style*="grid-template-columns:repeat"],
  [style*="grid-template-columns: repeat"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    gap: 16px !important;
  }
}
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   .steps-grid (admissions.php) — refined responsive breakpoints
   ─────────────────────────────────────────────────────────────────────
   The original CSS only collapsed 4→2 at 768px and 2→1 at 480px, which
   left small laptops with cramped 4-column cards and most phones with
   squished 2-column cards. Tighter breakpoints + tighter padding fix it.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  .step-card { padding: 26px 22px !important; }
  .step-num {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
    margin-bottom: 14px;
  }
}
@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .step-card {
    padding: 22px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .step-card .step-num {
    margin: 0 0 12px 0;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .step-card h3 { font-size: 1.05rem; }
  .step-card p { font-size: 0.88rem; }
}
