/* ==========================================================================
   ISARAJI DEVI PUBLIC SCHOOL - Modern Design System & Stylesheet
   Tarahati, Mungra Badshahpur, Jaunpur, Uttar Pradesh – 222204
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette: Royal Navy & Warm Amber Gold */
  --primary-950: #060e1a;
  --primary-900: #0a1931;
  --primary-850: #0d2142;
  --primary-800: #122b54;
  --primary-700: #1b3d75;
  --primary-600: #25539e;
  --primary-500: #316cc9;
  --primary-100: #e3ecfc;
  --primary-50: #f1f5fd;

  --accent-600: #b45309;
  --accent-500: #d97706;
  --accent-400: #f59e0b;
  --accent-300: #fbbf24;
  --accent-100: #fef3c7;
  --accent-50: #fffbeb;

  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%);
  --blue-gradient: linear-gradient(135deg, #0a1931 0%, #122b54 60%, #1b3d75 100%);
  --hero-overlay: linear-gradient(180deg, rgba(6, 14, 26, 0.78) 0%, rgba(10, 25, 49, 0.88) 100%);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-dark: rgba(10, 25, 49, 0.85);

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --border-light: #e2e8f0;
  --border-subtle: rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 25, 49, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 25, 49, 0.08);
  --shadow-lg: 0 10px 25px -4px rgba(10, 25, 49, 0.12);
  --shadow-xl: 0 20px 35px -8px rgba(10, 25, 49, 0.18);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.35);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: #f1f5f9;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-600);
  background-color: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. Top Announcement & Contact Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--primary-950);
  color: var(--text-light);
  font-size: 0.84rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--accent-400);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-400);
  flex-shrink: 0;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admissions-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* --------------------------------------------------------------------------
   4. Sticky Header & Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 0.15rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: padding var(--transition-normal);
}

.site-header.scrolled .nav-container {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

/* Brand / Logo */
.school-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-crest {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10, 25, 49, 0.15);
  border: 2px solid var(--accent-400);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.school-brand:hover .brand-crest {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-600);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-850);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.38);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

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

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

.btn-outline-navy {
  background: transparent;
  color: var(--primary-900);
  border-color: var(--primary-900);
}

.btn-outline-navy:hover {
  background: var(--primary-900);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  z-index: 1002;
}

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

.mobile-toggle:hover span {
  background-color: var(--accent-600);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--accent-600);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--accent-600);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -10px 0 35px rgba(6, 14, 26, 0.3);
  z-index: 1050;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  overflow: hidden;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

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

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.drawer-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-400);
}

.drawer-brand-info {
  display: flex;
  flex-direction: column;
}

.drawer-brand-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.drawer-brand-sub {
  font-size: 0.7rem;
  color: var(--accent-300);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--accent-500);
  color: #ffffff;
  transform: rotate(90deg);
}

.drawer-close-btn span {
  line-height: 16px;
  position: relative;
  top: -4px;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 14, 26, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-900);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-link span {
  font-size: 1rem;
  color: var(--text-light);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-600);
  background-color: var(--primary-50);
  transform: translateX(4px);
}

.mobile-nav-link:hover span {
  color: var(--accent-600);
  transform: translateX(3px);
}

.mobile-nav-link.active {
  color: var(--accent-600);
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.14) 0%, rgba(217, 119, 6, 0.04) 100%);
  font-weight: 700;
  border-left: 4px solid var(--accent-500);
  border-bottom-color: transparent;
}

.mobile-nav-link.active span {
  color: var(--accent-600);
  font-weight: 700;
}

.drawer-footer {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.drawer-footer .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Hero Section & Background Carousel
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary-950);
  color: #ffffff;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(6, 14, 26, 0.88) 0%,
      rgba(10, 25, 49, 0.78) 50%,
      rgba(18, 43, 84, 0.7) 100%);
  z-index: 3;
}

/* Decorative Geometric Patterns */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  padding: 4.5rem 0 7rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent-300);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 700px;
}

.hero-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 25, 49, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hero-chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent-400);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--accent-500);
  border-color: var(--accent-400);
  transform: scale(1.08);
}

.hero-dots {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  width: 28px;
  background: var(--accent-400);
}

/* --------------------------------------------------------------------------
   6. Quick School Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
  position: relative;
  z-index: 20;
  margin-top: -3.5rem;
  padding-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -10px rgba(10, 25, 49, 0.16);
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  transition: all var(--transition-fast);
}

.stat-card:hover .stat-icon {
  background: var(--gold-gradient);
  color: #ffffff;
  transform: rotate(6deg) scale(1.05);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

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

/* --------------------------------------------------------------------------
   7. About Section (Two-Column Layout)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-img-floating {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 5px solid #ffffff;
  box-shadow: var(--shadow-xl);
}

.about-badge-card {
  position: absolute;
  top: 2rem;
  left: -2rem;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 5px solid var(--accent-500);
  max-width: 240px;
}

.about-badge-card svg {
  width: 36px;
  height: 36px;
  color: var(--accent-500);
  flex-shrink: 0;
}

.badge-text-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.2;
}

.badge-text-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.125rem;
  color: var(--primary-700);
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

.about-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-900);
}

.about-feature-item svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Academic Journey (Timeline / Stage Cards)
   -------------------------------------------------------------------------- */
.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.academic-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.academic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-100);
}

.stage-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.academic-card:hover .stage-number {
  color: var(--accent-100);
}

.stage-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.academic-card:hover .stage-icon-wrap {
  background: var(--gold-gradient);
  color: #ffffff;
  transform: scale(1.08);
}

.stage-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.academic-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.academic-grade {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-600);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  width: fit-content;
}

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

.academic-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--primary-800);
  font-weight: 500;
}

.pillar-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* --------------------------------------------------------------------------
   9. Why Choose Us (Feature Grid)
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.why-card:hover::after {
  width: 100%;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.why-card:hover .why-icon {
  background: var(--primary-900);
  color: var(--accent-300);
  transform: scale(1.05);
}

.why-icon svg {
  width: 28px;
  height: 28px;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.why-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. School Life & Activities Carousel
   -------------------------------------------------------------------------- */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 2rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.activity-card {
  flex: 0 0 calc((100% - (1.5rem * 2)) / 3);
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.activity-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

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

.activity-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 25, 49, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.activity-body {
  padding: 1.5rem;
}

.activity-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

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

.carousel-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-900);
  transform: scale(1.05);
}

.carousel-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Leadership Section
   -------------------------------------------------------------------------- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.leader-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.leader-photo-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: var(--primary-900);
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.leader-card:hover .leader-photo {
  transform: scale(1.05);
}

.leader-role-tag {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

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

.leader-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
}

.leader-post {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.leader-contact-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-50);
  color: var(--primary-800);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-100);
  transition: all var(--transition-fast);
}

.leader-contact-btn:hover {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-900);
}

.leader-contact-btn svg {
  width: 16px;
  height: 16px;
  color: var(--accent-500);
}

.leader-card:hover .leader-contact-btn svg {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   12. HOD Message Section
   -------------------------------------------------------------------------- */
.hod-section {
  background: linear-gradient(135deg, #0a1931 0%, #0d2142 50%, #122b54 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hod-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hod-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hod-photo-col {
  text-align: center;
}

.hod-photo-frame {
  width: 260px;
  height: 320px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid rgba(217, 119, 6, 0.25);
  box-shadow: var(--shadow-lg);
}

.hod-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hod-name-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-900);
}

.hod-designation {
  font-size: 0.9rem;
  color: var(--accent-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.hod-message-col {
  position: relative;
}

.quote-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-500);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hod-message-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

.hod-lead {
  font-size: 1.125rem;
  color: var(--primary-800);
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hod-message-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

/* Fallback if placed inside dark sections */
.section-dark .hod-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.section-dark .hod-name-title {
  color: #ffffff;
}

.section-dark .hod-designation {
  color: var(--accent-300);
}

.section-dark .hod-message-heading {
  color: #ffffff;
}

.section-dark .hod-message-text {
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   13. Principal's Message Section
   -------------------------------------------------------------------------- */
.principal-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.principal-message-col h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1.25rem;
}

.principal-lead {
  font-size: 1.125rem;
  color: var(--primary-700);
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.principal-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.principal-photo-frame {
  width: 260px;
  height: 320px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--primary-100);
  box-shadow: var(--shadow-lg);
}

.principal-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.principal-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-900);
}

.principal-title-tag {
  font-size: 0.9rem;
  color: var(--accent-600);
  font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. School Gallery & Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--primary-850);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary-600);
  color: var(--primary-900);
}

.filter-btn.active {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-900);
  box-shadow: var(--shadow-sm);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--primary-900);
  transition: all var(--transition-normal);
}

.gallery-item.hidden {
  display: none;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 25, 49, 0.85) 0%, rgba(10, 25, 49, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-caption-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.gallery-caption-cat {
  font-size: 0.8rem;
  color: var(--accent-300);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 14, 26, 0.94);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2010;
}

.lightbox-close:hover {
  background: var(--accent-500);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2010;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav:hover {
  background: var(--accent-500);
  transform: translateY(-50%) scale(1.1);
}

/* --------------------------------------------------------------------------
   15. Call To Action (CTA Banner)
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--blue-gradient);
  color: #ffffff;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 158, 11, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.cta-box {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent-300);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cta-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   16. Contact & Location Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 100%;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.contact-subheading {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon-box {
  background: var(--gold-gradient);
  color: #ffffff;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-600);
  margin-bottom: 0.15rem;
}

.contact-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary-900);
  line-height: 1.45;
}

.contact-val a:hover {
  color: var(--accent-500);
}

/* Leadership Contact Directory Box */
.leader-directory-box {
  background: var(--bg-card-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--primary-700);
}

.directory-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.directory-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.directory-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.directory-role {
  color: var(--text-muted);
  font-weight: 500;
}

.directory-name-phone {
  font-weight: 700;
  color: var(--primary-900);
}

.directory-name-phone a:hover {
  color: var(--accent-500);
}

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
}

.form-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(49, 108, 201, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Map Card */
.map-container {
  margin-top: 3.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  background: #e2e8f0;
}

.map-container iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map-card-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #ffffff;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  border-left: 4px solid var(--accent-500);
}

.map-badge-school {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-900);
}

.map-badge-addr {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary-950);
  color: #94a3b8;
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-brand-crest {
  width: 46px;
  height: 46px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-motto {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-300);
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-500);
  border-color: var(--accent-400);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--accent-500);
  border-radius: 2px;
}

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

.footer-link {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-400);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-400);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

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

/* --------------------------------------------------------------------------
   18. Floating Action Buttons & Toast Alert
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.float-btn-call {
  background: #10b981;
}

.float-btn-call:hover {
  background: #059669;
  transform: scale(1.1);
}

.float-btn-top {
  background: var(--primary-900);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
}

.float-btn-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn-top:hover {
  background: var(--accent-500);
}

.float-btn svg {
  width: 22px;
  height: 22px;
}

/* Toast Alert */
.toast-alert {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  width: max-content;
  background: #10b981;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s, visibility 0.35s;
}

.toast-alert.is-shown {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   18. Inner Page Banner & Breadcrumb Styles
   -------------------------------------------------------------------------- */
.page-banner {
  background: var(--blue-gradient);
  position: relative;
  padding: 4.5rem 0;
  color: #ffffff;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 158, 11, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.breadcrumb-nav a {
  color: var(--accent-400);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: #ffffff;
}

.breadcrumb-separator {
  color: #64748b;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.page-banner-desc {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* Detail Card & Content Blocks */
.content-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

.content-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.value-item-card {
  background: var(--bg-card-alt);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-500);
}

.value-item-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.value-item-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   19. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav-menu {
    gap: 1.1rem;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.45rem 0;
  }

  .brand-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 1080px) {

  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-floating {
    display: none;
  }

  .academics-grid,
  .why-grid,
  .leaders-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .activity-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  .hod-card,
  .principal-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    text-align: center;
  }

  .hod-photo-frame,
  .principal-photo-frame {
    margin: 0 auto;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 100%;
  }

  .top-bar {
    width: 100%;
    overflow: hidden;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
  }

  .top-bar-info {
    justify-content: center;
    gap: 0.4rem 1rem;
    width: 100%;
  }

  .top-bar-item {
    font-size: 0.78rem;
    word-break: break-word;
    text-align: center;
  }

  .hero-content {
    padding: 2.5rem 0 4.5rem 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-features-chips {
    gap: 0.5rem;
  }

  .hero-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-controls {
    display: none;
  }

  .stats-section {
    margin-top: -2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .activity-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .carousel-container {
    width: 100%;
    overflow: hidden;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .map-card-badge {
    position: static;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-chip {
    font-size: 0.75rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .top-bar-notice {
    font-size: 0.72rem;
  }

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }

  .float-btn {
    width: 46px;
    height: 46px;
  }
}