/* ==========================================================================
   BRILLIANT JUNIOR - STYLE SYSTEM
   Custom Premium stylesheet containing:
   - Modern Color Palette (Blue and Red Gradients)
   - Breathtaking Glassmorphism & Animated Glow Backgrounds
   - Responsive Layout Grid Systems (Desktop, Tablet, Mobile)
   - Dynamic Micro-interactions & Scroll Animation Frames
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & SETUP
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Palette */
  --primary-blue: #1E22B8;
  --deep-blue: #11139D;
  --primary-red: #E53916;
  --deep-red: #C92A0A;
  --white: #FFFFFF;
  
  /* Modern Accents */
  --accent-gold: #FFB800;
  --blue-light: #EBF0FF;
  --red-light: #FFEBE8;
  --dark-text: #1E254A;
  --muted-text: #61688B;
  
  /* Gradients */
  --blue-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 100%);
  --red-gradient: linear-gradient(135deg, var(--primary-red) 0%, var(--deep-red) 100%);
  --diagonal-grad: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 50%, var(--primary-red) 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  --soft-blue-grad: linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
  
  /* Styling Tokens */
  --ff-headings: 'Outfit', sans-serif;
  --ff-body: 'Plus Jakarta Sans', sans-serif;
  --shadow-sm: 0 4px 12px rgba(17, 19, 157, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 19, 157, 0.08);
  --shadow-lg: 0 20px 40px rgba(17, 19, 157, 0.12);
  --shadow-red: 0 10px 25px rgba(229, 57, 22, 0.15);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 40px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #F8FAFC;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
  border: 2px solid #F1F5F9;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--deep-blue);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-headings);
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.25;
}

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

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

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

/* --------------------------------------------------------------------------
   3. BACKGROUND GLOW SHAPES & GLOBAL COMPONENTS
   -------------------------------------------------------------------------- */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--blue-light);
  top: 5%;
  right: -10%;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--red-light);
  top: 35%;
  left: -15%;
  animation-delay: 2s;
}
.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: var(--blue-light);
  bottom: 10%;
  right: -5%;
  animation-delay: 4s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.5; }
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Common Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.sec-header {
  margin-bottom: 60px;
  max-width: 680px;
}
.sec-header.text-center {
  margin-left: auto;
  margin-right: auto;
}
.sec-subtitle {
  font-family: var(--ff-headings);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-red);
  display: inline-block;
  margin-bottom: 12px;
  background: var(--red-light);
  padding: 6px 16px;
  border-radius: 50px;
}
.sec-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 16px;
}
.sec-desc {
  font-size: 18px;
  color: var(--muted-text);
  max-width: 600px;
}
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--red-gradient);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-gradient);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(17, 19, 157, 0.25);
}
.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--white);
  color: var(--deep-blue);
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(17, 19, 157, 0.15);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 15px 25px rgba(17, 19, 157, 0.15);
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* Gradients text */
.gradient-text-red {
  background: var(--red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-blue {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   4. STICKY ANIMATED NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  height: 62px;
  width: auto;
  transition: var(--transition-smooth);
}
.navbar.scrolled .nav-logo {
  height: 48px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-blue);
  position: relative;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-red);
  border-radius: 5px;
  transition: var(--transition-fast);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary-red);
}

.contact-btn {
  background: var(--blue-gradient);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 34, 184, 0.3);
}
.contact-btn::after {
  display: none;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
}
.bar {
  width: 100%;
  height: 3px;
  background: var(--deep-blue);
  border-radius: 5px;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--soft-blue-grad);
  border-bottom-left-radius: var(--border-radius-xl);
  border-bottom-right-radius: var(--border-radius-xl);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(30, 34, 184, 0.1);
  box-shadow: var(--shadow-sm);
}
.hero-content .badge i {
  color: var(--primary-red);
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--deep-blue);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted-text);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Trust Metrics */
.hero-metrics {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1.5px solid rgba(17, 19, 157, 0.1);
}
.metric {
  display: flex;
  flex-direction: column;
}
.metric-num {
  font-family: var(--ff-headings);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1;
}
.metric-plus {
  color: var(--primary-red);
  font-weight: 800;
}
.metric-label {
  font-size: 14px;
  color: var(--muted-text);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Visual stack */
.hero-visual {
  position: relative;
  height: 480px;
  width: 100%;
}
.visual-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image-frame {
  width: 85%;
  height: 90%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  position: absolute;
  top: 5%;
  right: 5%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-image-frame:hover .hero-img {
  transform: scale(1.1);
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 22px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 10;
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.card-icon.icon-red {
  background: var(--red-light);
  color: var(--primary-red);
}
.visual-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--deep-blue);
}
.visual-card p {
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 500;
}

.floating-1 {
  top: 12%;
  left: -5%;
  animation: floatCard 6s infinite alternate ease-in-out;
}
.floating-2 {
  bottom: 12%;
  left: 10%;
  animation: floatCard 6s infinite alternate-reverse ease-in-out;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* --------------------------------------------------------------------------
   6. QUICK INFO STRIP
   -------------------------------------------------------------------------- */
.info-strip {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.info-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  transition: var(--transition-smooth);
}
.info-item:hover {
  background: rgba(30, 34, 184, 0.03);
}
.info-item i {
  font-size: 28px;
  color: var(--primary-red);
}
.info-item h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 2px;
}
.info-item p {
  font-size: 14px;
  color: var(--muted-text);
}
.border-left {
  border-left: 1.5px solid rgba(17, 19, 157, 0.08);
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about {
  background-color: #F8FAFC;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}
.img-grid {
  position: relative;
  display: flex;
  width: 100%;
}
.grid-img-large {
  width: 80%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--white);
}
.grid-img-large img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.grid-img-small {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 48%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
  z-index: 2;
}
.grid-img-small img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.about-desc {
  font-size: 16.5px;
  color: var(--muted-text);
  margin-bottom: 24px;
}

.about-points {
  list-style: none;
  margin-bottom: 36px;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 15.5px;
}
.point-icon {
  width: 24px;
  height: 24px;
  background: var(--blue-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-red);
}
.about-badge i {
  font-size: 36px;
  color: var(--primary-red);
}
.about-badge h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 3px;
}
.about-badge p {
  font-size: 13px;
  color: var(--muted-text);
}

/* --------------------------------------------------------------------------
   8. CLASSES OFFERED SECTION
   -------------------------------------------------------------------------- */
.classes {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-top-left-radius: var(--border-radius-xl);
  border-top-right-radius: var(--border-radius-xl);
}

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

.class-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(17, 19, 157, 0.03);
}
.class-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.class-header {
  padding: 36px 36px 28px 36px;
  color: var(--white);
  position: relative;
}
.card-gradient-blue {
  background: var(--blue-gradient);
}
.card-gradient-red {
  background: var(--red-gradient);
  box-shadow: var(--shadow-red);
}

.class-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.class-badge.badge-blue {
  background: rgba(17, 19, 157, 0.2);
}

.class-header h3 {
  font-size: 26px;
  color: var(--white);
  margin-bottom: 6px;
}
.class-header p {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
}

.class-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.class-features {
  list-style: none;
  margin-bottom: 36px;
  flex-grow: 1;
}
.class-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
}
.class-features li i {
  color: var(--primary-red);
  font-size: 14px;
}
.class-card.featured .class-features li i {
  color: var(--primary-blue);
}

.class-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1.5px solid #F1F5F9;
}
.class-footer .syllabus {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-text);
}

/* Featured specific highlight */
.class-card.featured {
  transform: scale(1.03) translateY(-5px);
  border: 2px solid var(--primary-red);
}
.class-card.featured:hover {
  transform: scale(1.03) translateY(-12px);
}

/* --------------------------------------------------------------------------
   9. SUBJECTS OFFERED SECTION
   -------------------------------------------------------------------------- */
.subjects {
  background-color: var(--white);
}

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

.subject-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(17, 19, 157, 0.05);
  transition: var(--transition-smooth);
}
.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 34, 184, 0.15);
}

.sub-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sub-icon.bg-blue {
  background: var(--blue-gradient);
}
.sub-icon.bg-red {
  background: var(--red-gradient);
  box-shadow: var(--shadow-red);
}

.subject-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.subject-card p {
  font-size: 14.5px;
  color: var(--muted-text);
  margin-bottom: 20px;
}

.sub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sub-topics span {
  font-size: 12px;
  font-weight: 700;
  background: #F1F5F9;
  color: var(--deep-blue);
  padding: 4px 10px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   10. FEATURES SECTION (WHY CHOOSE US)
   -------------------------------------------------------------------------- */
.features {
  background: var(--soft-blue-grad);
  border-top-left-radius: var(--border-radius-xl);
  border-top-right-radius: var(--border-radius-xl);
}

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

.feature-item {
  display: flex;
  gap: 24px;
  background: var(--white);
  padding: 36px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(17, 19, 157, 0.02);
  transition: var(--transition-smooth);
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feat-icon {
  width: 62px;
  height: 62px;
  background: var(--blue-light);
  color: var(--primary-blue);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.feat-icon.icon-red {
  background: var(--red-light);
  color: var(--primary-red);
}

.feature-item h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 14.5px;
  color: var(--muted-text);
}

/* --------------------------------------------------------------------------
   11. GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery {
  background-color: var(--white);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid rgba(17, 19, 157, 0.15);
  border-radius: 50px;
  color: var(--deep-blue);
  transition: var(--transition-fast);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

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

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  transition: transform 0.5s ease;
}
.gallery-item.hide {
  display: none;
}

.gallery-img-box {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 19, 157, 0) 40%, rgba(17, 19, 157, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.gallery-overlay h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--blue-gradient);
  color: var(--white);
  border-top-left-radius: var(--border-radius-xl);
  border-top-right-radius: var(--border-radius-xl);
}
.testimonials .sec-title {
  color: var(--white);
}
.testimonials .sec-subtitle {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
}
.testimonials .sec-desc {
  color: rgba(255, 255, 255, 0.75);
}

.testimonials-slider-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.testimonials-wrapper {
  overflow: hidden;
  display: flex;
  position: relative;
  width: 100%;
  min-height: 280px;
}

.testimonial-card {
  width: 100%;
  flex-shrink: 0;
  display: none; /* Controlled via script.js */
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease-in-out forwards;
}
.testimonial-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.testimonial-card .stars {
  font-size: 16px;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.review-text {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
  opacity: 0.95;
}

.review-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.review-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.review-author h5 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}
.review-author p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Slider buttons styling */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
  z-index: 5;
}
.slider-btn:hover {
  background: var(--white);
  color: var(--deep-blue);
  box-shadow: var(--shadow-md);
}
.prev-btn { left: -60px; }
.next-btn { right: -60px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
}
.dot.active {
  width: 28px;
  border-radius: 50px;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   13. ADMISSION PROCESS SECTION
   -------------------------------------------------------------------------- */
.admission {
  background-color: #F8FAFC;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 90px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: dashed rgba(17, 19, 157, 0.15);
  z-index: 1;
}

.process-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid rgba(17, 19, 157, 0.02);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}
.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 34, 184, 0.15);
}

.step-num {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: var(--ff-headings);
  font-size: 20px;
  font-weight: 900;
  color: rgba(17, 19, 157, 0.1);
}

.step-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.process-card:hover .step-icon {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
  transform: rotateY(180deg);
}

.process-card h3 {
  font-size: 17.5px;
  font-weight: 800;
  margin-bottom: 12px;
}
.process-card p {
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. CONTACT & FORM SECTION
   -------------------------------------------------------------------------- */
.contact {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.contact-card-box {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

/* Info Side */
.contact-info-panel {
  background: var(--blue-gradient);
  color: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
}
.contact-info-panel h3 {
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.contact-info-panel p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15.5px;
  margin-bottom: 36px;
}

.panel-subtitle {
  font-family: var(--ff-headings);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: inline-block;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}
.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-list-item i {
  font-size: 18px;
  color: var(--accent-gold);
  margin-top: 4px;
}
.info-list-item p {
  color: var(--white);
  font-size: 15px;
  margin: 0;
}

/* Map frame inside contact */
.map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* Form Side */
.contact-form-panel {
  padding: 60px;
  position: relative;
}
.contact-form-panel h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-form-panel p {
  font-size: 15px;
  color: var(--muted-text);
  margin-bottom: 36px;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.3s ease;
}
.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--deep-blue);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1.5px solid rgba(17, 19, 157, 0.15);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--dark-text);
  background: #F8FAFC;
  transition: var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(30, 34, 184, 0.1);
}

.form-success-alert {
  display: none;
  align-items: flex-start;
  gap: 20px;
  background: #EAFDF3;
  color: #106b3a;
  border: 1.5px solid #2ae083;
  border-radius: var(--border-radius-md);
  padding: 30px;
  animation: fadeIn 0.4s ease-in-out forwards;
}
.alert-icon {
  font-size: 32px;
  color: #27c975;
}
.form-success-alert h4 {
  font-size: 20px;
  color: #106b3a;
  margin-bottom: 6px;
}
.form-success-alert p {
  font-size: 14.5px;
  margin: 0;
  color: #1e874d;
}

/* --------------------------------------------------------------------------
   15. FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}
.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-badge {
  position: absolute;
  right: 70px;
  background: #25D366;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
}
.whatsapp-btn:hover .whatsapp-badge {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   16. FOOTER SECTION
   -------------------------------------------------------------------------- */
.footer {
  background: #0B0C4A;
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 80px 0 60px 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 48px;
}

.col-about .footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 24px;
}
.col-about p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
}
.footer-socials a:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.footer-col h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 5px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 14.5px;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-address {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-phone {
  font-size: 14px;
  color: var(--white);
}

/* Footer Bottom Strip */
.footer-bottom {
  padding: 24px 0;
  font-size: 13.5px;
}
.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bottom-links {
  display: flex;
  gap: 24px;
}
.bottom-links a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   17. SCROLL-TRIGGERED ANIMATION CLASSES
   -------------------------------------------------------------------------- */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

[data-anim="fade-up"] {
  transform: translateY(40px);
}
[data-anim="fade-down"] {
  transform: translateY(-40px);
}
[data-anim="fade-left"] {
  transform: translateX(40px);
}
[data-anim="fade-right"] {
  transform: translateX(-40px);
}
[data-anim="zoom-in"] {
  transform: scale(0.9);
}

.scroll-animate.animated {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Common spacing */
  section {
    padding: 80px 0;
  }
  
  /* Hero section adjustments */
  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .hero-visual {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Strip grid */
  .info-container {
    grid-template-columns: 1fr;
  }
  .border-left {
    border-left: none;
    border-top: 1.5px solid rgba(17, 19, 157, 0.08);
  }
  .info-item {
    padding: 20px 24px;
  }
  
  /* About grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  /* Class and Subject grids */
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .class-card.featured {
    transform: none;
  }
  .class-card.featured:hover {
    transform: translateY(-10px);
  }
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Testimonial slider */
  .prev-btn { left: -10px; }
  .next-btn { right: -10px; }
  
  /* Process steps layout */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before {
    display: none;
  }
  
  /* Contact page */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile Responsive */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  .nav-menu.open {
    right: 0;
  }
  
  .navbar.scrolled .nav-menu {
    background: var(--white);
  }
  
  /* Toggle icon animation */
  .mobile-toggle.open .bar-1 {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .mobile-toggle.open .bar-2 {
    opacity: 0;
  }
  .mobile-toggle.open .bar-3 {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  /* Content scaling */
  .sec-header {
    margin-bottom: 40px;
  }
  
  /* Grid conversions to single columns */
  .classes-grid,
  .subjects-grid,
  .gallery-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Form row elements */
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Contact form inner card padding */
  .contact-info-panel,
  .contact-form-panel {
    padding: 36px 24px;
  }
  
  /* Footer flex bottom */
  .bottom-flex {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* Floating whatsapp spacing */
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  .whatsapp-badge {
    display: none;
  }
}
