/* 
 * Deep Public School, Jhunjhunu - Premium Stylesheet
 * Custom styles extending Bootstrap 5 for educational site aesthetics
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* Color Variables */
:root {
  --primary-blue: #0A4FAF;
  --primary-blue-rgb: 10, 79, 175;
  --secondary-gold: #F5B301;
  --secondary-gold-rgb: 245, 179, 1;
  --accent-sky: #4FC3F7;
  --success-green: #2E7D32;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --text-dark: #1A1A1A;
  --text-muted: #5A6A85;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(10, 79, 175, 0.12);
  --shadow-gold: 0 15px 30px rgba(245, 179, 1, 0.2);

  /* NEW: Glow & depth tokens */
  --glow-blue: 0 0 30px rgba(10, 79, 175, 0.35), 0 0 60px rgba(10, 79, 175, 0.15);
  --glow-gold: 0 0 25px rgba(245, 179, 1, 0.45), 0 0 50px rgba(245, 179, 1, 0.2);
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --gradient-blue: linear-gradient(135deg, #0A4FAF 0%, #1565C0 50%, #0D47A1 100%);
  --gradient-dark: linear-gradient(160deg, #020D1F 0%, #041530 50%, #061a3a 100%);
}

/* Global Reset & Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* navbar offset */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-blue);
  font-weight: 700;
}

p {
  line-height: 1.7;
  color: var(--text-muted);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gold);
}

/* Premium Utilities */
.text-gold {
  color: var(--secondary-gold);
}

.bg-primary-blue {
  background-color: var(--primary-blue);
}

.bg-secondary-gold {
  background-color: var(--secondary-gold);
}

/* Custom Gradients & Buttons */
.btn-premium-primary {
  font-family: var(--font-heading);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-blue), #1e70e0);
  color: var(--bg-white);
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(10, 79, 175, 0.3);
  color: var(--bg-white);
}

.btn-premium-secondary {
  font-family: var(--font-heading);
  font-weight: 600;
  background: linear-gradient(135deg, var(--secondary-gold), #ffc72c);
  color: #111;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.btn-premium-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  color: #111;
}

.btn-outline-premium {
  font-family: var(--font-heading);
  font-weight: 600;
  background: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
  border-radius: 30px;
  padding: 10px 28px;
  transition: var(--transition-smooth);
}
.btn-outline-premium:hover {
  background: var(--bg-white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.85);
}

/* Section Header Styles */
.section-title-container {
  margin-bottom: 50px;
}
.section-subtitle {
  font-family: var(--font-heading);
  color: var(--secondary-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(245, 179, 1, 0.35);
  background: rgba(245, 179, 1, 0.08);
  backdrop-filter: blur(4px);
}
.section-subtitle::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--secondary-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245,179,1,0.7);
  display: inline-block;
  flex-shrink: 0;
}
.section-title {
  font-size: 2.6rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  background: linear-gradient(135deg, var(--primary-blue) 30%, #3a8ef6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold), var(--primary-blue));
  border-radius: 2px;
  animation: shimmer-line 3s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes shimmer-line {
  0%   { background-position: 0% 0; }
  50%  { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
.text-start .section-title::after {
  left: 0;
  transform: translateX(0);
}
/* Dark background overrides: make section-title white */
.why-choose-section .section-title,
.military-section .section-title,
.testimonials-section .section-title,
.stat-counter-section .section-title {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

/* 1. Preloader Animation */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #020D1F 0%, #0A3080 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-spinner {
  position: relative;
  width: 72px;
  height: 72px;
}
.loader-spinner::before,
.loader-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  inset: 0;
}
.loader-spinner::before {
  border: 4px solid rgba(255,255,255,0.07);
}
.loader-spinner::after {
  border: 4px solid transparent;
  border-top-color: var(--secondary-gold);
  border-right-color: var(--primary-blue);
  animation: spin 0.9s linear infinite;
}
.loader-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  animation: pulse-opacity 1.4s ease-in-out infinite;
}
@keyframes pulse-opacity {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 2. Sticky Navbar Glass Effect */
.navbar {
  transition: var(--transition-smooth);
  padding: 15px 0;
  background: var(--bg-white);
}
.navbar.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.navbar-brand img {
  transition: var(--transition-smooth);
  height: 60px;
}
.navbar.scrolled .navbar-brand img {
  height: 50px;
}
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #333 !important;
  margin: 0 8px;
  position: relative;
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-blue) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-gold);
  transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.navbar-toggler {
  border: none;
  padding: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 18px;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--primary-blue);
  left: 0;
  transition: var(--transition-smooth);
}
.navbar-toggler-icon::before { top: 0; }
.navbar-toggler-icon span { top: 8px; }
.navbar-toggler-icon::after { top: 16px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: translateY(8px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* 3. Hero Section & Floating Particles */
.hero-section {
  position: relative;
  padding: 180px 0 140px;
  background-color: #031b3a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* background-attachment:fixed handled in JS for performance */
}
.hero-bg-parallax {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: none;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 10, 35, 0.94) 0%,
    rgba(4, 20, 65, 0.82) 50%,
    rgba(2, 15, 50, 0.90) 100%
  );
  z-index: 1;
}
/* Old 2D Particle canvas (hidden when Three.js is active) */
#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* Three.js 3D Parallax Canvas */
#threeParallaxCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  /* opacity is controlled via JS for smooth fade-in */
}

/* When 3D canvas is active, lighten the overlay so the scene is visible */
.hero-section:has(#threeParallaxCanvas) .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(2, 10, 35, 0.78) 0%,
    rgba(4, 20, 65, 0.62) 50%,
    rgba(2, 15, 50, 0.72) 100%
  );
}

/* Subtle inner vignette to focus attention on center content */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 70% at 35% 50%,
    transparent 30%,
    rgba(2, 10, 35, 0.38) 100%
  );
}

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

/* Hero shapes sit behind the Three.js canvas */
.hero-shapes {
  z-index: 1;
}

/* Depth glow accent — enhances the 3D feel */
.hero-section .hero-bg-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 60%,
    rgba(10, 79, 175, 0.2) 0%,
    transparent 55%
  ), radial-gradient(
    circle at 80% 30%,
    rgba(245, 179, 1, 0.1) 0%,
    transparent 45%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 50px;
  background: rgba(245, 179, 1, 0.12);
  border: 1px solid rgba(245, 179, 1, 0.4);
  color: var(--secondary-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero-badge-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary-gold);
  box-shadow: 0 0 10px rgba(245,179,1,0.8);
  animation: blink-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  /* Parallax layer — shifts via JS */
  will-change: transform;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(79, 195, 247, 0.9);
  margin-bottom: 35px;
  max-width: 560px;
  font-weight: 400;
  line-height: 1.7;
  will-change: transform;
}
.hero-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-badge-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 18px;
  border-radius: 10px;
  color: var(--bg-white);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(6px);
}
.hero-badge-item i {
  color: var(--secondary-gold);
  margin-right: 9px;
  font-size: 1rem;
}
.hero-badge-item:hover {
  background: rgba(245, 179, 1, 0.15);
  border-color: rgba(245, 179, 1, 0.4);
  transform: translateY(-2px);
}
/* Scroll down indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fade-up-loop 2.5s ease-in-out infinite;
}
.hero-scroll-indicator .scroll-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll-indicator .scroll-dot {
  width: 5px;
  height: 5px;
  background: var(--secondary-gold);
  border-radius: 50%;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  75%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes fade-up-loop {
  0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(-5px); }
}

/* Floating shapes backgrounds */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.shape {
  position: absolute;
  background: rgba(79, 195, 247, 0.05);
  border-radius: 50%;
  animation: float 25s infinite linear;
}
.shape-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
}
.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: -50px;
  animation-duration: 35s;
  background: rgba(245, 179, 1, 0.03);
}
.shape-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  left: 50%;
  animation-duration: 15s;
}
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

/* 4. Admission Announcement Ticker */
.notice-bar-section {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border-bottom: 3px solid var(--secondary-gold);
}
.notice-container {
  display: flex;
  align-items: center;
}
.notice-title {
  background: var(--secondary-gold);
  color: #111;
  padding: 6px 15px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-right: 20px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.ticker-wrap {
  width: 100%;
  overflow: hidden;
}
.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  display: inline-block;
  padding: 0 25px;
  font-size: 0.95rem;
  font-weight: 500;
}
.ticker-item i {
  color: var(--secondary-gold);
  margin-right: 8px;
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

/* Redesigned Premium Admission Banner Cards */
.admission-banner-row {
  margin-top: -40px;
  position: relative;
  z-index: 15;
}
.banner-card-item {
  border-radius: 12px;
  padding: 24px;
  color: var(--bg-white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-start;
  height: 100%;
}
.banner-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
.banner-card-icon {
  background: rgba(255, 255, 255, 0.2);
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  margin-right: 18px;
}
.banner-card-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--bg-white);
}
.banner-card-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.card-color-1 {
  background: linear-gradient(135deg, #0A4FAF, #1E88E5);
  border-bottom: 4px solid var(--secondary-gold);
}
.card-color-2 {
  background: linear-gradient(135deg, #F5B301, #FFA000);
  color: #111 !important;
}
.card-color-2 .banner-card-icon {
  background: rgba(0, 0, 0, 0.1);
  color: #111;
}
.card-color-2 .banner-card-info h4 {
  color: #111;
}
.card-color-2 .banner-card-info p {
  color: rgba(0, 0, 0, 0.8);
}
.card-color-2 {
  border-bottom: 4px solid var(--primary-blue);
}
.card-color-3 {
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-bottom: 4px solid var(--secondary-gold);
}

/* 5. About School & Counter Stats */
.about-image-wrapper {
  position: relative;
  padding: 15px;
}
.about-image-main {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  object-fit: cover;
  height: 450px;
}
.about-image-overlay-card {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: var(--bg-white);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--secondary-gold);
  max-width: 250px;
}
.about-image-overlay-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--primary-blue);
}
.about-image-overlay-card p {
  margin-bottom: 0;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* Stat Counter — Premium Glow Rings */
.stat-counter-section {
  background: linear-gradient(160deg, #031429 0%, #073574 50%, #031429 100%);
  color: var(--bg-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stat-counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(10,79,175,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(245,179,1,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.stat-box {
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}
.stat-box:hover {
  transform: translateY(-8px);
}
.stat-icon-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(245,179,1,0.25);
  animation: ring-pulse 2.5s ease-in-out infinite;
}
.stat-icon-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(245,179,1,0.08);
  border: 1px solid rgba(245,179,1,0.15);
}
@keyframes ring-pulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
.stat-icon {
  font-size: 2rem;
  color: var(--secondary-gold);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(245,179,1,0.5));
  transition: var(--transition-smooth);
}
.stat-box:hover .stat-icon {
  filter: drop-shadow(0 0 16px rgba(245,179,1,0.9));
  transform: scale(1.1);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--bg-white);
  display: block;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.stat-title {
  font-size: 0.85rem;
  color: rgba(79, 195, 247, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Feature Cards Grid (About Component) */
.feature-icon-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  text-align: center;
}
.feature-icon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(10, 79, 175, 0.15);
}
.feature-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(10, 79, 175, 0.06);
  color: var(--primary-blue);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-smooth);
}
.feature-icon-card:hover .feature-icon-box {
  background: var(--primary-blue);
  color: var(--bg-white);
  transform: rotateY(180deg);
}
.feature-icon-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-icon-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 6. Why Choose Us (Icon List) */
.why-choose-card {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  height: 100%;
  border-left: 3px solid transparent;
}
.why-choose-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-left-color: var(--secondary-gold);
}
.why-choose-icon {
  background: rgba(245, 179, 1, 0.1);
  color: var(--secondary-gold);
  min-width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  margin-right: 15px;
}
.why-choose-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 5px;
}
.why-choose-card p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* 7. Facilities Section */
.facility-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.facility-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}
.facility-card:hover .facility-bg {
  transform: scale(1.1);
}
.facility-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 79, 175, 0.95) 0%, rgba(10, 79, 175, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}
.facility-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  color: var(--bg-white);
  transition: var(--transition-smooth);
}
.facility-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--secondary-gold);
  margin-bottom: 15px;
  transition: var(--transition-smooth);
}
.facility-card:hover .facility-icon-wrap {
  background: var(--secondary-gold);
  color: #111;
}
.facility-card h4 {
  color: var(--bg-white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.facility-desc {
  font-size: 0.85rem;
  margin-bottom: 0;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.facility-card:hover .facility-desc {
  opacity: 0.9;
  height: 55px;
  margin-top: 5px;
}

/* SVG Wave Separator */
.wave-separator {
  position: relative;
  width: 100%;
  height: 0;
  overflow: visible;
  line-height: 0;
}
.wave-separator svg {
  position: absolute;
  width: 100%;
  height: 60px;
  left: 0;
  z-index: 5;
}
.wave-top { top: -59px; }
.wave-bottom { bottom: 0; }

/* 8. Boarding Life Section */
.boarding-section {
  position: relative;
  background-color: var(--bg-light);
}
.boarding-feature-item {
  display: flex;
  background: var(--bg-white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  margin-bottom: 20px;
}
.boarding-feature-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-soft);
}
.boarding-feature-icon {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-right: 20px;
  margin-top: 3px;
}
.boarding-feature-text h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.boarding-feature-text p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* 9. Military School Section */
.military-section {
  background: linear-gradient(135deg, #072a5a 0%, #03142c 100%);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}
.military-section h2, .military-section h3, .military-section h4 {
  color: var(--bg-white);
}
.military-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(79, 195, 247, 0.15);
  border: 1px solid var(--accent-sky);
  color: var(--accent-sky);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.military-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: var(--transition-smooth);
}
.military-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary-gold);
}
.military-card-icon {
  font-size: 2.2rem;
  color: var(--secondary-gold);
  margin-bottom: 20px;
}
.military-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.military-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 10. Recognition Section */
.recognition-card {
  background: var(--bg-white);
  border: 2px solid rgba(10, 79, 175, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  padding: 40px;
}
.certificate-frame {
  border: 1px solid rgba(245, 179, 1, 0.3);
  padding: 30px;
  border-radius: 12px;
  background: rgba(248, 249, 250, 0.5);
  text-align: center;
}
.certificate-badge-ribbon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  position: relative;
}
.ribbon-circle {
  width: 80px;
  height: 80px;
  background: var(--secondary-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #111;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(245, 179, 1, 0.3);
  position: relative;
  z-index: 2;
  border: 3px double var(--primary-blue);
}
.ribbon-circle i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.ribbon-tail-1, .ribbon-tail-2 {
  position: absolute;
  width: 25px;
  height: 50px;
  background: var(--primary-blue);
  bottom: 0;
  z-index: 1;
}
.ribbon-tail-1 {
  left: 28px;
  transform: rotate(15deg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
}
.ribbon-tail-2 {
  right: 28px;
  transform: rotate(-15deg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
}
.recognition-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 10px;
}
.recognition-card hr {
  width: 60%;
  margin: 20px auto;
  border-color: var(--secondary-gold);
}

/* 11. Admission Section */
.admission-cta-box {
  background: linear-gradient(135deg, #0A4FAF, #1E88E5);
  border-radius: 20px;
  color: var(--bg-white);
  padding: 50px;
  box-shadow: 0 20px 45px rgba(10, 79, 175, 0.2);
  position: relative;
  overflow: hidden;
}
.admission-cta-box::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}
.admission-cta-box h3 {
  color: var(--bg-white);
  font-size: 2.2rem;
  font-weight: 800;
}
.admission-cta-box h4 {
  color: var(--secondary-gold);
  font-weight: 700;
}
.admission-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.admission-detail-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex: 1 1 calc(50% - 10px);
  min-width: 200px;
}
.admission-detail-item i {
  color: var(--secondary-gold);
  margin-right: 10px;
}

/* 12. Masonry Gallery Section — Premium 3D */
.gallery-section-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
}
.gallery-grid {
  columns: 3;
  column-width: 280px;
  column-gap: 18px;
  perspective: 1000px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(10,79,175,0.09);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
  cursor: zoom-in;
  will-change: transform;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.gallery-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 20, 70, 0.93) 0%,
    rgba(10, 79, 175, 0.6) 50%,
    rgba(0,0,0,0.1) 100%
  );
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  transition: opacity 0.35s ease;
  color: var(--bg-white);
  padding: 24px 20px;
  backdrop-filter: blur(2px);
}
.gallery-item:hover {
  box-shadow: 0 20px 50px rgba(10, 79, 175, 0.22);
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-item:hover .gallery-hover {
  opacity: 1;
}
.gallery-hover i {
  font-size: 1.5rem;
  color: var(--secondary-gold);
  margin-bottom: 10px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease 0.05s, opacity 0.4s ease 0.05s;
  filter: drop-shadow(0 0 8px rgba(245,179,1,0.7));
}
.gallery-item:hover .gallery-hover i {
  transform: translateY(0);
  opacity: 1;
}
.gallery-hover h5 {
  color: #fff;
  margin-bottom: 3px;
  font-size: 1.05rem;
  font-weight: 700;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}
.gallery-item:hover .gallery-hover h5 {
  transform: translateY(0);
  opacity: 1;
}
.gallery-hover p {
  color: rgba(79, 195, 247, 0.9);
  margin-bottom: 0;
  font-size: 0.8rem;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.4s ease 0.15s, opacity 0.4s ease 0.15s;
}
.gallery-item:hover .gallery-hover p {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox Modal CSS */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--bg-white);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition-smooth);
}
.lightbox-close:hover {
  color: var(--secondary-gold);
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bg-white);
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
  padding: 10px;
}
.lightbox-nav:hover {
  color: var(--secondary-gold);
}
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }
.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  color: var(--bg-white);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* 13. Testimonials Section — Premium Glass */
.testimonials-section {
  background: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 50%, #f5f8ff 100%);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(10, 79, 175, 0.04);
  top: -150px;
  right: -150px;
  pointer-events: none;
}
.testimonials-section::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(245, 179, 1, 0.05);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}
.testimonial-card {
  background: rgba(255,255,255,0.85);
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(10,79,175,0.09), 0 1px 0 rgba(255,255,255,0.8) inset;
  position: relative;
  margin: 15px;
  border: 1px solid rgba(10,79,175,0.07);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(10,79,175,0.14);
}
.testimonial-quote-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(10, 79, 175, 0.05);
  font-family: Georgia, serif;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.testimonial-card:hover .testimonial-quote-icon {
  color: rgba(10,79,175,0.09);
}
.testimonial-stars {
  color: var(--secondary-gold);
  margin-bottom: 20px;
  font-size: 1.05rem;
  filter: drop-shadow(0 2px 6px rgba(245,179,1,0.35));
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 28px;
  color: #3a4a6b;
}
.testimonial-profile {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(10,79,175,0.07);
  padding-top: 20px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), #1565C0);
  color: var(--bg-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-right: 15px;
  border: 3px solid rgba(245, 179, 1, 0.35);
  box-shadow: 0 4px 14px rgba(10,79,175,0.25);
  flex-shrink: 0;
}
.testimonial-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--text-dark);
}
.testimonial-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
/* Carousel Custom Controls */
.testimonial-carousel .carousel-indicators {
  bottom: -50px;
}
.testimonial-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(10,79,175,0.3);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
}
.testimonial-carousel .carousel-indicators .active {
  background-color: var(--secondary-gold);
  width: 28px;
  border-radius: 4px;
}

/* 14. Contact Us Component — Premium */
.contact-info-card {
  display: flex;
  background: var(--bg-white);
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(10,79,175,0.07);
  margin-bottom: 20px;
  border: 1px solid rgba(10,79,175,0.05);
  transition: var(--transition-smooth);
  align-items: flex-start;
}
.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(10,79,175,0.12);
  border-color: rgba(10,79,175,0.12);
}
.contact-info-icon {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 79, 175, 0.08), rgba(10,79,175,0.04));
  color: var(--primary-blue);
  min-width: 54px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  margin-right: 20px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(10,79,175,0.1);
  flex-shrink: 0;
}
.contact-info-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(10,79,175,0.1);
  opacity: 0;
  transition: var(--transition-smooth);
}
.contact-info-card:hover .contact-info-icon {
  background: linear-gradient(135deg, var(--primary-blue), #1565C0);
  color: var(--bg-white);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(10,79,175,0.3);
}
.contact-info-card:hover .contact-info-icon::after {
  opacity: 1;
}
.contact-info-details h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.contact-info-details p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.contact-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.contact-btn-call {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}
.contact-btn-call:hover {
  background-color: #083c85;
  color: var(--bg-white);
}
.contact-btn-email {
  background-color: #e8f0fe;
  color: var(--primary-blue);
}
.contact-btn-email:hover {
  background-color: #d2e3fc;
}
.contact-btn-whatsapp {
  background-color: #25D366;
  color: var(--bg-white);
}
.contact-btn-whatsapp:hover {
  background-color: #20ba5a;
  color: var(--bg-white);
}
.contact-btn-map {
  background-color: #ea4335;
  color: var(--bg-white);
}
.contact-btn-map:hover {
  background-color: #d33225;
  color: var(--bg-white);
}

.contact-form-wrapper {
  background: rgba(255,255,255,0.95);
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 50px rgba(10,79,175,0.09), 0 1px 0 rgba(255,255,255,0.9) inset;
  border: 1px solid rgba(10,79,175,0.07);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(10,79,175,0.04) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  pointer-events: none;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}
.form-control {
  border: 1px solid #e0e0e0;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: var(--bg-light);
  transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--primary-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(10, 79, 175, 0.1);
}
.form-status {
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
  display: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--bg-white);
}
.map-wrapper iframe {
  width: 100%;
  height: 350px;
  display: block;
}

/* 15. Footer Section — Premium Dark */
.footer-section {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.68);
  padding: 90px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary-gold) 30%, var(--primary-blue) 60%, var(--secondary-gold) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(245,179,1,0.4), 0 0 40px rgba(10,79,175,0.2);
}
/* Glow blobs behind footer */
.footer-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(10,79,175,0.08) 0%, transparent 70%);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.footer-logo {
  max-height: 80px;
  margin-bottom: 20px;
  background: var(--bg-white);
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 25px;
}
.footer-title {
  color: var(--bg-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-gold);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.footer-links a i {
  font-size: 0.7rem;
  margin-right: 8px;
  color: var(--secondary-gold);
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--bg-white);
  transform: translateX(5px);
}
.footer-links a:hover i {
  color: var(--accent-sky);
}
.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-info li {
  display: flex;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.footer-contact-info i {
  color: var(--secondary-gold);
  font-size: 1.1rem;
  margin-right: 15px;
  margin-top: 3px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}
.footer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.footer-social-icons a:hover {
  background: var(--secondary-gold);
  color: #111;
  transform: translateY(-4px) scale(1.05);
  border-color: var(--secondary-gold);
  box-shadow: var(--glow-gold);
}

.footer-bottom {
  padding-top: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* 16. Extra Modern Features */
/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--bg-white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
  border: 2px solid rgba(255,255,255,0.2);
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--secondary-gold);
  color: #111;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(245, 179, 1, 0.3);
}

/* Mobile Sticky Action Bar */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
  display: none;
  z-index: 998;
  border-top: 2px solid var(--secondary-gold);
}
.mobile-action-btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--bg-white);
  transition: var(--transition-smooth);
}
.mobile-action-call {
  background-color: var(--primary-blue);
}
.mobile-action-whatsapp {
  background-color: #25D366;
}

/* ------------------------------------------------------------- */
/* NEW STYLES: Timeline & FAQ Widgets */
/* ------------------------------------------------------------- */

/* Interactive Timeline styling */
.life-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.life-timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-blue), var(--secondary-gold));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-white);
  border: 4px solid var(--secondary-gold);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}
.timeline-left {
  left: 0;
}
.timeline-right {
  left: 50%;
}
.timeline-right::after {
  left: -10px;
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--bg-white);
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--primary-blue);
  transition: var(--transition-smooth);
}
.timeline-left .timeline-content {
  border-left: none;
  border-right: 5px solid var(--primary-blue);
}
.timeline-container:hover::after {
  background-color: var(--secondary-gold);
  transform: scale(1.2);
}
.timeline-container:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.timeline-time {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--secondary-gold);
  font-size: 1.1rem;
  margin-bottom: 5px;
  display: block;
}
.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.timeline-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}



/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.faq-accordion .accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 20px 25px;
  border: none;
  box-shadow: none !important;
}
.faq-accordion .accordion-button::after {
  background-size: 1rem;
  transition: var(--transition-smooth);
}
.faq-accordion .accordion-button:not(.collapsed) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-accordion .accordion-body {
  padding: 20px 25px;
  line-height: 1.8;
  font-size: 0.95rem;
}

body.smooth-scroll-active {
  overflow-x: hidden;
}

/* Fixed Navbar with Offset for Desktop Top-Bar */
body.smooth-scroll-active .navbar {
  position: fixed;
  width: 100%;
  top: 40px; /* offset for desktop top bar */
  left: 0;
  z-index: 1030;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, background-color 0.3s ease;
}
body.smooth-scroll-active .navbar.scrolled {
  top: 0;
}
@media (max-width: 767.98px) {
  body.smooth-scroll-active .navbar {
    top: 0;
  }
}

body.smooth-scroll-active .scroll-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
body.smooth-scroll-active #scroll-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

/* 3D Entry Animation classes */
.section-3d-wrapper {
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
}
.section-3d-card {
  transform-style: preserve-3d;
  transform: rotateX(8deg) translateY(60px) translateZ(-40px);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.section-3d-card.revealed {
  transform: rotateX(0) translateY(0) translateZ(0);
  opacity: 1;
}

/* 3D Interactive Card Hover Tilt */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  position: relative;
}
.tilt-card-inner {
  transform: translateZ(30px);
  transform-style: preserve-3d;
}
.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.tilt-card:hover .tilt-glare {
  opacity: 1;
}

/* Floating 3D Vector Accents */
.accent-3d-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob-primary {
  background-color: var(--primary-blue);
  width: 400px;
  height: 400px;
}
.blob-gold {
  background-color: var(--secondary-gold);
  width: 300px;
  height: 300px;
}

/* Responsive Media Queries */
/* ===================================================
   Facility Cards
   =================================================== */
.facility-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 79, 175, 0.10);
  transition: var(--transition-smooth);
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(10, 79, 175, 0.20);
}

.tilt-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.facility-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

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

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 79, 175, 0.15) 0%,
    rgba(10, 79, 175, 0.70) 60%,
    rgba(5, 30, 80, 0.92) 100%
  );
  transition: var(--transition-smooth);
}

.facility-card:hover .facility-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 79, 175, 0.25) 0%,
    rgba(10, 79, 175, 0.80) 55%,
    rgba(5, 30, 80, 0.95) 100%
  );
}

.facility-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  color: #fff;
  z-index: 2;
}

.facility-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--secondary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(245, 179, 1, 0.40);
  transition: var(--transition-smooth);
}

.facility-card:hover .facility-icon-wrap {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 6px 18px rgba(245, 179, 1, 0.60);
}

.facility-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.facility-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.facility-card:hover .facility-desc {
  max-height: 80px;
  opacity: 1;
}

/* ===================================================
   End Facility Cards
   =================================================== */

/* ===================================================
   Why Choose Us Section
   =================================================== */

/* Section background — deep navy with subtle gradient */
.why-choose-section {
  background: linear-gradient(160deg, #051a42 0%, #0a3a8a 50%, #0d1f50 100%);
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Override section-title text colours for dark bg */
.why-choose-section .section-subtitle {
  color: var(--secondary-gold);
  background: rgba(245, 179, 1, 0.12);
  border-color: rgba(245, 179, 1, 0.35);
}

.why-choose-section .section-title {
  color: #ffffff;
}

.wc-lead {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

/* Decorative blobs */
.wc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.wc-blob-1 {
  width: 380px;
  height: 380px;
  background: rgba(245, 179, 1, 0.08);
  top: -60px;
  left: -100px;
}
.wc-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(79, 195, 247, 0.07);
  bottom: -40px;
  right: -80px;
}

/* Card base */
.wc-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 32px 28px 28px;
  height: 100%;
  backdrop-filter: blur(6px);
  transition: var(--transition-smooth);
  overflow: hidden;
  z-index: 1;
}

.wc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.wc-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(245, 179, 1, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 179, 1, 0.20);
}

/* Highlighted (gold accent) card variant */
.wc-card--highlight {
  background: rgba(245, 179, 1, 0.08);
  border-color: rgba(245, 179, 1, 0.25);
}

.wc-card--highlight:hover {
  background: rgba(245, 179, 1, 0.14);
  border-color: rgba(245, 179, 1, 0.55);
}

/* Large faded number in top-right corner */
.wc-card-number {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: var(--transition-smooth);
}

.wc-card:hover .wc-card-number {
  color: rgba(245, 179, 1, 0.12);
}

/* Icon ring */
.wc-icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--secondary-gold), #ffd84d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(245, 179, 1, 0.35);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.wc-card:hover .wc-icon-ring {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 10px 28px rgba(245, 179, 1, 0.55);
}

/* Title & description */
.wc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.wc-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Bottom accent line that expands on hover */
.wc-line {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary-gold), transparent);
  width: 40px;
  transition: width 0.4s ease;
}

.wc-card:hover .wc-line {
  width: 100%;
}

/* CTA Strip */
.wc-cta-strip {
  background: linear-gradient(135deg, rgba(245, 179, 1, 0.12), rgba(245, 179, 1, 0.05));
  border: 1px solid rgba(245, 179, 1, 0.30);
  border-radius: 18px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wc-cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wc-cta-icon {
  font-size: 2.6rem;
  color: var(--secondary-gold);
  filter: drop-shadow(0 4px 10px rgba(245,179,1,0.4));
  flex-shrink: 0;
}

.wc-cta-left h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.wc-cta-left p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.wc-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 13px 32px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 767.98px) {
  .wc-cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }
  .wc-cta-btn {
    width: 100%;
    text-align: center;
  }
  .wc-card-number {
    font-size: 2.5rem;
  }
}

/* ===================================================
   End Why Choose Us Section
   =================================================== */


@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .navbar-collapse {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top: 15px;
    border: 1px solid rgba(0,0,0,0.05);
  }
  .nav-link {
    margin: 10px 0;
  }
  .nav-link::after {
    display: none;
  }
  .admission-banner-row {
    margin-top: 20px;
  }
  .about-image-overlay-card {
    right: 0;
    bottom: 0;
    position: relative;
    max-width: 100%;
    margin-top: 20px;
  }
  .about-image-main {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 70px;
  }
  body {
    padding-bottom: 50px; /* offset for mobile sticky action bar */
  }
  .hero-section {
    padding: 130px 0 80px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .admission-cta-box {
    padding: 30px 20px;
  }
  .admission-cta-box h3 {
    font-size: 1.8rem;
  }
  .admission-detail-item {
    flex: 1 1 100%;
  }
  .mobile-sticky-action-bar {
    display: flex;
  }
  .back-to-top {
    bottom: 75px; /* raise button to prevent overlapping actions bar */
  }
  .testimonial-card {
    padding: 25px;
  }
  .contact-form-wrapper {
    padding: 25px;
  }
}

@media (max-width: 575.98px) {
  .hero-badges-container {
    flex-direction: column;
    gap: 10px;
  }
  .hero-badge-item {
    width: 100%;
  }
  .gallery-grid {
    column-width: 100%;
  }
}
