/* ==========================================================================
   ST. JOSEPH'S MATRICULATION HIGHER SECONDARY SCHOOL
   Ultra-Modern, Sleek, Professional Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Core Theme Colors */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);

  --text-primary: #0a1428;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-focus: #0f2b66;

  /* Brand Colors */
  --primary: #0c204c;
  --primary-light: #163678;
  --primary-subtle: #edf3ff;
  --accent-gold: #0d9488;
  --accent-gold-light: #ccfbf1;
  --accent-gold-glow: rgba(13, 148, 136, 0.25);
  --accent-red: #dc2626;
  --accent-emerald: #16a34a;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Pro 0.5rem Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(12, 32, 76, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(12, 32, 76, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(12, 32, 76, 0.12);
  --shadow-glow: 0 0 24px rgba(13, 148, 136, 0.3);

  /* Transitions */
  --tr-fast: 0.16s ease;
  --tr-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4 Distinct Hero Themes */
/* 1. Royal Navy Collegiate (Rich deep blue gradient) */
[data-hero="royal-navy"] .hero-wrapper {
  background: linear-gradient(145deg, #07132b 0%, #0c204c 45%, #162f6b 100%);
  color: #ffffff;
}
[data-hero="royal-navy"] .hero-title { color: #ffffff; }
[data-hero="royal-navy"] .hero-lead { color: #cbd5e1; }
[data-hero="royal-navy"] .hero-stats { border-top-color: rgba(255, 255, 255, 0.15); }
[data-hero="royal-navy"] .stat-item h4 { color: #ffffff; }
[data-hero="royal-navy"] .badge-tag { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #5eead4; }
[data-hero="royal-navy"] .hero-wrapper .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
[data-hero="royal-navy"] .hero-wrapper .btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #ffffff; }

/* 2. Warm Emerald Foothills */
[data-hero="emerald"] .hero-wrapper {
  background: linear-gradient(145deg, #062b1b 0%, #0d4a30 50%, #156644 100%);
  color: #ffffff;
}
[data-hero="emerald"] .hero-title { color: #ffffff; }
[data-hero="emerald"] .hero-lead { color: #d1fae5; }
[data-hero="emerald"] .hero-stats { border-top-color: rgba(255, 255, 255, 0.15); }
[data-hero="emerald"] .stat-item h4 { color: #ffffff; }
[data-hero="emerald"] .stat-item h4 span { color: #5eead4; }
[data-hero="emerald"] .badge-tag { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #99f6e4; }
[data-hero="emerald"] .hero-wrapper .btn-primary { background: #062b1b; border-color: #10b981; }
[data-hero="emerald"] .hero-wrapper .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }

/* 3. Golden Sunrise Prestige */
[data-hero="golden-sunrise"] .hero-wrapper {
  background: linear-gradient(135deg, #14122b 0%, #241d52 40%, #3a2a78 75%, #4c3a94 100%);
  color: #ffffff;
}
[data-hero="golden-sunrise"] .hero-title { color: #ffffff; }
[data-hero="golden-sunrise"] .hero-lead { color: #cffafe; }
[data-hero="golden-sunrise"] .hero-stats { border-top-color: rgba(255, 255, 255, 0.15); }
[data-hero="golden-sunrise"] .stat-item h4 { color: #ffffff; }
[data-hero="golden-sunrise"] .stat-item h4 span { color: #2dd4bf; }
[data-hero="golden-sunrise"] .badge-tag { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #cffafe; }
[data-hero="golden-sunrise"] .hero-wrapper .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }

/* 4. Warm Ivory & Blue (Subtle, balanced daylight) */
[data-hero="warm-ivory"] .hero-wrapper {
  background: linear-gradient(175deg, #fdfbf7 0%, #f3ede2 60%, #e8e0d1 100%);
  color: #0c204c;
}
[data-hero="warm-ivory"] .hero-title { color: #0c204c; }
[data-hero="warm-ivory"] .hero-lead { color: #475569; }
[data-hero="warm-ivory"] .hero-stats { border-top-color: rgba(12, 32, 76, 0.15); }
[data-hero="warm-ivory"] .stat-item h4 { color: #0c204c; }
[data-hero="warm-ivory"] .badge-tag { background: #ffffff; border-color: #d8cebe; color: #0c204c; }
[data-hero="warm-ivory"] .hero-wrapper .btn-outline { color: #0c204c; border-color: #0c204c; }

/* 5. Classic Light (the original light look) */
[data-hero="classic"] .hero-wrapper {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
  color: var(--text-primary);
}
[data-hero="classic"] .hero-title { color: var(--text-primary); }
[data-hero="classic"] .hero-lead { color: var(--text-secondary); }
[data-hero="classic"] .hero-stats { border-top-color: var(--border-subtle); }
[data-hero="classic"] .stat-item h4 { color: var(--text-primary); }
[data-hero="classic"] .badge-tag { background: var(--bg-surface); border-color: var(--border-subtle); color: var(--primary); }
[data-hero="classic"] .hero-wrapper .btn-outline { color: var(--text-primary); border-color: var(--primary); }
/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: #070d18;
  --bg-surface: #0e1726;
  --bg-surface-alt: #141f33;
  --bg-surface-elevated: #18253d;
  --bg-glass: rgba(14, 23, 38, 0.92);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #091224;

  --border-subtle: #1e293b;
  --border-focus: #14b8a6;

  --primary: #1e3a75;
  --primary-light: #2b519e;
  --primary-subtle: rgba(30, 58, 117, 0.25);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--tr-smooth), color var(--tr-smooth);
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

.container {
  width: min(1260px, calc(100% - 40px));
  margin-inline: auto;
}

/* Top Subtle Announcement Bar */
.top-notice-bar {
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 60;
  transition: all var(--tr-smooth);
}

.top-notice-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 16px;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold-light);
  color: #115e59;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .notice-pill {
  background: rgba(13, 148, 136, 0.2);
  color: #5eead4;
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--tr-fast);
}

.top-contact-link:hover {
  color: var(--accent-gold);
}

.top-contact-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--tr-smooth);
}

.nav-container {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--accent-gold);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr-fast);
}

.brand:hover .brand-crest {
  transform: scale(1.05);
}

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

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* Nav Menu: Strict Single Line with SVG Icons */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color var(--tr-fast);
  white-space: nowrap;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: var(--radius-xs);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--tr-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* PRO Stylish Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--tr-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #ffffff;
  border: 1px solid #115e59;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

/* Distinct Vibrant Teal-Emerald Contact Button */
.btn-contact {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border: 1px solid #115e59;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn-contact:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--tr-fast);
}

.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Section */
.hero-wrapper {
  padding: 52px 0 68px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

/* Hero Theme Switcher Bar */
.hero-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}

.theme-pill-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: #e2e8f0;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.hero-palette-btn {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-xs);
  border: 1.5px solid #ffffff;
  cursor: pointer;
  transition: transform var(--tr-fast);
}

.hero-palette-btn:hover, .hero-palette-btn.active {
  transform: scale(1.22);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-gold);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
}

.stat-item h4 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.stat-item h4 span {
  color: var(--accent-gold);
}

.stat-item p {
  font-size: 0.76rem;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Media Box (Vignette ONLY in borders so center grass is brilliant green) */
.hero-media-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  aspect-ratio: 4/3.3;
  background: #000;
}

.hero-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.15); /* Vibrant green lawn */
  transition: transform var(--tr-smooth);
}

.hero-media-box:hover img {
  transform: scale(1.03);
}

/* Border-only subtle shadow vignette */
.hero-border-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}

.hero-media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 18, 36, 0.8) 100%);
  padding: 20px;
  color: #ffffff;
  z-index: 3;
}

.media-caption-badge {
  display: inline-block;
  background: var(--accent-emerald);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}

.media-caption-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
}

/* Floating Tour Trigger */
.floating-drone-card {
  position: absolute;
  bottom: -16px;
  right: -12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--tr-smooth);
  z-index: 10;
}

.floating-drone-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.play-pulse-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-red);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-drone-card .card-text h5 {
  font-size: 0.82rem;
  font-weight: 800;
}

.floating-drone-card .card-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Motto Ticker Ribbon */
.motto-marquee {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 36px;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-star {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

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

/* Sections */
.section {
  padding: 76px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-surface-alt);
}

.section-header {
  margin-bottom: 40px;
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

[data-theme="dark"] .eyebrow {
  color: var(--accent-gold);
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-xs);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
}

/* 4 Pillars Grid (Sleek SVGs & 0.5rem Radius) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--tr-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--primary);
  transition: all var(--tr-fast);
}

[data-theme="dark"] .pillar-icon-box {
  color: var(--accent-gold);
}

.pillar-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.pillar-card:hover .pillar-icon-box {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Photo Feature Grid (Preserved on Home Page!) */
.photo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--tr-smooth);
}

.photo-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.photo-feature-thumb {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-alt);
}

.photo-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-smooth);
}

.photo-feature-card:hover .photo-feature-thumb img {
  transform: scale(1.06);
}

.photo-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 32, 76, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.photo-feature-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.photo-feature-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.photo-feature-body p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Drone Video Section with Seamless Crossfade Transition (NO black blip!) */
.video-feature-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d2146; /* Matching deep brand color, never black! */
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16/9;
}

.video-feature-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* Smooth 1.5s crossfade */
}

.video-feature-wrapper video.fade-in {
  opacity: 1;
}

/* Video Poster Image Container for seamless fade */
.video-poster-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.video-poster-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster-layer.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Video Dial Control Bar */
.video-dial-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(7, 13, 24, 0.9) 0%, rgba(7, 13, 24, 0.4) 70%, transparent 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--tr-fast);
  z-index: 10;
}

.video-feature-wrapper:hover .video-dial-bar {
  opacity: 1;
}

.dial-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dial-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--tr-fast);
}

.dial-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

.dial-slider-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dial-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-gold);
}

.dial-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.video-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--tr-fast);
  z-index: 5;
}

.video-playing .video-center-btn {
  opacity: 0;
  pointer-events: none;
}

.video-feature-wrapper:hover .video-center-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Category Filter Tabs (Campus Life Page) */
.campus-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.campus-filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.campus-filter-btn:hover, .campus-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .campus-filter-btn:hover,
[data-theme="dark"] .campus-filter-btn.active {
  background: var(--accent-gold);
  color: #091224;
  border-color: var(--accent-gold);
}

/* Uniform Aspect Ratio Photo Film Grid */
.uniform-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.uniform-photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--tr-smooth);
  cursor: pointer;
}

.uniform-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.uniform-photo-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-alt);
}

.uniform-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-smooth);
}

.uniform-photo-card:hover .uniform-photo-thumb img {
  transform: scale(1.06);
}

.uniform-photo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 18, 36, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.uniform-photo-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.uniform-photo-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.uniform-photo-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Timings Widget */
.timing-widget-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.timing-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.timing-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.timing-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timing-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
}

.timing-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

[data-theme="dark"] .timing-badge {
  color: var(--accent-gold);
}

/* Leadership Carousel */
.leadership-carousel-container {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.carousel-slide {
  display: none;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  animation: fadeInSlide 0.35s ease;
}

.carousel-slide.active {
  display: grid;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.leader-portrait-frame {
  width: 100%;
  aspect-ratio: 4/4.8;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface-alt);
}

.leader-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.carousel-dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: var(--radius-xs);
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}

.carousel-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  transition: all var(--tr-fast);
}

.carousel-arrow-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Pulse hint on next button — removed after first interaction */
@keyframes carousel-next-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(12, 32, 76, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(12, 32, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 32, 76, 0); }
}

.carousel-next-btn.pulse-hint {
  animation: carousel-next-pulse 1.6s ease-out infinite;
}

/* Stream Tabs */
.stream-nav-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .tab-btn.active {
  background: var(--accent-gold);
  color: #091224;
  border-color: var(--accent-gold);
}

.stream-panel {
  display: none;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  animation: fadeIn 0.3s ease;
}

.stream-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.subject-pill {
  background: var(--bg-surface-alt);
  color: var(--primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.82rem;
}

[data-theme="dark"] .subject-pill {
  color: var(--accent-gold);
}

/* Footer with Phone & Email below School Name and Mini Google Map */
.site-footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 68px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 32px;
  margin-bottom: 44px;
}

.footer-brand .brand-title {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-top: 10px;
}

/* Direct Contact Links in Footer */
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color var(--tr-fast);
}

.footer-contact-item:hover {
  color: var(--accent-gold);
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-gold);
  stroke-width: 2;
  fill: none;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-map-container {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.footer-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-fast);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  transform: translateY(16px);
  transition: transform var(--tr-smooth);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-alt);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.modal-close:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: var(--bg-surface);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-surface);
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 90px 24px 30px;
  transform: translateY(-100%);
  transition: transform var(--tr-smooth);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-drawer-link.active, .mobile-drawer-link:hover {
  color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-menu { gap: 12px; }
  .nav-link { font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .nav-menu, .header-actions { display: none; }
  .mobile-nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars-grid, .photo-feature-grid, .uniform-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timing-widget-container, .stream-panel.active { grid-template-columns: 1fr; }
  .carousel-slide { grid-template-columns: 1fr; text-align: center; }
  .leader-portrait-frame { max-width: 200px; margin-inline: auto; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 24px); }
  .pillars-grid, .photo-feature-grid, .uniform-gallery-grid, .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .top-notice-bar .container { flex-direction: column; text-align: center; gap: 6px; }
  .floating-drone-card { right: 0; bottom: -12px; left: 0; margin-inline: 12px; }
}


/* ==========================================================================
   ADDITIONS: Hero Micro-Bar, Coloured Pillar Icons, Footer Direct Contact
   ========================================================================== */

/* Hero Micro-Bar (replaces the top notice bar — inline in hero) */
.hero-micro-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.hero-micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.hero-micro-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hero-micro-pill--gold {
  background: rgba(13, 148, 136, 0.22);
  border-color: rgba(13, 148, 136, 0.4);
  color: #99f6e4;
}

[data-hero="warm-ivory"] .hero-micro-pill {
  background: rgba(12, 32, 76, 0.08);
  border-color: rgba(12, 32, 76, 0.18);
  color: #475569;
}
[data-hero="warm-ivory"] .hero-micro-pill--gold {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.25);
  color: #115e59;
}

/* ---- Coloured Pillar Icon Boxes ---- */

.pillar-icon-box--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
[data-theme="dark"] .pillar-icon-box--blue {
  background: rgba(29, 78, 216, 0.18);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}
.pillar-card--learn:hover .pillar-icon-box--blue {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.pillar-icon-box--violet {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
}
[data-theme="dark"] .pillar-icon-box--violet {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}
.pillar-card--live:hover .pillar-icon-box--violet {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.pillar-icon-box--rose {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}
[data-theme="dark"] .pillar-icon-box--rose {
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(251, 113, 133, 0.3);
  color: #fb7185;
}
.pillar-card--love:hover .pillar-icon-box--rose {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.pillar-icon-box--emerald {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}
[data-theme="dark"] .pillar-icon-box--emerald {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}
.pillar-card--serve:hover .pillar-icon-box--emerald {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.pillar-card--learn:hover { border-color: #1d4ed8; box-shadow: var(--shadow-md), 0 0 24px rgba(29,78,216,0.15); }
.pillar-card--live:hover  { border-color: #7c3aed; box-shadow: var(--shadow-md), 0 0 24px rgba(124,58,237,0.15); }
.pillar-card--love:hover  { border-color: #e11d48; box-shadow: var(--shadow-md), 0 0 24px rgba(225,29,72,0.15); }
.pillar-card--serve:hover { border-color: #16a34a; box-shadow: var(--shadow-md), 0 0 24px rgba(22,163,74,0.15); }

.pillar-card--learn { border-left: 3px solid #bfdbfe; }
.pillar-card--live  { border-left: 3px solid #ddd6fe; }
.pillar-card--love  { border-left: 3px solid #fecdd3; }
.pillar-card--serve { border-left: 3px solid #bbf7d0; }

/* ---- Footer Direct Contact Links ---- */
.footer-direct-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.footer-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color var(--tr-fast);
}

.footer-direct-link:hover {
  color: var(--accent-gold);
}

.footer-direct-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}


/* ==========================================================================
   CUTE FOOTER — scalloped edge, friendly chips, pill contact buttons
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 28px;
  padding: 72px 0 32px;
  background-color: var(--primary);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border-top: 0;
}

/* Scalloped "bunting" edge — uses a mask so it follows the light/dark footer colour */
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -19px;
  height: 20px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M0 20V12a20 10 0 0 1 40 0V20z'/%3E%3C/svg%3E") repeat-x bottom left / 40px 20px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M0 20V12a20 10 0 0 1 40 0V20z'/%3E%3C/svg%3E") repeat-x bottom left / 40px 20px;
  pointer-events: none;
}

/* Twinkling sparkles */
.site-footer::after {
  content: '✦   ✧';
  position: absolute;
  top: 30px;
  right: 6%;
  font-size: 1.3rem;
  letter-spacing: 6px;
  color: var(--accent-gold);
  opacity: 0.55;
  animation: footer-twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes footer-twinkle {
  0%, 100% { opacity: 0.25; transform: translateY(0) rotate(0deg); }
  50%      { opacity: 0.8;  transform: translateY(-5px) rotate(8deg); }
}

.site-footer .brand-crest {
  border-radius: 50%;
  border-width: 2px;
  transition: transform var(--tr-smooth);
}
.site-footer .brand:hover .brand-crest { transform: rotate(-8deg) scale(1.08); }

/* Contact links become friendly pill buttons */
.footer-direct-contact { gap: 10px; margin-top: 14px; align-items: flex-start; }
.footer-direct-link {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  max-width: 100%;
  word-break: break-all;
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}
.footer-direct-link:hover {
  background: var(--accent-gold);
  color: #0c204c;
  transform: translateY(-2px) rotate(-1deg);
}

/* Column headings get a little gold dot */
.footer-col h4 { display: flex; align-items: center; gap: 8px; }
.footer-col h4::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.footer-links a {
  display: inline-block;
  transition: transform var(--tr-fast), color var(--tr-fast);
}
.footer-links a:hover { transform: translateX(4px); }

/* Map as a "postcard" */
.footer-map-container {
  border-radius: 18px;
  border: 2px dashed rgba(94, 234, 212, 0.55);
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.footer-map-container iframe { border-radius: 13px; }

/* Bottom row: copyright + motto chips */
.footer-bottom {
  flex-wrap: wrap;
  gap: 14px 20px;
  border-top: 2px dotted rgba(255, 255, 255, 0.18);
  padding-top: 24px;
}
.footer-copy { line-height: 1.7; }
.footer-made { display: block; color: #cbd5e1; }
.footer-heart {
  display: inline-block;
  color: #fb7185;
  animation: footer-heartbeat 1.6s ease-in-out infinite;
}
@keyframes footer-heartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.3); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.2); }
}

.footer-motto { display: flex; flex-wrap: wrap; gap: 8px; }
.motto-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform var(--tr-smooth);
}
.motto-chip:hover { transform: translateY(-3px) rotate(-3deg); }
.motto-chip--learn { background: #dbeafe; color: #1e40af; }
.motto-chip--live  { background: #ede9fe; color: #5b21b6; }
.motto-chip--love  { background: #ffe4e6; color: #9f1239; }
.motto-chip--serve { background: #dcfce7; color: #166534; }


/* ==========================================================================
   MOBILE UX LAYER
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }

/* Sticky bottom action bar (injected by app.js, mobile only) */
.mobile-action-bar { display: none; }

@media (max-width: 900px) {
  /* Header: keep theme toggle reachable on phones */
  .header-actions { display: flex; margin-left: auto; }
  .header-actions .btn-contact { display: none; }
  .theme-toggle-btn, .mobile-nav-toggle { width: 42px; height: 42px; border-radius: 12px; }
  .main-header .brand { min-width: 0; }
  .main-header .brand-text { min-width: 0; }
  .main-header .brand-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 210px);
  }

  /* Drawer: big, friendly, thumb-sized links */
  .mobile-drawer { padding: 88px 18px 28px; overflow-y: auto; }
  .mobile-drawer-links { gap: 8px; }
  .mobile-drawer-link {
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    font-size: 1.02rem;
  }
  .mobile-drawer-link::after { content: '›'; font-size: 1.5rem; line-height: 1; opacity: 0.45; }
  .mobile-drawer-link.active { border-color: var(--accent-gold); background: var(--primary-subtle); }
  .mobile-drawer .btn { min-height: 48px; border-radius: 12px; }

  /* Sticky call / admission bar */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 24px rgba(12, 32, 76, 0.1);
  }
  .mobile-action-bar .btn { min-height: 48px; border-radius: 14px; font-size: 0.92rem; }

  /* Inline two-column layouts used across pages collapse to one column */
  main [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  main [style*="padding: 32px"],
  main [style*="padding: 36px"] { padding: 20px !important; }

  /* Touch devices have no hover — keep video controls visible */
  .video-dial-bar { opacity: 1; }
}

@media (hover: none) {
  .btn:hover, .pillar-card:hover, .photo-feature-card:hover, .uniform-photo-card:hover { transform: none; }
  .video-dial-bar { opacity: 1; }
  .video-feature-wrapper:hover .video-center-btn { opacity: 1; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  html { scroll-padding-top: 76px; }
  .nav-container { height: 64px; }
  .brand-crest { width: 40px; height: 40px; }
  .brand-title { font-size: 0.95rem; }

  /* Rhythm */
  .section { padding: 52px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: clamp(1.65rem, 7.2vw, 2rem); }

  /* Hero */
  .hero-wrapper { padding: 24px 0 44px; }
  .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  .badge-tag { font-size: 0.72rem; line-height: 1.4; border-radius: 12px; align-items: flex-start; padding: 8px 12px; }
  .hero-actions { flex-direction: column; margin-bottom: 26px; }
  .hero-actions .btn { width: 100%; min-height: 48px; border-radius: 12px; font-size: 0.92rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; }
  .stat-item h4 { font-size: 1.1rem; }
  .stat-item p { font-size: 0.68rem; line-height: 1.35; }
  .hero-media-box { border-radius: 16px; aspect-ratio: 4/3.4; }
  .media-caption-title { font-size: 1rem; }
  .floating-drone-card {
    position: relative;
    inset: auto;
    margin: 12px 0 0;
    width: 100%;
  }

  /* Cards */
  .pillar-card { padding: 20px 18px; }
  .photo-feature-thumb { height: 190px; }
  .timing-card { padding: 20px; }
  .timing-row { flex-wrap: wrap; gap: 6px 12px; }
  .leadership-carousel-container { padding: 20px; }
  .carousel-arrow-btn { width: 44px; height: 44px; }
  .stream-panel { padding: 20px; }
  .stream-panel.active { gap: 22px; }

  /* Filters / tabs: single swipeable row */
  .campus-filter-bar, .stream-nav-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .campus-filter-bar::-webkit-scrollbar, .stream-nav-tabs::-webkit-scrollbar { display: none; }
  .campus-filter-btn, .tab-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    min-height: 44px;
    border-radius: 999px;
    padding-inline: 18px;
  }

  /* Video controls */
  .video-dial-bar { padding: 10px 12px; gap: 8px; }
  .dial-controls { gap: 6px; }
  .dial-btn { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; }
  .dial-time { display: none; }
  .video-center-btn { width: 52px; height: 52px; border-radius: 50%; }

  /* Modals become bottom sheets */
  .modal-overlay { align-items: flex-end; padding: 0; }
  #lightboxModal { align-items: center; padding: 16px; }
  .modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(40px);
  }
  .modal-close { width: 38px; height: 38px; border-radius: 50%; }
  .modal-dialog [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 0 !important; }
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 12px 14px;
    border-radius: 10px;
  }
  .modal-dialog .btn { min-height: 48px; }

  /* Footer */
  .site-footer { padding: 60px 0 28px; }
  .site-footer::after { top: 26px; right: 18px; font-size: 1.1rem; }
  .footer-grid { gap: 14px; margin-bottom: 28px; }
  .footer-brand, .footer-col {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 18px;
  }
  .footer-links { gap: 4px; }
  .footer-links a, .footer-links span { padding: 8px 0; }
  .footer-map-container { height: 190px; }
  .footer-direct-link { width: 100%; justify-content: center; padding: 12px 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-motto { order: -1; justify-content: center; }
}

@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr; }
  .brand-title { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .site-footer::after, .footer-heart, .carousel-next-btn.pulse-hint { animation: none; }
  html { scroll-behavior: auto; }
}


/* ==========================================================================
   MODERN UX LAYER — starry heroes, glass, motion, mobile-first polish
   ========================================================================== */

/* ---------- Hero: starfield, aurora glow, shooting stars ---------- */
.hero-wrapper { isolation: isolate; }

.hero-wrapper::after {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(94, 234, 212, 0.20), transparent 70%),
    radial-gradient(45% 45% at 88% 78%, rgba(99, 140, 255, 0.22), transparent 70%),
    radial-gradient(30% 30% at 60% 10%, rgba(167, 139, 250, 0.14), transparent 70%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
[data-hero="warm-ivory"] .hero-wrapper::after,
[data-hero="classic"] .hero-wrapper::after { opacity: 0.45; }

@keyframes aurora-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  background: #e6fffb;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.9));
  animation: star-twinkle var(--t, 3.5s) ease-in-out var(--d, 0s) infinite;
}
.hero-star--big {
  background: #ffffff;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 1));
  animation-name: star-twinkle-big;
}
[data-hero="warm-ivory"] .hero-star,
[data-hero="classic"] .hero-star { background: #0d9488; filter: drop-shadow(0 0 3px rgba(13, 148, 136, 0.7)); }

@keyframes star-twinkle {
  0%, 100% { opacity: 0;    transform: scale(0.4) rotate(0deg); }
  50%      { opacity: 0.95; transform: scale(1)   rotate(45deg); }
}
@keyframes star-twinkle-big {
  0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.15) rotate(90deg); }
}

.hero-meteor {
  position: absolute;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(94, 234, 212, 0));
  transform: rotate(-35deg) translateX(0);
  transform-origin: left center;
  opacity: 0;
  animation: meteor-fall 7s ease-in var(--md, 0s) infinite;
}
.hero-meteor::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(160, 255, 235, 0.9);
}
@keyframes meteor-fall {
  0%   { opacity: 0; transform: rotate(-35deg) translateX(0); }
  4%   { opacity: 1; }
  14%  { opacity: 0; transform: rotate(-35deg) translateX(-420px); }
  100% { opacity: 0; transform: rotate(-35deg) translateX(-420px); }
}
[data-hero="warm-ivory"] .hero-meteor,
[data-hero="classic"] .hero-meteor { display: none; }

.hero-content, .hero-media-box { position: relative; z-index: 2; }

/* Hero entrance */
.hero-content > * { animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-content > *:nth-child(5) { animation-delay: 0.32s; }
.hero-content > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Shimmering gold italic headline */
.hero-title em {
  background: linear-gradient(100deg, #5eead4 0%, #ecfeff 40%, #5eead4 60%, #0d9488 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gold-shimmer 6s linear infinite;
}
[data-hero="warm-ivory"] .hero-title em,
[data-hero="classic"] .hero-title em {
  background-image: linear-gradient(100deg, #0f766e, #14b8a6, #0f766e);
}
@keyframes gold-shimmer { to { background-position: 220% center; } }

/* Hero image floats gently; drone card pulses */
.hero-media-box {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.06);
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.floating-drone-card {
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.play-pulse-btn { border-radius: 50%; position: relative; }
.play-pulse-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-red);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Glassy hero stats + badges */
.hero-stats .stat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--tr-smooth), background var(--tr-smooth);
}
.hero-stats .stat-item:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); }
[data-hero="warm-ivory"] .hero-stats .stat-item,
[data-hero="classic"] .hero-stats .stat-item { background: rgba(255, 255, 255, 0.6); border-color: rgba(12, 32, 76, 0.1); }
.hero-stats { border-top: 0; padding-top: 6px; }
.badge-tag { border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; backdrop-filter: blur(6px); }

/* ---------- Inner-page hero banner (same sky as home) ---------- */
.page-hero { padding: 64px 0 56px; }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .hero-title { margin-bottom: 14px; }
.page-hero .eyebrow { color: #5eead4; margin-bottom: 14px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
[data-hero="warm-ivory"] .page-hero .eyebrow,
[data-hero="classic"] .page-hero .eyebrow { color: #0c204c; background: #fff; border-color: #d8cebe; }
.page-hero .hero-lead { max-width: 680px; }
.page-hero .container > div > * { animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-hero-media { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.25); aspect-ratio: 4/3; background: #000; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---------- Header polish + scroll progress ---------- */
.main-header.scrolled { box-shadow: 0 8px 28px -12px rgba(12, 32, 76, 0.28); }
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #5eead4, #0d9488, #2dd4bf);
  pointer-events: none;
}
.nav-link { border-radius: 999px; }
.btn { border-radius: 999px; padding: 10px 20px; }
.btn-primary { background: linear-gradient(135deg, #163678, #0c204c); }
[data-hero] .hero-actions .btn-primary { background: linear-gradient(135deg, #5eead4, #0d9488); color: #0c204c; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(13, 148, 136, 0.7); }
[data-hero] .hero-actions .btn-primary:hover { filter: brightness(1.08); }
[data-hero="warm-ivory"] .hero-actions .btn-primary,
[data-hero="classic"] .hero-actions .btn-primary { background: linear-gradient(135deg, #163678, #0c204c); color: #fff; }

/* ---------- Cards: softer, rounder, lifted ---------- */
.pillar-card, .photo-feature-card, .uniform-photo-card, .timing-card, .leadership-carousel-container, .stream-panel, .modal-dialog {
  border-radius: 18px;
}
.photo-feature-card, .uniform-photo-card { overflow: hidden; }
.photo-feature-card:hover, .uniform-photo-card:hover { box-shadow: var(--shadow-lg); }
.section-title { text-wrap: balance; }
.hero-title { text-wrap: balance; }

/* Section eyebrow gets a pill look */
.section-header .eyebrow { padding: 4px 12px; border-radius: 999px; background: var(--primary-subtle); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes reveal-up { to { opacity: 1; transform: none; } }

/* Marquee: edge fade */
.motto-marquee {
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .page-hero { padding: 48px 0 44px; }
  .hero-wrapper { padding-bottom: 56px; }
  .hero-content { max-width: none; }
  .hero-media-box { animation: none; }
  .mobile-drawer { background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .mobile-drawer.open .mobile-drawer-link { animation: hero-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mobile-drawer.open .mobile-drawer-link:nth-child(2) { animation-delay: 0.05s; }
  .mobile-drawer.open .mobile-drawer-link:nth-child(3) { animation-delay: 0.10s; }
  .mobile-drawer.open .mobile-drawer-link:nth-child(4) { animation-delay: 0.15s; }
  .mobile-drawer.open .mobile-drawer-link:nth-child(5) { animation-delay: 0.20s; }
  .mobile-action-bar { margin: 0 10px 10px; left: 0; right: 0; border-radius: 22px; border: 1px solid var(--border-subtle); }
  .mobile-action-bar .btn { border-radius: 16px; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .page-hero { padding: 36px 0 36px; }
  .page-hero .hero-title { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .page-hero .hero-lead { font-size: 0.95rem; }
  .page-hero .btn { width: 100%; }
  .page-hero .container div[style*="flex-wrap"] { flex-direction: column; }
  .page-hero .btn span { overflow: hidden; text-overflow: ellipsis; }
  .btn { padding: 12px 20px; }
  .badge-tag { border-radius: 16px; }
  .hero-stats .stat-item { padding: 10px 8px; border-radius: 12px; }
  .hero-media-box { border-radius: 20px; }
  .pillar-card, .photo-feature-card, .uniform-photo-card, .timing-card, .leadership-carousel-container, .stream-panel { border-radius: 16px; }
  .motto-marquee { padding: 10px 0; }
  .marquee-item { font-size: 0.72rem; }
  .mobile-action-bar { margin: 0 8px calc(8px + env(safe-area-inset-bottom)); padding: 8px; bottom: 0; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1500px) {
  .container { width: min(1360px, calc(100% - 80px)); }
  .hero-wrapper { padding: 84px 0 96px; }
  .page-hero { padding: 88px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wrapper::after, .hero-star, .hero-meteor, .hero-media-box, .hero-title em, .play-pulse-btn::after { animation: none; }
  .hero-star { opacity: 0.7; }
  .hero-content > *, .page-hero .container > div > * { animation: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- Hero colour picker (floating, all pages) ---------- */
.hero-picker { position: fixed; left: 14px; bottom: 16px; z-index: 44; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-picker-toggle {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-glass); color: var(--primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform var(--tr-smooth);
}
[data-theme="dark"] .hero-picker-toggle { color: var(--accent-gold); }
.hero-picker-toggle:hover { transform: rotate(-12deg) scale(1.06); }
.hero-picker-toggle svg { width: 22px; height: 22px; }
.hero-picker-panel {
  display: none; flex-direction: column; gap: 6px;
  min-width: 190px; padding: 10px;
  background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero-picker.open .hero-picker-panel { display: flex; animation: hero-rise 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-picker-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 2px 6px 4px; }
.hero-picker .hero-palette-btn {
  width: 100%; height: auto; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1.5px solid transparent; border-radius: 12px;
  background: transparent; color: var(--text-primary);
  font-size: 0.84rem; font-weight: 700; text-align: left; box-shadow: none;
}
.hero-picker .hero-palette-btn:hover, .hero-picker .hero-palette-btn.active {
  transform: none; box-shadow: none; background: var(--bg-surface-alt); border-color: var(--accent-gold);
}
.hero-picker .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-subtle); flex-shrink: 0; }
@media (max-width: 900px) { .hero-picker { bottom: calc(92px + env(safe-area-inset-bottom)); left: 12px; } .hero-picker-toggle { width: 42px; height: 42px; } }

/* ---------- Round 3: compact CTAs, inline contact buttons, teal-only palette, tinted maps ---------- */
.contact-btn-row { display: flex; gap: 12px; flex-wrap: nowrap; }
.contact-btn-row .btn { flex: 1 1 0; min-width: 0; }
.contact-btn-row .btn span { overflow: hidden; text-overflow: ellipsis; }
.contact-btn-row .lbl-short { display: none; }
.btn-email { background: var(--primary); color: #fff; border: 1px solid var(--primary-light); box-shadow: 0 2px 8px rgba(12, 32, 76, 0.25); }
.btn-email:hover { background: var(--primary-light); }
[data-theme="dark"] .btn-email { background: #2b519e; border-color: #3b66bd; }
.page-hero .btn-email { background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: none; }
[data-hero="warm-ivory"] .page-hero .btn-email, [data-hero="classic"] .page-hero .btn-email { background: #fff; border-color: var(--primary); color: var(--primary); }

/* Google Maps embeds: shift warm roads/pins toward the teal palette */
iframe[src*="google.com/maps"] { filter: grayscale(0.55) sepia(0.25) hue-rotate(135deg) saturate(1.3) contrast(1.02); }
[data-theme="dark"] iframe[src*="google.com/maps"] { filter: invert(0.9) hue-rotate(160deg) saturate(0.8) contrast(0.95); }

@media (max-width: 900px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .mobile-action-bar { padding: 6px; gap: 8px; margin: 0 10px calc(8px + env(safe-area-inset-bottom)); border-radius: 18px; }
  .mobile-action-bar .btn { min-height: 38px; padding: 6px 14px; font-size: 0.85rem; border-radius: 14px; }
  .hero-picker { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .mobile-action-bar { margin: 0 8px calc(6px + env(safe-area-inset-bottom)); }
  .page-hero .contact-btn-row { flex-direction: row; }
  .page-hero .contact-btn-row .btn { width: auto; }
  .contact-btn-row .lbl-full { display: none; }
  .contact-btn-row .lbl-short { display: inline; }
  .contact-btn-row .btn { padding: 11px 12px; }
}
/* Mobile bar: navy admission button that matches the site palette */
.mobile-action-bar .btn-gold {
  background: linear-gradient(135deg, #163678, #0c204c);
  border: 1px solid #1e4496;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(12, 32, 76, 0.5);
}
[data-theme="dark"] .mobile-action-bar .btn-gold { background: linear-gradient(135deg, #2b519e, #1e3a75); border-color: #3b66bd; }
.mobile-action-bar .btn-outline { border-color: var(--primary); color: var(--primary); background: var(--bg-surface); }
[data-theme="dark"] .mobile-action-bar .btn-outline { color: #e2e8f0; border-color: #3b4a66; }

/* Buttons keep the same pill shape on every screen size */
.btn,
.mobile-drawer .btn,
.mobile-action-bar .btn,
.hero-actions .btn,
.modal-dialog .btn,
.page-hero .btn { border-radius: 999px; }
.campus-filter-btn, .tab-btn, .dial-btn { border-radius: 999px; }
.carousel-arrow-btn { border-radius: 50%; }
.theme-toggle-btn, .mobile-nav-toggle { border-radius: 50%; }

/* 6. Gold & Teal (deep teal sky fading into soft gold) */
[data-hero="gold-teal"] .hero-wrapper {
  background: linear-gradient(135deg, #04201f 0%, #0a4743 38%, #0f766e 68%, #b8923a 100%);
  color: #ffffff;
}
[data-hero="gold-teal"] .hero-title { color: #ffffff; }
[data-hero="gold-teal"] .hero-lead { color: #d5f5ef; }
[data-hero="gold-teal"] .hero-stats { border-top-color: rgba(255, 255, 255, 0.15); }
[data-hero="gold-teal"] .stat-item h4 { color: #ffffff; }
[data-hero="gold-teal"] .stat-item h4 span { color: #f1d27a; }
[data-hero="gold-teal"] .badge-tag { background: rgba(255, 255, 255, 0.12); border-color: rgba(241, 210, 122, 0.45); color: #f6e3a1; }
[data-hero="gold-teal"] .hero-wrapper .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.45); }
[data-hero="gold-teal"] .hero-wrapper .btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #ffffff; }
[data-hero="gold-teal"] .hero-actions .btn-primary { background: linear-gradient(135deg, #f6e3a1, #d4a93f); color: #04201f; box-shadow: 0 8px 24px -8px rgba(212, 169, 63, 0.7); }
[data-hero="gold-teal"] .hero-star { background: #f6e3a1; filter: drop-shadow(0 0 4px rgba(241, 210, 122, 0.9)); }
[data-hero="gold-teal"] .hero-star--big { background: #ffffff; filter: drop-shadow(0 0 8px rgba(241, 210, 122, 1)); }
[data-hero="gold-teal"] .hero-wrapper::after {
  background:
    radial-gradient(40% 40% at 12% 22%, rgba(45, 212, 191, 0.25), transparent 70%),
    radial-gradient(45% 45% at 90% 80%, rgba(241, 210, 122, 0.30), transparent 70%),
    radial-gradient(30% 30% at 60% 10%, rgba(94, 234, 212, 0.15), transparent 70%);
}
[data-hero="gold-teal"] .hero-title em { background-image: linear-gradient(100deg, #f6e3a1 0%, #ffffff 40%, #5eead4 60%, #f1d27a 100%); }
[data-hero="gold-teal"] .page-hero .eyebrow { color: #f6e3a1; }
[data-hero="gold-teal"] .hero-meteor { background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(241,210,122,0)); }

/* ==========================================================================
   ACCENT SWITCH — Teal (default) vs Gold (muted, yellow-leaning, no orange)
   ========================================================================== */
[data-accent="gold"] {
  --accent-gold: #b8923a;
  --accent-gold-light: #fbf3d5;
  --accent-gold-glow: rgba(184, 146, 58, 0.28);
  --shadow-glow: 0 0 24px rgba(184, 146, 58, 0.3);
  --border-focus: #c9a24a;
}
[data-accent="gold"] .notice-pill { color: #6b4f0e; }
[data-accent="gold"][data-theme="dark"] .notice-pill { background: rgba(184, 146, 58, 0.22); color: #f1d27a; }
[data-accent="gold"] .btn-gold,
[data-accent="gold"] .btn-contact {
  background: linear-gradient(135deg, #c9a24a, #94701a);
  border-color: #7a5c12;
  color: #fff;
  box-shadow: 0 2px 8px rgba(148, 112, 26, 0.3);
}
[data-accent="gold"] .btn-gold:hover,
[data-accent="gold"] .btn-contact:hover {
  background: linear-gradient(135deg, #dcb75c, #a47d1f);
  box-shadow: 0 4px 14px rgba(148, 112, 26, 0.4);
}
[data-accent="gold"] .mobile-action-bar .btn-gold { background: linear-gradient(135deg, #163678, #0c204c); border-color: #1e4496; }
[data-accent="gold"][data-hero] .hero-actions .btn-primary {
  background: linear-gradient(135deg, #f6e3a1, #c9a24a);
  color: #1b1405;
  box-shadow: 0 8px 24px -8px rgba(184, 146, 58, 0.7);
}
[data-accent="gold"][data-hero="classic"] .hero-actions .btn-primary,
[data-accent="gold"][data-hero="warm-ivory"] .hero-actions .btn-primary { background: linear-gradient(135deg, #163678, #0c204c); color: #fff; }
[data-accent="gold"] .badge-tag,
[data-accent="gold"] .page-hero .eyebrow { color: #f6e3a1; }
[data-accent="gold"][data-hero="classic"] .badge-tag,
[data-accent="gold"][data-hero="warm-ivory"] .badge-tag,
[data-accent="gold"][data-hero="classic"] .page-hero .eyebrow,
[data-accent="gold"][data-hero="warm-ivory"] .page-hero .eyebrow { color: #0c204c; }
[data-accent="gold"] .stat-item h4 span { color: #f1d27a; }
[data-accent="gold"][data-hero="classic"] .stat-item h4 span,
[data-accent="gold"][data-hero="warm-ivory"] .stat-item h4 span { color: #94701a; }
[data-accent="gold"] .hero-star { background: #f6e3a1; filter: drop-shadow(0 0 4px rgba(241, 210, 122, 0.9)); }
[data-accent="gold"] .hero-star--big { background: #ffffff; filter: drop-shadow(0 0 8px rgba(241, 210, 122, 1)); }
[data-accent="gold"][data-hero="classic"] .hero-star,
[data-accent="gold"][data-hero="warm-ivory"] .hero-star { background: #b8923a; filter: drop-shadow(0 0 3px rgba(184, 146, 58, 0.7)); }
[data-accent="gold"] .hero-meteor { background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(241, 210, 122, 0)); }
[data-accent="gold"] .hero-meteor::before { box-shadow: 0 0 10px 3px rgba(241, 210, 122, 0.9); }
[data-accent="gold"] .hero-wrapper::after {
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(241, 210, 122, 0.22), transparent 70%),
    radial-gradient(45% 45% at 88% 78%, rgba(99, 140, 255, 0.20), transparent 70%),
    radial-gradient(30% 30% at 60% 10%, rgba(167, 139, 250, 0.12), transparent 70%);
}
[data-accent="gold"] .hero-title em { background-image: linear-gradient(100deg, #f1d27a 0%, #fffbe6 40%, #f1d27a 60%, #b8923a 100%); }
[data-accent="gold"][data-hero="classic"] .hero-title em,
[data-accent="gold"][data-hero="warm-ivory"] .hero-title em { background-image: linear-gradient(100deg, #8a6a1f, #c9a24a, #8a6a1f); }
[data-accent="gold"] .scroll-progress { background: linear-gradient(90deg, #f1d27a, #b8923a, #d4a93f); }
[data-accent="gold"] .footer-map-container { border-color: rgba(241, 210, 122, 0.55); }
[data-accent="gold"] .hero-micro-pill--gold { background: rgba(184, 146, 58, 0.22); border-color: rgba(184, 146, 58, 0.4); color: #f6e3a1; }
[data-accent="gold"] .hero-micro-pill { color: #6b4f0e; }
[data-accent="gold"] .footer-col h4::before { box-shadow: 0 0 0 3px rgba(184, 146, 58, 0.28); }

/* Accent switch inside the picker */
.accent-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 2px 0 6px; background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: 999px; }
.accent-switch button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; color: var(--text-secondary);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.accent-switch button .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-subtle); }
.accent-switch button[data-accent="teal"] .dot { background: #0d9488; }
.accent-switch button[data-accent="gold"] .dot { background: #c9a24a; }
.accent-switch button.active { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* ---------- Stars are always gold (visible on dark AND light heroes) ---------- */
html .hero-star { background: #f1d27a; filter: drop-shadow(0 0 4px rgba(241, 210, 122, 0.95)); }
html .hero-star--big { background: #f7dc8a; filter: drop-shadow(0 0 9px rgba(241, 210, 122, 1)); }
html .hero-meteor { background: linear-gradient(90deg, rgba(247, 220, 138, 1), rgba(241, 210, 122, 0)); }
html .hero-meteor::before { background: #fff3c4; box-shadow: 0 0 10px 3px rgba(241, 210, 122, 0.95); }

/* Light heroes: deeper gold with a darker rim so the stars stay crisp */
html[data-hero="classic"] .hero-star,
html[data-hero="warm-ivory"] .hero-star { background: #c9a02e; filter: drop-shadow(0 0 2px rgba(122, 92, 18, 0.55)); opacity: 1; }
html[data-hero="classic"] .hero-star--big,
html[data-hero="warm-ivory"] .hero-star--big { background: #d4a92f; filter: drop-shadow(0 0 5px rgba(148, 112, 26, 0.7)); }
html[data-hero="classic"] .hero-meteor,
html[data-hero="warm-ivory"] .hero-meteor { display: block; background: linear-gradient(90deg, rgba(184, 146, 58, 1), rgba(184, 146, 58, 0)); }
html[data-hero="classic"] .hero-meteor::before,
html[data-hero="warm-ivory"] .hero-meteor::before { background: #b8923a; box-shadow: 0 0 8px 2px rgba(184, 146, 58, 0.7); }

/* ==========================================================================
   7. GOLD & WHITE — bright champagne sky, rich gold stars, navy type
   ========================================================================== */
html[data-hero="gold-white"] .hero-wrapper {
  background: linear-gradient(160deg, #ffffff 0%, #fffaf0 38%, #f7ecd0 78%, #efdcaa 100%);
  color: #0c204c;
  border-bottom: 1px solid rgba(184, 146, 58, 0.35);
}
html[data-hero="gold-white"] .hero-wrapper::before { background-image: radial-gradient(rgba(184, 146, 58, 0.22) 1px, transparent 1px); }
html[data-hero="gold-white"] .hero-wrapper::after {
  opacity: 1;
  background:
    radial-gradient(42% 42% at 12% 18%, rgba(241, 210, 122, 0.45), transparent 70%),
    radial-gradient(46% 46% at 90% 82%, rgba(212, 169, 63, 0.30), transparent 70%),
    radial-gradient(30% 30% at 62% 8%, rgba(255, 255, 255, 0.9), transparent 70%);
}
html[data-hero="gold-white"] .hero-title { color: #0c204c; }
html[data-hero="gold-white"] .hero-title em {
  background-image: linear-gradient(100deg, #8a6a1f 0%, #d4a92f 35%, #f1d27a 50%, #b8923a 70%, #8a6a1f 100%);
}
html[data-hero="gold-white"] .hero-lead { color: #475569; }
html[data-hero="gold-white"] .hero-stats { border-top-color: rgba(184, 146, 58, 0.35); }
html[data-hero="gold-white"] .hero-stats .stat-item { background: rgba(255, 255, 255, 0.75); border-color: rgba(184, 146, 58, 0.35); box-shadow: 0 6px 18px -10px rgba(148, 112, 26, 0.4); }
html[data-hero="gold-white"] .hero-stats .stat-item:hover { background: #ffffff; }
html[data-hero="gold-white"] .stat-item h4 { color: #0c204c; }
html[data-hero="gold-white"] .stat-item h4 span { color: #94701a; }
html[data-hero="gold-white"] .stat-item p { color: #475569; opacity: 1; }
html[data-hero="gold-white"] .badge-tag { background: #ffffff; border-color: rgba(184, 146, 58, 0.55); color: #6b4f0e; }
html[data-hero="gold-white"] .hero-wrapper .btn-outline { color: #0c204c; border-color: #b8923a; background: rgba(255, 255, 255, 0.6); }
html[data-hero="gold-white"] .hero-wrapper .btn-outline:hover { background: #ffffff; border-color: #94701a; }
html[data-hero="gold-white"] .hero-actions .btn-primary {
  background: linear-gradient(135deg, #e6c562, #b8923a);
  color: #1b1405;
  border: 1px solid #94701a;
  box-shadow: 0 10px 24px -10px rgba(148, 112, 26, 0.8);
}
html[data-hero="gold-white"] .page-hero .eyebrow { color: #6b4f0e; background: #ffffff; border-color: rgba(184, 146, 58, 0.55); }
html[data-hero="gold-white"] .page-hero .btn-contact { background: linear-gradient(135deg, #e6c562, #b8923a); color: #1b1405; border-color: #94701a; box-shadow: 0 10px 24px -10px rgba(148, 112, 26, 0.8); }
html[data-hero="gold-white"] .page-hero .btn-email { background: #ffffff; color: #0c204c; border: 1.5px solid #b8923a; box-shadow: none; }

/* Stars + shooting stars: saturated gold with a darker rim so they pop on white */
html[data-hero="gold-white"] .hero-star { background: #c9a02e; filter: drop-shadow(0 0 2px rgba(122, 92, 18, 0.6)); opacity: 1; }
html[data-hero="gold-white"] .hero-star--big { background: #d4a92f; filter: drop-shadow(0 0 6px rgba(148, 112, 26, 0.75)); }
html[data-hero="gold-white"] .hero-meteor { display: block; background: linear-gradient(90deg, #b8923a, rgba(184, 146, 58, 0)); }
html[data-hero="gold-white"] .hero-meteor::before { background: #c9a02e; box-shadow: 0 0 10px 3px rgba(184, 146, 58, 0.75); }

/* Media frame gets a gold edge */
html[data-hero="gold-white"] .hero-media-box,
html[data-hero="gold-white"] .page-hero-media {
  border: 2px solid #d4b25a;
  box-shadow: 0 30px 60px -24px rgba(148, 112, 26, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Top notice bar hidden for now (remove this rule to bring it back) */
.top-notice-bar { display: none !important; }

/* ---------- Palette panel: always fits on screen, compact on phones ---------- */
.hero-picker-panel { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) {
  .hero-picker-panel { min-width: 0; width: 176px; padding: 7px; gap: 3px; border-radius: 14px; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .hero-picker-title { font-size: 0.58rem; padding: 1px 5px 2px; }
  .accent-switch { padding: 3px; margin: 0 0 3px; gap: 3px; }
  .accent-switch button { padding: 5px 6px; font-size: 0.7rem; gap: 5px; }
  .accent-switch button .dot { width: 10px; height: 10px; border-width: 1.5px; }
  .hero-picker .hero-palette-btn { padding: 5px 8px; gap: 8px; font-size: 0.72rem; border-radius: 10px; }
  .hero-picker .swatch { width: 16px; height: 16px; border-width: 1.5px; }
}