/* -------------------------------------------------------------
 * HS School Redesign Stylesheet
 * Brand Color System (Navy Blue & Crisp White) with Crest Logo
 * ------------------------------------------------------------- */

/* 1. DESIGN SYSTEM & ROOT VARIABLES */
:root {
  /* Royal Navy Blue & Crisp White Palette - Aligned with Logo Crest */
  --bg-primary: #FFFFFF;      /* Crisp Pure White */
  --bg-secondary: #F4F7FA;    /* Light Silver-Blue (Subtle contrast) */
  --bg-dark-navy: #0B2B5C;    /* Royal Navy Blue (Matches school logo) */
  --bg-midnight: #061C3D;     /* Midnight Royal Navy */
  --bg-deep-footer: #030F22;  /* Deepest Royal Navy */
  
  --text-primary: #0B2B5C;    /* Royal Navy Blue */
  --text-secondary: #4A5568;  /* Charcoal Slate */
  --text-light: #FFFFFF;      /* Pure White */
  
  --accent-gold: #D4AF37;     /* Elegant Crest Gold */
  --accent-gold-alpha: rgba(212, 175, 55, 0.15);
  --accent-gold-hover: #B89320;
  
  --accent-green: #2ECC71;    /* Vibrant Green CTA */
  --accent-green-alpha: rgba(46, 204, 113, 0.3);
  
  --shadow-premium: 0 12px 35px -8px rgba(11, 43, 92, 0.08), 0 2px 6px rgba(11, 43, 92, 0.02);
  --shadow-hover: 0 24px 50px -12px rgba(11, 43, 92, 0.18), 0 4px 12px rgba(11, 43, 92, 0.04);
  --shadow-gold-glow: 0 10px 30px -5px rgba(212, 175, 55, 0.25);
  
  --card-border: rgba(11, 43, 92, 0.08);
  --card-border-focus: rgba(212, 175, 55, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Digital Dark Mode Variables Overrides */
body.dark-mode {
  --bg-primary: #061426;      /* Deep Royal Midnight */
  --bg-secondary: #0F233C;    /* Royal Blue-Grey Card Base */
  --bg-dark-navy: #030A14;    /* Deeper Midnight */
  --bg-midnight: #010408;     /* Near Black Navy */
  --bg-deep-footer: #000103;  /* Absolute Dark */
  
  --text-primary: #FFFFFF;    /* Pure White */
  --text-secondary: #A0AEC0;  /* Soft Soothing Slate */
  --text-light: #061426;      /* Dark Contrast */
  
  --accent-gold: #F1C40F;     /* Glowing Gold */
  --accent-gold-alpha: rgba(241, 196, 15, 0.2);
  
  --shadow-premium: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
  --shadow-gold-glow: 0 15px 35px -5px rgba(241, 196, 15, 0.2);
  
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-focus: rgba(241, 196, 15, 0.6);
}

/* 2. RESET & VIEWPORT LOCKS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

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

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

/* 3. CONTAINER & UTILITIES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.section-title {
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Buttons with Gradient Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  border: none;
  box-shadow: var(--shadow-premium);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bg-dark-navy), #061B3B);
  color: #FFFFFF;
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background: var(--accent-gold);
  color: var(--bg-dark-navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(5px);
  margin-left: 14px;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

body.dark-mode .btn-secondary {
  background: rgba(15, 35, 60, 0.85);
  border-color: var(--card-border);
}

body.dark-mode .btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
}

/* 4. PRELOADER (SPLASH SCREEN) WITH LOGO INTEGRATION */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark-navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-content {
  text-align: center;
  padding: 20px;
}

.preloader-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.85);
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.3));
}

.preloader-line-container {
  width: 240px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 auto 24px auto;
  overflow: hidden;
  border-radius: var(--radius-full);
}

.preloader-line {
  width: 100%;
  height: 100%;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
}

.preloader-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 5. STICKY TOP ANNOUNCEMENT BAR (PREVENTS CONTROL OVERLAPS) */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(135deg, var(--bg-dark-navy), #061B3B);
  color: #FFFFFF;
  border-bottom: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 995;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.announcement-badge {
  background-color: var(--accent-gold);
  color: var(--bg-dark-navy);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.announcement-text {
  font-weight: 700;
}

/* 6. SYMMETRICAL HEADER & CENTER BRAND LOGO */
.site-header {
  position: fixed;
  top: 32px; /* Offset cleanly by announcement bar height */
  left: 0;
  width: 100%;
  z-index: 990;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: top var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

body.dark-mode .site-header {
  background-color: rgba(6, 20, 38, 0.9);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hamburger toggle left */
.nav-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-normal);
}

/* Hamburger open state */
.nav-toggle-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
  background-color: #FFFFFF;
}
.nav-toggle-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
  background-color: #FFFFFF;
}

/* Center Brand Logo & Name Symmetrical */
.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 995;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.brand-link:hover {
  transform: scale(1.02);
}

.header-logo {
  height: 32px;
  width: auto;
  margin-right: 10px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

/* Right controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--accent-gold);
}

.lang-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.theme-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  color: var(--text-primary);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

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

.theme-icon-light {
  display: none;
}

body.dark-mode .theme-icon-dark {
  display: none;
}

body.dark-mode .theme-icon-light {
  display: inline-block;
  color: var(--accent-gold);
}

/* Overlay Navigation Drawer (Mobile) */
.navigation-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 980;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navigation-menu.active {
  visibility: visible;
  opacity: 1;
}

.nav-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 12, 23, 0.98);
  backdrop-filter: blur(15px);
}

.nav-menu-container {
  position: relative;
  z-index: 981;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
  opacity: 0.8;
  position: relative;
  display: inline-block;
  padding: 3px 0;
}

.nav-lang-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Symmetrical Navigation on Desktop */
@media (min-width: 768px) {
  .nav-toggle-btn {
    display: none;
  }

  .navigation-menu {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    visibility: visible;
    opacity: 1;
    display: block;
    z-index: 991; /* Below the logo brand link (995) but sits inside site-header */
    pointer-events: none; /* Make container click-through so elements under are active */
  }

  .nav-overlay-bg {
    display: none;
  }

  .nav-menu-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Base padding */
    pointer-events: auto; /* Re-enable clicks for child elements */
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .site-header {
    height: 56px;
  }
  
  .header-container {
    height: 56px;
    position: relative;
  }

  .nav-menu-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100%;
    max-width: 1200px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
  }

  /* Specific padding so lists do not overlap center logo */
  .nav-left-group {
    padding-right: 150px;
  }

  .nav-right-group {
    padding-left: 150px;
  }
}

/* 7. HERO SECTION (IMAGE-FIRST, WHITE BACKDROP) */
.hero-section {
  position: relative;
  padding: 120px 0 80px 0; /* Padding offsets 32px ann-bar + 56px header + 32px margin */
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFD 50%, #EDF2F8 100%);
  overflow: hidden;
}

/* Subtle Educational Floating Canvas Backdrop styling */
.hero-floating-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* Sticky "School Ruler" Right-Side Scroll Tracker styling */
.school-ruler-container {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 320px;
  background-color: var(--bg-primary);
  border-left: 2px solid var(--accent-gold);
  border-right: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  z-index: 998;
  transition: opacity var(--transition-normal), background-color var(--transition-normal);
}

body.dark-mode .school-ruler-container {
  background-color: var(--bg-secondary);
}

.ruler-scale {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.ruler-tick {
  width: 10px;
  height: 2px;
  background-color: var(--text-primary);
  opacity: 0.4;
  transition: opacity var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.ruler-tick.major {
  width: 20px;
  height: 3px;
  background-color: var(--accent-gold);
  opacity: 1;
  cursor: pointer;
  position: relative;
}

.ruler-tick.major:hover,
.ruler-tick.major:focus-visible {
  transform: scaleX(1.3);
  outline: none;
  opacity: 1;
}

.ruler-tick.major:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

/* Tooltip on Hover */
.ruler-tick.major::after {
  content: attr(title);
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background-color: var(--bg-dark-navy);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.ruler-tick.major:hover::after,
.ruler-tick.major:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.ruler-marker-bus {
  position: absolute;
  right: 6px;
  top: 20px; /* Positioned dynamically via JS */
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.1rem;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
  transition: top 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Interactive Timeline dynamic highlighting classes */
.timeline-item.active-routine .timeline-card {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-5px) scale(1.02);
}

.timeline-item.active-routine .timeline-indicator-node {
  background-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold);
}

.timeline-item.active-routine .node-pulse {
  animation: pulse-active 1.5s infinite;
}

@keyframes pulse-active {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Scale ruler beautifully on viewport scaling under tablet sizes instead of hiding it */
@media (max-width: 1024px) {
  .school-ruler-container {
    right: 8px !important;
    width: 20px !important;
    height: 240px !important;
    padding: 10px 0 !important;
  }
  .ruler-tick.major {
    width: 12px !important;
  }
  .ruler-tick.minor {
    width: 6px !important;
  }
  .ruler-tick.major::after {
    display: none !important; /* Hide hover tooltips on mobile/tablet to avoid screen clutter */
  }
  .ruler-marker-bus {
    right: 2px !important;
    font-size: 0.85rem !important;
  }
}

body.dark-mode .hero-section {
  background: linear-gradient(135deg, #061426 0%, #091D35 60%, #0D294D 100%);
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  z-index: 0;
  opacity: 0.45;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background-color: var(--accent-gold-alpha);
  top: -40px;
  left: -40px;
}

.shape-2 {
  width: 450px;
  height: 450px;
  background-color: rgba(11, 43, 92, 0.05);
  bottom: -120px;
  right: -50px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  position: relative;
  z-index: 1;
  align-items: center;
}

/* Mobile: Image loads on top fold */
.hero-visual-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 12px;
}

.hero-text-content {
  text-align: center;
}

.hero-badge-wrapper {
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 22px;
  background: linear-gradient(135deg, var(--accent-gold-alpha), rgba(212, 175, 55, 0.05));
  color: var(--accent-gold);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.08);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image outline styling */
.image-border-glow {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(135deg, rgba(11, 43, 92, 0.15), rgba(212, 175, 55, 0.25));
  box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
  transition: transform var(--transition-normal);
  max-width: 520px;
  width: 100%;
}

.image-border-glow:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), var(--shadow-gold-glow);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 12px);
  display: block;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
  }
  
  .hero-visual-content {
    order: 1; /* Left side image */
    margin-bottom: 0;
  }
  
  .hero-text-content {
    order: 2; /* Right side text */
    text-align: left;
  }
  
  .hero-title {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    margin-left: 0;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
}

/* 8. TIMELINE SECTION (VIBRANT ROYAL NAVY THEME BLOCK) */
.timeline-section {
  padding: 40px 0;
  background-color: var(--bg-dark-navy);
  color: #FFFFFF;
  position: relative;
  overflow: visible;
}

.timeline-section::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-gold-alpha), transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0.35;
  pointer-events: none;
}

.timeline-section .section-title {
  color: #FFFFFF;
}

.timeline-section .section-desc {
  color: #CBD5E0;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

.timeline-svg-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-svg {
  width: 100%;
  height: 100%;
}

.timeline-path-bg {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2px;
}

.timeline-path-fill {
  stroke: var(--accent-gold);
  stroke-width: 4px;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  stroke-linecap: round;
}

.timeline-items-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-left: 0;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 12px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 12px;
  text-align: left;
}

.timeline-indicator-node {
  position: absolute;
  left: 100%;
  top: 15px;
  width: 16px;
  height: 16px;
  background-color: var(--bg-dark-navy);
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  z-index: 10;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-indicator-node {
  left: 0;
}

.timeline-item.active .timeline-indicator-node {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.node-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent-gold);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.timeline-item.active .node-pulse {
  animation: node-ping 1.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.timeline-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* High contrast card inside dark timeline */
.timeline-card {
  background-color: #0F233C; /* Navy Card base */
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.timeline-card-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-item:nth-child(odd) .timeline-card-icon {
  margin-left: auto;
}

.timeline-card-image-wrapper {
  width: 100%;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--bg-dark-navy);
}

.timeline-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.timeline-card:hover .timeline-card-image {
  transform: scale(1.06);
}

.timeline-card-title {
  font-size: 1rem;
  color: #FFFFFF;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .timeline-items-list {
    gap: 60px;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 60px;
  }

  .timeline-item:nth-child(even) {
    padding-left: 60px;
  }

  .timeline-indicator-node {
    width: 18px;
    height: 18px;
    border-width: 4px;
  }

  .node-pulse {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-width: 2px;
  }

  .timeline-time {
    font-size: 1.15rem;
    padding: 4px 14px;
    margin-bottom: 12px;
  }

  .timeline-card {
    padding: 24px;
    gap: 16px;
  }

  .timeline-card-icon {
    width: 54px;
    height: 54px;
  }

  .timeline-card-image-wrapper {
    height: 180px;
  }

  .timeline-card-title {
    font-size: 1.25rem;
  }
}

/* 9. CORE PROGRAMS & SWIPER (WHITE BACKGROUND BLOCK) */
.programs-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.programs-slider {
  padding: 20px 0 60px 0;
  overflow: hidden !important; /* Strictly lock leakage */
  width: 100%;
}

.swiper-slide {
  height: auto;
}

.program-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

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

.program-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.program-card-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.program-card-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
}

.program-card-bullets {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-card-bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.program-card-bullets li::before {
  content: '\f058'; /* fa-circle-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 1rem;
}

/* Interactive Yoga Indicator */
.timeline-card-interactive-yoga {
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.yoga-mode-indicator {
  margin-top: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px dashed var(--accent-gold-alpha);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.05em;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.timeline-card-interactive-yoga:hover .yoga-mode-indicator {
  background-color: var(--accent-gold-alpha);
  border-color: var(--accent-gold);
}

/* Milestone Achievement Counters Grid */
.milestones-section {
  padding: 30px 0;
  background-color: var(--bg-secondary);
  overflow: visible;
  transition: background-color var(--transition-normal);
}
.milestones-counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 60px;
  margin-bottom: 80px;
}
@media (min-width: 768px) {
  .milestones-counters {
    grid-template-columns: repeat(3, 1fr);
  }
}
.counter-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--card-border);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  text-align: center;
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
}
body.dark-mode .counter-card {
  background-color: #0F233C;
}
.counter-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}
.counter-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.counter-number-wrapper {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.counter-plus {
  color: var(--accent-gold);
  margin-left: 2px;
}
.counter-label {
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Parent Reviews Testimonial Slider Card */
.reviews-slider {
  padding: 20px 60px 60px 60px;
  overflow: hidden !important;
  width: 100%;
}
@media (max-width: 991px) {
  .reviews-slider {
    padding: 20px 40px 60px 40px;
  }
}
.review-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
body.dark-mode .review-card {
  background-color: #0F233C;
}
.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}
.review-quote-icon {
  font-size: 2.25rem;
  color: var(--accent-gold-alpha);
  margin-bottom: 20px;
  line-height: 1;
}
.review-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  flex: 1;
}
.review-author-info {
  border-top: 1.5px dashed var(--card-border);
  padding-top: 20px;
  margin-top: auto;
}
.review-author {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}
.review-relation {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom Swiper Navigation Buttons (Resized & Positioned Outside Card Overlays) */
.reviews-slider .swiper-button-prev,
.reviews-slider .swiper-button-next {
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 2px solid var(--accent-gold) !important;
  border-radius: 50% !important;
  color: var(--accent-gold) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 50% !important;
  margin-top: -20px !important; /* Center alignment offset */
  z-index: 10 !important;
}

body.dark-mode .reviews-slider .swiper-button-prev,
body.dark-mode .reviews-slider .swiper-button-next {
  background: rgba(15, 35, 60, 0.9) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.reviews-slider .swiper-button-prev {
  left: 8px !important;
}

.reviews-slider .swiper-button-next {
  right: 8px !important;
}

.reviews-slider .swiper-button-prev:hover,
.reviews-slider .swiper-button-next:hover {
  background: var(--accent-gold) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35) !important;
  transform: scale(1.1) !important;
}

body.dark-mode .reviews-slider .swiper-button-prev:hover,
body.dark-mode .reviews-slider .swiper-button-next:hover {
  color: #0B192C !important;
}

/* Custom Sleek Swiper Arrow Icons */
.reviews-slider .swiper-button-prev::after,
.reviews-slider .swiper-button-next::after {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  transition: transform 0.2s ease !important;
}

.reviews-slider .swiper-button-prev:active::after {
  transform: translateX(-2px);
}

.reviews-slider .swiper-button-next:active::after {
  transform: translateX(2px);
}

/* Custom Sleek Swiper Pagination Bullets */
.reviews-slider .swiper-pagination-bullet {
  background: var(--text-secondary) !important;
  opacity: 0.35 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
}

.reviews-slider .swiper-pagination-bullet-active {
  background: var(--accent-gold) !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Hide Swiper Navigation Buttons on Mobile Viewports */
@media (max-width: 767px) {
  .reviews-slider .swiper-button-prev,
  .reviews-slider .swiper-button-next {
    display: none !important;
  }
}

/* 10. FEATURES COMPONENT GRIDS (VIBRANT ROYAL MIDNIGHT BLOCK) */
.features-section {
  padding: 80px 0 40px 0;
  background-color: var(--bg-midnight);
  color: #FFFFFF;
  position: relative;
  overflow: visible;
}

.features-section .section-title {
  color: #FFFFFF;
}

.features-section .section-desc {
  color: #CBD5E0;
}

.hss-amenities-dashboard {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 5;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .hss-amenities-dashboard {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
  }
}

.hss-amenities-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 991px) {
  .hss-amenities-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 4px !important;
  }
  .hss-amenities-sidebar {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important; /* Inertial scrolling support */
    max-width: 100% !important;
    padding-bottom: 16px !important;
    gap: 12px !important;
    scrollbar-width: none;
  }
  .hss-amenities-sidebar::-webkit-scrollbar {
    display: none;
  }
  .hss-sidebar-category {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important; /* Allow category to expand naturally */
  }
  .hss-category-title {
    display: none !important; /* Hide category titles on mobile for a clean flat ribbon */
  }
  .hss-sidebar-tabs {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important; /* Allow tabs container to expand naturally */
  }
  .hss-amenity-tab {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .hss-amenities-showcase {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hss-showcase-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  .hss-showcase-content {
    padding: 24px 20px !important;
  }
  #showcase-title {
    font-size: 1.35rem !important;
    margin-bottom: 12px !important;
  }
  #showcase-desc {
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
  }
  .hss-showcase-bullets li {
    font-size: 0.85rem !important;
  }
}

.hss-sidebar-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hss-category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hss-sidebar-tabs {
  display: flex;
  flex-direction: row; /* Row of horizontal circular nodes */
  gap: 12px;
  flex-wrap: wrap;
}

.hss-amenity-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 50%; /* Perfect circular icon buttons */
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  flex-shrink: 0;
}

.hss-amenity-tab span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hss-amenity-tab .tab-icon {
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.hss-amenity-tab:hover {
  transform: translateY(-4px); /* Hover float up */
  border-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
}

@media (max-width: 991px) {
  .hss-amenity-tab:hover {
    transform: none;
  }
}

/* Category Specific Active Configurations */
.hss-amenity-tab.active[data-theme="academic"] {
  background-color: #061c36;
  border-color: #00c6ff;
  color: #00c6ff;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.25);
}
.hss-amenity-tab.active[data-theme="academic"] .tab-icon {
  color: #00c6ff;
  transform: scale(1.15) rotate(5deg);
}

.hss-amenity-tab.active[data-theme="safety"] {
  background-color: #241116;
  border-color: #ff3366;
  color: #ff3366;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.25);
}
.hss-amenity-tab.active[data-theme="safety"] .tab-icon {
  color: #ff3366;
  transform: scale(1.15) rotate(-5deg);
}

.hss-amenity-tab.active[data-theme="holistic"] {
  background-color: #241a0d;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: var(--shadow-gold-glow);
}
.hss-amenity-tab.active[data-theme="holistic"] .tab-icon {
  color: var(--accent-gold);
  transform: scale(1.15);
}

/* Tab indicator slide highlight disabled for circular buttons */

/* Right Column Showcase Panel */
.hss-amenities-showcase {
  perspective: 1000px;
  /* Isolate internal animations from page reflow */
  contain: layout;
}

.hss-showcase-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
  /* Fixed height prevents layout shifts when amenity tab changes */
  min-height: 480px;
}

@media (min-width: 768px) {
  .hss-showcase-card {
    grid-template-columns: 46% 54%;
    min-height: 520px;
  }
}

.hss-showcase-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hss-showcase-image-wrapper {
    height: 100%;
    min-height: 520px;
  }
}

#showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hss-showcase-glow-effect {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(15, 35, 60, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background var(--transition-normal);
}

.hss-showcase-badge {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 14px;
  background-color: rgba(15, 35, 60, 0.85);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.hss-showcase-badge.academic { border-color: #00c6ff; color: #00c6ff; }
.hss-showcase-badge.safety { border-color: #ff3366; color: #ff3366; }
.hss-showcase-badge.holistic { border-color: var(--accent-gold); color: var(--accent-gold); }

/* Showcase Text Details */
.hss-showcase-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Prevent content height from driving layout reflow */
  overflow: hidden;
}

@media (min-width: 768px) {
  .hss-showcase-content {
    padding: 48px;
  }
}

#showcase-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  transition: color var(--transition-normal);
}

@media (min-width: 768px) {
  #showcase-title {
    font-size: 2.1rem;
  }
}

#showcase-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 28px;
  transition: color var(--transition-normal);
}

.hss-showcase-divider {
  border: none;
  border-top: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.hss-bullets-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hss-showcase-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hss-showcase-bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.hss-showcase-bullets li i {
  font-size: 1.1rem;
  transition: color var(--transition-normal);
}

.hss-showcase-bullets.academic li i { color: #00c6ff; }
.hss-showcase-bullets.safety li i { color: #ff3366; }
.hss-showcase-bullets.holistic li i { color: var(--accent-gold); }

/* Custom Vector Yoga Breathing Animation */
.yoga-breathing .yoga-ring-dynamic {
  transform-origin: center;
  animation: breathe-scale 4s ease-in-out infinite;
}

.yoga-breathing .yoga-figure {
  transform-origin: center;
  animation: breathe-stretch 4s ease-in-out infinite;
}

@keyframes breathe-scale {
  0%, 100% { transform: scale(0.9); opacity: 0.3; stroke-width: 2px; }
  50% { transform: scale(1.05); opacity: 0.9; stroke-width: 5px; }
}

@keyframes breathe-stretch {
  0%, 100% { transform: scaleY(0.95); }
  50% { transform: scaleY(1.05) translateY(-2px); }
}

/* Custom Lathi Kathi Animation */
.lathi-strike .stick-1 {
  transform-origin: 50% 50%;
  animation: strike-cut-1 2.5s ease-in-out infinite;
}

.lathi-strike .stick-2 {
  transform-origin: 50% 50%;
  animation: strike-cut-2 2.5s ease-in-out infinite;
}

.lathi-strike .lathi-sparkle {
  opacity: 0;
  animation: sparkle-flash 2.5s ease-in-out infinite;
}

@keyframes strike-cut-1 {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  45% { transform: rotate(15deg) translate(-2px, -2px); }
  50% { transform: rotate(-35deg) translate(4px, 4px); }
}

@keyframes strike-cut-2 {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  45% { transform: rotate(-15deg) translate(2px, -2px); }
  50% { transform: rotate(35deg) translate(-4px, 4px); }
}

@keyframes sparkle-flash {
  0%, 48%, 56%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 11. ADMISSIONS FORM (VIBRANT NAVY BACKDROP BLOCK) */
.admission-section {
  padding: 30px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #DCE5F0 100%);
}

body.dark-mode .admission-section {
  background: linear-gradient(135deg, #051226 0%, #0B223D 100%);
}

.admission-box {
  background-color: var(--bg-dark-navy);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow-hover), var(--shadow-gold-glow);
  max-width: 800px;
  margin: 0 auto;
  transition: transform var(--transition-normal);
}

.admission-box:hover {
  transform: translateY(-3px);
}

.admission-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.admission-subtitle {
  color: #CBD5E0;
}

.admission-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .admission-form .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.form-input, .form-select {
  padding: 14px 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  transition: border-color var(--transition-fast), background-color var(--transition-normal);
  width: 100%;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.15);
}

.form-select option {
  background-color: var(--bg-dark-navy);
  color: #FFFFFF;
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover)) !important;
  color: var(--bg-dark-navy) !important;
  border: none !important;
  width: 100%;
  max-width: 260px;
}

.submit-btn:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-2px);
}

/* Vertical Grid Layout for Simple Centered Admissions */
.form-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

/* 12. CONTACT & INTEGRATED MAP (CRISP WHITE THEME BLOCK) */
.contact-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-heading {
  font-size: 2.25rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-subtext {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-block {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.info-content h5 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.info-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--card-border);
  min-height: 380px;
  background-color: #E2E8F0;
}

/* 13. STRUCTURED FOOTER (DEEP MIDNIGHT NAVY THEME) */
.site-footer {
  background-color: var(--bg-deep-footer);
  color: #FFFFFF;
  padding: 80px 0 40px 0;
  transition: background-color var(--transition-normal);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .footer-brand-section {
    align-items: center;
    text-align: center;
  }
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-trust {
  color: #A0AEC0;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-section-title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #FFFFFF;
  position: relative;
  padding-bottom: 8px;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #CBD5E0;
  font-size: 0.95rem;
  transition: color var(--transition-fast), padding var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-addr-text {
  color: #CBD5E0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-copy {
  color: #718096;
  font-size: 0.85rem;
}

/* ---- Social Media Icons ---- */
.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.footer-social-btn span {
  font-size: 0.82rem;
  font-weight: 600;
  display: none; /* shown in bottom bar only */
}

.footer-social-btn:hover {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.15);
}

/* Instagram — brand gradient */
.footer-social-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.footer-social-instagram:hover {
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.55);
}

/* Facebook — brand blue */
.footer-social-facebook {
  background: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social-facebook:hover {
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.55);
}

/* Footer bottom bar social row */
.footer-bottom-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.footer-bottom-social .footer-social-btn {
  width: auto;
  height: 36px;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.footer-bottom-social .footer-social-btn span {
  display: inline; /* visible in bottom bar */
}

/* 14. CALL-TO-ACTION FAB & RIPPLE */
.call-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--accent-green);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.35);
  z-index: 900;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.call-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(46, 204, 113, 0.45);
}

.fab-icon-container {
  z-index: 10;
}

.fab-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-green);
  animation: fab-ring-ping 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}

.fab-pulse-ring-2 {
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-green);
  animation: fab-ring-ping 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  animation-delay: 0.6s;
  z-index: 1;
}

@keyframes fab-ring-ping {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 15. CONFETTI CANVAS */
.confetti-overlay-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
}

/* 16. SCROLL REVEAL ENGINES */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  /* Prevent opacity animation from causing layout reflow */
  will-change: opacity, transform;
}

/* 17. CAMPUS MEDIA GALLERY & VIRTUAL TOUR */
.media-gallery-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

/* Video Showcase Styles */
.video-tour-container {
  max-width: 800px;
  margin: 0 auto 60px auto;
  width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
  border: 2px solid var(--accent-gold);
  background-color: var(--bg-dark-navy);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 43, 92, 0.4) 0%, rgba(6, 28, 61, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 24px;
  text-align: center;
}

.video-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  background-color: var(--accent-gold);
  color: var(--bg-dark-navy);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-overlay:hover .video-play-btn {
  transform: scale(1.1);
  background-color: #FFFFFF;
}

.video-play-ripple {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-gold);
  animation: play-ring-ping 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: 1;
}

@keyframes play-ring-ping {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.video-overlay-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Image Gallery Styles */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  /* Prevent layout shift when cards are filtered in/out */
  min-height: 300px;
}

@media (min-width: 576px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--card-border);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--bg-secondary);
}

.gallery-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover), var(--shadow-gold-glow);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 ratio */
  overflow: hidden;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 43, 92, 0.9) 0%, rgba(11, 43, 92, 0.2) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.95;
  transition: opacity var(--transition-normal);
}

.gallery-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background-color: var(--accent-gold);
  color: var(--bg-dark-navy);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.gallery-card-caption {
  font-size: 1.15rem;
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 18. ADVANCED VISUAL HIGHLIGHTS & MICRO-INTERACTIONS */

/* Scribble Badge Alignment */
.hero-badge {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.badge-scribble {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  pointer-events: none;
  z-index: 1;
}

/* Restored native operating system cursor support for fluid experience */
.custom-cursor-dot, .custom-cursor-ring {
  display: none !important;
}

/* Brand Logo Metallic Shimmer Animation */
@keyframes shimmer-sweep {
  0% { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15)) brightness(1); }
  50% { filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.45)) brightness(1.15) contrast(1.05); }
  100% { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15)) brightness(1); }
}

.header-logo:hover, .footer-logo:hover, .preloader-logo {
  animation: shimmer-sweep 2.5s infinite ease-in-out;
}

/* Dark Mode Circular Transition Mask overlay */
.dark-mode-ripple-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9997;
  pointer-events: none;
  overflow: hidden;
}

.dark-mode-ripple {
  width: 100%;
  height: 100%;
  background-color: #061426; /* Deep Midnight */
  position: absolute;
  top: 0; left: 0;
  clip-path: circle(0% at 0px 0px); /* Controlled dynamically in JS */
  transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode-ripple.active {
  clip-path: circle(150% at 0px 0px);
}

/* Form Validation Glows */
.form-input.valid, .form-select.valid {
  border-color: var(--accent-green) !important;
  background-color: rgba(46, 204, 113, 0.04) !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

/* Micro-Interactive Icon animations on Feature Cards */
.feature-card:hover .feature-icon i {
  animation: bounce-icon 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px) scale(1.1); color: var(--accent-gold); }
}

/* -------------------------------------------------------------
 * 15. MOBILE RESPONSIVENESS, ACCESSIBILITY, & TAP TARGET OPTIMIZATIONS
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Fluid responsive typography adjustments to prevent header wrapping */
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  h3 { font-size: 1.6rem !important; }
  h4 { font-size: 1.3rem !important; }

  /* Ensure viewport wrapping with zero overflow and clear the fixed ruler scale */
  .container {
    padding-left: 16px !important;
    padding-right: 36px !important; /* Safety clearance so content doesn't overlap the fixed scale ruler! */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Daily Timeline mobile layout optimizations - Resets desktop grid cleanly */
  .timeline-container {
    padding: 20px 0 !important;
    overflow: hidden !important;
  }
  
  .timeline-svg-wrapper {
    left: 20px !important;
    transform: translateX(-50%) !important;
  }
  
  .timeline-items-list {
    display: flex;
    flex-direction: column;
    gap: 32px !important;
  }
  
  .timeline-item {
    width: 100% !important;
    left: 0 !important; /* Reset desktop left shift */
    padding-left: 45px !important;
    padding-right: 0 !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box !important;
  }
  
  .timeline-item:nth-child(odd), 
  .timeline-item:nth-child(even) {
    left: 0 !important;
    text-align: left !important;
    padding-left: 45px !important;
    padding-right: 0 !important;
  }

  .timeline-indicator-node {
    left: 20px !important;
    transform: translateX(-50%) !important;
  }
  
  .timeline-item:nth-child(even) .timeline-indicator-node {
    left: 20px !important;
  }

  .timeline-time {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    margin-bottom: 8px;
    font-size: 0.85rem !important;
  }
  
  .timeline-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  /* Grid Layouts Gracefully Collapse */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Accessibility & Tap Targets: Enforce minimum 48px size for interactive elements */
  a, button, select, input {
    min-height: 48px;
    min-width: 48px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px !important;
  }

  .theme-toggle-btn, .lang-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
  }
  
  .submit-btn {
    height: 52px !important;
  }

  /* Prevent brand logo name and theme toggle overlaps on mobile screens */
  .brand-link {
    font-size: 1.3rem !important;
  }
  .header-logo {
    height: 36px !important;
    margin-right: 8px !important;
  }
  .header-container {
    padding: 0 12px !important;
  }
  .header-controls {
    gap: 8px !important;
  }

  /* Modern Symmetrical and Small Hamburger Menu for Mobile */
  .nav-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3.5px !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-premium) !important;
    transition: background-color var(--transition-fast), border-color var(--transition-fast) !important;
  }
  .nav-toggle-btn:hover {
    border-color: var(--accent-gold) !important;
  }
  .hamburger-bar {
    width: 14px !important;
    height: 1.5px !important;
    background-color: var(--text-primary) !important;
    margin: 0 !important;
  }
  .nav-toggle-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg) !important;
    background-color: #FFFFFF !important;
  }
  .nav-toggle-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0 !important;
  }
  .nav-toggle-btn.open .hamburger-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg) !important;
    background-color: #FFFFFF !important;
  }

  /* Prevent squeezed/cramped form inputs on narrow screens */
  .admission-box {
    padding: 30px 20px !important;
  }

  /* Prevent Brain Gym Mental Math Game overflow or squeezing */
  .hss-game-screen {
    padding: 24px 16px !important;
    min-height: 240px !important;
  }
  .hss-game-start-panel h4 {
    font-size: 1.3rem !important;
  }
  .hss-game-input-panel h4 {
    font-size: 1.25rem !important;
  }

  /* Prevent scrapbook button wrap and overflow */
  .hss-scrapbook-btn {
    padding: 10px 14px !important;
    font-size: 0.8rem !important;
  }
  .hss-scrapbook-controls {
    gap: 8px !important;
  }

  /* Prevent contact header overflow */
  .contact-heading {
    font-size: 1.60rem !important;
  }
}

/* Extra support for extremely narrow 320px screens */
@media (max-width: 360px) {
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.5rem !important; }
  .timeline-item {
    padding-left: 35px !important;
  }
  .brand-link {
    font-size: 1.15rem !important;
  }
  .header-logo {
    height: 30px !important;
  }
}
/* -------------------------------------------------------------
 * 16. SECTION 1: "GROW WITH US" CURRICULUM STYLING
 * ------------------------------------------------------------- */
.hss-curriculum-section {
  padding: 30px 0 60px 0; /* Expanded bottom padding to create breathing room for scribble & pencil */
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-normal);
}

.hss-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hss-tab-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  transition: all var(--transition-normal);
}

.hss-tab-btn.active, .hss-tab-btn:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-dark-navy) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

.hss-tab-content {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  /* Fixed height prevents layout shifts when panels switch */
  height: 460px;
  transition: background-color var(--transition-normal);
}

.hss-tab-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 40px;
}

.hss-tab-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hss-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hss-panel-text h4 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hss-panel-text p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hss-panel-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hss-panel-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.hss-panel-bullets i {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.hss-panel-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 4 / 3;
}

.hss-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hss-tab-panel:hover .hss-panel-image img {
  transform: scale(1.05);
}

/* -------------------------------------------------------------
 * 17. SECTION 2: 4Q HOLISTIC RADAR CHART STYLING
 * ------------------------------------------------------------- */
.hss-4q-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

.hss-4q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  /* Isolate internal layout from page reflow */
  contain: layout;
}

.hss-4q-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Enable 3D depth perspective */
}

/* --- 3D Orbital Gyroscope of Growth --- */
.hss-4q-gyroscope {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  contain: layout;
}

.gyro-sun {
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #FFE57F 0%, #FFB300 70%, #FF8F00 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #3b1e00; /* Deep gold-brown icon */
  box-shadow: 0 0 35px rgba(255, 179, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.4);
  z-index: 10;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.gyro-sun:hover {
  transform: scale(1.06);
  box-shadow: 0 0 45px rgba(255, 179, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.gyro-sun-emblem {
  font-size: 2.2rem;
  line-height: 1;
  animation: sun-pulse 2.2s infinite ease-in-out;
}

.gyro-sun-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.2px;
  line-height: 1.1;
  margin-top: 4px;
  text-transform: uppercase;
  text-shadow: none; /* High-contrast text on bright gold needs no shadow */
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 229, 127, 0.5)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(255, 179, 0, 0.9)); }
}

/* Concentric Orbit Rings */
.gyro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--card-border);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Let clicks pass through to planets */
  transform-style: preserve-3d;
  will-change: transform;
}

/* Orbit Ring Dimensions & Durations */
.ring-iq {
  width: 170px;
  height: 170px;
  --orbit-dur: 14s;
  animation: gyro-orbit-clockwise var(--orbit-dur) linear infinite;
  border-color: rgba(255, 164, 27, 0.22);
  z-index: 5;
}

.ring-eq {
  width: 250px;
  height: 250px;
  --orbit-dur: 20s;
  animation: gyro-orbit-clockwise var(--orbit-dur) linear infinite;
  border-color: rgba(255, 107, 107, 0.22);
  z-index: 4;
}

.ring-sq {
  width: 330px;
  height: 330px;
  --orbit-dur: 26s;
  animation: gyro-orbit-clockwise var(--orbit-dur) linear infinite;
  border-color: rgba(155, 93, 229, 0.22);
  z-index: 3;
}

.ring-pq {
  width: 410px;
  height: 410px;
  --orbit-dur: 32s;
  animation: gyro-orbit-clockwise var(--orbit-dur) linear infinite;
  border-color: rgba(77, 150, 255, 0.22);
  z-index: 2;
}

/* Clockwise Orbit Loop */
@keyframes gyro-orbit-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Counter Rotational Loop (Keeps icons/labels upright) */
@keyframes gyro-orbit-counter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Interactive Planet Spheres on Orbit Ring Boundaries */
.gyro-planet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto; /* Enable hover/clicks on planets */
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  user-select: none;
  z-index: 10;
}

/* Custom Thematic Color Gradients */
.planet-iq {
  background: linear-gradient(135deg, #FFA41B 0%, #FFD437 100%);
  box-shadow: 0 0 15px rgba(255, 164, 27, 0.25);
  color: #3b2000; /* Deep amber-brown icon */
}
.planet-iq .planet-label {
  color: #3b2000; /* Deep amber-brown label */
  text-shadow: none;
}

.planet-eq {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.25);
  color: #4c0c0c; /* Deep crimson icon */
}
.planet-eq .planet-label {
  color: #4c0c0c; /* Deep crimson label */
  text-shadow: none;
}

.planet-sq {
  background: linear-gradient(135deg, #9B5DE5 0%, #B5179E 100%);
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.25);
  color: #2d0046; /* Deep plum icon */
}
.planet-sq .planet-label {
  color: #2d0046; /* Deep plum label */
  text-shadow: none;
}

.planet-pq {
  background: linear-gradient(135deg, #4D96FF 0%, #6ECBFF 100%);
  box-shadow: 0 0 15px rgba(77, 150, 255, 0.25);
  color: #001d3b; /* Deep navy icon */
}
.planet-pq .planet-label {
  color: #001d3b; /* Deep navy label */
  text-shadow: none;
}

/* Planet States: Hover & Active Scaling */
.gyro-planet:hover {
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 0 25px currentColor;
}

.gyro-planet.active {
  transform: translate(-50%, -50%) scale(1.26);
  box-shadow: 0 0 35px currentColor, 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 25;
}

.gyro-planet:focus-visible {
  outline: 2.5px solid var(--accent-gold);
  outline-offset: 4px;
}

/* Inner Planet Content with Rotational Compensation */
.gyro-planet-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: gyro-orbit-counter var(--orbit-dur) linear infinite;
  will-change: transform;
}

.planet-icon {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.planet-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.68rem;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Pausing Orbit Animations in Place */
.hss-4q-gyroscope.paused .gyro-ring,
.hss-4q-gyroscope.paused .gyro-planet-content {
  animation-play-state: paused !important;
}

/* Expanding Gravity Ripples for Active Planet */
.planet-ripples {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 50%;
}

.planet-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  pointer-events: none;
  opacity: 0;
}

.gyro-planet.active .planet-ripple {
  animation: ripple-wave 2s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

.gyro-planet.active .planet-ripple:nth-child(2) {
  animation-delay: 1s;
}

@keyframes ripple-wave {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.hss-4q-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  /* Fixed height prevents layout shifts when 4Q cards switch */
  height: 360px;
}

.hss-4q-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-premium);
}

.hss-4q-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hss-4q-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.hss-4q-card h4 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hss-4q-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------------------------------------------------------------
 * 18. SECTION 3: 3D MEMORY SCRAPBOOK ALBUM STYLING
 * ------------------------------------------------------------- */
.hss-scrapbook-section {
  padding: 30px 0;
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-normal);
}

.hss-scrapbook-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hss-scrapbook-book {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium), 0 30px 70px -20px rgba(11, 43, 92, 0.25);
  border: 1px solid var(--card-border);
  perspective: 1500px;
  overflow: hidden;
  /* Isolate scrapbook flips from page layout */
  contain: layout;
}

.hss-page {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  right: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
  cursor: pointer;
}

/* Left Page setup (base visual) */
.hss-page-front, .hss-page-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

.hss-page-front {
  background-color: var(--bg-primary);
  border-left: 1px solid var(--card-border);
  z-index: 2;
}

.hss-page-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hss-page-back {
  background-color: var(--bg-primary);
  transform: rotateY(180deg);
  border-right: 1px solid var(--card-border);
  z-index: 1;
}

.hss-scrapbook-text {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hss-scrapbook-text h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hss-scrapbook-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.hss-page-number {
  position: absolute;
  bottom: 30px;
  right: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
}

/* 3D Page flip triggers */
.hss-page.flipped {
  transform: rotateY(-180deg);
  z-index: 5;
}

.hss-scrapbook-controls {
  display: flex;
  gap: 20px;
}

.hss-scrapbook-btn {
  padding: 12px 24px !important;
  font-size: 0.95rem !important;
}

/* -------------------------------------------------------------
 * 19. RESPONSIVE RECONSTRUCTION OVERRIDES (MOBILE & TABLET)
 * ------------------------------------------------------------- */
@media (max-width: 991px) {
  .hss-panel-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hss-panel-image {
    order: -1;
  }
  .hss-4q-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Adjust fixed heights for tablet viewport */
  .hss-tab-content {
    height: 560px;
  }
  .hss-4q-panel {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hss-curriculum-section, .hss-4q-section, .hss-scrapbook-section {
    padding: 70px 0;
  }
  .hss-tabs-bar {
    gap: 8px;
  }
  .hss-tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  /* Taller fixed heights on mobile due to single-column layout */
  .hss-tab-content {
    height: 720px;
  }
  .hss-tab-panel {
    padding: 24px 20px;
  }
  .hss-4q-panel {
    height: 340px;
  }
  .hss-4q-card {
    padding: 24px;
  }
  .hss-showcase-card {
    min-height: 500px;
  }

  /* Scrapbook Mobile Responsive 3D page-turning styling overrides */
  .hss-scrapbook-book {
    height: 320px !important;
    perspective: 1000px !important;
  }
  .hss-scrapbook-text {
    padding: 16px 12px !important;
  }
  .hss-scrapbook-text h3 {
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
  }
  .hss-scrapbook-text p {
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
  }
  .hss-page-number {
    font-size: 0.65rem !important;
    bottom: 10px !important;
    right: 10px !important;
  }
  .hss-scrapbook-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* -------------------------------------------------------------
 * 20. SCROLLING GATE SYSTEM & NEXT-LEVEL GRAPHICS
 * ------------------------------------------------------------- */
.hss-gate-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100; /* Stays above initial canvas before user scrolls */
  overflow: hidden;
  pointer-events: none; /* Make click-through so user interactions are clean */
}

.hss-gate {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: var(--bg-dark-navy);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto; /* Allow scrolling/interactions */
}

.hss-gate-left {
  left: 0;
  border-right: 2px solid var(--accent-gold);
}

.hss-gate-right {
  right: 0;
  border-left: 2px solid var(--accent-gold);
}

.hss-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background-color: rgba(11, 43, 92, 0.35);
}

.hss-gate-text {
  text-align: center;
  color: #FFFFFF;
}

.hss-gate-text h2 {
  font-size: 3rem;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hss-gate-text p {
  font-size: 1.2rem;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hss-gate-indicator {
  margin-top: 24px;
  font-size: 2rem;
  color: var(--accent-gold);
  animation: bounce-gate-arrow 1.6s infinite ease-in-out;
}

@keyframes bounce-gate-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Gamified Skill Tree Section styling */
.hss-skill-tree-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

.hss-tree-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.hss-traits-panel, .hss-programs-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===========================================================
   SKILL MAP — 2-column click-to-reveal layout
   =========================================================== */

.hss-skill-map-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* --- Left: Trait selector panel --- */
.hss-traits-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hss-traits-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hss-traits-hint i {
  color: var(--accent-gold);
}

.hss-trait-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-premium);
  transition: all var(--transition-normal);
}

.hss-trait-card:hover {
  border-color: var(--accent-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-gold-glow);
}

.hss-trait-card.active {
  border-color: var(--accent-gold);
  background-color: var(--bg-primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-gold-glow);
}

.hss-trait-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.hss-trait-card.active .hss-trait-icon,
.hss-trait-card:hover .hss-trait-icon {
  transform: scale(1.12);
}

.hss-trait-info {
  flex: 1;
}

.hss-trait-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.hss-trait-arrow {
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.hss-trait-card.active .hss-trait-arrow,
.hss-trait-card:hover .hss-trait-arrow {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* --- Right: Detail panel --- */
.hss-skill-detail-panel {
  padding: 20px 36px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color var(--transition-normal);
}

/* Placeholder state */
.hss-skill-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 20px;
}

.hss-skill-placeholder i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  opacity: 0.5;
  animation: float-hint 2.5s ease-in-out infinite;
}

@keyframes float-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hss-skill-placeholder p {
  font-size: 0.95rem;
  max-width: 260px;
  line-height: 1.6;
}

/* Detail content (shown after click) */
.hss-skill-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hss-skill-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.hss-skill-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

#skill-detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}

#skill-detail-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Program cards grid */
.hss-skill-programs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hss-skill-program-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hss-skill-program-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hss-skill-program-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hss-skill-program-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.hss-skill-program-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Mental Math Gym Game styling */
.hss-brain-gym-section {
  padding: 30px 0;
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-normal);
}

.hss-game-wrapper {
  display: flex;
  justify-content: center;
}

.hss-game-card {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  transition: background-color var(--transition-normal);
}

.hss-game-screen {
  padding: 50px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hss-game-countdown {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 20px;
  min-height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hss-game-countdown.active {
  opacity: 1;
  transform: translateY(0);
}

.hss-result-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hss-game-start-panel h4 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hss-game-start-panel p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.game-pulse-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  animation: pulse-icon-game 1.2s infinite ease-in-out;
}

@keyframes pulse-icon-game {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent-gold)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px var(--accent-gold)); }
}

.hss-game-numbers-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.hss-flashing-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-gold);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.hss-flashing-number.show {
  transform: scale(1);
  opacity: 1;
}

.hss-game-input-panel h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hss-input-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

/* Ensure typed text is always visible in the game input */
#game-user-answer {
  color: #0B2B5C !important;
  background: #FFFFFF !important;
  border: 2px solid rgba(11, 43, 92, 0.25) !important;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

#game-user-answer:focus {
  border-color: var(--accent-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25) !important;
}

body.dark-mode #game-user-answer {
  color: #FFFFFF !important;
  background: #0F233C !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

#input-retry-game-btn {
  margin-top: 20px;
  padding: 8px 24px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

/* Global Dark Mode Ambient Twilights variable sets */
[data-theme="twilight"] {
  --bg-primary: #061426;      /* Velvet Navy */
  --bg-secondary: #0A213D;    /* Midnight Blue card backdrops */
  --bg-dark-navy: #02070D;
  --bg-midnight: #010305;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --accent-gold: #F1C40F;     /* Radiant Gold accents */
  --accent-gold-alpha: rgba(241, 196, 15, 0.2);
  --card-border: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
  .hss-skill-map-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* When panel is moved inline between cards on mobile */
  .hss-skill-detail-panel {
    min-height: unset;
    padding: 20px;
    margin: 0;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 600px) {
  .hss-skill-program-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* Playful 3D Alphabet Toy Blocks Divider */
.hss-toy-blocks-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  gap: 16px;
  z-index: 10;
  pointer-events: auto;
}

/* Outer wrapper handles staggered falling animation */
.hss-toy-block-wrapper {
  opacity: 0;
  transform: translateY(-200px) scale(0.5);
  display: inline-block;
}

.hss-toy-blocks-divider.visible .hss-toy-block-wrapper {
  animation: block-fall 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes block-fall {
  0% {
    opacity: 0;
    transform: translateY(-200px) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateY(15px) scale(1.05);
  }
  80% {
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes block-float {
  0%, 100% {
    transform: rotate(var(--rot)) translateY(0);
  }
  50% {
    transform: rotate(var(--rot)) translateY(-8px);
  }
}

/* Inner block handles background, rotation, 3D style, hover and floating bobbing */
.hss-toy-block {
  width: 60px;
  height: 60px;
  background: var(--bg-gradient);
  border: 3px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 0 var(--shadow-color), 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(var(--rot));
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  user-select: none;
  
  /* Infinite Gentle Bobbing Floating Animation */
  animation: block-float 3s ease-in-out infinite;
}

/* Stagger floating speeds organically to feel alive */
.hss-toy-block.block-a { animation-duration: 2.8s; }
.hss-toy-block.block-b { animation-duration: 3.2s; animation-delay: 0.2s; }
.hss-toy-block.block-c { animation-duration: 3.0s; animation-delay: 0.4s; }
.hss-toy-block.block-d { animation-duration: 3.4s; animation-delay: 0.6s; }
.hss-toy-block.block-e { animation-duration: 2.9s; animation-delay: 0.8s; }
.hss-toy-block.block-f { animation-duration: 3.1s; animation-delay: 1.0s; }
.hss-toy-block.block-g { animation-duration: 3.3s; animation-delay: 1.2s; }
.hss-toy-block.block-h { animation-duration: 3.0s; animation-delay: 1.4s; }
.hss-toy-block.block-i { animation-duration: 3.5s; animation-delay: 1.6s; }

.hss-toy-block:hover {
  transform: scale(1.15) translateY(-8px) rotate(calc(var(--rot) * 1.5)) !important;
  box-shadow: 0 12px 0 var(--shadow-color), 0 18px 25px rgba(0, 0, 0, 0.25);
  animation-play-state: paused;
}

.hss-toy-block:active {
  transform: scale(0.95) translateY(2px) rotate(var(--rot)) !important;
  box-shadow: 0 3px 0 var(--shadow-color), 0 6px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .hss-toy-blocks-divider {
    gap: 6px !important;
    transform: translate(-50%, 50%) scale(0.75) !important;
  }
  .hss-toy-block {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 0 var(--shadow-color), 0 8px 12px rgba(0, 0, 0, 0.15);
  }
  .hss-toy-block:hover {
    transform: scale(1.1) translateY(-6px) rotate(calc(var(--rot) * 1.2)) !important;
  }
}

@media (max-width: 360px) {
  .hss-toy-blocks-divider {
    gap: 4px !important;
    transform: translate(-50%, 50%) scale(0.65) !important;
  }
}

.hss-section-divider-curve-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
  pointer-events: none;
}

/* --- PLAYFUL OUT-OF-THE-BOX SECTION DIVIDERS --- */

/* 1. School Bus Driving Divider */
.hss-bus-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

.hss-school-bus {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 110px;
  height: 52px;
  transform: translateX(-150px);
}

.hss-bus-divider.visible .hss-school-bus {
  animation: bus-drive-loop 12s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.bus-body {
  position: absolute;
  width: 100%;
  height: 40px;
  background: #FFD23F;
  border: 3px solid #333333;
  border-radius: 8px 16px 6px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  animation: bus-bounce 0.2s ease-in-out infinite alternate;
}

.bus-window {
  width: 16px;
  height: 14px;
  background: #8ECAE6;
  border: 2px solid #333333;
  border-radius: 4px;
}

.bus-headlight {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  background: #FFF;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: 0 0 10px #FFF, 0 0 20px #FF0;
}

.bus-wheel {
  position: absolute;
  bottom: -4px;
  width: 22px;
  height: 22px;
  background: #333333;
  border: 4px double #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: wheel-spin 0.6s linear infinite;
}

.wheel-1 { left: 16px; }
.wheel-2 { right: 20px; }

@keyframes bus-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

@keyframes wheel-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bus-drive-loop {
  0% {
    transform: translateX(-150px);
  }
  30% {
    transform: translateX(calc(100vw + 150px));
  }
  100% {
    transform: translateX(calc(100vw + 150px));
  }
}

/* --- Driving Vehicles Staggered Parade Delays --- */
.hss-bus-divider.visible .vehicle-bus {
  animation-delay: 0s;
}
.hss-bus-divider.visible .vehicle-car {
  animation-delay: 3s;
}
.hss-bus-divider.visible .vehicle-van {
  animation-delay: 6s;
}
.hss-bus-divider.visible .vehicle-sports {
  animation-delay: 9s;
}

/* --- Bouncing animation on all vehicle bodies --- */
.car-body, .van-body, .sports-body {
  animation: bus-bounce 0.2s ease-in-out infinite alternate;
}

/* --- Vehicle Style 2: Red Beetle Car --- */
.car-body {
  position: absolute;
  width: 90px;
  height: 24px;
  background: #FF4D6D; /* Crimson Red */
  border: 3px solid #333333;
  border-radius: 8px 12px 4px 4px;
  bottom: 8px;
  left: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.car-canopy {
  position: absolute;
  width: 52px;
  height: 20px;
  background: #FF4D6D;
  border: 3px solid #333333;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  top: -20px;
  left: 14px;
}

.car-window {
  position: absolute;
  width: 38px;
  height: 13px;
  background: #8ECAE6;
  border: 2px solid #333333;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  top: 3px;
  left: 5px;
}

.car-headlight {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border: 2px solid #333333;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFF, 0 0 16px #FF0;
}

/* --- Vehicle Style 3: Blue Delivery Van --- */
.van-body {
  position: absolute;
  width: 96px;
  height: 38px;
  background: #4EA8DE; /* Sky Blue */
  border: 3px solid #333333;
  border-radius: 8px 14px 4px 4px;
  bottom: 8px;
  left: 7px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.van-window {
  position: absolute;
  width: 22px;
  height: 16px;
  background: #8ECAE6;
  border: 2px solid #333333;
  border-radius: 2px 8px 2px 2px;
  top: 4px;
  right: 8px;
}

.van-stripe {
  position: absolute;
  width: 60px;
  height: 4px;
  background: #FFFFFF;
  border-radius: 2px;
  left: 6px;
  bottom: 12px;
  opacity: 0.8;
}

.van-headlight {
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border: 2px solid #333333;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFF, 0 0 16px #FF0;
}

/* --- Vehicle Style 4: Green Sports Car --- */
.sports-body {
  position: absolute;
  width: 100px;
  height: 20px;
  background: #74C69D; /* Emerald Green */
  border: 3px solid #333333;
  border-radius: 4px 18px 4px 4px;
  bottom: 8px;
  left: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.sports-window {
  position: absolute;
  width: 32px;
  height: 12px;
  background: #8ECAE6;
  border: 2.5px solid #333333;
  border-radius: 4px 10px 0 0;
  top: -12px;
  left: 32px;
  transform: skewX(-15deg);
}

.sports-spoiler {
  position: absolute;
  width: 14px;
  height: 6px;
  background: #2D6A4F;
  border: 2.5px solid #333333;
  border-radius: 2px;
  top: -6px;
  left: 6px;
}

.sports-headlight {
  position: absolute;
  right: 3px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border: 2px solid #333333;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFF, 0 0 16px #FF0;
}

/* 2. Glowing Rainbow Divider */
.hss-rainbow-divider {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 100px;
  overflow: visible;
  pointer-events: none;
  z-index: 2; /* LOWERED TO SIT BEHIND CONTAINER CONTENTS */
}

.rainbow-arc {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 200px;
  height: 100px;
  overflow: hidden;
  transform-origin: bottom center;
}

.hss-rainbow-divider.visible .rainbow-arc {
  animation: rainbow-sweep-loop 14s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.rainbow-stripe {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.stripe-red    { width: 200px; height: 200px; border: 8px solid #FF5E62; bottom: -100px; }
.stripe-orange { width: 184px; height: 184px; border: 8px solid #FF9966; bottom: -92px; }
.stripe-yellow { width: 168px; height: 168px; border: 8px solid #FFD97D; bottom: -84px; }
.stripe-green  { width: 152px; height: 152px; border: 8px solid #52B788; bottom: -76px; }
.stripe-blue   { width: 136px; height: 136px; border: 8px solid #4EA8DE; bottom: -68px; }

.rainbow-cloud {
  position: absolute;
  bottom: -4px;
  font-size: 2.2rem;
  color: #FFFFFF;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  opacity: 0;
  transform: scale(0);
}

.hss-rainbow-divider.visible .rainbow-cloud {
  animation: cloud-scale-loop 14s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.rainbow-cloud i {
  display: inline-block;
  animation: cloud-drift-icon 3s ease-in-out infinite alternate;
}

.cloud-left {
  left: 36px;
}

.cloud-right {
  right: 36px;
}

@keyframes cloud-drift-icon {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes rainbow-sweep-loop {
  0%, 100% { transform: translateX(-50%) scale(0); }
  6%, 84% { transform: translateX(-50%) scale(1); }
  90% { transform: translateX(-50%) scale(0); }
}

@keyframes cloud-scale-loop {
  0%, 100% { opacity: 0; transform: scale(0); }
  8%, 82% { opacity: 1; transform: scale(1); }
  88% { opacity: 0; transform: scale(0); }
}

/* 2b. Playful CSS Floating Soap Bubbles Divider */
.hss-soap-bubbles-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: transparent;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.hss-soap-bubbles-divider .bubble-container {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* Enable hover triggers on bubbles */
}

.hss-soap-bubbles-divider .bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(0.5px);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hss-soap-bubbles-divider.visible .bubble {
  opacity: 1;
}

/* Internal reflection sheen highlight */
.hss-soap-bubbles-divider .bubble-sheen {
  position: absolute;
  top: 12%;
  left: 15%;
  width: 25%;
  height: 25%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transform: rotate(-30deg);
}

/* Bounce & Travel right-to-left keyframe animations */
@keyframes bubble-travel-1 {
  0%   { left: 105%; transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-18px) rotate(45deg); }
  50%  { transform: translateY(8px) rotate(90deg); }
  75%  { transform: translateY(-12px) rotate(135deg); }
  100% { left: -15%; transform: translateY(0px) rotate(180deg); }
}

@keyframes bubble-travel-2 {
  0%   { left: 105%; transform: translateY(-8px) rotate(0deg); }
  20%  { transform: translateY(12px) rotate(-60deg); }
  45%  { transform: translateY(-16px) rotate(-120deg); }
  70%  { transform: translateY(6px) rotate(-180deg); }
  100% { left: -15%; transform: translateY(-8px) rotate(-240deg); }
}

@keyframes bubble-travel-3 {
  0%   { left: 105%; transform: translateY(6px) rotate(0deg); }
  30%  { transform: translateY(-10px) rotate(40deg); }
  60%  { transform: translateY(14px) rotate(80deg); }
  85%  { transform: translateY(-8px) rotate(120deg); }
  100% { left: -15%; transform: translateY(6px) rotate(160deg); }
}

/* Individual Colorful Pastel Iridescent Gradients, Sizes, and Bouncing Speed Loops */

/* Bubble 1: Soft Violet / Lavender */
.hss-soap-bubbles-divider .bubble-1 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(216, 191, 216, 0.35) 75%, rgba(186, 85, 211, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(186, 85, 211, 0.25), inset 5px 5px 12px rgba(216, 191, 216, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(216, 191, 216, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-1 {
  width: 32px; height: 32px; bottom: -8px;
  animation: bubble-travel-1 14s linear infinite;
  animation-delay: -4s;
}

/* Bubble 2: Soft Mint / Green */
.hss-soap-bubbles-divider .bubble-2 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(168, 230, 207, 0.35) 75%, rgba(52, 183, 136, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(52, 183, 136, 0.25), inset 5px 5px 12px rgba(168, 230, 207, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(168, 230, 207, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-2 {
  width: 44px; height: 44px; bottom: -18px;
  animation: bubble-travel-2 18s linear infinite;
  animation-delay: -12s;
}

/* Bubble 3: Soft Amber / Gold */
.hss-soap-bubbles-divider .bubble-3 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 223, 125, 0.35) 75%, rgba(212, 175, 55, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(212, 175, 55, 0.25), inset 5px 5px 12px rgba(255, 223, 125, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 223, 125, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-3 {
  width: 28px; height: 28px; bottom: -4px;
  animation: bubble-travel-3 12s linear infinite;
  animation-delay: -2s;
}

/* Bubble 4: Soft Coral / Red */
.hss-soap-bubbles-divider .bubble-4 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 179, 186, 0.35) 75%, rgba(255, 94, 98, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(255, 94, 98, 0.25), inset 5px 5px 12px rgba(255, 179, 186, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 179, 186, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-4 {
  width: 38px; height: 38px; bottom: -12px;
  animation: bubble-travel-1 16s linear infinite;
  animation-delay: -8s;
}

/* Bubble 5: Soft Turquoise / Teal */
.hss-soap-bubbles-divider .bubble-5 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(179, 255, 236, 0.35) 75%, rgba(0, 206, 209, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(0, 206, 209, 0.25), inset 5px 5px 12px rgba(179, 255, 236, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(179, 255, 236, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-5 {
  width: 48px; height: 48px; bottom: -22px;
  animation: bubble-travel-2 20s linear infinite;
  animation-delay: -16s;
}

/* Bubble 6: Soft Sky Blue / Cyan */
.hss-soap-bubbles-divider .bubble-6 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(186, 225, 255, 0.35) 75%, rgba(30, 144, 255, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(30, 144, 255, 0.25), inset 5px 5px 12px rgba(186, 225, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(186, 225, 255, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-6 {
  width: 26px; height: 26px; bottom: -6px;
  animation: bubble-travel-3 11s linear infinite;
  animation-delay: -5s;
}

/* Bubble 7: Soft Rose / Magenta */
.hss-soap-bubbles-divider .bubble-7 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 204, 229, 0.35) 75%, rgba(255, 20, 147, 0.25) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(255, 20, 147, 0.2), inset 5px 5px 12px rgba(255, 204, 229, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 204, 229, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-7 {
  width: 42px; height: 42px; bottom: -10px;
  animation: bubble-travel-1 17s linear infinite;
  animation-delay: -10s;
}

/* Bubble 8: Soft Peach / Orange */
.hss-soap-bubbles-divider .bubble-8 {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 218, 185, 0.35) 75%, rgba(255, 140, 0, 0.3) 90%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), inset -5px -5px 12px rgba(255, 140, 0, 0.25), inset 5px 5px 12px rgba(255, 218, 185, 0.25), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 218, 185, 0.45);
}
.hss-soap-bubbles-divider.visible .bubble-8 {
  width: 34px; height: 34px; bottom: -14px;
  animation: bubble-travel-2 15s linear infinite;
  animation-delay: -1s;
}

/* Interactive Hover effects */
.hss-soap-bubbles-divider .bubble:hover {
  filter: brightness(1.1) saturate(1.25);
  box-shadow: 
    inset 0 0 14px rgba(255, 255, 255, 0.8),
    inset -5px -5px 15px rgba(255, 255, 255, 0.3),
    inset 5px 5px 15px rgba(255, 255, 255, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.08);
  transform: scale(1.12) !important; /* Forces micro hover scale while active */
}

.hss-soap-bubbles-divider .bubble.bubble-popped {
  animation: bubble-pop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.5) forwards !important;
  pointer-events: none;
}

@keyframes bubble-pop {
  0%   { transform: scale(1) blur(0); opacity: 1; }
  50%  { transform: scale(1.4) blur(1.5px); opacity: 0.6; }
  100% { transform: scale(0.1) blur(3px); opacity: 0; }
}

/* 3. Multiple Paper Planes Gliding along Curve */
.hss-paper-plane {
  position: absolute;
  top: 15px;
  left: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  z-index: 12;
  pointer-events: none;
}

.plane-1  { font-size: 1.3rem;  color: #FFA41B; animation: plane-glide-1 10s  linear infinite; animation-delay: 0s; }
.plane-2  { font-size: 0.9rem;  color: #6ECBFF; animation: plane-glide-2 13s  linear infinite; animation-delay: 1.5s; }
.plane-3  { font-size: 1.5rem;  color: #FF8E8E; animation: plane-glide-3 11s  linear infinite; animation-delay: 3s; }
.plane-4  { font-size: 1.1rem;  color: #8BC34A; animation: plane-glide-4 14s  linear infinite; animation-delay: 4.5s; }
.plane-5  { font-size: 1.4rem;  color: #E040FB; animation: plane-glide-1 12s  linear infinite; animation-delay: 6s; }
.plane-6  { font-size: 0.85rem; color: #00E676; animation: plane-glide-2 15s  linear infinite; animation-delay: 7.5s; }
.plane-7  { font-size: 1.2rem;  color: #FFD93D; animation: plane-glide-3 12.5s linear infinite; animation-delay: 2.0s; }
.plane-8  { font-size: 1.6rem;  color: #FF5252; animation: plane-glide-4 11.5s linear infinite; animation-delay: 3.5s; }
.plane-9  { font-size: 1.0rem;  color: #18FFFF; animation: plane-glide-1 13.5s linear infinite; animation-delay: 5.0s; }
.plane-10 { font-size: 1.3rem;  color: #FF9100; animation: plane-glide-2 10.5s linear infinite; animation-delay: 6.5s; }
.plane-11 { font-size: 0.95rem; color: #E040FB; animation: plane-glide-3 12s   linear infinite; animation-delay: 8.0s; }
.plane-12 { font-size: 1.45rem; color: #4CAF50; animation: plane-glide-4 14s   linear infinite; animation-delay: 9.5s; }
.plane-13 { font-size: 1.1rem;  color: #FFEB3B; animation: plane-glide-2 13s   linear infinite; animation-delay: 11.0s; }

@keyframes plane-glide-1 {
  0% { left: -50px; top: 40px; transform: rotate(15deg); opacity: 0; }
  5% { opacity: 1; }
  50% { top: 12px; transform: rotate(-3deg); }
  90% { opacity: 1; }
  95%, 100% { left: 105%; top: 45px; transform: rotate(18deg); opacity: 0; }
}

@keyframes plane-glide-2 {
  0% { left: -50px; top: 55px; transform: rotate(10deg); opacity: 0; }
  5% { opacity: 0.8; }
  50% { top: 22px; transform: rotate(-6deg); }
  90% { opacity: 0.8; }
  95%, 100% { left: 105%; top: 32px; transform: rotate(14deg); opacity: 0; }
}

@keyframes plane-glide-3 {
  0% { left: -50px; top: 25px; transform: rotate(18deg); opacity: 0; }
  5% { opacity: 0.9; }
  50% { top: 6px; transform: rotate(-1deg); }
  90% { opacity: 0.9; }
  95%, 100% { left: 105%; top: 40px; transform: rotate(22deg); opacity: 0; }
}

@keyframes plane-glide-4 {
  0% { left: -50px; top: 35px; transform: rotate(12deg); opacity: 0; }
  5% { opacity: 0.9; }
  50% { top: 18px; transform: rotate(-4deg); }
  90% { opacity: 0.9; }
  95%, 100% { left: 105%; top: 38px; transform: rotate(16deg); opacity: 0; }
}

/* 4. Playful Wiggling Caterpillar Divider */
.hss-caterpillar-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 320px;
  height: 50px;
  overflow: visible;
  z-index: 10;
  pointer-events: none;
}

.hss-caterpillar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  animation: caterpillar-crawl 5s ease-in-out infinite alternate;
}

.caterpillar-segment {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #333333;
  margin-right: -8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  animation: segment-wiggle 0.6s ease-in-out infinite alternate;
}

.segment-1 { animation-delay: 0.1s; }
.segment-2 { animation-delay: 0.2s; }
.segment-3 { animation-delay: 0.3s; }
.segment-4 { animation-delay: 0.4s; }
.segment-5 { animation-delay: 0.5s; }
.segment-6 { animation-delay: 0.6s; }
.segment-7 { animation-delay: 0.7s; }
.segment-8 { animation-delay: 0.8s; }

.caterpillar-head {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #333333;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  animation: segment-wiggle 0.6s ease-in-out infinite alternate;
  animation-delay: 0.9s;
}

.caterpillar-eye {
  position: absolute;
  top: 8px;
  width: 5px;
  height: 8px;
  background: #333333;
  border-radius: 50%;
}
.eye-left  { left: 10px; }
.eye-right { right: 10px; }

.caterpillar-antenna {
  position: absolute;
  top: -10px;
  width: 3px;
  height: 12px;
  background: #333333;
}
.antenna-left {
  left: 8px;
  transform: rotate(-15deg);
}
.antenna-right {
  right: 8px;
  transform: rotate(15deg);
}

@keyframes segment-wiggle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes caterpillar-crawl {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(60px); }
}

/* 5. Crayon Pencil Scribble Divider */
.hss-crayon-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
  pointer-events: none;
  z-index: 10; /* Elevated z-index to draw the scribble and pencil on top of overlapping cards (z-index 3) */
}

.crayon-pencil {
  position: absolute;
  bottom: 12px;
  left: 0;
  font-size: 2.2rem;
  transform: rotate(-45deg);
  z-index: 4;
}

.hss-crayon-divider.visible .crayon-pencil {
  animation: crayon-draw 10s ease-in-out infinite;
}

@keyframes crayon-draw {
  0% {
    left: -50px;
    transform: rotate(-45deg) translateY(0);
  }
  40% {
    left: 45%;
    transform: rotate(-35deg) translateY(-2px);
  }
  45% {
    left: 55%;
    transform: rotate(-55deg) translateY(2px);
  }
  80% {
    left: 105%;
    transform: rotate(-45deg) translateY(0);
  }
  100% {
    left: 105%;
    transform: rotate(-45deg) translateY(0);
  }
}

.crayon-scribble {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 20px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hss-crayon-divider.visible .crayon-scribble {
  opacity: 0.7;
}

/* 6. Hanging Polaroid Photo Clips Divider */
.hss-hanging-photos-divider {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  z-index: 5;
  pointer-events: auto;
}

.hanging-rope {
  position: absolute;
  top: 0;
  left: -200px;
  width: calc(100% + 400px);
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
}

.photo-clip {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  opacity: 0;
}

.hss-hanging-photos-divider.visible .photo-clip {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.clip-1 { animation: swing-photo 3.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate; }
.clip-2 { 
  animation: swing-photo 4.2s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate; 
  animation-delay: 0.3s; 
  margin-right: 76px; /* Creates a beautiful gap in the middle (2 left, 2 right) */
}
.clip-3 { animation: swing-photo 3.8s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate; animation-delay: 0.6s; }
.clip-4 { animation: swing-photo 4.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate; animation-delay: 0.9s; }

@keyframes swing-photo {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

.photo-clip::before {
  content: '📌';
  font-size: 1.1rem;
  position: absolute;
  top: -8px;
  z-index: 10;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

.photo-card {
  width: 70px;
  height: 85px;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.photo-card:hover {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
  z-index: 12;
}

.photo-emoji {
  font-size: 2rem;
  margin-top: 4px;
}

.photo-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #555555;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
}

/* 7. Floating Paper Boat Divider */
.hss-paper-boat-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.boat-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  display: block;
}

.hss-boat-wrapper {
  position: absolute;
  bottom: 10px;
  z-index: 4;
  transform-origin: bottom center;
  opacity: 0;
}

.hss-paper-boat-divider.visible .hss-boat-wrapper {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.origami-boat {
  width: 60px;
  height: 36px;
  fill: var(--boat-color);
  transform: scale(var(--boat-scale));
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.boat-1  { left: 6%;  animation: boat-bob-1  5.5s ease-in-out infinite; }
.boat-2  { left: 16%; animation: boat-bob-2  6.5s ease-in-out infinite; }
.boat-3  { left: 26%; animation: boat-bob-1  5.8s ease-in-out infinite; }
.boat-4  { left: 36%; animation: boat-bob-2  7.0s ease-in-out infinite; }
.boat-5  { left: 46%; animation: boat-bob-1  6.2s ease-in-out infinite; }
.boat-6  { left: 56%; animation: boat-bob-2  5.2s ease-in-out infinite; }
.boat-7  { left: 66%; animation: boat-bob-1  6.8s ease-in-out infinite; }
.boat-8  { left: 76%; animation: boat-bob-2  5.9s ease-in-out infinite; }
.boat-9  { left: 86%; animation: boat-bob-1  6.4s ease-in-out infinite; }
.boat-10 { left: 93%; animation: boat-bob-2  7.2s ease-in-out infinite; }

@keyframes boat-bob-1 {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-7px) rotate(5deg); }
}

@keyframes boat-bob-2 {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-5px) rotate(-5deg); }
}

/* 8. Hanging Glowing Lightbulbs Divider */
.hss-lightbulbs-divider {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
  z-index: 5;
  pointer-events: none;
}

.bulb-wire {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  opacity: 0;
}

.hss-lightbulbs-divider.visible .bulb-wire {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.wire-1 { height: 50px; animation: bulb-swing 4s ease-in-out infinite alternate; }
.wire-2 { height: 65px; animation: bulb-swing 3.2s ease-in-out infinite alternate; animation-delay: 0.3s; }
.wire-3 { height: 55px; animation: bulb-swing 3.8s ease-in-out infinite alternate; animation-delay: 0.6s; }
.wire-4 { height: 70px; animation: bulb-swing 3.5s ease-in-out infinite alternate; animation-delay: 0.9s; }
.wire-5 { height: 60px; animation: bulb-swing 4.2s ease-in-out infinite alternate; animation-delay: 1.2s; }

@keyframes bulb-swing {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.bulb-wire::before {
  content: '';
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  display: block;
}

.lightbulb {
  font-size: 1.8rem;
  margin-top: -2px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 2px rgba(255, 210, 63, 0.2));
}

.lightbulb:hover {
  transform: scale(1.2);
}

.wire-1 .lightbulb { animation: bulb-glow-1 2s ease-in-out infinite alternate; }
.wire-2 .lightbulb { animation: bulb-glow-2 2.3s ease-in-out infinite alternate; }
.wire-3 .lightbulb { animation: bulb-glow-3 1.8s ease-in-out infinite alternate; }
.wire-4 .lightbulb { animation: bulb-glow-4 2.5s ease-in-out infinite alternate; }
.wire-5 .lightbulb { animation: bulb-glow-5 2.1s ease-in-out infinite alternate; }

@keyframes bulb-glow-1 { 0% { filter: drop-shadow(0 0 2px rgba(255,210,63,0.3)); opacity: 0.7; } 100% { filter: drop-shadow(0 0 15px rgba(255,210,63,1)); opacity: 1; } }
@keyframes bulb-glow-2 { 0% { filter: drop-shadow(0 0 2px rgba(255,210,63,0.3)); opacity: 0.7; } 100% { filter: drop-shadow(0 0 15px rgba(255,210,63,1)); opacity: 1; } }
@keyframes bulb-glow-3 { 0% { filter: drop-shadow(0 0 2px rgba(255,210,63,0.3)); opacity: 0.7; } 100% { filter: drop-shadow(0 0 15px rgba(255,210,63,1)); opacity: 1; } }
@keyframes bulb-glow-4 { 0% { filter: drop-shadow(0 0 2px rgba(255,210,63,0.3)); opacity: 0.7; } 100% { filter: drop-shadow(0 0 15px rgba(255,210,63,1)); opacity: 1; } }
@keyframes bulb-glow-5 { 0% { filter: drop-shadow(0 0 2px rgba(255,210,63,0.3)); opacity: 0.7; } 100% { filter: drop-shadow(0 0 15px rgba(255,210,63,1)); opacity: 1; } }

/* 9. Playful Flying Balloons Divider */
.hss-balloons-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.hss-balloon {
  position: absolute;
  bottom: -110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

.balloon-body {
  width: 44px;
  height: 54px;
  background: var(--bg-grad);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  position: relative;
  box-shadow: inset -5px -5px 0 rgba(0,0,0,0.12);
}

.balloon-body::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--knot-color);
}

.balloon-string {
  width: 1.5px;
  height: 45px;
  background: rgba(255, 255, 255, 0.22);
}

.hss-balloons-divider.visible .balloon-1 { animation: balloon-fly-1 12s ease-in-out infinite; left: 10%; }
.hss-balloons-divider.visible .balloon-2 { animation: balloon-fly-2 15s ease-in-out infinite; left: 26%; animation-delay: 2.5s; }
.hss-balloons-divider.visible .balloon-3 { animation: balloon-fly-3 13s ease-in-out infinite; left: 42%; animation-delay: 1.0s; }
.hss-balloons-divider.visible .balloon-4 { animation: balloon-fly-4 16s ease-in-out infinite; left: 58%; animation-delay: 4.0s; }
.hss-balloons-divider.visible .balloon-5 { animation: balloon-fly-1 14s ease-in-out infinite; left: 74%; animation-delay: 1.5s; }
.hss-balloons-divider.visible .balloon-6 { animation: balloon-fly-3 17s ease-in-out infinite; left: 88%; animation-delay: 5.0s; }

@keyframes balloon-fly-1 {
  0% { bottom: -120px; transform: translateX(0) scale(0.85) rotate(-5deg); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  90%, 100% { bottom: 130px; transform: translateX(30px) scale(0.85) rotate(5deg); opacity: 0; }
}

@keyframes balloon-fly-2 {
  0% { bottom: -120px; transform: translateX(0) scale(1.1) rotate(4deg); opacity: 0; }
  10% { opacity: 0.95; }
  80% { opacity: 0.95; }
  90%, 100% { bottom: 140px; transform: translateX(-35px) scale(1.1) rotate(-4deg); opacity: 0; }
}

@keyframes balloon-fly-3 {
  0% { bottom: -120px; transform: translateX(0) scale(0.95) rotate(-3deg); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  90%, 100% { bottom: 120px; transform: translateX(-25px) scale(0.95) rotate(3deg); opacity: 0; }
}

@keyframes balloon-fly-4 {
  0% { bottom: -120px; transform: translateX(0) scale(1.0) rotate(5deg); opacity: 0; }
  10% { opacity: 0.9; }
  80% { opacity: 0.9; }
  90%, 100% { bottom: 135px; transform: translateX(40px) scale(1.0) rotate(-5deg); opacity: 0; }
}

/* 10. Paint Brush & Splatters Divider */
.hss-paint-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.paint-brush {
  position: absolute;
  bottom: 8px;
  left: 0;
  font-size: 2.2rem;
  transform: rotate(-15deg);
  z-index: 4;
}

.hss-paint-divider.visible .paint-brush {
  animation: brush-stroke 9s ease-in-out infinite;
}

@keyframes brush-stroke {
  0% { left: -50px; transform: rotate(-15deg) translateY(0); }
  35% { left: 45%; transform: rotate(15deg) translateY(-3px); }
  40% { left: 55%; transform: rotate(-15deg) translateY(3px); }
  75% { left: 105%; transform: rotate(10deg) translateY(0); }
  100% { left: 105%; transform: rotate(10deg) translateY(0); }
}

.paint-splatters {
  position: absolute;
  bottom: 5px;
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: space-around;
  padding: 0 15%;
  z-index: 3;
}

.splat {
  font-size: 1.6rem;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s;
}

.hss-paint-divider.visible .splat-1 { transition-delay: 1.5s; opacity: 1; transform: scale(1); }
.hss-paint-divider.visible .splat-2 { transition-delay: 2.8s; opacity: 1; transform: scale(1.2); }
.hss-paint-divider.visible .splat-3 { transition-delay: 4.2s; opacity: 1; transform: scale(1.1); }
.hss-paint-divider.visible .splat-4 { transition-delay: 5.5s; opacity: 1; transform: scale(1.3); }

/* 11. Blackboard Slates Divider */
.hss-blackboards-divider {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  z-index: 5;
  pointer-events: none;
}

.slate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  opacity: 0;
}

.hss-blackboards-divider.visible .slate {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.slate-1 { animation: slate-swing 3.6s ease-in-out infinite alternate; }
.slate-2 { animation: slate-swing 4.4s ease-in-out infinite alternate; animation-delay: 0.3s; }
.slate-3 { animation: slate-swing 4.0s ease-in-out infinite alternate; animation-delay: 0.6s; }

@keyframes slate-swing {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(6deg); }
}

.slate::before {
  content: '';
  width: 2px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}

.slate-frame {
  width: 65px;
  height: 48px;
  background: #1B4332;
  border: 4px solid #8B5A2B;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.slate-frame:hover {
  transform: scale(1.1) rotate(5deg) !important;
}

/* 12. School Bell Divider */
.hss-school-bell-divider {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.school-bell {
  font-size: 2.4rem;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.15));
  transition: transform 0.2s ease;
}

.school-bell:hover {
  transform: scale(1.15);
}

.hss-school-bell-divider.visible .school-bell {
  animation: bell-ring-loop 7s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes bell-ring-loop {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(18deg); }
  90% { transform: rotate(-15deg); }
  93% { transform: rotate(10deg); }
  96% { transform: rotate(-8deg); }
  98% { transform: rotate(4deg); }
}

@media (max-width: 767px) {
  .hss-rainbow-divider {
    transform: translateX(-50%) scale(0.75);
  }
  .hss-caterpillar-divider {
    transform: translate(-50%, 50%) scale(0.8);
  }
  .hss-hanging-photos-divider {
    gap: 12px;
    transform: translateX(-50%) scale(0.85);
  }
  .clip-2 {
    margin-right: 28px !important; /* Tighter middle gap for mobile screen width safety */
  }
  .hss-lightbulbs-divider {
    gap: 20px;
    transform: translateX(-50%) scale(0.8);
  }
  .hss-blackboards-divider {
    gap: 16px;
    transform: translateX(-50%) scale(0.8);
  }
}

.hss-section-divider-curve-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
  pointer-events: none;
}

.hss-section-divider-curve-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* -------------------------------------------------------------
 * 21. OUT-OF-THE-BOX INTERACTIVE SECTION BACKGROUNDS SYSTEM
 * ------------------------------------------------------------- */
/* Base relative layout and visible overflow for all main sections */
.hero-section,
.timeline-section,
.milestones-section,
.programs-section, 
.features-section,
.hss-curriculum-section,
.hss-4q-section, 
.hss-scrapbook-section,
.hss-skill-tree-section, 
.hss-brain-gym-section,
.media-gallery-section,
.hss-faq-section,
.admission-section,
.contact-section {
  position: relative;
  overflow: visible !important;
}

/* Custom progressive z-indices to prevent bottom-divider occlusion and overlap */
.hero-section { z-index: 15 !important; }
.timeline-section { z-index: 14 !important; }
.milestones-section { z-index: 13 !important; }
.programs-section { z-index: 12 !important; } /* Reviews section */
.features-section { z-index: 14 !important; } /* Top curve divider overlay needs to sit above reviews */
.hss-curriculum-section { z-index: 13 !important; }
.hss-brain-gym-section { z-index: 12 !important; } /* Brain Gym (swapped position) */
.hss-scrapbook-section { z-index: 11 !important; }
.hss-skill-tree-section { z-index: 10 !important; }
.hss-4q-section { z-index: 9 !important; } /* Holistic section (swapped position) */
.media-gallery-section { z-index: 8 !important; }
.hss-faq-section { z-index: 7 !important; }
.admission-section { z-index: 6 !important; }
.contact-section { z-index: 5 !important; }

/* Ensure section content containers sit on top of backdrops */
.timeline-section > .container, .milestones-section > .container, .programs-section > .container, 
.features-section > .container, .hss-curriculum-section > .container, .hss-4q-section > .container, 
.hss-scrapbook-section > .container, .hss-skill-tree-section > .container, 
.hss-brain-gym-section > .container, .admission-section > .container {
  position: relative;
  z-index: 3;
}

/* 1. Daily Routine: Day-to-Night Dynamic Gradient Background */
.hss-timeline-dynamic-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-dark-navy) 0%, #061C3D 100%);
  opacity: 0.95;
  z-index: 1;
  transition: background var(--transition-slow);
}

.hss-timeline-dynamic-bg.sunrise {
  background: linear-gradient(135deg, #091D35 0%, #152E52 40%, #2A1D3D 100%) !important;
}
.hss-timeline-dynamic-bg.midday {
  background: linear-gradient(135deg, #06172B 0%, #0F2A4C 60%, #081B34 100%) !important;
}
.hss-timeline-dynamic-bg.afternoon {
  background: linear-gradient(135deg, #09203C 0%, #1D3557 50%, #2A1D3D 100%) !important;
}
.hss-timeline-dynamic-bg.evening {
  background: linear-gradient(135deg, #020914 0%, #061426 50%, #0A213D 100%) !important;
}

/* 2. Milestones: Blinking Starfield Background */
.hss-milestones-stars-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.15;
  background-image: 
    radial-gradient(2px 2px at 40px 60px, var(--accent-gold), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 20px 150px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 150px 240px, var(--accent-gold), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 280px 120px, #ffffff, rgba(0,0,0,0));
  background-size: 320px 320px;
  animation: pulse-starfield 12s infinite linear;
}

@keyframes pulse-starfield {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.05); }
}

/* 3. Parent Reviews: Fluid Translucent Glassmorphic Blobs */
.hss-reviews-blobs-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0.6;
}

.hss-blob {
  position: absolute;
  background-color: var(--accent-gold-alpha);
  filter: blur(80px);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: drift-blob 20s infinite ease-in-out;
}

.blob-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes drift-blob {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(100px, 80px) rotate(120deg) scale(1.1); }
  66% { transform: translate(-50px, 120px) rotate(240deg) scale(0.9); }
}

/* 4. Amenities: 3D Technical perspective blueprint grid */
.hss-features-blueprint-bg {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  z-index: 1;
  opacity: 0.05;
  background-image: 
    linear-gradient(rgba(11, 43, 92, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 43, 92, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(1000px) rotateX(60deg) rotateZ(-15deg);
  animation: glide-blueprint 40s infinite linear;
}

body.dark-mode .hss-features-blueprint-bg {
  opacity: 0.08;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
}

@keyframes glide-blueprint {
  from { background-position: 0 0; }
  to { background-position: 0 500px; }
}

/* 5. Curriculum: Floating Green Leaves / Growth Foliage Backdrop */
.hss-curriculum-foliage-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.04;
  background-image: 
    radial-gradient(circle at 10% 20%, var(--text-primary) 10px, transparent 11px),
    radial-gradient(circle at 85% 65%, var(--text-primary) 15px, transparent 16px);
  background-size: 180px 180px;
  animation: drift-foliage 15s infinite ease-in-out;
}

body.dark-mode .hss-curriculum-foliage-bg {
  opacity: 0.07;
}

@keyframes drift-foliage {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* 6. 4Q Development: Rotating Concentric Sacred Mandala */
.hss-mandala-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
}

.hss-mandala-bg svg {
  width: 100%;
  height: 100%;
  animation: rotate-mandala 60s infinite linear;
}

.mandala-ring {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 0.5;
  stroke-dasharray: 4 4;
}

.mandala-axis {
  stroke: var(--text-primary);
  stroke-width: 0.3;
  opacity: 0.5;
}

@keyframes rotate-mandala {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 7. Memory Scrapbook: Lined Notebook Page Backdrop */
.hss-scrapbook-notebook-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.06;
  background: 
    linear-gradient(transparent 29px, rgba(11, 43, 92, 0.25) 30px) 0 0 / 100% 30px,
    linear-gradient(90deg, rgba(231, 76, 60, 0.15) 1px, transparent 1px) 80px 0 / 100% 100%;
}

body.dark-mode .hss-scrapbook-notebook-bg {
  opacity: 0.03;
  background: 
    linear-gradient(transparent 29px, rgba(255, 255, 255, 0.2) 30px) 0 0 / 100% 30px,
    linear-gradient(90deg, rgba(231, 76, 60, 0.1) 1px, transparent 1px) 80px 0 / 100% 100%;
}

/* 8. Skill Tree: Technical circuit grid */
.hss-skill-circuits-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 30% 40%, var(--accent-gold) 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, var(--accent-gold) 3px, transparent 4px);
  background-size: 100px 100px;
}

/* 9. Brain Gym Game: Floating Transparent Mathematical Formulas */
.hss-game-equations-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.04;
  background-image: 
    radial-gradient(circle at 20% 30%, var(--text-primary) 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, var(--text-primary) 1px, transparent 2px);
  background-size: 150px 150px;
  animation: float-equations 20s infinite linear;
}

@keyframes float-equations {
  0% { background-position: 0 0; }
  100% { background-position: 150px 150px; }
}

/* 10. Admissions: Celebratory Sparkle dust drift */
.hss-admissions-dust-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.08;
  background-image: 
    radial-gradient(4px 4px at 10% 20%, var(--accent-gold), transparent),
    radial-gradient(6px 6px at 80% 40%, var(--accent-gold-alpha), transparent),
    radial-gradient(5px 5px at 40% 75%, var(--accent-gold), transparent);
  background-size: 200px 200px;
  animation: drift-dust 10s infinite alternate ease-in-out;
}

@keyframes drift-dust {
  0% { transform: translateY(0) scale(1); opacity: 0.08; }
  100% { transform: translateY(-30px) scale(1.1); opacity: 0.15; }
}

/* -------------------------------------------------------------
 * 22. GALLERY FILTER TABS STYLING
 * ------------------------------------------------------------- */
.hss-gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.hss-gallery-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 10px 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  transition: all var(--transition-normal);
}

.hss-gallery-btn.active, .hss-gallery-btn:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-dark-navy) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

/* Smooth filtering transition classes */
.gallery-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-card.filtered-out {
  display: none !important;
}

/* -------------------------------------------------------------
 * 23. FAQ ACCORDION COMPONENT STYLING
 * ------------------------------------------------------------- */
.hss-faq-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

.hss-faq-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 5;
}

.hss-faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hss-faq-item.active {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-glow);
}

.hss-faq-trigger {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.hss-faq-trigger:hover {
  color: var(--accent-gold);
}

.hss-faq-icon-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--accent-gold-alpha);
  color: var(--accent-gold);
  font-size: 0.9rem;
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.hss-faq-item.active .hss-faq-icon-arrow {
  transform: rotate(180deg);
  background-color: var(--accent-gold);
  color: var(--bg-dark-navy);
}

.hss-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hss-faq-content-inner {
  padding: 0 30px 24px 30px;
}

.hss-faq-content-inner p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .hss-faq-section {
    padding: 70px 0;
  }
  .hss-faq-trigger {
    padding: 20px;
    font-size: 1rem;
  }
  .hss-faq-content-inner {
    padding: 0 20px 20px 20px;
  }
}

/* -------------------------------------------------------------
 * 24. COLORFUL FLOATING BACKGROUND DECORATIONS
 * ------------------------------------------------------------- */
.hss-floating-bg-element {
  position: absolute;
  pointer-events: none;
  z-index: 0; /* Keep it strictly below content layers */
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900 !important;
  opacity: 0.85; /* Extremely bright, colorful, and fully visible */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12)) !important;
  transition: opacity var(--transition-normal);
}

body.dark-mode .hss-floating-bg-element {
  opacity: 0.55; /* Bold and vibrant in dark mode, balanced with dark backdrop */
  filter: drop-shadow(0 6px 18px rgba(255, 255, 255, 0.08)) !important;
}

/* Highly saturated neon gradients for maximum visibility */
.hss-float-coral {
  color: #ff0844;
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-gold {
  color: #ffe259;
  background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-blue {
  color: #00c6ff;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-purple {
  color: #f857a6;
  background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-green {
  color: #11998e;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-pink {
  color: #ff3366;
  background: linear-gradient(135deg, #ff3366 0%, #ff66cc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-cyan {
  color: #0575e6;
  background: linear-gradient(135deg, #0575e6 0%, #00f2fe 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hss-float-orange {
  color: #ff9900;
  background: linear-gradient(135deg, #ff9900 0%, #ff5e62 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.hss-float-ani-1 {
  animation: hss-float-1 8s infinite ease-in-out;
}
.hss-float-ani-2 {
  animation: hss-float-2 10s infinite ease-in-out;
}
.hss-float-ani-3 {
  animation: hss-float-3 12s infinite ease-in-out;
}
.hss-float-ani-4 {
  animation: hss-float-4 14s infinite ease-in-out;
}

@keyframes hss-float-1 {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}
@keyframes hss-float-2 {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(20px) rotate(-8deg) scale(0.95); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}
@keyframes hss-float-3 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes hss-float-4 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(6deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Ensure sections contain the absolutely positioned floating elements cleanly */
.timeline-section, .hss-curriculum-section, .hss-4q-section, .hss-scrapbook-section,
.hss-skill-tree-section, .hss-brain-gym-section, .media-gallery-section,
.hss-faq-section, .admission-section, .contact-section {
  position: relative;
  overflow: hidden; /* Avoid side-scrolling shifts from drifting elements */
}

.milestones-section, .features-section {
  position: relative;
  overflow: visible !important;
}

/* Divider Stylings */
.hss-divider-bus::after { content: '🚌'; display: block; text-align: center; font-size: 2rem; }
.hss-divider-rainbow::after { content: '🌈'; display: block; text-align: center; font-size: 2rem; }
.hss-divider-plane::after { content: '✈️'; display: block; text-align: center; font-size: 2rem; }
.hss-divider-caterpillar::after { content: '🐛'; display: block; text-align: center; font-size: 2rem; }

/* =============================================================
 * MOBILE ONE-SCREEN-PER-SECTION LAYOUT
 * Every section fits in a single phone viewport (≈ 100dvh)
 * Applies to screens ≤ 767px wide
 * ============================================================= */
@media (max-width: 767px) {

  /* --- GLOBAL SECTION RESET ---------------------------------- */
  section {
    min-height: unset !important;
    display: block !important;
    padding: 24px 0 !important;
    box-sizing: border-box;
  }

  /* Tighten section heading block */
  .section-header {
    margin: 0 auto 16px auto !important;
  }
  .section-badge {
    font-size: 0.7rem !important;
    padding: 4px 12px !important;
    margin-bottom: 6px !important;
  }
  .section-title {
    font-size: 1.4rem !important;
    margin-bottom: 6px !important;
  }
  .section-desc {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* --- HERO -------------------------------------------------- */
  .hero-section {
    padding: 88px 0 24px 0 !important;
    min-height: unset !important;
  }
  .hero-container {
    gap: 14px !important;
  }
  .image-border-glow {
    padding: 6px !important;
    max-width: 220px !important;
  }
  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
  }
  .hero-subtitle {
    font-size: 0.82rem !important;
    margin-bottom: 14px !important;
    line-height: 1.45 !important;
  }
  .hero-badge-wrapper {
    margin-bottom: 8px !important;
  }
  .hero-actions .btn {
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
  }
  .btn-secondary {
    margin-left: 8px !important;
  }

  /* --- TIMELINE (Day in the Life) --- kept at original layout --- */
  .timeline-section {
    min-height: unset !important;
    display: block !important;
    padding: 36px 0 !important;
    overflow: visible !important;
  }

  /* --- CURRICULUM (Grow With Us / Academics) --- kept at original layout --- */

  /* --- MILESTONES -------------------------------------------- */
  .milestones-section {
    padding: 24px 0 !important;
  }
  .milestones-counters {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }
  .counter-card {
    padding: 16px !important;
  }
  .counter-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }
  .counter-number-wrapper {
    font-size: 1.9rem !important;
    margin-bottom: 4px !important;
  }
  .counter-label {
    font-size: 0.78rem !important;
  }

  /* --- REVIEWS ----------------------------------------------- */
  .programs-section {
    padding: 24px 0 !important;
  }
  .reviews-slider {
    padding: 8px 0 36px 0 !important;
  }
  .review-card {
    padding: 18px 14px !important;
  }
  .review-quote-icon {
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
  }
  .review-text {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
  .review-author {
    font-size: 0.88rem !important;
  }
  .review-relation {
    font-size: 0.7rem !important;
  }

  /* --- FEATURES / AMENITIES DASHBOARD ----------------------- */
  .features-section {
    padding: 80px 0 24px 0 !important;
  }
  .hss-amenities-dashboard {
    gap: 12px !important;
    margin-top: 8px !important;
  }
  .hss-amenities-sidebar {
    padding-bottom: 6px !important;
    gap: 8px !important;
  }
  .hss-amenity-tab {
    width: 38px !important;
    height: 38px !important;
  }
  .hss-amenity-tab .tab-icon {
    font-size: 1rem !important;
  }
  .hss-showcase-card {
    min-height: 420px !important;
  }
  .hss-showcase-image-wrapper {
    height: 180px !important;
  }
  .hss-showcase-content {
    padding: 24px 20px !important;
  }
  #showcase-title {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
  }
  #showcase-desc {
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
    line-height: 1.55 !important;
  }
  .hss-showcase-divider {
    margin-bottom: 14px !important;
  }
  .hss-bullets-title {
    font-size: 0.82rem !important;
    margin-bottom: 8px !important;
  }
  .hss-showcase-bullets {
    gap: 10px !important;
  }
  .hss-showcase-bullets li {
    font-size: 0.9rem !important;
    gap: 8px !important;
  }

  /* --- CURRICULUM (Grow With Us / Academics) --- kept at original layout --- */
  .hss-curriculum-section {
    min-height: unset !important;
    display: block !important;
  }

  /* --- PHILOSOPHY (4Q Radar) -------------------------------- */
  .hss-4q-section {
    padding: 24px 0 !important;
  }
  .hss-4q-grid {
    gap: 14px !important;
  }
  .hss-4q-gyroscope {
    width: 290px !important;
    height: 290px !important;
  }
  .gyro-sun {
    width: 66px !important;
    height: 66px !important;
  }
  .gyro-sun-emblem {
    font-size: 1.6rem !important;
  }
  .gyro-sun-text {
    font-size: 0.48rem !important;
  }
  .ring-iq { width: 110px !important; height: 110px !important; }
  .ring-eq { width: 165px !important; height: 165px !important; }
  .ring-sq { width: 220px !important; height: 220px !important; }
  .ring-pq { width: 275px !important; height: 275px !important; }
  
  .gyro-planet {
    width: 38px !important;
    height: 38px !important;
  }
  .planet-icon {
    font-size: 1.05rem !important;
  }
  .planet-label {
    font-size: 0.48rem !important;
    margin-top: 1px !important;
  }
  .hss-4q-panel {
    height: 210px !important;
  }
  .hss-4q-card {
    padding: 14px !important;
  }
  .hss-4q-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }
  .hss-4q-card h4 {
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
  }
  .hss-4q-card p {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
  }

  /* --- SCRAPBOOK ALBUM -------------------------------------- */
  .hss-scrapbook-section {
    padding: 24px 0 !important;
  }
  .hss-scrapbook-container {
    gap: 14px !important;
  }
  .hss-scrapbook-book {
    height: 240px !important;
  }
  .hss-scrapbook-text {
    padding: 10px 8px !important;
  }
  .hss-scrapbook-text h3 {
    font-size: 0.82rem !important;
    margin-bottom: 3px !important;
  }
  .hss-scrapbook-text p {
    font-size: 0.65rem !important;
    line-height: 1.35 !important;
  }
  .hss-scrapbook-controls {
    gap: 8px !important;
  }
  .hss-scrapbook-btn {
    padding: 7px 10px !important;
    font-size: 0.72rem !important;
  }

  /* --- SKILL TREE ------------------------------------------- */
  .hss-skill-tree-section {
    padding: 24px 0 !important;
  }

  /* --- BRAIN GYM GAME --------------------------------------- */
  .hss-brain-gym-section {
    padding: 24px 0 !important;
  }
  .hss-game-screen {
    min-height: 160px !important;
    padding: 14px !important;
  }

  /* --- CAMPUS HIGHLIGHTS / MEDIA GALLERY --- kept at original layout --- */
  .media-gallery-section {
    min-height: unset !important;
    display: block !important;
  }

  /* --- FAQ --------------------------------------------------- */
  .hss-faq-section {
    padding: 24px 0 !important;
  }

  /* --- ADMISSIONS FORM -------------------------------------- */
  .admission-section {
    padding: 24px 0 !important;
  }
  .admission-box {
    padding: 20px 14px !important;
  }
  .admission-title {
    font-size: 1.3rem !important;
    margin-bottom: 4px !important;
  }
  .admission-subtitle {
    font-size: 0.8rem !important;
  }
  .form-grid-vertical {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .form-input,
  .form-select {
    padding: 9px 12px !important;
    font-size: 0.85rem !important;
  }
  .form-label {
    font-size: 0.8rem !important;
  }

  /* --- CONTACT ---------------------------------------------- */
  .contact-section {
    padding: 24px 0 !important;
  }
  .contact-heading {
    font-size: 1.3rem !important;
    margin-bottom: 6px !important;
  }
  .contact-subtext {
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
  }
  .contact-grid {
    gap: 16px !important;
  }
  .contact-map {
    min-height: 180px !important;
  }
  .info-blocks {
    gap: 14px !important;
  }
  .info-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.9rem !important;
  }
  .info-content h5 {
    font-size: 0.85rem !important;
  }
  .info-content p {
    font-size: 0.78rem !important;
  }

  /* --- FOOTER (compact, not forced one-screen) --------------- */
  .site-footer {
    padding: 30px 0 20px 0 !important;
    min-height: unset !important;
  }
  .footer-container {
    gap: 24px !important;
  }
  .footer-top {
    gap: 16px !important;
  }
  .footer-logo {
    height: 44px !important;
    margin-bottom: 8px !important;
  }
  .footer-brand {
    font-size: 1.2rem !important;
    margin-bottom: 6px !important;
  }
  .footer-copy {
    font-size: 0.72rem !important;
  }

  /* Hide decorative floating icons on mobile to save space */
  .hss-floating-bg-element {
    display: none !important;
  }
}

/* --- PLAYFUL LEFT MARGIN INTEGRATIONS --- */

/* 1. Hanging Rope Ladder & Mascot climbing (Timeline Section) */
.hss-rope-ladder-container {
  position: absolute;
  top: 0;
  left: 3%;
  height: 100%;
  width: 30px;
  z-index: 4;
  pointer-events: none;
}

.rope-ladder-rails::before, .rope-ladder-rails::after {
  content: '';
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(139, 90, 43, 0.45); /* Soft rope brown */
  border-right: 1px dashed rgba(255, 255, 255, 0.2);
}
.rope-ladder-rails::before { left: 5px; }
.rope-ladder-rails::after { left: 25px; }

.rope-ladder-rungs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rung {
  position: absolute;
  left: 5px;
  width: 22px;
  height: 4px;
  background: #8B5A2B;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.rung-1 { top: 15%; }
.rung-2 { top: 35%; }
.rung-3 { top: 55%; }
.rung-4 { top: 75%; }
.rung-5 { top: 95%; }

.climbing-mascot {
  position: absolute;
  font-size: 2rem;
  z-index: 5;
  transition: transform 0.2s ease, top 0.1s ease-out;
  transform: translateX(-20%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.climbing-mascot:hover {
  transform: translateX(-20%) scale(1.15) rotate(5deg);
}

/* 2. School Notebook Margin & Chalk Doodles (Curriculum Section) */
.hss-notebook-margin-container {
  position: absolute;
  top: 0;
  left: 3%;
  height: 100%;
  width: 40px;
  z-index: 4;
  pointer-events: none;
}

.notebook-red-line {
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 107, 107, 0.45);
}

.notebook-blue-line {
  position: absolute;
  left: 15px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(77, 150, 255, 0.45);
}

.hss-doodle {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0;
  transform: scale(0.7) rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hss-notebook-margin-container.visible .hss-doodle {
  opacity: 0.55;
  transform: scale(1);
}

.doodle-1 { top: 12%; transition-delay: 0.1s; }
.doodle-2 { top: 32%; transition-delay: 0.3s; }
.doodle-3 { top: 52%; transition-delay: 0.5s; }
.doodle-4 { top: 72%; transition-delay: 0.7s; }
.doodle-5 { top: 90%; transition-delay: 0.9s; }

.hss-doodle:hover {
  transform: scale(1.3) rotate(360deg) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.22));
}

/* Hide left margins on small viewports to save screen width */
@media (max-width: 991px) {
  .hss-rope-ladder-container,
  .hss-notebook-margin-container {
    display: none !important;
  }
}

/* --- HIDE-AND-SEEK MOBILE PEEK MASCOTS --- */
.hss-peek-mascot {
  display: none !important; /* Completely hidden on desktop views */
}

@media (max-width: 991px) {
  .hss-peek-mascot {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    z-index: 99; /* Float neatly above backdrops and text margins */
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  }

  .hss-peek-mascot.peek-left {
    left: -24px;
    transform: translateY(-50%) translateX(0);
  }

  .hss-peek-mascot.peek-right {
    right: -24px;
    transform: translateY(-50%) translateX(0);
  }

  .hss-peek-inner {
    display: inline-block;
    transform: translateX(0) translateY(0) rotate(0deg);
    user-select: none;
  }

  /* Active Hide-and-Seek loops triggered only when the parent section is visible in the viewport */
  .hss-peek-mascot.visible .hss-peek-inner.loop-left {
    animation: hss-mascot-loop-left 8s ease-in-out infinite;
  }

  .hss-peek-mascot.visible .hss-peek-inner.loop-right {
    animation: hss-mascot-loop-right 8s ease-in-out infinite;
  }
}

@keyframes hss-mascot-loop-left {
  0% { transform: translateX(0px) translateY(0px) rotate(0deg); }
  18% { transform: translateX(24px) translateY(-3px) rotate(3deg); } /* Slide out of left edge to peek */
  45% { transform: translateX(24px) translateY(-1px) rotate(1deg); } /* Gentle floating breathing */
  55% { transform: translateX(24px) translateY(-3px) rotate(3deg); }
  75% { transform: translateX(0px) translateY(0px) rotate(0deg); } /* Hide back off-screen left */
  100% { transform: translateX(0px) translateY(0px) rotate(0deg); } /* Rest period */
}

@keyframes hss-mascot-loop-right {
  0% { transform: translateX(0px) translateY(0px) rotate(0deg); }
  18% { transform: translateX(-24px) translateY(-3px) rotate(-3deg); } /* Slide out of right edge to peek */
  45% { transform: translateX(-24px) translateY(-1px) rotate(-1deg); } /* Gentle floating breathing */
  55% { transform: translateX(-24px) translateY(-3px) rotate(-3deg); }
  75% { transform: translateX(0px) translateY(0px) rotate(0deg); } /* Hide back off-screen right */
  100% { transform: translateX(0px) translateY(0px) rotate(0deg); } /* Rest period */
}


/* =====================================================================
   PRINCIPAL'S DESK SECTION
   ===================================================================== */
.principal-section {
  position: relative;
  padding: 100px 0 110px;
  background: linear-gradient(145deg, #0B2B5C 0%, #0e3570 40%, #0B2B5C 100%);
  overflow: hidden;
}

/* Subtle blueprint grid overlay */
.principal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Radial glow center */
.principal-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Badge override for dark bg */
.principal-section .section-badge {
  background: rgba(212, 175, 55, 0.18);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.35);
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---- Main Card ---- */
.principal-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 28px;
  padding: 56px 52px;
  margin-top: 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(212, 175, 55, 0.5) inset;
  overflow: hidden;
}

/* Big translucent quote background */
.principal-quote-bg {
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 9rem;
  color: rgba(212, 175, 55, 0.18);
  pointer-events: none;
  line-height: 1;
}

/* ---- Layout ---- */
.principal-layout {
  display: flex;
  gap: 52px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* ---- Photo Column ---- */
.principal-photo-col {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.principal-photo-frame {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #D4AF37 0%, #f0d060 50%, #D4AF37 100%);
  box-shadow:
    0 0 0 6px rgba(212, 175, 55, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.4);
  animation: principal-photo-pulse 3s ease-in-out infinite;
}

@keyframes principal-photo-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.15), 0 12px 40px rgba(0, 0, 0, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.22), 0 16px 50px rgba(0, 0, 0, 0.45); }
}

.principal-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Award badge on photo */
.principal-photo-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #f5d060);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B2B5C;
  font-size: 1.1rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.3);
}

/* Name & Role */
.principal-identity {
  text-align: center;
}

.principal-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #D4AF37;
  margin: 0 0 4px;
  line-height: 1.4;
}

.principal-role-text {
  font-size: 0.78rem;
  color: #4A5568;
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Gold stars */
.principal-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #D4AF37;
  font-size: 0.85rem;
}

/* ---- Message Column ---- */
.principal-message-col {
  flex: 1;
}

.principal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #0B2B5C;
  margin: 0 0 16px;
  line-height: 1.3;
}

.principal-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, rgba(212,175,55,0));
  border-radius: 2px;
  margin-bottom: 22px;
}

.principal-message-text {
  font-size: 0.97rem;
  line-height: 1.9;
  color: #3A4A5C;
  margin: 0 0 30px;
}

/* Signature */
.principal-signature {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.principal-sig-line {
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.7), transparent);
  border-radius: 1px;
}

.principal-sig-label {
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.75);
  font-style: italic;
}

/* ---- Corner Dots ---- */
.principal-corner-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.5);
}
.principal-corner-dot.dot-tl { top: 16px; left: 16px; }
.principal-corner-dot.dot-tr { top: 16px; right: 16px; }
.principal-corner-dot.dot-bl { bottom: 16px; left: 16px; }
.principal-corner-dot.dot-br { bottom: 16px; right: 16px; }

/* ---- Leadership Grid Layout ---- */
.principal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  margin-top: 32px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .principal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.principal-grid .principal-card {
  margin-top: 0;
  padding: 24px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.15),
    0 2px 0 rgba(212, 175, 55, 0.4) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principal-grid .principal-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.22),
    0 2px 0 rgba(212, 175, 55, 0.6) inset;
}

.principal-grid .principal-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  height: 100%;
  justify-content: flex-start;
}

.principal-grid .principal-photo-col {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 18px;
}

.principal-grid .principal-photo-frame {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #D4AF37 0%, #f0d060 50%, #D4AF37 100%);
  box-shadow: 
    0 0 0 4px rgba(212, 175, 55, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.15);
  animation: none; /* Deactivate animation for neat clean design */
}

.principal-grid .principal-photo-badge {
  width: 24px;
  height: 24px;
  bottom: 2px;
  right: 2px;
  font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.principal-grid .principal-identity {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.principal-grid .principal-name {
  font-size: 1.15rem;
  color: #0B2B5C; /* Pristine Navy contrast color */
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.principal-grid .principal-degree {
  display: block;
  font-size: 0.78rem;
  color: #718096; /* Elegant slate sub-text */
  font-weight: 500;
  margin-top: 2px;
}

.principal-grid .principal-role-text {
  font-size: 0.82rem;
  color: #D4AF37; /* Warm Gold role text */
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.principal-grid .principal-stars {
  justify-content: flex-start;
  gap: 2px;
  font-size: 0.72rem;
  margin-top: 2px;
}

.principal-grid .principal-message-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-grow: 1;
}

.principal-grid .principal-message-text {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  color: #3A4A5C;
  text-align: left;
}

.principal-grid .principal-signature {
  align-items: flex-start;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.principal-grid .principal-signature .principal-degree {
  display: none !important; /* Hide credentials in signature box */
}

.principal-grid .principal-sig-line {
  margin: 0;
  width: 100px;
}

.principal-grid .principal-sig-label {
  text-align: left;
  font-size: 0.75rem;
}

/* ---- Dark mode ---- */
body.dark-mode .principal-section {
  background: linear-gradient(145deg, #020c1b 0%, #041224 40%, #020c1b 100%);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .principal-section {
    padding: 70px 0 80px;
  }

  .principal-card {
    padding: 36px 22px;
    border-radius: 20px;
  }

  .principal-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .principal-photo-col {
    flex: none;
    width: 100%;
  }

  .principal-photo-frame {
    width: 160px;
    height: 160px;
  }

  .principal-message-col {
    text-align: center;
  }

  .principal-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .principal-quote-bg {
    font-size: 5rem;
  }

  .principal-sig-line {
    margin: 0 auto;
  }

  .principal-sig-label {
    text-align: center;
  }

  /* Dual Grid Compact Overrides for Mobile */
  .principal-grid .principal-card {
    padding: 20px 22px;
  }
  .principal-grid .principal-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .principal-grid .principal-photo-col {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
  }
  .principal-grid .principal-photo-frame {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
  }
  .principal-grid .principal-message-col {
    text-align: left;
    align-items: flex-start;
    gap: 10px;
  }
  .principal-grid .principal-message-text {
    text-align: left;
  }
  .principal-grid .principal-signature {
    align-items: flex-start;
  }
  .principal-grid .principal-sig-line {
    margin: 0;
  }
  .principal-grid .principal-sig-label {
    text-align: left;
  }
}
