/* ==========================================================================
   J.Son Grammar School - Executive Educational Design System
   Primary:          Dark Royal Blue (#1D4ED8 / #0F172A)
   Accent:           Light Blue (#3B82F6 / #60A5FA)
   Background:       White (#FFFFFF)
   Light Background: Light Gray (#F8FAFC)
   Text:             Dark Blue / Dark Navy (#0F172A)
   ========================================================================== */

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

:root {
  /* Core Required Color Tokens (No Yellow - Dark Blue, Light Blue, White Only) */
  --primary: #1D4ED8;              /* Royal Dark Blue */
  --primary-hover: #1E40AF;        /* Deep Royal Blue */
  --primary-dark: #0F172A;         /* Dark Navy / Dark Blue */
  --secondary: #2563EB;            /* Vibrant Blue */
  
  --accent: #3B82F6;               /* Light Blue Accent */
  --accent-hover: #60A5FA;         /* Bright Light Blue */
  --accent-dark: #1D4ED8;          /* Dark Accent */
  --accent-light: #EFF6FF;         /* Ice Light Blue Tint */
  --accent-subtle: rgba(59, 130, 246, 0.12);
  
  --bg-main: #FFFFFF;              /* White Background */
  --section-light: #F8FAFC;        /* Light Gray Background */
  --section-dark: #0F172A;         /* Dark Blue Section */
  
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  
  --text-main: #0F172A;            /* Dark Blue Text */
  --text-muted: #334155;           /* Slate Navy */
  --text-light: #64748B;           /* Subtler Slate */
  --text-gold: #2563EB;            /* Executive Light Blue Text */

  /* Status Colors */
  --success: #16A34A;
  --warning: #2563EB;
  --danger: #EF4444;

  /* Premium Gradients (Dark Blue & Light Blue) */
  --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1D4ED8 60%, #2563EB 100%);
  --gradient-gold: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  --gradient-gold-badge: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-gold-subtle: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(29, 78, 216, 0.9) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(29, 78, 216, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(29, 78, 216, 0.18), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 10px 25px -5px rgba(29, 78, 216, 0.35);
  --shadow-gold: 0 10px 25px -5px rgba(59, 130, 246, 0.35);

  /* Radius & Transitions */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Configuration */
body.dark-mode {
  --bg-main: #0B132B;
  --section-light: #0F172A;
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(226, 232, 240, 0.12);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6,
.font-heading, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1, .display-3 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2, .display-4 { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
h3, .display-5 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
h4, .display-6 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; }

p, .lead { font-family: 'Inter', sans-serif; }
.lead { font-size: 1.05rem; font-weight: 400; line-height: 1.7; color: var(--text-muted); }

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--accent) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.7) !important; }

.max-width-700 { max-width: 700px; }
.max-width-750 { max-width: 750px; }
.max-width-800 { max-width: 800px; }
.uppercase { text-transform: uppercase; }

/* ---- LIGHT BLUE & DARK BLUE BADGES ---- */
.badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.badge-gold, .badge-accent {
  background: var(--secondary);
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-primary {
  background: var(--primary);
  color: #FFFFFF !important;
}

.badge-admission {
  background: rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3.5px;
  background: linear-gradient(90deg, #0F172A 0%, #1D4ED8 50%, #3B82F6 100%);
  width: 0%; z-index: 10001; transition: width 0.1s ease-out;
}

/* ---- TOP CONTACT BAR ---- */
.top-bar {
  background: var(--section-dark);
  color: #F8FAFC;
  font-size: 0.82rem; font-weight: 500; padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a { transition: var(--transition-fast); }
.top-bar a:hover { color: var(--accent) !important; }
.top-bar i { color: var(--accent); }

/* ---- NOTICE TICKER ---- */
.notice-ticker {
  background: #0F172A;
  color: #FFFFFF; padding: 6px 0; overflow: hidden;
  font-size: 0.84rem; font-weight: 500;
  border-bottom: 2px solid var(--accent);
}
.ticker-wrap { display: flex; white-space: nowrap; animation: marquee 35s linear infinite; }
.ticker-wrap:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---- STICKY NAV BAR ---- */
.sticky-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border); padding: 12px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.sticky-nav.shrank {
  padding: 8px 0;
  box-shadow: 0 10px 30px -5px rgba(29, 78, 216, 0.12);
  background: rgba(255, 255, 255, 0.99);
}
body.dark-mode .sticky-nav {
  background: rgba(11, 19, 43, 0.95);
  border-color: rgba(226, 232, 240, 0.1);
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-main) !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: rgba(29, 78, 216, 0.08);
}
body.dark-mode .nav-link:hover {
  color: var(--accent) !important;
  background: rgba(59, 130, 246, 0.12);
}

/* ==== BUTTON SYSTEM ---- */
/* Primary Dark Royal Blue Button */
.btn-primary-custom {
  position: relative;
  background: var(--gradient-primary);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  padding: 10px 24px; border-radius: var(--radius-pill); border: none;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-primary-custom:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.55);
}

.btn-primary-custom i, .btn-primary-custom svg {
  transition: transform 0.3s ease;
}

.btn-primary-custom:hover i, .btn-primary-custom:hover svg {
  transform: translateX(4px);
}

.btn-header-secondary {
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.86rem;
  padding: 9px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(29, 78, 216, 0.25);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: all 0.3s ease;
}

.btn-header-secondary:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}

@keyframes buttonGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.btn-pulse-ring {
  animation: buttonGlowPulse 2.4s infinite;
}

/* Light Blue Accent Button */
.btn-gold-custom, .btn-accent-gold {
  background: var(--secondary);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-blue);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  transition: var(--transition-normal);
}
.btn-gold-custom:hover, .btn-accent-gold:hover {
  transform: translateY(-2px);
  background: #1D4ED8;
  color: #FFFFFF !important;
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.5);
}

/* Hero Action Buttons */
.btn-hero-primary {
  background: var(--primary);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  padding: 11px 24px; border-radius: var(--radius-pill);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-blue);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: var(--transition-normal);
}
.btn-hero-primary i { color: var(--accent); }
.btn-hero-primary:hover {
  background: #1E40AF;
  border-color: #1E40AF;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(29, 78, 216, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  padding: 11px 24px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: var(--transition-normal);
}
.btn-hero-secondary i { color: var(--accent); }
.btn-hero-secondary:hover {
  background: #FFFFFF;
  color: var(--primary) !important;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}
.btn-hero-secondary:hover i { color: var(--primary); }

.btn-outline-custom {
  background: transparent;
  color: var(--primary) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  padding: 9px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: var(--transition-normal);
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Bootstrap Button Global Overrides */
.btn {
  font-size: 0.88rem; padding: 8px 18px; font-weight: 600;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-warning, .btn-gold {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #FFFFFF;
  font-weight: 700;
}
.btn-warning:hover, .btn-gold:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* ---- HOMEPAGE HERO BANNER ---- */
.single-hero-banner {
  position: relative; min-height: 80vh; display: flex; align-items: center;
  overflow: hidden; background: var(--section-dark);
}

@keyframes heroZoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hero-banner-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center 30%;
  animation: heroZoomPulse 24s ease-in-out infinite;
  opacity: 0.82; /* 80%+ Image Visibility */
  z-index: 0;
}

.hero-banner-overlay {
  position: absolute; inset: 0;
  /* Top Color Fade Gradient for dark top navigation blend */
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(15, 23, 42, 0.58) 35%, 
    rgba(15, 23, 42, 0.38) 65%, 
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: 1;
}

.hero-banner-content { position: relative; z-index: 2; width: 100%; }

/* ---- HERO BANNER STYLING (MATCHING REFERENCE SCREENSHOT) ---- */
.badge-hero-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-title-main {
  font-family: 'Plus Jakarta Sans', Georgia, serif;
  font-size: 4.8rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle-italic {
  font-family: 'Plus Jakarta Sans', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

.hero-bounce-chevron {
  animation: bounceChevron 2s infinite;
  color: rgba(255, 255, 255, 0.7);
  width: 26px;
  height: 26px;
  margin-top: 24px;
}

@keyframes bounceChevron {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* ---- INNER PAGE HERO ---- */
.page-hero {
  position: relative; padding: 75px 0 65px; overflow: hidden;
  background: var(--section-dark);
}

.page-hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
  animation: heroZoomPulse 24s ease-in-out infinite; opacity: 0.25; z-index: 0;
}

.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(29, 78, 216, 0.9) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative; z-index: 2; color: #FFFFFF;
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.3);
}

/* ---- HIGH SCORE SECTION & TOPPER CARDS ---- */
.high-score-section {
  background: var(--section-light);
  position: relative;
}

.topper-card-institutional {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative; overflow: hidden;
}
.topper-card-institutional:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.topper-card-institutional::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, #0F172A 0%, #1D4ED8 50%, #3B82F6 100%);
}

/* Light Blue Highlight Box for Marks */
.topper-score-box {
  background: var(--accent-light);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 8px 12px; border-radius: var(--radius-sm);
}

/* ---- ADVANCED HIGH SCORE PODIUM & HALL OF FAME ---- */
.topper-podium-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.topper-podium-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Rank Specific Banners */
.topper-rank-banner {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rank-gold {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}
.rank-silver {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  color: #FFFFFF;
}
.rank-bronze {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: #FFFFFF;
}

/* Photo Halo Effect */
.topper-photo-halo {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #0F172A 0%, #3B82F6 100%);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25);
  transition: transform 0.4s ease;
}
.topper-podium-card:hover .topper-photo-halo {
  transform: scale(1.06);
  box-shadow: var(--shadow-blue);
}

.topper-verified-tick {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #16A34A;
  color: #FFF;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Subject Chips */
.topper-subject-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary);
  border: 1px solid rgba(29, 78, 216, 0.15);
}

/* Score Progress Meter */
.topper-meter {
  height: 6px;
  border-radius: 10px;
  background: var(--card-border);
  overflow: hidden;
  margin: 8px 0;
}
.topper-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #0F172A 0%, #1D4ED8 50%, #3B82F6 100%);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* Trophy Pulse Badge */
.trophy-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1.5px solid var(--accent);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  animation: pulseGlow 3s infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ---- INFOGRAPHIC BOX ---- */
.infographic-box {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px; position: relative; overflow: hidden;
  transition: var(--transition-normal); height: 100%;
}
.infographic-box::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary); transition: var(--transition-fast);
}
.infographic-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 78, 216, 0.35);
}
.infographic-box:hover::before {
  width: 6px;
  background: var(--accent);
}

/* ---- OUR MISSION & VISION COLLAGE SECTION (MATCHING REFERENCE SCREENSHOT) ---- */
.mission-vision-collage {
  position: relative;
  min-height: 520px;
  width: 100%;
}

.collage-img-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  z-index: 1;
  transition: transform 0.4s ease;
}
.collage-img-1:hover { transform: translateY(-4px) scale(1.02); }

.collage-img-2 {
  position: absolute;
  top: 100px;
  right: 0;
  width: 58%;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(29, 78, 216, 0.22);
  z-index: 3;
  transition: transform 0.4s ease;
}
.collage-img-2:hover { transform: translateY(-4px) scale(1.03); }

/* ---- WORLD-CLASS FACILITIES CARDS (MATCHING REFERENCE SCREENSHOT) ---- */
.facility-card-item {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.facility-card-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.facility-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
/* ---- CINEMATIC DARK-TONED SCHOOL IMAGES ---- */
.single-hero-banner .hero-banner-bg,
.page-hero .page-hero-bg,
.event-image-card img,
.facility-card-img img,
.topper-photo-halo img,
.gallery-item img,
.collage-img-1 img,
.collage-img-2 img,
.collage-img-3 img {
  filter: brightness(0.85) contrast(1.08) saturate(0.95);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.event-image-card:hover img,
.facility-card-item:hover img,
.gallery-item:hover img,
.topper-podium-card:hover .topper-photo-halo img,
.collage-img-1:hover img,
.collage-img-2:hover img,
.collage-img-3:hover img {
  filter: brightness(0.96) contrast(1.05) saturate(1.02);
}

.facility-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.facility-card-item:hover .facility-card-img img {
  transform: scale(1.08);
}

.facility-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.facility-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}
.facility-card-item:hover .facility-card-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.08);
}

.collage-img-3 {
  position: absolute;
  bottom: 0;
  left: 40px;
  width: 62%;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  z-index: 2;
  transition: transform 0.4s ease;
}
.collage-img-3:hover { transform: translateY(-4px) scale(1.02); }

.collage-circle-ring {
  position: absolute;
  bottom: 60px;
  left: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
  z-index: 0;
}

.stat-metric-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 22px;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}
.stat-metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

@media (max-width: 991px) {
  .mission-vision-collage {
    min-height: 420px;
    margin-bottom: 30px;
  }
}
@media (max-width: 576px) {
  .mission-vision-collage {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .collage-img-1, .collage-img-2, .collage-img-3 {
    position: relative;
    inset: auto;
    width: 100%;
    height: 200px;
  }
  .collage-circle-ring { display: none; }
}

.infographic-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px;
  transition: var(--transition-normal);
}
.infographic-box:hover .infographic-icon {
  background: var(--gradient-primary);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: var(--shadow-blue);
}

/* ---- ACADEMIC TABS ---- */
.academic-tab-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  padding: 9px 20px; border-radius: var(--radius-pill); cursor: pointer;
  transition: var(--transition-fast); display: flex; align-items: center; gap: 8px;
}
.academic-tab-btn:hover, .academic-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}

/* ---- STAT CARDS ---- */
.stat-card {
  padding: 22px 16px; text-align: center; border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  color: var(--primary); line-height: 1; margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.stat-label {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.84rem; color: var(--text-muted);
}

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  height: 240px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 70%);
  opacity: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #FFFFFF; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- LIGHTBOX ---- */
.lightbox-modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.94); backdrop-filter: blur(16px);
  z-index: 9999; display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox-modal.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }

/* ---- PREMIUM FORM STYLING ---- */
.form-control, .form-select {
  font-family: 'Inter', sans-serif; font-size: 0.9rem; padding: 11px 16px;
  border: 1.5px solid var(--card-border); border-radius: var(--radius-sm);
  background: var(--card-bg); color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
  outline: none;
}
.form-control::placeholder { color: var(--text-light); font-size: 0.88rem; }
.form-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 0.86rem; color: var(--text-main); margin-bottom: 6px;
}
.form-control-lg, .form-select-lg { font-size: 0.92rem !important; padding: 11px 16px !important; }
.form-check-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---- TEACHER CARD ---- */
.teacher-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.teacher-img-wrap { height: 230px; overflow: hidden; }
.teacher-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.teacher-card:hover .teacher-img-wrap img { transform: scale(1.06); }

/* ---- EVENT CARDS ---- */
.event-card-featured {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}
.event-card-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.event-card-featured-img {
  position: relative; height: 100%; min-height: 320px; overflow: hidden;
}
.event-card-featured-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.event-card-featured:hover .event-card-featured-img img { transform: scale(1.06); }

.event-card-featured-date {
  position: absolute; top: 18px; left: 18px;
  background: var(--primary); color: #FFFFFF;
  padding: 12px 18px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  box-shadow: var(--shadow-blue);
  border: 1px solid var(--accent);
}
.event-date-day {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em;
}
.event-date-month {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.1em; margin-top: 3px;
}

.event-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%; display: flex; flex-direction: column;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.event-card-image { position: relative; height: 210px; overflow: hidden; }
.event-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.event-card:hover .event-card-image img { transform: scale(1.06); }

/* Date Badge on Image */
.event-card-date-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--card-bg); border-radius: 12px;
  padding: 8px 14px; display: flex; flex-direction: column; align-items: center; line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--accent);
}
.event-badge-day {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em;
}
.event-badge-month {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

.event-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.event-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--card-border);
}
.event-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
}
.event-meta-item i, .event-meta-item svg { color: var(--primary); flex-shrink: 0; }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 16px 30px; margin-bottom: 24px; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }
.timeline-dot {
  position: absolute; top: 24px; width: 16px; height: 16px;
  background: var(--accent); border: 3px solid var(--primary); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}
.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }

/* ---- ACCORDION (FAQ) ---- */
.accordion-item {
  border: 1.5px solid var(--card-border); border-radius: var(--radius-sm) !important;
  margin-bottom: 10px; overflow: hidden;
}
.accordion-button {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 14px 18px; background: var(--card-bg); color: var(--text-main);
}
.accordion-button:not(.collapsed) {
  background: rgba(29, 78, 216, 0.06); color: var(--primary); box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15); }
.accordion-body { font-size: 0.88rem; color: var(--text-muted); padding: 14px 18px; line-height: 1.65; }



/* ---- SEARCH OVERLAY ---- */
.search-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(24px);
  z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.search-overlay.active { display: flex; }
.search-box-wrap { width: 100%; max-width: 620px; position: relative; }
.search-input-custom {
  width: 100%; background: rgba(255, 255, 255, 0.08); border: 2px solid var(--accent);
  color: #FFFFFF; font-size: 1.2rem; padding: 16px 24px; border-radius: var(--radius-pill); outline: none;
}
.search-input-custom::placeholder { color: rgba(255, 255, 255, 0.6); }

/* ---- FLOATING ACTIONS ---- */
.floating-actions { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 999; }
.btn-floating {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #FFFFFF; box-shadow: var(--shadow-lg);
  font-size: 1.3rem; transition: var(--transition-normal); border: none; cursor: pointer;
}
.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { transform: scale(1.08) rotate(6deg); }
.btn-back-top { background: var(--primary); border: 1.5px solid var(--accent); opacity: 0; visibility: hidden; }
.btn-back-top.show { opacity: 1; visibility: visible; }
.btn-back-top:hover { transform: translateY(-3px); background: var(--primary-hover); }

/* ---- ADMISSIONS PROCESS TIMELINE ---- */
.admission-process-timeline { position: relative; }
.admission-process-timeline::before {
  content: ''; position: absolute; top: 25px; bottom: 45px; left: 25px;
  width: 3px; background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 70%, var(--accent) 100%);
  z-index: 1;
}

.process-node-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--section-dark);
  color: #FFFFFF;
  border: 3px solid var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-blue);
  z-index: 2; position: relative;
  transition: transform 0.3s ease;
}
.process-step-item:hover .process-node-circle {
  transform: scale(1.12);
  background: var(--primary);
  color: #FFFFFF;
}

.process-step-content {
  transition: var(--transition-normal);
}
.process-step-item:hover .process-step-content {
  transform: translateX(6px);
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ---- FEE STRUCTURE CARDS ---- */
.fee-structure-card {
  transition: var(--transition-normal);
  border: 1.5px solid var(--card-border) !important;
}
.fee-structure-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-lg) !important;
}
.fee-pill-badge {
  background: var(--primary-dark) !important;
  border: 1.5px solid var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

/* ---- 5-COLUMN EVENT CARDS GRID ---- */
@media (min-width: 992px) {
  .col-lg-2-4 { flex: 0 0 auto; width: 20%; }
}

.event-image-card {
  height: 390px; position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}
.event-image-card img {
  transition: transform 0.6s ease;
}
.event-image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.event-image-card:hover img {
  transform: scale(1.08);
}
.event-card-gradient-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  z-index: 2;
}

/* ---- FOOTER ---- */
.footer-main {
  background: var(--section-dark);
  color: #E2E8F0; padding: 65px 0 24px;
  border-top: 3px solid var(--accent);
}
.footer-title {
  color: #FFFFFF; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem;
  font-weight: 700; margin-bottom: 20px; position: relative;
}
.footer-title::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 32px; height: 3px; background: var(--accent); border-radius: 2px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #94A3B8; font-size: 0.88rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

/* ---- FOOTER SOCIAL MEDIA BUTTONS ---- */
.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-social-btn i, .footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-btn:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
}

/* ---- RESPONSIVE BREAKPOINTS & MOBILE ADVANCED STYLING ---- */
@media (max-width: 1199px) {
  .hero-title-main { font-size: 3.8rem; }
  .badge-hero-pill { font-size: 0.72rem; padding: 7px 18px; }
  .navbar-nav .nav-link { padding: 6px 8px !important; font-size: 0.84rem; }
}

@media (max-width: 991px) {
  h1, .display-3 { font-size: 2.2rem; }
  h2, .display-4 { font-size: 1.8rem; }
  h3, .display-5 { font-size: 1.45rem; }
  .lead { font-size: 0.96rem; }
  .page-hero { padding: 55px 0 45px; }
  .single-hero-banner { min-height: 70vh; padding: 60px 0; }
  .hero-title-main { font-size: 3rem; }
  .hero-subtitle-italic { font-size: 1.2rem; }
  .badge-hero-pill { font-size: 0.68rem; letter-spacing: 0.14em; padding: 6px 16px; }
  .navbar-collapse {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  .navbar-collapse .nav-link {
    color: #FFFFFF !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .navbar-collapse .nav-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent) !important;
  }
  .navbar-toggler {
    background: rgba(29, 78, 216, 0.1);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; }
  .timeline-dot { left: 13px !important; right: auto !important; }
}

@media (max-width: 576px) {
  h1, .display-3 { font-size: 1.8rem; }
  h2, .display-4 { font-size: 1.45rem; }
  .hero-title-main { font-size: 2.2rem; }
  .hero-subtitle-italic { font-size: 1.05rem; }
  .badge-hero-pill { font-size: 0.62rem; letter-spacing: 0.1em; padding: 5px 12px; }
  .btn-primary-custom, .btn-hero-primary, .btn-hero-secondary, .btn-outline-custom, .btn-gold-custom {
    width: 100%; justify-content: center; font-size: 0.86rem; padding: 12px 18px;
  }
  .page-hero { padding: 45px 0 35px; }
  .single-hero-banner { min-height: 60vh; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 16px 10px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .hero-title-main { font-size: 1.95rem; line-height: 1.15; }
  .hero-subtitle-italic { font-size: 0.98rem; }
  .badge-hero-pill { font-size: 0.58rem; letter-spacing: 0.08em; padding: 5px 10px; white-space: normal; text-align: center; max-width: 95%; }
  .mission-vision-collage { height: 280px; margin-bottom: 25px; }
  .collage-circle-ring { width: 220px; height: 220px; }
  .collage-img-1 { width: 55%; height: 160px; }
  .collage-img-2 { width: 55%; height: 160px; }
  .collage-img-3 { width: 50%; height: 140px; }
  .floating-actions { bottom: 16px; right: 16px; gap: 8px; }
  .btn-floating { width: 42px; height: 42px; font-size: 1.1rem; }
  .brand-icon { width: 38px !important; height: 38px !important; }
  .brand-icon i, .brand-icon svg { width: 22px !important; height: 22px !important; }
  .navbar-brand span.fs-4 { font-size: 1.15rem !important; }
  .notice-ticker .badge { font-size: 0.68rem; padding: 4px 8px; margin-right: 6px !important; }
  .notice-ticker span { font-size: 0.80rem; }
}

/* ---- GLOBAL SLOW FADE-IN SCROLL ANIMATION SYSTEM ---- */
.reveal-on-scroll,
.fade-in-slow,
h1:not(.hero-title-main), h2, h3, h4, h5, h6,
.glass-card,
.stat-card,
.infographic-box,
.facility-card-item,
.event-image-card,
.teacher-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed,
.fade-in-slow.revealed,
h1.revealed, h2.revealed, h3.revealed, h4.revealed, h5.revealed, h6.revealed,
.glass-card.revealed,
.stat-card.revealed,
.infographic-box.revealed,
.facility-card-item.revealed,
.event-image-card.revealed,
.teacher-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }


