/* ==========================================================================
   Anand Public School (APS Bhagalpur) - Master Modern Stylesheet
   Theme: Modern Indian Educational Prestige | Mobile-First Responsive
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --primary: #0b2545;         /* Royal Navy */
  --primary-dark: #07192f;
  --primary-light: #133e6f;
  --secondary: #d97706;       /* Imperial Amber / Saffron */
  --secondary-hover: #b45309;
  --gold: #f59e0b;            /* Royal Gold */
  --gold-light: #fef3c7;
  --emerald: #047857;         /* Forest Emerald */
  --emerald-light: #d1fae5;
  --crimson: #b91c1c;         /* Notice Alert Crimson */
  --crimson-light: #fee2e2;
  
  /* Neutrals & Surfaces */
  --bg-parchment: #faf9f6;    /* Warm Ivory */
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;       /* Slate 900 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-gold: #fde68a;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', serif;

  /* Shadows & Elevation */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.35);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-parchment);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 60px; /* Space for sticky mobile bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

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

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

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

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-sm {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Indian Motif Accents */
.indian-pattern-bg {
  background-color: var(--primary);
  background-image: radial-gradient(rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  background: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-gold);
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: '✦';
  font-size: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.btn-navy {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-navy:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-cbse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

.top-bar-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
}

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

@media (max-width: 768px) {
  .top-bar-contacts {
    display: none;
  }
}

/* ==========================================================================
   MAIN NAVBAR & HEADER
   ========================================================================== */
.header-main {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-main.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-emblem {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.2);
  flex-shrink: 0;
}

.brand-info h1 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

@media (min-width: 768px) {
  .brand-emblem {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
  .brand-info h1 {
    font-size: 1.45rem;
  }
  .brand-sub {
    font-size: 0.8125rem;
  }
}

/* Desktop Navigation Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1080px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--secondary);
  background-color: #fef3c7;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 230px;
  box-shadow: var(--shadow-xl);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: #fffbeb;
  color: var(--secondary);
  padding-left: 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
}

@media (min-width: 1080px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   OFF-CANVAS MOBILE DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 1002;
  box-shadow: -4px 0 25px rgba(0,0,0,0.2);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--primary);
  color: #ffffff;
}

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
}

.drawer-close {
  color: #ffffff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 6px;
  font-size: 0.9375rem;
}

.drawer-link:hover {
  background: #fef3c7;
  color: var(--secondary);
}

.drawer-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.drawer-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.5rem 1rem 0.25rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   BREAKING NEWS & NOTICE TICKER
   ========================================================================== */
.ticker-bar {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
}

.ticker-label {
  background: var(--crimson);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-content {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
  padding-left: 100%;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-right: 3rem;
  font-weight: 500;
}

.ticker-badge {
  background: var(--gold-light);
  color: var(--secondary);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--primary-dark);
  color: #ffffff;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 25, 47, 0.94) 0%, rgba(11, 37, 69, 0.8) 50%, rgba(7, 25, 47, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 5rem;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-title span {
  color: var(--gold);
}

.hero-description {
  font-size: 1.125rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating Stats Bar */
.stats-floating-bar {
  position: relative;
  z-index: 4;
  margin-top: -3.5rem;
}

.stats-grid {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 1.5rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem 2.5rem;
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gold-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   SANSKRIT MOTTO BANNER
   ========================================================================== */
.motto-banner {
  background: linear-gradient(135deg, #0b2545 0%, #172554 100%);
  color: #ffffff;
  text-align: center;
  padding: 2.25rem 1rem;
  position: relative;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.motto-sanskrit {
  font-family: var(--font-hindi);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .motto-sanskrit {
    font-size: 2.1rem;
  }
}

.motto-trans {
  font-size: 0.9375rem;
  color: #cbd5e1;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   LEADERSHIP SPOTLIGHT (DIRECTOR & PRINCIPAL)
   ========================================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

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

.leader-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.leader-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.leader-quote {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  margin-bottom: 1.5rem;
}

.leader-quote::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--gold);
  position: absolute;
  top: -1.8rem;
  left: -0.75rem;
  opacity: 0.3;
}

.leader-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.leader-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.leader-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.leader-role {
  font-size: 0.8125rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   ACADEMIC WINGS
   ========================================================================== */
.academics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

@media (min-width: 1024px) {
  .academics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wing-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

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

.wing-card:hover::before {
  opacity: 1;
}

.wing-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: #fffbeb;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.wing-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.wing-grades {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.wing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   BENTO GRID FACILITIES
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.bento-item {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-item.featured {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-item.featured {
    grid-column: span 2;
  }
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.bento-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.bento-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.bento-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PHOTO & VIDEO GALLERY (TABS & LIGHTBOX)
   ========================================================================== */
.gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

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

.gallery-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #ffffff;
  aspect-ratio: 4 / 3;
}

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

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

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.9) 0%, rgba(11, 37, 69, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-caption-cat {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 47, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2rem;
  background: rgba(255,255,255,0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   CBSE MANDATORY DISCLOSURE CARD (17 DOCS)
   ========================================================================== */
.compliance-banner {
  background: linear-gradient(135deg, #0b2545 0%, #07192f 100%);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .compliance-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.compliance-info {
  max-width: 650px;
}

.compliance-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.compliance-title span {
  color: var(--gold);
}

.compliance-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .compliance-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.compliance-item::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

/* ==========================================================================
   FEE STRUCTURE TABLE & CALCULATOR
   ========================================================================== */
.table-container {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.styled-table th {
  background: var(--primary);
  color: #ffffff;
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.styled-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.styled-table tr:hover {
  background-color: #fffbeb;
}

.fee-highlight {
  font-weight: 700;
  color: var(--emerald);
}

/* ==========================================================================
   CONTACT & ADMISSIONS FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

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

.contact-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: var(--bg-parchment);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* ==========================================================================
   GRAND INSTITUTIONAL FOOTER
   ========================================================================== */
.footer-main {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

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

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

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-cbse-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-title {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  text-align: center;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

/* ==========================================================================
   STICKY BOTTOM MOBILE ACTION BAR
   ========================================================================== */
.mobile-action-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 998;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .mobile-action-bar {
    display: none;
  }
}

.action-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  gap: 3px;
  transition: var(--transition);
}

.action-bar-btn svg {
  width: 20px;
  height: 20px;
}

.action-bar-btn.primary {
  background: var(--secondary);
  color: #ffffff;
}

.action-bar-btn.whatsapp {
  color: #16a34a;
}


/* ==========================================================================
   RESPONSIVE GRID UTILITIES
   ========================================================================== */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-3-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-4-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 992px) {
  .sidebar-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ==========================================================================
   COMPACT VIDEO GALLERY CARDS & MODAL
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-thumb-wrap:hover img {
  transform: scale(1.05);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-thumb-wrap:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

.video-play-badge svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.video-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.video-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.video-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Video Modal Popup */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 47, 0.92);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  aspect-ratio: 16 / 9;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.video-modal-close:hover {
  background: #dc2626;
}
