/* ==========================================================================
   Uttkarsh English High School & Little World Kindergarten — Official Design System
   Principal UI/UX Architecture (v2)
   - Official Institutional Typography: Plus Jakarta Sans + Inter + Canva Sans
   - Strictly ZERO Orange / Amber / Terracotta hues anywhere
   - Strictly ZERO Canva placeholder ash-grey card backgrounds
   - Mathematical 8px Grid Alignment across all 5 views + Common Footer
   ========================================================================== */

@font-face {
  font-family: 'Canva Sans';
  src: url('../assets/fonts/CanvaSans.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Institutional Brand Palette (Strictly Zero-Orange) */
  --royal-50: #f2f7ff;
  --royal-100: #e3eeff;
  --royal-200: #c7dcfe;
  --royal-300: #9bc0fd;
  --royal-500: #2563eb;
  --royal-600: #0052cc;
  --royal-700: #1d4ed8;
  --royal-800: #1e3a8a;
  --royal-900: #172554;

  --indigo-600: #4338ca;
  --indigo-700: #3730a3;
  --sky-500: #0284c7;
  --sky-100: #e0f2fe;
  --violet-600: #7c3aed;
  --violet-100: #f3e8ff;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-50: #ecfdf5;
  --emerald-200: #a7f3d0;

  /* Crisp Cool Architectural Surfaces (Zero Ash Grey) */
  --bg-canvas: #f8faff;
  --surface-white: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-porcelain: #f4f8ff;

  /* Typography Ink Hierarchy */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  /* Hairline Borders & Multi-Layer Shadows */
  --border-light: #e2e8f0;
  --border-royal: #dbeafe;
  --border-royal-strong: #93c5fd;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 28px -10px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 18px 36px -12px rgba(0, 82, 204, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-btn-primary: 0 6px 16px -4px rgba(0, 82, 204, 0.38);

  /* Radii & Layout Metrics */
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --section-gap: 28px;

  /* Official Font Stacks */
  --font-heading: 'Plus Jakarta Sans', 'Canva Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Canva Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  background-image: radial-gradient(1200px 460px at 50% -120px, rgba(37, 99, 235, 0.07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink-800);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--royal-600);
  outline-offset: 2px;
}

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

/* ==========================================================================
   1. OFFICIAL STICKY TOP HEADER & NAVIGATION PILLS (ZERO DOT ON BUTTON)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: var(--radius-md);
  transition: opacity 0.18s ease;
}

.brand-link:hover {
  opacity: 0.92;
}

.brand-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  padding: 2px;
}

.brand-wordmark {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Official Institutional Navigation Button (No dot, no cartoon candy gloss) */
.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-800);
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  user-select: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.nav-pill:hover {
  background: var(--royal-50);
  border-color: var(--royal-300);
  color: var(--royal-600);
  transform: translateY(-1px);
}

.nav-pill.active {
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--royal-700) 58%, var(--indigo-600) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-btn-primary);
  transform: none;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--royal-800);
  box-shadow: var(--shadow-xs);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mobile-menu-btn:hover {
  background: var(--royal-50);
  border-color: var(--royal-300);
}

/* ==========================================================================
   2. GLOBAL PAGE VIEWS, TYPOGRAPHY & ARCHITECTURAL SECTION CARDS
   ========================================================================== */
#main-content {
  padding-top: 28px;
  padding-bottom: 12px;
}

.page-view {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  animation: fadeSlideIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Official Eyebrow & Heading Hierarchy */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--royal-50);
  color: var(--royal-600);
  border: 1px solid var(--border-royal);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
}

.official-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--ink-900);
}

.official-page-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--ink-500);
  line-height: 1.6;
}

.official-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--ink-900);
}

.page-hero-header {
  background: linear-gradient(180deg, var(--surface-porcelain) 0%, var(--surface-white) 100%);
  border: 1px solid var(--border-royal);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.arch-section-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.arch-section-tinted {
  background: linear-gradient(180deg, var(--surface-porcelain) 0%, var(--surface-white) 100%);
  border-color: var(--border-royal);
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-sublead {
  font-size: 0.96rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* Unified Official Buttons */
.btn-official-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--royal-700) 60%, var(--indigo-600) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-btn-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-official-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ==========================================================================
   3. PAGE 1 — HOME (HERO VIDEO, IMPACT STATS, ARCADE, TESTIMONIALS)
   ========================================================================== */
.hero-video-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
  max-height: 610px;
}

.hero-video-card::after {
  display: none;
}

.hero-video-controls {
  display: none !important;
}

.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-badge-kicker {
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.hero-badge-divider {
  opacity: 0.55;
}

.hero-video-controls {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.video-ctrl-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.video-ctrl-pill:hover {
  background: var(--royal-600);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* 4-Column Quick Stats Bar */
.quick-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.stat-pill-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--royal-600);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.stat-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--royal-50);
  color: var(--royal-600);
  border: 1px solid var(--border-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-copy {
  min-width: 0;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 3px;
}

/* Testimonials 3x2 Equal-Height Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.testimonial-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.testimonial-card:hover {
  background: var(--surface-white);
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--royal-50);
  color: var(--royal-600);
  border: 1px solid var(--border-royal);
}

.testimonial-quote-icon {
  color: var(--royal-200);
  display: inline-flex;
}

.testimonial-quote {
  font-size: 0.94rem;
  color: var(--ink-700);
  line-height: 1.66;
  flex: 1;
}

.testimonial-author {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* ==========================================================================
   4. KIDS LEARNING ARCADE (OFFICIAL TOOLBARS + VIBRANT ZERO-ORANGE STAGE)
   ========================================================================== */
.arcade-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arcade-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.arcade-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.arcade-heading {
  margin: 0;
}

.arcade-subtitle {
  font-size: 0.94rem;
  color: var(--ink-500);
}

.arcade-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.star-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--royal-50);
  border: 1px solid var(--border-royal);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--royal-800);
}

.star-icon {
  color: var(--royal-600);
  display: inline-flex;
}

.star-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.pulse-pop {
  animation: pulsePop 0.32s ease;
}

@keyframes pulsePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.arcade-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  color: var(--ink-800);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.arcade-sound-btn:hover {
  background: var(--royal-50);
  border-color: var(--royal-300);
  color: var(--royal-600);
}

.arcade-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.grade-switcher {
  display: inline-flex;
  background: var(--surface-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  gap: 4px;
}

.grade-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--ink-700);
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.grade-chip:hover {
  color: var(--royal-600);
}

.grade-chip.active {
  background: var(--surface-white);
  color: var(--royal-600);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.game-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--ink-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.mode-tab:hover {
  background: var(--royal-50);
  border-color: var(--royal-300);
  color: var(--royal-600);
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--indigo-600) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-btn-primary);
}

.arcade-stage {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 55%, #ffffff 100%);
  border: 1px solid var(--border-royal);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 356px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arcade-stage.is-paused * {
  animation-play-state: paused !important;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hud-pill {
  background: var(--surface-white);
  border: 1px solid var(--border-royal);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-700);
}

.hud-pill strong {
  font-family: var(--font-heading);
  color: var(--royal-700);
  font-weight: 800;
  margin-left: 3px;
}

.streak-tag {
  color: var(--violet-600);
  font-weight: 800;
  margin-left: 4px;
}

.hud-question {
  background: linear-gradient(135deg, var(--royal-800) 0%, var(--royal-600) 100%);
  color: #ffffff;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px -4px rgba(0, 82, 204, 0.35);
  text-align: center;
}

.hud-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-royal-strong);
  background: var(--surface-white);
  color: var(--royal-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.16s ease;
}

.hud-reset-btn:hover {
  background: var(--royal-600);
  border-color: var(--royal-600);
  color: #ffffff;
}

/* Balloon Math Stage */
.balloon-sky {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 8px;
  min-height: 220px;
}

.math-balloon {
  position: relative;
  width: 86px;
  height: 102px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: var(--b-bg);
  border: 2px solid var(--b-border);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.16),
    inset 8px 10px 16px rgba(255, 255, 255, 0.34),
    0 10px 20px -6px rgba(15, 23, 42, 0.22);
  will-change: transform;
  animation: floatBalloon var(--b-dur, 4.5s) ease-in-out var(--b-delay, 0s) infinite alternate;
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.math-balloon:hover {
  transform: scale(1.07) translateY(-4px);
}

.balloon-knot {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 8px;
  background: var(--b-border);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes floatBalloon {
  0% { transform: translate3d(0, 6px, 0); }
  100% { transform: translate3d(0, -10px, 0); }
}

.math-balloon.popped {
  animation: popBurst 0.32s ease forwards;
}

@keyframes popBurst {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.32); opacity: 0.8; }
  100% { transform: scale(0.1); opacity: 0; }
}

.wrong-shake {
  animation: shakeX 0.36s ease !important;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.game-footer-hint {
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-500);
  font-weight: 500;
}

/* Memory Match Grid */
.memory-grid {
  display: grid;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.memory-grid.cols-4-sm {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memory-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mem-card {
  background: transparent;
  border: none;
  aspect-ratio: 1 / 1;
  perspective: 800px;
  min-height: 68px;
}

.mem-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.3, 1.1);
}

.mem-card.is-flipped .mem-card-inner,
.mem-card.is-matched .mem-card-inner {
  transform: rotateY(180deg);
}

.mem-card-front,
.mem-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mem-card-front {
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--indigo-600) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 14px -4px rgba(0, 82, 204, 0.3);
}

.mem-card-back {
  background: var(--surface-white);
  border: 2px solid var(--royal-500);
  font-size: 1.9rem;
  transform: rotateY(180deg);
  box-shadow: var(--shadow-xs);
}

.mem-card.is-matched .mem-card-back {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

/* Word Quest */
.rocket-fuel-bar {
  position: relative;
  flex: 1;
  max-width: 260px;
  height: 30px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.rocket-fuel-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--sky-500) 0%, var(--royal-600) 60%, var(--violet-600) 100%);
  transition: width 0.35s ease;
}

.rocket-fuel-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-900);
}

.word-clue-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface-white);
  border: 1px solid var(--border-royal);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 18px;
}

.word-clue-emoji {
  font-size: 2rem;
}

.word-clue-text {
  font-weight: 600;
  color: var(--ink-800);
  font-size: 0.96rem;
}

.word-slots,
.word-tiles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.word-slot {
  width: 46px;
  height: 50px;
  border-radius: 10px;
  border: 2px dashed var(--royal-300);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--royal-800);
  transition: all 0.16s ease;
}

.word-slot.filled {
  border-style: solid;
  border-color: var(--royal-600);
  background: var(--surface-white);
  box-shadow: 0 3px 8px rgba(0, 82, 204, 0.12);
}

.word-slots.word-correct .word-slot {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.word-tile {
  width: 46px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, var(--royal-500) 0%, var(--royal-700) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.25);
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.word-tile:hover:not(:disabled) {
  transform: translateY(-2px);
}

.word-tile.used {
  opacity: 0.24;
  transform: scale(0.94);
  cursor: default;
}

/* Super Quiz */
.quiz-question-title {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
  margin-bottom: 18px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-royal);
  background: var(--surface-white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-800);
  text-align: left;
  transition: all 0.16s ease;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: var(--royal-500);
  background: var(--royal-50);
}

.opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--royal-50);
  color: var(--royal-700);
  border: 1px solid var(--border-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quiz-opt-btn.correct {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.quiz-opt-btn.correct .opt-letter {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #ffffff;
}

.quiz-opt-btn.incorrect {
  border-color: #e11d48;
  background: #fff1f2;
  color: #9f1239;
}

.quiz-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.quiz-feedback.is-good {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-700);
}

.quiz-feedback.is-info {
  background: var(--sky-100);
  border: 1px solid #bae6fd;
  color: #075985;
}

.quiz-next-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--royal-600);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.arcade-victory-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-royal);
  box-shadow: var(--shadow-card);
  margin: auto;
  max-width: 430px;
}

.arcade-victory-card.span-all {
  grid-column: 1 / -1;
}

.victory-medal-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--violet-600) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: var(--shadow-btn-primary);
}

.arcade-victory-card h3 {
  font-family: var(--font-heading);
  color: var(--ink-900);
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.arcade-victory-card p {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin-bottom: 16px;
}

/* ==========================================================================
   5. PAGE 2 — ABOUT US (LOCKED EQUAL-HEIGHT SPLIT ROWS & EDITORIAL CARDS)
   ========================================================================== */
.about-split-row {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.about-split-intro {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.95fr);
}

.about-split-sahil {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.32fr);
}

.about-content-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--royal-600);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.about-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.about-box-title {
  font-family: var(--font-heading);
  font-size: clamp(1.38rem, 2.1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  line-height: 1.25;
}

.about-prose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-prose p {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.72;
}

.about-highlights-grid {
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-porcelain);
  border: 1px solid var(--border-royal);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-family: var(--font-heading);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--royal-800);
}

.about-chip-icon {
  color: var(--emerald-600);
  display: inline-flex;
  flex-shrink: 0;
}

/* Equal-Height Locked Media Frame Next to Content Card */
.about-media-card {
  position: relative;
  min-height: 430px;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.about-media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-media-card:hover img,
.about-panoramic-card:hover img {
  transform: scale(1.03);
}

.about-media-caption {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.caption-zoom-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.about-panoramic-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.about-panoramic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transition: transform 0.4s ease;
}

.about-quote-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-porcelain) 0%, var(--surface-white) 100%);
  border: 1px solid var(--border-royal);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.about-quote-watermark {
  color: var(--royal-200);
  transform: scale(1.6);
  margin-bottom: 2px;
}

.about-teachers-quote {
  max-width: 920px;
  font-size: 1.03rem;
  color: var(--ink-700);
  line-height: 1.8;
}

.about-signature {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--royal-700);
  font-size: 0.9rem;
}

.about-signature-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* 4-Column Glimpses Strip */
.campus-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.campus-strip-item {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.campus-strip-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
}

.campus-strip-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-900);
}

.campus-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.campus-strip-item:hover .campus-strip-thumb img {
  transform: scale(1.05);
}

.campus-strip-item figcaption {
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-800);
  text-align: center;
  background: var(--surface-white);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. PAGE 3 — INSIDE SCHOOL (ALIGNED 2-COL ACTIVITIES, ALBUMS HUB, GALLERIES)
   ========================================================================== */
.activities-aligned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.activity-arch-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.activity-arch-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
}

.activity-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-900);
  cursor: zoom-in;
}

.activity-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.activity-arch-card:hover .activity-media-frame img {
  transform: scale(1.04);
}

.activity-index-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.activity-card-footer {
  padding: 15px 18px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.activity-card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.btn-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--royal-50);
  border: 1px solid var(--border-royal-strong);
  color: var(--royal-700);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.btn-card-link:hover {
  background: var(--royal-600);
  border-color: var(--royal-600);
  color: #ffffff;
}

.btn-card-zoom {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--ink-500);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.btn-card-zoom:hover {
  background: var(--royal-50);
  border-color: var(--royal-300);
  color: var(--royal-600);
}

/* Official Google Photos Shared Albums Hub */
.albums-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.google-album-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.google-album-card:hover,
.google-album-card.is-selected {
  background: var(--surface-white);
  border-color: var(--royal-500);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.album-cover-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-900);
  cursor: zoom-in;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.google-album-card:hover .album-cover-img {
  transform: scale(1.04);
}

.album-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.album-card-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}

.album-card-meta {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 8px;
}

.album-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
}

.album-filter-btn {
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--ink-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.16s ease;
}

.album-filter-btn:hover,
.album-filter-btn.active {
  background: var(--royal-50);
  border-color: var(--royal-500);
  color: var(--royal-700);
}

.album-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--royal-600);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.album-ext-link:hover {
  background: var(--royal-700);
}

.album-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  color: var(--ink-700);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.filter-chip:hover {
  background: var(--royal-50);
  border-color: var(--royal-300);
  color: var(--royal-600);
}

.filter-chip.active {
  background: var(--royal-600);
  border-color: var(--royal-600);
  color: #ffffff;
}

.album-highlights-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.album-wall-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.album-wall-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
}

.album-wall-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-900);
}

.album-wall-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.album-wall-item:hover .album-wall-thumb img {
  transform: scale(1.04);
}

.album-wall-item figcaption {
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pre-Primary Polaroid Keepsake Gallery (6x3 Aligned Grid) */
.polaroid-collage-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 6px 4px;
}

.polaroid-card {
  background: var(--surface-white);
  padding: 8px 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-royal);
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.12);
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.polaroid-card.scattered {
  transform: rotate(var(--rot, 0deg));
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  border-color: var(--royal-500);
  z-index: 3;
  box-shadow: var(--shadow-card-hover);
}

.polaroid-img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-900);
}

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

.polaroid-caption {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.25;
}

/* Primary & Secondary Uniform 3x3 Architectural Gallery Cards */
.gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.gallery-arch-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-arch-card:hover {
  background: var(--surface-white);
  border-color: var(--border-royal-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-900);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-arch-card:hover .gallery-img-wrap img {
  transform: scale(1.04);
}

.gallery-card-caption {
  padding: 13px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-800);
  text-align: center;
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   7. PAGE 4 — FACILITIES (EQUAL-HEIGHT STUDIO MEDIA FRAMES)
   ========================================================================== */
.facilities-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.facility-arch-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.facility-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.facility-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.facility-num-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--royal-50);
  border: 1px solid var(--border-royal);
  color: var(--royal-600);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.facility-cat-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal-600);
  margin-bottom: 2px;
}

.facility-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.facility-media-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.facility-media-grid.split-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facility-media-grid.single-wide {
  grid-template-columns: 1fr;
}

.facility-media-grid.dual-labeled {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facility-media-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b132b;
  border: 1px solid var(--border-light);
}

.facility-media-grid.split-equal .facility-media-box {
  height: 368px;
}

.facility-media-grid.single-wide .facility-media-box {
  width: 100%;
  height: 468px;
}

.facility-media-box.is-video::before {
  content: '';
  position: absolute;
  inset: -16px;
  background-image: var(--poster-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.45);
  transform: scale(1.08);
  z-index: 0;
}

.facility-media-box video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.facility-media-box.is-photo {
  cursor: zoom-in;
}

.facility-media-box.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.facility-media-box.is-photo:hover img {
  transform: scale(1.03);
}

.dual-lab-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface-subtle);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dual-lab-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
}

.dual-lab-card .facility-media-box {
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: 0;
}

.dual-lab-label {
  padding: 14px 18px;
  background: var(--surface-porcelain);
  border-top: 1px solid var(--border-royal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--royal-800);
}

.dual-lab-label .caption-zoom-pill {
  background: var(--royal-100);
  color: var(--royal-700);
}

/* ==========================================================================
   8. PAGE 5 — OUR SUPPORTERS & PARTNERS (EXTERNAL LINKS + ALIGNED CARDS)
   ========================================================================== */
.supporters-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.supporter-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.supporter-single-wrap {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.partner-arch-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-arch-card:hover {
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.partner-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-cat-tag {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.partner-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--royal-50);
  border: 1px solid var(--border-royal-strong);
  color: var(--royal-600);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.16s ease;
}

.partner-link-pill:hover {
  background: var(--royal-600);
  border-color: var(--royal-600);
  color: #ffffff;
}

.partner-verified-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-700);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
}

.partner-logo-stage {
  height: 144px;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  border: 1px solid #edf2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.partner-logo-stage.is-dark-stage {
  background: #140d26;
  border-color: #271b45;
}

.partner-logo-stage.is-crest-stage {
  background: linear-gradient(180deg, var(--surface-porcelain) 0%, var(--surface-white) 100%);
  border: 1.5px solid var(--royal-300);
}

.partner-logo-anchor {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-stage img {
  max-height: 98px;
  max-width: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.partner-logo-stage:hover img {
  transform: scale(1.04);
}

.supporter-text-crest {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--royal-800);
  text-align: center;
  line-height: 1.45;
}

.partner-card-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-org-name {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* Honors Canva's Royal-Blue Bordered Project Box with Executive Precision */
.partner-project-banner {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--royal-500);
  background: var(--royal-50);
  color: var(--royal-800);
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

/* Joint Collaboration Card (ARCH + CMS) */
.joint-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.joint-partner-unit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.joint-partner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.joint-partner-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-900);
}

/* ==========================================================================
   9. COMMON PERSISTENT SECTIONS ON EVERY PAGE: SOCIAL MEDIA & CONTACT US
   ========================================================================== */
.common-bottom-wrapper {
  margin-top: 20px;
  padding-bottom: 40px;
}

.common-bottom-wrapper .container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.social-link-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-royal-strong);
  box-shadow: var(--shadow-card-hover);
}

.social-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 4px;
}

.social-icon-circle svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

/* Strictly Zero-Orange Brand Icon Medallions */
.social-instagram .social-icon-circle {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 52%, #e11d48 100%);
}
.social-youtube .social-icon-circle {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}
.social-facebook .social-icon-circle {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.social-linkedin .social-icon-circle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.social-platform-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink-900);
}

.social-handle {
  font-size: 0.81rem;
  color: var(--ink-500);
  word-break: break-word;
}

.social-cta-pill {
  margin-top: auto;
  width: 100%;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--royal-50);
  color: var(--royal-600);
  border: 1px solid var(--border-royal);
  transition: all 0.16s ease;
}

.social-link-card:hover .social-cta-pill {
  background: var(--royal-600);
  border-color: var(--royal-600);
  color: #ffffff;
}

/* Contact Us Split Grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-school-title {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}

.contact-school-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--royal-600);
  margin-top: 2px;
}

.recognition-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rec-badge {
  background: var(--surface-white);
  color: var(--royal-800);
  border: 1px solid var(--border-royal);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.contact-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--royal-50);
  border: 1px solid var(--border-royal);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-900);
}

.contact-details-list p {
  font-size: 0.88rem;
  color: var(--ink-700);
}

.inline-official-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-600);
}

.inline-official-link:hover {
  text-decoration: underline;
}

.contact-phone-link {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--royal-600);
  font-size: 0.96rem;
}

.contact-map-frame {
  margin-top: auto;
  width: 100%;
  flex: 1;
  min-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #e2e8f0;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink-900);
}

.contact-form-note {
  font-size: 0.87rem;
  color: var(--ink-500);
  margin-top: 3px;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-800);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  color: var(--ink-900);
  background: var(--surface-white);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--royal-600);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.14);
}

.contact-actions-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
}

.btn-whatsapp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-whatsapp-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-call-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  color: var(--royal-700);
  border: 1.5px solid var(--royal-500);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.16s ease;
}

.btn-call-direct:hover {
  background: var(--royal-600);
  border-color: var(--royal-600);
  color: #ffffff;
}

.form-status-msg {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--emerald-700);
  text-align: center;
}

.site-copyright {
  text-align: center;
  padding: 6px 12px 0;
  font-size: 0.83rem;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-copyright strong {
  color: var(--ink-800);
  font-family: var(--font-heading);
}

.copy-sep {
  opacity: 0.45;
}

/* ==========================================================================
   10. FULLSCREEN PHOTO LIGHTBOX
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-img {
  max-width: min(92vw, 1120px);
  max-height: 80vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  transition: background-color 0.16s ease;
}

.lightbox-close:hover {
  background: var(--royal-600);
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-pill {
    padding: 0 15px;
    font-size: 0.85rem;
  }

  .quick-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .albums-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polaroid-collage-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 68px;
  }

  .top-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
    gap: 8px;
    border-top: 1px solid var(--border-light);
  }

  .top-nav.is-open {
    display: flex;
  }

  .nav-pill {
    width: 100%;
    height: 42px;
  }

  .about-split-intro,
  .about-split-sahil,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media-card {
    min-height: 360px;
  }

  .about-panoramic-card {
    height: 270px;
  }

  .campus-strip-grid,
  .social-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-highlights-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-media-grid.split-equal,
  .facility-media-grid.dual-labeled,
  .supporter-pair-grid,
  .joint-partners-grid {
    grid-template-columns: 1fr;
  }

  .facility-media-grid.split-equal .facility-media-box {
    height: 310px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand-emblem {
    width: 44px;
    height: 44px;
  }

  .brand-wordmark {
    height: 34px;
  }

  .arch-section-card,
  .about-content-card,
  .facility-arch-card,
  .partner-arch-card,
  .page-hero-header {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .about-quote-banner {
    padding: 24px 18px;
  }

  .hero-badge-overlay {
    top: 10px;
    left: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 6px 12px;
    justify-content: center;
  }

  .hero-badge-kicker,
  .hero-badge-divider {
    display: none;
  }

  .hero-video-controls {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }

  .video-ctrl-pill {
    height: 32px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .quick-stats-bar,
  .testimonials-grid,
  .activities-aligned-grid,
  .albums-cards-grid,
  .social-cards-grid,
  .form-row-2,
  .quiz-options-grid,
  .about-highlights-grid,
  .contact-actions-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid-3,
  .polaroid-collage-stage,
  .campus-strip-grid,
  .album-highlights-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .polaroid-card.scattered {
    transform: none;
  }

  .grade-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grade-chip {
    padding: 0 6px;
    font-size: 0.75rem;
  }

  .game-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-tab {
    justify-content: center;
  }

  .arcade-stage {
    padding: 14px;
  }

  .math-balloon {
    width: 70px;
    height: 84px;
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   12. OFFICIAL INSTITUTIONAL SIDE-MARGIN ARCHITECTURE (LEFT & RIGHT GAPS)
   - Fills the outer left & right page margins (visible on wide screens or 80%
     zoom) with a cohesive Royal Blue & Sky Cyan Aurora Ribbon, Architectural
     Dot-Matrix Mesh, Flowing Light-Pulse Streams, and Constellation Starfield
   - Zero circles, zero cards, zero orange/pink color clashes
   ========================================================================== */
.side-gutter-doodles {
  position: fixed;
  top: 76px;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: max(0px, calc((100vw - 1170px) / 2));
  user-select: none;
  overflow: hidden;
  background-image:
    radial-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(224, 242, 254, 0.35) 0%, rgba(219, 234, 254, 0.55) 50%, rgba(224, 242, 254, 0.35) 100%);
  background-size: 22px 22px, 100% 100%;
}

.side-gutter-left {
  left: 0;
  border-right: 1px solid rgba(147, 197, 253, 0.38);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0) 100%);
}

.side-gutter-right {
  right: 0;
  border-left: 1px solid rgba(147, 197, 253, 0.38);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0) 100%);
}

.side-aurora-ribbon-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aurora-wave-band {
  animation: auroraWaveBreathe 8s ease-in-out infinite alternate;
}

@keyframes auroraWaveBreathe {
  0% {
    opacity: 0.72;
  }
  100% {
    opacity: 1;
  }
}

.aurora-light-beam {
  stroke-dasharray: 140 960;
  animation: auroraBeamFlow 9s linear infinite;
}

.aurora-light-beam.beam-2 {
  stroke-dasharray: 110 990;
  animation: auroraBeamFlowReverse 11s linear infinite;
}

@keyframes auroraBeamFlow {
  0% {
    stroke-dashoffset: 1100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes auroraBeamFlowReverse {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1100;
  }
}

.side-sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Sculpted Institutional North-Star Clusters */
.ambient-star-group {
  position: relative;
  z-index: 3;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.22));
}

.ambient-star-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Gentle, serene floating motion */
.group-float-1 {
  animation: ambientStarFloatA 7.5s ease-in-out infinite alternate;
}

.group-float-2 {
  animation: ambientStarFloatB 8.8s ease-in-out infinite alternate;
  animation-delay: -2.2s;
}

.group-float-3 {
  animation: ambientStarFloatA 9.4s ease-in-out infinite alternate;
  animation-delay: -4.1s;
}

.group-float-4 {
  animation: ambientStarFloatB 8.2s ease-in-out infinite alternate;
  animation-delay: -1.3s;
}

@keyframes ambientStarFloatA {
  0% {
    transform: translateY(-9px) translateX(-5px);
  }
  100% {
    transform: translateY(9px) translateX(5px);
  }
}

@keyframes ambientStarFloatB {
  0% {
    transform: translateY(8px) translateX(6px);
  }
  100% {
    transform: translateY(-8px) translateX(-6px);
  }
}

/* Soft, rhythmic star twinkle (breathing scale + opacity) */
.star-twinkle-a {
  transform-box: fill-box;
  transform-origin: center;
  animation: gentleStarTwinkle 3.4s ease-in-out infinite alternate;
}

.star-twinkle-b {
  transform-box: fill-box;
  transform-origin: center;
  animation: gentleStarTwinkle 4.1s ease-in-out infinite alternate;
  animation-delay: -1.4s;
}

.star-twinkle-c {
  transform-box: fill-box;
  transform-origin: center;
  animation: gentleStarTwinkle 3.8s ease-in-out infinite alternate;
  animation-delay: -2.6s;
}

@keyframes gentleStarTwinkle {
  0% {
    opacity: 0.45;
    transform: scale(0.84) rotate(-6deg);
  }
  100% {
    opacity: 0.98;
    transform: scale(1.12) rotate(6deg);
  }
}

/* Hide cleanly when there is no outer margin space */
@media (max-width: 1260px) {
  .side-gutter-doodles {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-wave-band,
  .aurora-light-beam,
  .ambient-star-group,
  .star-twinkle-a,
  .star-twinkle-b,
  .star-twinkle-c {
    animation: none !important;
  }
}




/* Visually hidden but accessible to screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
