/* ========================================
   School 02 — Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Vibrant School Theme */
  --navy-950: #172554;
  --navy-900: #1e3a8a;
  --navy-800: #1e40af;
  --navy-700: #1d4ed8;
  --navy-600: #2563eb;
  --navy-500: #3b82f6;
  --navy-400: #60a5fa;
  --navy-300: #93c5fd;
  --navy-200: #bfdbfe;
  --navy-100: #dbeafe;
  --navy-50: #eff6ff;

  --gold-500: #f59e0b; /* Vibrant Amber/Orange */
  --gold-400: #fbbf24;
  --gold-300: #fcd34d;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;
  --gold-50: #fffbeb;

  /* Playful Accents */
  --pink-accent: #ec4899;
  --purple-accent: #8b5cf6;
  --green-accent: #10b981;
  --blue-accent: #3b82f6;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --container-max: 1280px;
  --section-py: 100px;
  --section-py-mobile: 60px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: var(--slate-50);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy-600);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--slate-500);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

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

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

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.btn-gold:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 186, 21, 0.35);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .header-inner {
  padding: 8px 0;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.header.scrolled .top-bar {
  height: 0;
  opacity: 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.top-bar-right {
  display: flex;
  gap: 20px;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

@media (max-width: 575px) {
  .top-bar-left {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  transition: all var(--transition-base);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

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

.logo-text .school-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
}

.logo-text .school-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

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

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

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold-500);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--navy-900);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--navy-900);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 8px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 10;
}

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

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: var(--slate-100);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-800);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 5;
  padding: 90px 24px 24px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  display: block;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 24px;
}

/* Header spacer */
.header-spacer {
  height: 74px;
}

@media (min-width: 768px) {
  .header-spacer {
    height: 82px;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}

@media (min-width: 768px) {
  .hero {
    min-height: 720px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.85) 0%,
    rgba(37, 99, 235, 0.65) 50%,
    rgba(30, 58, 138, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 186, 21, 0.15);
  border: 1px solid rgba(244, 186, 21, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-badge span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--gold-400);
  position: relative;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating stats in hero */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(30, 58, 138, 0.85); /* Darker blue to fix contrast with glowing image backgrounds */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 768px) {
  .hero-stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat {
  padding: 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .hero-stat {
    border-bottom: none;
  }
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  padding: 12px 0;
  overflow: hidden;
}

.announcement-marquee {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 60px;
  white-space: nowrap;
}

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

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.announcement-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: var(--section-py) 0;
  background: var(--white);
}

@media (max-width: 767px) {
  .about {
    padding: var(--section-py-mobile) 0;
  }
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--gold-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-experience {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--navy-900);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-experience .number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

.about-experience .label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-text {
  font-size: 16px;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}

.about-feature .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature .check svg {
  width: 14px;
  height: 14px;
  color: var(--navy-600);
}

/* ========================================
   PRINCIPAL'S MESSAGE
   ======================================== */
.principal-message {
  padding: var(--section-py) 0;
  background: var(--white);
}

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

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

.principal-image-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.principal-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.principal-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.principal-badge .name {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.principal-badge .title {
  display: block;
  font-size: 14px;
  color: var(--gold-400);
  margin-top: 4px;
}

.principal-content .lead {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
}

.principal-content p {
  color: var(--slate-600);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.signature .sign-font {
  font-family: 'Playfair Display', cursive;
  font-size: 32px;
  color: var(--navy-900);
  font-style: italic;
  display: block;
  margin-top: 32px;
}

/* ========================================
   ACADEMIC PROGRAMS
   ======================================== */
.academics-section {
  padding: var(--section-py) 0;
  background: var(--slate-50);
}

.academics-header {
  text-align: center;
  margin-bottom: 56px;
}

.academics-header .section-subtitle {
  margin: 0 auto;
}

.academics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.academic-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border-top: 4px solid transparent;
}

.academic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--navy-600);
}

.acad-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.academic-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.acad-ages {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-600);
  background: var(--navy-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.academic-card p {
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-text {
  font-weight: 700;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--gold-500);
}

/* ========================================
   ADMISSION PROCESS
   ======================================== */
.admission-process {
  padding: var(--section-py) 0;
  background: var(--white);
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

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

.step-card {
  background: var(--slate-50);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  border: 1px solid var(--slate-200);
}

.step-card:hover {
  background: var(--white);
  border-color: var(--navy-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--navy-900);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.step-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.step-card p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ========================================
   FACILITIES SECTION
   ======================================== */
.facilities {
  padding: var(--section-py) 0;
  background: var(--slate-50);
}

@media (max-width: 767px) {
  .facilities {
    padding: var(--section-py-mobile) 0;
  }
}

.facilities-header {
  text-align: center;
  margin-bottom: 56px;
}

.facilities-header .section-subtitle {
  margin: 0 auto;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.facility-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  group: facility;
}

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

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

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.3) 40%, transparent 70%);
  transition: background var(--transition-base);
}

.facility-card:hover .facility-overlay {
  background: linear-gradient(to top, rgba(30, 58, 138, 0.95) 0%, rgba(30, 58, 138, 0.5) 50%, rgba(30, 58, 138, 0.2) 100%);
}

.facility-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.facility-card:hover .facility-content {
  transform: translateY(0);
}

.facility-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(244, 186, 21, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.facility-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold-400);
}

.facility-content h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.facility-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.facility-card:hover .facility-content p {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   STATS COUNTER SECTION
   ======================================== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 186, 21, 0.08) 0%, transparent 70%);
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 99, 168, 0.15) 0%, transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

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

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(244, 186, 21, 0.1);
  border: 1px solid rgba(244, 186, 21, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold-400);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .suffix {
  color: var(--gold-400);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-us {
  padding: var(--section-py) 0;
  background: var(--white);
}

@media (max-width: 767px) {
  .why-us {
    padding: var(--section-py-mobile) 0;
  }
}

.why-us-header {
  text-align: center;
  margin-bottom: 56px;
}

.why-us-header .section-subtitle {
  margin: 0 auto;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.why-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-600), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-50), var(--navy-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--navy-700);
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ========================================
   FUN ACTIVITIES SECTION (PLAYFUL)
   ======================================== */
.fun-activities {
  padding: var(--section-py) 0;
  background: var(--navy-50);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .fun-activities {
    padding: var(--section-py-mobile) 0;
  }
}

.fun-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.fun-header .section-subtitle {
  margin: 0 auto;
}

.fun-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  position: relative;
  z-index: 2;
}

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

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

.fun-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  border: 4px solid transparent;
  cursor: pointer;
  position: relative;
}

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

.fun-card.color-pink:hover { border-color: var(--pink-accent); }
.fun-card.color-purple:hover { border-color: var(--purple-accent); }
.fun-card.color-green:hover { border-color: var(--green-accent); }
.fun-card.color-blue:hover { border-color: var(--blue-accent); }

.fun-icon {
  font-size: 48px;
  margin-bottom: 20px;
  transition: transform var(--transition-base);
  display: inline-block;
}

.fun-card:hover .fun-icon {
  transform: rotate(15deg) scale(1.2);
}

.fun-card h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.fun-card.color-pink h3 { color: var(--pink-accent); }
.fun-card.color-purple h3 { color: var(--purple-accent); }
.fun-card.color-green h3 { color: var(--green-accent); }
.fun-card.color-blue h3 { color: var(--blue-accent); }

.fun-card p {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.6;
}

/* Floating Shapes Animation */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--pink-accent);
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: var(--gold-400);
  bottom: -50px;
  right: -50px;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--blue-accent);
  top: 40%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  padding: var(--section-py) 0;
  background: linear-gradient(to bottom, var(--slate-50), var(--white));
}

@media (max-width: 767px) {
  .testimonials {
    padding: var(--section-py-mobile) 0;
  }
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
}

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

.testimonial-quote {
  color: var(--gold-400);
  margin-bottom: 16px;
}

.testimonial-quote svg {
  width: 36px;
  height: 36px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-100);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-400), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-author-info .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
}

.testimonial-author-info .role {
  font-size: 13px;
  color: var(--slate-500);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-500);
  color: var(--gold-500);
}

/* ========================================
   CTA / ADMISSIONS SECTION
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 186, 21, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-950);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 50px;
  border-radius: 4px;
}

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

.footer-brand .logo-text .school-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold-400);
  transform: translateX(4px);
}

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

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

.footer-contact-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
  cursor: pointer;
  border: none;
}

.back-to-top:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

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

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
