/* ============================================================
   SRI CHANAKYA E.M SCHOOL — Vibrant Colorful Design System
   Inspired by 1.png (bold curves) + 6.webp (light lines, image grid)
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Indian Tricolor-inspired palette */
  --saffron-700: #c45500;
  --saffron-600: #e65100;
  --saffron-500: #FF9933;
  --saffron-400: #FFB74D;
  --saffron-300: #FFD180;
  --saffron-200: #FFE0B2;
  --saffron-100: #FFF3E0;
  --saffron-50:  #FFF8F0;

  /* Deep Royal Blue */
  --royal-900: #0d1b2a;
  --royal-800: #0f2744;
  --royal-700: #1a3a6b;
  --royal-600: #1565C0;
  --royal-500: #1E88E5;
  --royal-400: #42A5F5;
  --royal-300: #90CAF9;
  --royal-200: #BBDEFB;
  --royal-100: #E3F2FD;
  --royal-50:  #f0f7ff;

  /* India Green */
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --green-500: #138808;
  --green-400: #4CAF50;
  --green-300: #81C784;
  --green-200: #C8E6C9;
  --green-100: #E8F5E9;

  /* Vibrant Red */
  --red-600: #c62828;
  --red-500: #E53935;
  --red-400: #EF5350;
  --red-300: #EF9A9A;
  --red-200: #FFCDD2;
  --red-100: #FFEBEE;

  /* Accent Purple */
  --purple-500: #7B1FA2;
  --purple-400: #AB47BC;
  --purple-300: #CE93D8;
  --purple-100: #F3E5F5;

  /* Accent Teal */
  --teal-500: #00897B;
  --teal-400: #26A69A;
  --teal-300: #80CBC4;
  --teal-100: #E0F2F1;

  /* Golden */
  --golden-600: #F9A825;
  --golden-500: #FFC107;
  --golden-400: #FFD54F;
  --golden-300: #FFE082;
  --golden-200: #FFECB3;

  /* Tricolor sections */
  --tricolor-saffron: #FF9933;
  --tricolor-white: #ffffff;
  --tricolor-green: #138808;

  /* Neutrals */
  --white:    #ffffff;
  --gray-50:  #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
  --gray-800: #212121;

  /* Semantic */
  --text-primary:   var(--gray-800);
  --text-secondary: var(--gray-600);
  --bg-light:       var(--gray-50);
  --bg-white:       var(--white);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --shadow-xl:  0 16px 56px rgba(0,0,0,0.18);
  --shadow-color-saffron: 0 6px 24px rgba(255,153,51,0.3);
  --shadow-color-blue: 0 6px 24px rgba(30,136,229,0.3);

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 50%;

  /* Fonts */
  --font-heading:  'Baloo 2', cursive;
  --font-body:     'Nunito', sans-serif;
  --font-sanskrit: 'Tiro Devanagari Sanskrit', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;

  /* Navbar */
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--royal-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.highlight-gradient {
  background: linear-gradient(135deg, var(--saffron-500), var(--red-500), var(--royal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-saffron { color: var(--saffron-500); }
.highlight-blue { color: var(--royal-500); }
.highlight-yellow { color: var(--golden-500); }
.highlight-white-outline {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--royal-600);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 16px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--saffron-500);
  margin-bottom: 10px;
}

.section-label-light {
  color: var(--golden-300);
}

.section-label-colored {
  color: var(--royal-900);
}

.section-title {
  margin-bottom: 18px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gray-500);
}

.section-title-light {
  color: var(--white);
}

.section-divider {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron-500), var(--royal-500), var(--green-500));
  border-radius: 2px;
  margin: 0 auto;
}

.section-divider-light {
  background: linear-gradient(90deg, var(--golden-400), var(--white), var(--golden-400));
}

.section-divider-yellow {
  background: linear-gradient(90deg, var(--golden-500), var(--white), var(--golden-500));
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Home page loader variant (dark bg, text reveal) --- */
.page-loader.loader-home {
  background: var(--royal-900);
}

.page-loader.loader-home.loaded {
  animation: loaderExit 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Floating icons container */
.loader-floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.loader-float-icon {
  position: absolute;
  color: white;
  opacity: 0;
  width: 30px;
  height: 30px;
}

.loader-float-icon-1 {
  left: 10%;
  top: 15%;
  width: 50px;
  height: 50px;
  animation: loaderIconFloat 14s ease-in-out infinite;
  --dx: 30px; --dy: -60px; --rot: 12deg; --max-opacity: 0.12;
}

.loader-float-icon-2 {
  left: 8%;
  top: 65%;
  width: 42px;
  height: 42px;
  animation: loaderIconFloat 11s ease-in-out infinite;
  animation-delay: 1.5s;
  --dx: -20px; --dy: -90px; --rot: -10deg; --max-opacity: 0.10;
}

.loader-float-icon-3 {
  right: 12%;
  top: 25%;
  width: 38px;
  height: 38px;
  animation: loaderIconFloat 13s ease-in-out infinite;
  animation-delay: 0.8s;
  --dx: -25px; --dy: -70px; --rot: 20deg; --max-opacity: 0.13;
}

.loader-float-icon-4 {
  right: 15%;
  top: 70%;
  width: 36px;
  height: 36px;
  animation: loaderIconFloat 10s ease-in-out infinite;
  animation-delay: 2s;
  --dx: 15px; --dy: -100px; --rot: -8deg; --max-opacity: 0.11;
}

.loader-float-icon-5 {
  left: 20%;
  top: 40%;
  width: 30px;
  height: 30px;
  animation: loaderIconFloat 15s ease-in-out infinite;
  animation-delay: 0.5s;
  --dx: 40px; --dy: -50px; --rot: 25deg; --max-opacity: 0.10;
}

.loader-float-icon-6 {
  right: 25%;
  top: 50%;
  width: 34px;
  height: 34px;
  animation: loaderIconFloat 12s ease-in-out infinite;
  animation-delay: 1s;
  --dx: -30px; --dy: -80px; --rot: 15deg; --max-opacity: 0.10;
}

.loader-float-icon-7 {
  left: 45%;
  top: 80%;
  width: 40px;
  height: 40px;
  animation: loaderIconFloat 13s ease-in-out infinite;
  animation-delay: 2.5s;
  --dx: 20px; --dy: -70px; --rot: -12deg; --max-opacity: 0.09;
}

.loader-float-icon-8 {
  left: 55%;
  top: 12%;
  width: 28px;
  height: 28px;
  animation: loaderIconFloat 16s ease-in-out infinite;
  animation-delay: 3s;
  --dx: -15px; --dy: -40px; --rot: 30deg; --max-opacity: 0.08;
}

/* Centered content */
.loader-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Book & Pen icons above loader text */
.loader-top-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.loader-top-icon {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.12);
}

.loader-top-book {
  animation: floatDrift1 5s ease-in-out infinite;
}

.loader-top-pen {
  animation: floatDrift2 6s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Title wrapper — relative for ghost/reveal layering */
.loader-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.loader-school-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--royal-800);
  margin-bottom: 6px;
}

/* Ghost text — always visible, very dim */
.loader-home .loader-ghost {
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
  white-space: nowrap;
  user-select: none;
}

/* Revealed text — clips left-to-right driven by JS */
.loader-home .loader-reveal {
  position: absolute;
  inset: 0;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.08s linear;
}

.loader-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-motto {
  font-family: var(--font-sanskrit);
  font-size: 0.95rem;
  color: var(--saffron-600);
  margin-bottom: 28px;
}

/* Loading bar */
.loader-bar {
  width: 240px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--saffron-500), var(--royal-500), var(--green-500));
  border-radius: 4px;
  animation: loaderBar 1.5s ease-in-out forwards;
}

/* Home variant bar */
.loader-home .loader-bar {
  width: 300px;
  background: rgba(255, 255, 255, 0.08);
}

.loader-home .loader-progress {
  background: linear-gradient(90deg, var(--saffron-500), var(--golden-500), var(--saffron-400), var(--golden-500), var(--saffron-500));
  background-size: 200% 100%;
  animation: loaderBarShimmer 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(255, 153, 51, 0.4), 0 0 30px rgba(255, 153, 51, 0.15);
  transition: width 0.05s linear;
}

/* Percentage text */
.loader-percent {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(90deg, var(--saffron-500), var(--white) 40%, var(--white) 60%, var(--green-500));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

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

.school-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--royal-800);
  line-height: 1.2;
}

.school-name-em {
  color: var(--saffron-600);
}

.school-tagline {
  font-family: var(--font-sanskrit);
  font-size: 0.72rem;
  color: var(--saffron-500);
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-500), var(--royal-500));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--royal-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--royal-600);
}

/* Nav CTA Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--saffron-500), var(--red-500));
  border-radius: var(--radius-xl);
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-color-saffron);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  z-index: 9100;
  flex-shrink: 0;
  margin-right: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--royal-800);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5.5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5.5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 8999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  opacity: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  transition: all 0.35s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--royal-600);
  color: var(--white);
  border-color: var(--royal-600);
}

.btn-primary:hover {
  background: var(--royal-700);
  border-color: var(--royal-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-color-blue);
}

.btn-saffron {
  background: linear-gradient(135deg, var(--saffron-500), var(--saffron-600));
  color: var(--white);
  border-color: var(--saffron-500);
}

.btn-saffron:hover {
  background: linear-gradient(135deg, var(--saffron-600), var(--saffron-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-color-saffron);
}

.btn-outline-hero {
  background: transparent;
  color: var(--royal-600);
  border: 2px solid var(--royal-300);
}

.btn-outline-hero:hover {
  background: var(--royal-50);
  border-color: var(--royal-500);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--royal-700);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--royal-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.3);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  background: linear-gradient(160deg, var(--royal-50) 0%, var(--white) 35%, var(--saffron-50) 70%, var(--white) 100%);
  overflow: hidden;
}

/* Light decorative lines SVG */
.hero-light-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 50px 0 140px;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--royal-500);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--royal-100);
  border-radius: var(--radius-xl);
  border: 1px solid var(--royal-200);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--royal-900);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--royal-700);
}

.hero-motto {
  font-family: var(--font-sanskrit);
  font-size: 1.15rem;
  color: var(--saffron-600);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Hero trust bar */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  width: fit-content;
}

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

.trust-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--royal-600);
  line-height: 1;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-300);
}

/* Hero Images Grid — like 6.webp */
.hero-images {
  position: relative;
  z-index: 1;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}

.hero-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img-wrapper:hover {
  transform: scale(1.03);
}

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

.hero-img-wrapper:hover img {
  transform: scale(1.08);
}

/* Staggered positioning like 6.webp */
.hero-img-2 {
  margin-top: 35px;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
}

.hero-img-3 {
  margin-top: -35px;
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
}

.hero-img-1 {
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
}

.hero-img-4 {
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
}

/* Decorative dots/circles like 6.webp */
.hero-deco {
  position: absolute;
  border-radius: var(--radius-full);
  z-index: -1;
  pointer-events: none;
}

.hero-deco-circle-yellow {
  top: -25px;
  right: -25px;
  width: 130px;
  height: 130px;
  background: var(--golden-500);
  opacity: 0.5;
  animation: float 5s ease-in-out infinite;
}

.hero-deco-circle-blue {
  bottom: -20px;
  left: -30px;
  width: 80px;
  height: 80px;
  background: var(--royal-400);
  opacity: 0.3;
  animation: float 6s ease-in-out 1s infinite;
}

.hero-deco-dot-purple {
  top: 40%;
  left: -18px;
  width: 18px;
  height: 18px;
  background: var(--purple-400);
  opacity: 0.5;
}

.hero-deco-dot-green {
  bottom: 30%;
  right: -14px;
  width: 22px;
  height: 22px;
  background: var(--green-400);
  opacity: 0.5;
}

.hero-deco-dot-red {
  top: 20%;
  right: 45%;
  width: 12px;
  height: 12px;
  background: var(--red-400);
  opacity: 0.6;
}

/* Curved light lines behind hero images */
.hero-curved-lines {
  position: absolute;
  top: 0;
  right: -40px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Floating school icons in hero */
.hero-floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-float-icon {
  position: absolute;
  width: 28px;
  height: 28px;
}

.float-icon-1 {
  left: 8%;
  top: 25%;
  color: var(--saffron-600);
  opacity: 0.45;
  width: 34px;
  height: 34px;
  animation: floatDrift1 20s ease-in-out infinite;
}

.float-icon-2 {
  left: 22%;
  top: 65%;
  color: var(--royal-500);
  opacity: 0.4;
  width: 30px;
  height: 30px;
  animation: floatDrift2 24s ease-in-out infinite;
  animation-delay: -3s;
}

.float-icon-3 {
  left: 45%;
  top: 15%;
  color: var(--green-500);
  opacity: 0.42;
  width: 36px;
  height: 36px;
  animation: floatDrift3 22s ease-in-out infinite;
  animation-delay: -5s;
}

.float-icon-4 {
  left: 70%;
  top: 75%;
  color: var(--saffron-500);
  opacity: 0.38;
  width: 32px;
  height: 32px;
  animation: floatDrift4 19s ease-in-out infinite;
  animation-delay: -2s;
}

.float-icon-5 {
  left: 85%;
  top: 30%;
  color: var(--golden-600);
  opacity: 0.45;
  width: 28px;
  height: 28px;
  animation: floatDrift5 21s ease-in-out infinite;
  animation-delay: -7s;
}

.float-icon-6 {
  left: 55%;
  top: 80%;
  color: var(--royal-400);
  opacity: 0.35;
  width: 34px;
  height: 34px;
  animation: floatDrift6 25s ease-in-out infinite;
  animation-delay: -4s;
}

.float-icon-7 {
  left: 35%;
  top: 45%;
  color: var(--red-400);
  opacity: 0.33;
  width: 28px;
  height: 28px;
  animation: floatDrift1 23s ease-in-out infinite;
  animation-delay: -8s;
}

.float-icon-8 {
  left: 92%;
  top: 55%;
  color: var(--green-400);
  opacity: 0.38;
  width: 30px;
  height: 30px;
  animation: floatDrift3 20s ease-in-out infinite;
  animation-delay: -6s;
}

/* Hero Wave Separator */
.hero-curve-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}

.hero-curve-separator svg {
  width: 100%;
  height: 120px;
}

/* ============================================================
   STATS CURVED BAND (like reference 1-Copy.png)
   ============================================================ */
.stats-band {
  position: relative;
  width: 100%;
  margin: -60px 0 0;
}

/* The SVG wave band background */
.stats-band-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}

/* Circles overlay — positioned on top of the SVG */
.stats-band-circles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8%;
  z-index: 2;
}

/* White stat bubbles */
.stat-bubble {
  position: relative;
}

.stat-bubble-inner {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding: 14px;
}

.stat-bubble-inner:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Staggered heights — like reference image */
.stat-bubble-1 { margin-top: -30px; animation: bubbleBounce 3s ease-in-out infinite; }
.stat-bubble-2 { margin-top: 20px; animation: bubbleBounce 3s ease-in-out 0.5s infinite; }
.stat-bubble-3 { margin-top: -10px; animation: bubbleBounce 3s ease-in-out 1s infinite; }
.stat-bubble-4 { margin-top: 30px; animation: bubbleBounce 3s ease-in-out 1.5s infinite; }

.stat-bubble-1 .stat-bubble-inner { width: 120px; height: 120px; }
.stat-bubble-2 .stat-bubble-inner { width: 155px; height: 155px; }
.stat-bubble-3 .stat-bubble-inner { width: 145px; height: 145px; }
.stat-bubble-4 .stat-bubble-inner { width: 135px; height: 135px; }

.stat-bubble .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--saffron-600);
}

.stat-bubble-1 .stat-number { font-size: 1.9rem; }
.stat-bubble-2 .stat-number { font-size: 2.5rem; }
.stat-bubble-3 .stat-number { font-size: 2.2rem; }
.stat-bubble-4 .stat-number { font-size: 2rem; }

.stat-bubble .stat-label {
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-preview {
  background: var(--bg-white);
  position: relative;
}

.curve-accent-blue-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  display: none; /* we can enable this later */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tricolor stripe decoration */
.about-deco-stripe {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  z-index: -1;
  background: linear-gradient(180deg, var(--saffron-400) 0%, var(--saffron-400) 33%, var(--white) 33%, var(--white) 66%, var(--green-400) 66%, var(--green-400) 100%);
  opacity: 0.4;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: linear-gradient(135deg, var(--royal-600), var(--royal-700));
  color: var(--white);
  padding: 18px 26px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
}

.about-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--golden-400);
}

.about-badge .badge-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 32px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-700);
}

.feature-check {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-check svg {
  width: 14px;
  height: 14px;
}

.feature-check-saffron { background: var(--saffron-100); color: var(--saffron-600); }
.feature-check-blue { background: var(--royal-100); color: var(--royal-600); }
.feature-check-green { background: var(--green-100); color: var(--green-600); }
.feature-check-red { background: var(--red-100); color: var(--red-600); }

/* ============================================================
   PROGRAMS SECTION — Dark blue with curves
   ============================================================ */
.programs-section {
  position: relative;
  background: linear-gradient(160deg, var(--royal-700) 0%, var(--royal-900) 100%);
  padding: 80px 0;
  overflow: hidden;
}

.programs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.programs-curve-top,
.programs-curve-bottom {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}

.programs-curve-top {
  top: -1px;
}

.programs-curve-bottom {
  bottom: -1px;
}

.programs-curve-top svg,
.programs-curve-bottom svg {
  width: 100%;
  height: 80px;
  display: block;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.program-card-accent {
  height: 5px;
}

.program-card-saffron .program-card-accent { background: linear-gradient(90deg, var(--saffron-500), var(--saffron-400)); }
.program-card-blue .program-card-accent { background: linear-gradient(90deg, var(--royal-500), var(--royal-400)); }
.program-card-green .program-card-accent { background: linear-gradient(90deg, var(--green-500), var(--green-400)); }

.program-icon-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.program-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-icon-wrap img {
  transform: scale(1.08);
}

.program-card h3 {
  padding: 20px 24px 0;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.program-card p {
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  transition: gap 0.3s ease;
}

.program-card-saffron .card-link { color: var(--saffron-600); }
.program-card-blue .card-link { color: var(--royal-600); }
.program-card-green .card-link { color: var(--green-600); }

.card-link:hover {
  gap: 14px;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  background: var(--gray-50);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-item:hover::after {
  opacity: 1;
}

.feature-item-saffron:hover { border-color: var(--saffron-200); }
.feature-item-saffron::after { background: var(--saffron-500); }
.feature-item-blue:hover { border-color: var(--royal-200); }
.feature-item-blue::after { background: var(--royal-500); }
.feature-item-green:hover { border-color: var(--green-200); }
.feature-item-green::after { background: var(--green-500); }
.feature-item-red:hover { border-color: var(--red-200); }
.feature-item-red::after { background: var(--red-500); }
.feature-item-purple:hover { border-color: var(--purple-300); }
.feature-item-purple::after { background: var(--purple-500); }
.feature-item-teal:hover { border-color: var(--teal-300); }
.feature-item-teal::after { background: var(--teal-500); }

.feature-icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-item-saffron .feature-icon-circle { background: var(--saffron-100); color: var(--saffron-600); }
.feature-item-blue .feature-icon-circle { background: var(--royal-100); color: var(--royal-600); }
.feature-item-green .feature-icon-circle { background: var(--green-100); color: var(--green-600); }
.feature-item-red .feature-icon-circle { background: var(--red-100); color: var(--red-600); }
.feature-item-purple .feature-icon-circle { background: var(--purple-100); color: var(--purple-500); }
.feature-item-teal .feature-icon-circle { background: var(--teal-100); color: var(--teal-500); }

.feature-item h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--royal-900);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ============================================================
   LIFE AT SCHOOL — Vibrant curved section
   ============================================================ */
.life-section {
  position: relative;
  overflow: hidden;
}

.life-curve-top,
.life-curve-bottom {
  position: relative;
  line-height: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.life-curve-top svg,
.life-curve-bottom svg {
  width: 100%;
  height: 100px;
  display: block;
  margin-bottom: -2px;
}

.life-curve-bottom svg {
  margin-bottom: 0;
  margin-top: -2px;
}

.life-inner {
  position: relative;
  background: linear-gradient(180deg,
    var(--saffron-100) 0%,
    var(--saffron-200) 50%,
    var(--golden-200) 100%
  );
  padding: 40px 0 60px;
}

.life-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.life-inner .section-header {
  position: relative;
  z-index: 1;
}

.life-inner .section-title {
  color: var(--royal-900);
}

.life-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.life-gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.life-gallery-wide {
  grid-row: span 1;
}

.life-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.6s ease;
}

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

.life-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.life-gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: var(--saffron-100);
  opacity: 0.5;
  pointer-events: none;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-full);
  background: var(--royal-100);
  opacity: 0.5;
  pointer-events: none;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 750px;
  margin: 0 auto;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--saffron-400);
  font-family: Georgia, serif;
  margin-bottom: 12px;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--royal-800);
  font-size: 1.05rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 0 24px;
}

.testimonials-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s ease;
}

.testimonials-dots button.active {
  background: linear-gradient(135deg, var(--saffron-500), var(--royal-500));
  transform: scale(1.4);
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  background: var(--gray-50);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-800);
  border: 3px solid var(--gray-200);
}

.video-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   CTA SECTION — Bold & colorful
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-curve-top {
  position: relative;
  margin-top: -2px;
  line-height: 0;
}

.cta-curve-top svg {
  width: 100%;
  height: 70px;
  display: block;
}

.cta-inner {
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--royal-800) 100%);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 153, 51, 0.08);
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Indian tricolor bar at bottom of CTA */
.cta-tricolor-bar {
  display: flex;
  height: 6px;
}

.tricolor-saffron { flex: 1; background: var(--saffron-500); }
.tricolor-white-bar { flex: 1; background: var(--white); }
.tricolor-green { flex: 1; background: var(--green-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--royal-100);
  color: var(--gray-600);
  position: relative;
}

.footer-wave {
  position: relative;
  margin-bottom: -2px;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

.footer-main {
  padding: 70px 0 40px;
}

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

.footer-brand img {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.footer-brand .footer-school-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--royal-800);
  margin-bottom: 4px;
}

.footer-brand .footer-motto {
  font-family: var(--font-sanskrit);
  font-size: 0.85rem;
  color: var(--saffron-400);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--royal-700);
}

.footer-col h4 {
  color: var(--royal-800);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-500), var(--golden-400));
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--saffron-600);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--saffron-600);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  background: var(--saffron-500);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: var(--royal-800);
}

.footer-social a:hover svg {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.footer-bottom .inn{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-credit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.footer-credit a {
  color: var(--royal-600);
  font-weight: 600;
  text-decoration: none;
}
.footer-credit a:hover {
  text-decoration: underline;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 8000;
  transition: transform 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--saffron-500), var(--royal-500));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 8000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

/* ============================================================
   PAGE HERO (for inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 180px 0 120px;
  background: linear-gradient(135deg, var(--royal-700) 0%, var(--royal-900) 100%);
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.75) 0%, rgba(15, 39, 68, 0.8) 100%);
  pointer-events: none;
}

/* Page-specific hero backgrounds */
.page-hero-about {
  background-image: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1400&h=500&fit=crop&crop=center');
}

.page-hero-academics {
  background-image: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1400&h=500&fit=crop&crop=center');
}

.page-hero-admissions {
  background-image: url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=1400&h=500&fit=crop&crop=center');
}

.page-hero-gallery {
  background-image: url('https://images.unsplash.com/photo-1588072432836-e10032774350?w=1400&h=500&fit=crop&crop=center');
}

.page-hero-contact {
  background-image: url('https://images.unsplash.com/photo-1546410531-bb4caa6b424d?w=1400&h=500&fit=crop&crop=center');
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.page-hero .breadcrumb a {
  color: var(--saffron-400);
  transition: color 0.3s;
}

.page-hero .breadcrumb a:hover {
  color: var(--saffron-300);
}

.page-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.page-hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--royal-400);
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--red-500);
  margin-top: 6px;
  display: none;
}

.form-control.error {
  border-color: var(--red-500);
}

.form-control.error + .form-error {
  display: block;
}

.form-success {
  display: none;
  background: var(--green-100);
  border: 1px solid var(--green-400);
  color: var(--green-700);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.form-error-global {
  display: none;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b3261e;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

.form-error-global.show {
  display: block;
}

/* ============================================================
   ADMISSIONS PAGE — Banner & Documents
   ============================================================ */
.admissions-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--royal-50), var(--saffron-50));
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 2px solid var(--saffron-200);
  overflow: hidden;
}

.admissions-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.admissions-banner p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.admissions-banner-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.admissions-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.document-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--royal-100);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.document-card span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .admissions-banner {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .admissions-banner-image {
    max-height: 240px;
  }
  .documents-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   PROGRAM BLOCKS (Academics page — full sections)
   ============================================================ */
.program-block {
  position: relative;
  overflow: hidden;
}

.program-block-saffron {
  background: var(--saffron-50);
}

.program-block-blue {
  background: var(--royal-50);
}

.program-block-green {
  background: var(--green-100);
}

.program-block .story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.program-block .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-block .story-image:hover img {
  transform: scale(1.05);
}

.program-block-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.program-badge-saffron {
  background: var(--saffron-200);
  color: var(--saffron-700);
}

.program-badge-blue {
  background: var(--royal-200);
  color: var(--royal-700);
}

.program-badge-green {
  background: var(--green-200);
  color: var(--green-700);
}

.program-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.program-list li {
  margin-bottom: 4px;
}

.program-list-num {
  list-style:decimal;
  padding-left: 20px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.program-list-num li {
  margin-bottom: 4px;
}

/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.story-block.reverse {
  direction: rtl;
}
.story-block.reverse > * {
  direction: ltr;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--card-accent, var(--royal-500));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.value-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

.founder-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.founder-card:hover {
  transform: translateY(-6px);
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
  border: 4px solid var(--saffron-300);
  overflow: hidden;
  background: var(--gray-200);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.founder-card .founder-title {
  font-size: 0.85rem;
  color: var(--saffron-600);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.founder-card p {
  font-size: 0.9rem;
}

/* ============================================================
   ACADEMICS PAGE SPECIFICS
   ============================================================ */
.tabs-container {
  margin-bottom: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  color: var(--gray-600);
  background: var(--gray-100);
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--royal-500), var(--royal-600));
}

.tab-content {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.tab-content.active {
  display: block;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.activity-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.activity-card .activity-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.activity-card h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================================
   ADMISSIONS PAGE SPECIFICS
   ============================================================ */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0 60px;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 3px;
  background: var(--gray-200);
}

.timeline-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.timeline-step .step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--royal-500), var(--royal-600));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.timeline-step h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.timeline-step p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.eligibility-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.eligibility-table thead th {
  background: linear-gradient(135deg, var(--royal-600), var(--royal-700));
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.eligibility-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.eligibility-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.eligibility-table tbody tr:hover {
  background: var(--royal-50);
}

/* ============================================================
   GALLERY PAGE SPECIFICS
   ============================================================ */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
  transition: all 0.3s ease;
}

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

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: var(--gray-200);
}

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

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  position: fixed;
}

.lightbox-prev,
.lightbox-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   CONTACT PAGE SPECIFICS
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--card-accent, var(--royal-500));
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card .contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--royal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-card .contact-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--royal-500);
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.social-links-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-4px);
}

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

.social-link.youtube { color: #FF0000; }
.social-link.youtube:hover { background: #FF0000; color: var(--white); }
.social-link.whatsapp { color: #25D366; }
.social-link.whatsapp:hover { background: #25D366; color: var(--white); }
.social-link.facebook { color: #1877F2; }
.social-link.facebook:hover { background: #1877F2; color: var(--white); }
.social-link.instagram { color: #E4405F; }
.social-link.instagram:hover { background: #E4405F; color: var(--white); }
