/* ==========================================================================
   GAUTAM RISHI JUNIOR HIGH SCHOOL - VERSION 8.1 CREATIVE DESIGN SYSTEM
   Full-Screen Desktop Edge-to-Edge Layout | 3D Tactile Buttons | Cyan Theme
   ========================================================================== */

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

:root {
  /* Brand Cyan Core */
  --primary-cyan: #06b6d4;
  --primary-cyan-hover: #0891b2;
  --primary-cyan-dark: #0e7490;
  --primary-cyan-light: #67e8f9;
  --primary-cyan-ultralight: #ecfeff;
  --primary-cyan-glow: rgba(6, 182, 212, 0.4);

  /* Deep Space Navy Contraste */
  --navy-950: #050a14;
  --navy-900: #0b1329;
  --navy-850: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748b;
  --navy-100: #f1f5f9;
  --navy-50: #f8fafc;

  /* House Colors & Elements */
  --house-cyan: #06b6d4;
  --house-claret: #991b1b;
  --house-claret-dark: #7f1d1d;
  --house-orchid: #9333ea;
  --house-orchid-dark: #7e22ce;
  --house-aqua: #0d9488;
  --house-aqua-dark: #115e59;

  /* Surfaces & Glassmorphism */
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fcfe;
  --border-light: #e2e8f0;
  --border-cyan: rgba(6, 182, 212, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(6, 182, 212, 0.08);
  --shadow-lg: 0 20px 45px -8px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(6, 182, 212, 0.15);
  --shadow-glow: 0 0 35px rgba(6, 182, 212, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
}

/* ==========================================================================
   RESET & FULL-SCREEN DESKTOP LAYOUT
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy-900);
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.22;
  color: var(--navy-900);
}

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

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

/* FULL-SCREEN RESPONSIVE CONTAINER (No empty sidebars) */
.container {
  width: 95%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 70px 0;
  position: relative;
}

.section-sm {
  padding: 40px 0;
}

/* Section Header Badges */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-cyan-ultralight);
  color: var(--primary-cyan-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cyan-text {
  color: var(--primary-cyan);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--navy-600);
  max-width: 720px;
  margin-bottom: 26px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Floating & Micro Animations */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes shimmerEffect {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(90deg, #0e7490 0%, #06b6d4 50%, #0e7490 100%);
  background-size: 200% auto;
  color: #0e7490;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerEffect 4s linear infinite;
}

/* ==========================================================================
   ANNOUNCEMENT TICKER (Full Width)
   ========================================================================== */
.top-ticker {
  background: linear-gradient(90deg, #050a14 0%, #0e7490 50%, #050a14 100%);
  color: #e2f8ff;
  font-size: 0.825rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  overflow: hidden;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-badge {
  background: var(--primary-cyan);
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.725rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: tickerSlide 30s linear infinite;
}

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

/* ==========================================================================
   CLEAN SINGLE-LINE NAVIGATION BAR (No Overflow, No Wraps)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.06);
}

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

/* Brand Link with Official Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.09));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

/* Single Line Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0891b2;
  background: var(--primary-cyan-ultralight);
}

.nav-link.active {
  color: #0891b2;
  border-bottom: 2px solid var(--primary-cyan);
}

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

/* ==========================================================================
   TACTILE 3D BUTTON SYSTEM (Keyboard-like Push Feel)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

/* 3D Tactile Buttons */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: var(--white);
  box-shadow: 0 4px 0 #0e7490, 0 8px 16px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  box-shadow: 0 4px 0 #083344, 0 10px 22px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0e7490, 0 4px 8px rgba(6, 182, 212, 0.2);
}

.btn-outline-cyan {
  background: var(--white);
  color: var(--primary-cyan-dark);
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 3px 0 #0891b2, 0 6px 12px rgba(6, 182, 212, 0.15);
}

.btn-outline-cyan:hover {
  background: var(--primary-cyan-ultralight);
  transform: translateY(-2px);
  box-shadow: 0 3px 0 #0e7490, 0 8px 16px rgba(6, 182, 212, 0.2);
}

.btn-outline-cyan:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0891b2;
}

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 4px 0 #050a14, 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.btn-dark:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #050a14;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  box-shadow: 0 5px 0 #0e7490, 0 10px 24px rgba(6, 182, 212, 0.35);
}

.btn-portal-student {
  background: #f0fdfa;
  color: #0f766e;
  border: 1.5px solid #5eead4;
  box-shadow: 0 3px 0 #0d9488;
}
.btn-portal-student:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0d9488;
}

.btn-portal-staff {
  background: #f8fafc;
  color: var(--navy-900);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 3px 0 #94a3b8;
}
.btn-portal-staff:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #94a3b8;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-900);
  cursor: pointer;
}

/* ==========================================================================
   WELCOME POPUP MODAL (First Glance Wow Effect)
   ========================================================================== */
.welcome-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.welcome-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.welcome-modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(6, 182, 212, 0.3);
  border: 3px solid #67e8f9;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-overlay.active .welcome-modal-card {
  transform: scale(1);
}

.welcome-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  border: 2px solid #67e8f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.welcome-modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.welcome-modal-body {
  padding: 24px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   HERO SECTION: SPLIT SCREEN (Quote/Welcome on Left, HD Banner on Right)
   ========================================================================== */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: center;
  padding: 20px 0;
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid #67e8f9;
  margin-bottom: 18px;
  width: fit-content;
}

.hero-left-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-quote-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-left: 5px solid var(--primary-cyan);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.08);
  margin-bottom: 24px;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.hero-quote-text {
  font-size: 1.05rem;
  color: var(--navy-800);
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
}

.hero-quote-author {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0891b2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-left-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right Slider Frame (High-Res 16:9, No Crop, No Head-Cuts) */
.hero-slider-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 35px rgba(6, 182, 212, 0.2);
  border: 4px solid var(--white);
  background: var(--navy-950);
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.03);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.hero-dot {
  width: 28px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  background: var(--primary-cyan);
  width: 44px;
}

/* ==========================================================================
   THE THREE PILLARS (Creative Elevated Cards)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 38px 30px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
  border-color: #67e8f9;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.pillar-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.pillar-1 .pillar-icon-box { background: #ecfeff; color: #0891b2; }
.pillar-2 .pillar-icon-box { background: #f0fdf4; color: #15803d; }
.pillar-3 .pillar-icon-box { background: #faf5ff; color: #9333ea; }

.pillar-card h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.pillar-card p {
  color: var(--navy-600);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==========================================================================
   4 HOUSES: WITH RICH ELEMENTAL EMBLEMS
   ========================================================================== */
.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.house-card {
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.house-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.house-cyan {
  background: linear-gradient(145deg, #06b6d4 0%, #0891b2 60%, #0e7490 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.house-claret {
  background: linear-gradient(145deg, #991b1b 0%, #7f1d1d 60%, #450a0a 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.house-orchid {
  background: linear-gradient(145deg, #9333ea 0%, #7e22ce 60%, #581c87 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.house-aqua {
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 60%, #115e59 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.house-emblem-badge {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.house-name {
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 8px;
}

.house-trait {
  font-size: 0.925rem;
  opacity: 0.92;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==========================================================================
   KINDERGARTEN DRAG & DROP GAME (Real Playful Mechanics)
   ========================================================================== */
.kg-game-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fffbeb 50%, #f0fdf4 100%);
  border: 3px dashed #f87171;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.1);
}

.shape-toy-tray {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border: 2px solid #fed7aa;
}

.shape-toy {
  width: 95px;
  height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  cursor: grab;
  user-select: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shape-toy:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.shape-toy-circle { background: #ef4444; border-radius: 50%; }
.shape-toy-square { background: #3b82f6; border-radius: 16px; }
.shape-toy-triangle {
  background: #10b981;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  padding-top: 24px;
}
.shape-toy-star { background: #f59e0b; border-radius: 20px; }
.shape-toy-heart { background: #ec4899; border-radius: 22px; }

.target-slots-tray {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.target-slot {
  width: 110px;
  height: 110px;
  border: 3px dashed #94a3b8;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

.target-slot.circle { border-radius: 50%; }
.target-slot.triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

.target-slot.hovered {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  transform: scale(1.05);
}

.target-slot.matched {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
  border-style: solid;
}

/* ==========================================================================
   GALLERY ALBUMS & FILTER TABS (Browsing 80+ Photos)
   ========================================================================== */
.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.folder-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.folder-card:hover {
  transform: translateY(-4px);
  border-color: #06b6d4;
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.18);
}

.folder-thumbnail-stack {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
}

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

.folder-card:hover .folder-img {
  transform: scale(1.06);
}

.folder-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.folder-info {
  padding: 16px;
  flex: 1;
}

.folder-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.folder-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.gallery-filter-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-cyan);
  color: var(--white);
  border-color: var(--primary-cyan);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 180px;
  cursor: pointer;
  position: relative;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Controlled Lightbox Preview (Prevents oversized images) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(10px);
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.lightbox-content {
  position: relative;
  max-width: 720px;
  width: 100%;
  background: #0f172a;
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.lightbox-img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #080f1e;
  display: block;
}

.lightbox-caption {
  padding: 12px 20px;
  color: #e2f8ff;
  font-size: 0.9rem;
  font-weight: 700;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #06b6d4;
  color: #050a14;
}

/* ==========================================================================
   SKILLS & MODALS
   ========================================================================== */
.skill-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.skill-modal-overlay.active {
  display: flex;
}

.skill-modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid #67e8f9;
  position: relative;
}

.skill-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy-900);
}

/* ==========================================================================
   FOOTER (Edge-to-Edge Desktop)
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 60px 0 24px 0;
  border-top: 2px solid rgba(6, 182, 212, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 14px 0;
  max-width: 380px;
}

.footer-heading {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary-cyan-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   2026 MODERN UPGRADE COMPONENTS & INTERACTIVITY
   ========================================================================== */

/* Minimal Cyan Custom Cursor (Desktop Only) */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease;
  display: none;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(6, 182, 212, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: block;
  }
}

/* Floating Right Quick Dock */
.floating-quick-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(11, 19, 41, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  transition: all 0.3s ease;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  border-radius: var(--radius-full);
  color: var(--navy-700);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dock-item .dock-icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 2px;
}

.dock-item:hover {
  background: var(--primary-cyan);
  color: #fff;
  transform: translateX(-4px) scale(1.05);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

@media (max-width: 1024px) {
  .floating-quick-dock {
    display: none;
  }
}

/* Modern Hero Section Container */
.hero-modern-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #f8fafc 100%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
  padding: 40px 0 30px 0;
}

.hero-curved-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-headline-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.hero-headline-title .cyan-gradient {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy-700);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-actions-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.15), 0 10px 20px rgba(0, 0, 0, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  transition: transform 0.3s ease;
}

.hero-visual-frame:hover {
  transform: translateY(-4px);
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero Metrics & Badges Strip */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(11, 19, 41, 0.05);
  border: 1px solid #e2e8f0;
}

.metric-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfeff;
  color: #0891b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.metric-pill-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-900);
  line-height: 1.2;
}

.metric-pill-text span {
  font-size: 0.8rem;
  color: #64748b;
}

/* Differentiated School Wings */
.wings-differentiated-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

.wing-card-kinder, .wing-card-junior {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.wing-card-kinder {
  background: linear-gradient(135deg, #ffffff 0%, #fefce8 60%, #fff7ed 100%);
  border-color: #fde047;
}

.wing-card-kinder:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(234, 179, 8, 0.15);
  border-color: #eab308;
}

.wing-card-junior {
  background: linear-gradient(135deg, #ffffff 0%, #ecfeff 60%, #f0fdf4 100%);
  border-color: #67e8f9;
}

.wing-card-junior:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.18);
  border-color: #06b6d4;
}

.wing-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.wing-tag.kinder {
  background: #fef08a;
  color: #854d0e;
}

.wing-tag.junior {
  background: #cffafe;
  color: #0e7490;
}

.wing-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.wing-mascot-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.wing-card-kinder:hover .wing-mascot-img,
.wing-card-junior:hover .wing-mascot-img {
  transform: scale(1.08) rotate(2deg);
}

/* Quick Access 6-Grid */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.quick-access-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-access-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.15);
}

.quick-access-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.quick-access-card h4 {
  font-size: 1rem;
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 4px;
}

.quick-access-card p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

/* Cosmic Dream Hub Section */
.dreamhub-cosmos-card {
  background: linear-gradient(135deg, #050a14 0%, #0a1936 50%, #083344 100%);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(5, 10, 20, 0.35);
  border: 1.5px solid rgba(6, 182, 212, 0.4);
}

.dreamhub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.dreamhub-search-bar {
  display: flex;
  gap: 10px;
  max-width: 580px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
}

.dreamhub-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
}

.dreamhub-search-input::placeholder {
  color: #94a3b8;
}

.dreamhub-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dreamhub-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2f8ff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dreamhub-pill:hover {
  background: var(--primary-cyan);
  color: #fff;
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
}

.dreamhub-mascot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dreamhub-mascot-img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.dreamhub-mascot-img:hover {
  transform: scale(1.05);
}

/* Modern House System Grid */
.house-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.house-modern-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.house-modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.house-modern-card.cyan { border-top: 6px solid #06b6d4; }
.house-modern-card.claret { border-top: 6px solid #991b1b; }
.house-modern-card.orchid { border-top: 6px solid #9333ea; }
.house-modern-card.aqua { border-top: 6px solid #0d9488; }

.house-card-header {
  padding: 20px 20px 14px 20px;
  text-align: center;
}

.house-card-header h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.house-card-header p {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

.house-card-img-wrap {
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
}

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

.house-modern-card:hover .house-card-img-wrap img {
  transform: scale(1.06);
}

/* Let's Rate 3-Card Celebration */
.rate-celebrate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.rate-celebrate-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.rate-celebrate-card:hover {
  transform: translateY(-5px);
  border-color: #06b6d4;
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.15);
}

.rate-avatar-frame {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  overflow: hidden;
  border: 3px solid #06b6d4;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.rate-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* School Life 6-Photo Cards */
.school-life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.school-life-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.school-life-card:hover {
  transform: translateY(-4px);
  border-color: #06b6d4;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.18);
}

.school-life-thumb {
  height: 150px;
  overflow: hidden;
  background: #f8fafc;
}

.school-life-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.school-life-card:hover .school-life-thumb img {
  transform: scale(1.07);
}

.school-life-caption {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Why Choose Gautam Rishi Ribbon */
.why-choose-ribbon {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%);
  color: #fff;
  padding: 24px 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0;
}

.why-choose-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

/* Events, News & Voices Grid */
.news-events-voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.card-column-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #e2e8f0;
}

.card-column-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-item-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.event-date-badge {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0891b2;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 54px;
}

.event-date-badge strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

.event-date-badge span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Admissions Open 2026-2027 CTA Banner */
.admissions-cta-banner {
  background: linear-gradient(135deg, #050a14 0%, #0e7490 100%);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 20px 50px rgba(14, 116, 144, 0.3);
  margin-top: 50px;
}

.admissions-mascot-cluster {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .news-events-voices-grid {
    grid-template-columns: 1fr;
  }
  .wings-differentiated-grid {
    grid-template-columns: 1fr;
  }
  .hero-curved-container {
    grid-template-columns: 1fr;
  }
  .admissions-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

