/* 
   ==========================================================================
   Nationwide Scholars Challenge - BYJU'S Inspired Stylesheet
   Design System: Rich EdTech Purple, Vibrant Gold, & Soft Lilac-Slate
   ========================================================================== 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette (Logo Matched) */
  --primary: #123c69;        /* Deep Ocean Blue */
  --primary-light: #008080;  /* Deep Teal */
  --primary-glow: rgba(0, 128, 128, 0.08);
  --secondary: #ffb703;      /* Educational Gold/Yellow */
  --secondary-hover: #fb8500;/* Vibrant Orange */
  --accent: #06b6d4;        /* Glowing Cyan (from logo star) */
  --accent-light: #ecfeff;
  --text-dark: #1e152a;      /* Deep Charcoal/Purple-Gray */
  --text-muted: #6b6375;     /* Soft Muted Gray-Purple */
  --bg-light: #f9f8fc;       /* Soft Lilac Tint */
  --bg-white: #ffffff;
  --border-color: #edeaf2;
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Quicksand', sans-serif; /* Soft, friendly, rounded font */

  /* Layout Variables */
  --container-max-width: 1280px;
  --header-height: 80px;
  
  /* Styling Extras (More rounded for EdTech aesthetic) */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(92, 29, 141, 0.03), 0 2px 4px -1px rgba(92, 29, 141, 0.02);
  --shadow-md: 0 10px 25px -5px rgba(92, 29, 141, 0.06), 0 8px 10px -6px rgba(92, 29, 141, 0.04);
  --shadow-lg: 0 20px 50px -12px rgba(92, 29, 141, 0.12), 0 15px 20px -15px rgba(92, 29, 141, 0.08);
  --shadow-glow: 0 0 20px rgba(255, 183, 3, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(92, 29, 141, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(92, 29, 141, 0.04);
  --glass-backdrop: blur(16px);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

ul {
  list-style: none;
}

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

.section-padding {
  padding: 90px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

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

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

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-primary {
  background-color: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(92, 29, 141, 0.1);
}

.badge-secondary {
  background-color: #fff9db;
  color: var(--secondary-hover);
  border: 1px solid #ffd43b;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(92, 29, 141, 0.15);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-login {
  background-color: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 10px 24px;
}

.btn-login:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2);
}

/* ==========================================================================
   Header (Navigation)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.35rem; /* Reduced from 1.6rem to prevent overlap */
  color: var(--primary);
  white-space: nowrap;
}

.logo-img {
  height: 40px; /* Reduced from 48px to save vertical and horizontal space */
  width: auto;
  object-fit: contain;
}

.logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px; /* Reduced from 24px to prevent horizontal crowding */
}

@media (max-width: 1250px) {
  .nav-menu {
    gap: 10px; /* Tighter gap on standard laptop screens */
  }
  .logo {
    font-size: 1.15rem;
    gap: 6px;
  }
  .logo-img {
    height: 34px;
  }
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.88rem; /* Reduced from 0.95rem */
  position: relative;
  padding: 8px 0;
  white-space: nowrap; /* Prevent messy line wrapping */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-light);
}

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

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Navigation Dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-white);
  min-width: 210px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  z-index: 1100;
  padding: 8px 0;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 1150px) {
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 16px;
    margin-top: 8px;
    transform: none;
    left: 0;
  }
  .dropdown-content a {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .dropdown-content a:hover {
    background: none;
    color: var(--primary);
  }
  .nav-dropdown > a {
    font-weight: 800;
    color: var(--primary) !important;
    pointer-events: none; /* Disable click on mobile to serve as a category label */
  }
  .nav-dropdown > a svg {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-only {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* ==========================================================================
   Hero Section with trial card
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 90px;
  background: radial-gradient(circle at 10% 20%, #f3efff 0%, #f9f8fc 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 580px;
}

/* BYJU'S style trial registration card */
.trial-card {
  background-color: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.trial-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  text-align: center;
}

.trial-card p {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ==========================================
   Grade/Class Select Grid (BYJU'S Feature)
   ========================================== */
.grade-select-section {
  background-color: var(--bg-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.grade-tile {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.grade-tile:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.stats-bar {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 40px 0;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-number {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Features / Core Values Section
   ========================================================================== */
.features-header {
  max-width: 650px;
  margin: 0 auto 64px auto;
}

.features-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

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

.feature-card.highlight:hover::before {
  background-color: var(--secondary);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--primary-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-wrapper svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-light);
}

.feature-card.highlight .feature-icon-wrapper {
  background-color: #fff9db;
}

.feature-card.highlight .feature-icon-wrapper svg {
  fill: var(--secondary-hover);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ==========================================
   Free Study Resources Section (New)
   ========================================== */
.resources-section {
  background-color: var(--bg-light);
}

.resources-tabs-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 40px;
}

.resources-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: #faf9fc;
}

.resource-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  border-bottom: 3px solid transparent;
}

.resource-tab-btn:hover {
  color: var(--primary);
  background-color: rgba(92, 29, 141, 0.02);
}

.resource-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: var(--bg-white);
}

.resources-content-box {
  padding: 40px;
}

.resources-pane {
  display: none;
  animation: fadeEffect 0.4s ease;
}

.resources-pane.active {
  display: block;
}

.resource-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-link-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.resource-link-card:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-white);
  transform: translateX(4px);
}

.resource-link-card h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.resource-link-card p {
  font-size: 0.85rem;
  margin-top: 4px;
}

.resource-download-icon {
  color: var(--primary-light);
  display: flex;
  align-items: center;
}

/* ==========================================
   App Download Promotion Banner (New)
   ========================================== */
.app-promo-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 60px 80px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.app-promo-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.app-promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.app-promo-text h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.app-promo-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.badge-row {
  display: flex;
  gap: 16px;
}

.download-badge {
  background-color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.download-badge:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.download-badge svg {
  width: 24px;
  height: 24px;
}

.download-badge .badge-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.download-badge .badge-main {
  font-size: 0.95rem;
  color: var(--bg-white);
}

.app-mockup-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.app-mockup {
  width: 250px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 6px solid #1e293b;
  background-color: var(--primary);
  transform: rotate(5deg);
  transition: var(--transition-slow);
}

.app-mockup-container:hover .app-mockup {
  transform: rotate(0deg) scale(1.05);
}

/* ==========================================================================
   Programs Section
   ========================================================================== */
.programs-section {
  background-color: var(--bg-white);
}

.programs-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.filter-btn:hover {
  background-color: var(--primary-glow);
  color: var(--primary);
  border-color: transparent;
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(92, 29, 141, 0.15);
}

.program-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.program-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

.program-card:hover .program-img {
  transform: scale(1.05);
}

.program-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.program-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.program-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.program-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-meta svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

/* ==========================================================================
   Testimonial Section (Slider)
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-light);
  overflow: hidden;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-carousel {
  position: relative;
  width: 100%;
}

.testimonial-slide {
  display: none;
  background-color: var(--bg-white);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  animation: fadeEffect 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
}

.quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px auto;
  opacity: 0.15;
}

.quote-icon svg {
  fill: var(--primary);
  width: 100%;
  height: 100%;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.author-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
}

.author-name {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot:hover {
  background-color: var(--text-muted);
}

.dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

@keyframes fadeEffect {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Inquiry Form Section
   ========================================================================== */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.inquiry-info {
  background: radial-gradient(circle at 0% 0%, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--bg-white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inquiry-info h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.inquiry-info p {
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 32px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
}

.contact-detail-text h4 {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-detail-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.inquiry-form-container {
  padding: 60px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(92, 29, 141, 0.15);
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================
   Floating CTA Action Widget (BYJU'S style)
   ========================================== */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--secondary);
  color: var(--primary);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 183, 3, 0.4);
  z-index: 999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  animation: pulse-widget 2s infinite;
  transition: var(--transition-normal);
}

.floating-widget:hover {
  transform: scale(1.05) translateY(-3px);
  background-color: var(--secondary-hover);
  color: var(--bg-white);
  box-shadow: 0 12px 35px rgba(251, 133, 0, 0.5);
}

@keyframes pulse-widget {
  0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(255, 183, 3, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

/* Modal Overlay Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 21, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 80px 0 30px 0;
  border-top: 5px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-about .logo {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-about .logo svg path {
  fill: var(--bg-white);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

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

.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-white);
}

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.social-link:hover svg {
  fill: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link::before {
  content: '→';
  color: var(--secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--bg-white);
  padding-left: 6px;
}

.footer-link:hover::before {
  color: var(--bg-white);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--secondary);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-portal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.footer-portal-card h4 {
  color: var(--bg-white);
  margin-bottom: 10px;
}

.footer-portal-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link:hover {
  color: var(--bg-white);
}

/* ==========================================================================
   Page Specific Layouts
   ========================================================================== */

/* Page Header (Subpages Banner) */
.page-header {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 60px;
  background: radial-gradient(circle at top left, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  text-align: center;
}

.page-header h1 {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 12px;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--secondary);
}

.breadcrumbs a:hover {
  color: var(--bg-white);
}

/* Programs Detail Styling */
.programs-grid {
  margin-top: 40px;
}

/* About Us Layouts */
.about-mission-section {
  background-color: var(--bg-white);
}

.about-story-text {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.value-card {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px auto;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

/* Meet the Team/Educators */
.team-grid {
  margin-top: 48px;
}

.team-member {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
}

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

.member-img-box {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

.member-info {
  padding: 24px;
}

.member-name {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.member-role {
  color: var(--secondary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.member-bio {
  font-size: 0.9rem;
}

/* Contact Details Page */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.contact-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-map-wrapper {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 350px;
  border: 1px solid var(--border-color);
}

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

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1150px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grade-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inquiry-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }

  /* Trigger Mobile Hamburger Navigation at 1150px and below */
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-actions {
    display: none;
  }
  .nav-menu .btn-login {
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }
  .menu-toggle-only {
    display: block;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    width: 100%;
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero {
    text-align: center;
    padding-bottom: 60px;
  }
  .hero-text {
    margin: 0 auto 28px auto;
  }
  .hero-image-container {
    margin-top: 48px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item {
    border-right: none;
  }
  .app-promo-grid {
    grid-template-columns: 1fr;
  }
  .app-promo-section {
    padding: 40px;
  }
  .inquiry-info {
    padding: 40px;
  }
  .inquiry-form-container {
    padding: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .resource-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-slide {
    padding: 24px;
  }
  .badge-row {
    flex-direction: column;
    width: 100%;
  }
  .download-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Video Testimonials & Lightbox Styles
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.video-thumbnail-wrapper {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: var(--transition-slow);
}

.video-card:hover .video-thumbnail-wrapper img {
  transform: scale(1.05);
  opacity: 0.9;
}

.play-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
  transition: var(--transition-normal);
  z-index: 2;
  border: none;
  cursor: pointer;
}

.play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 2px;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  background-color: var(--secondary-hover);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.6);
}

.video-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-quote {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
}

.video-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-author img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.video-author-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.video-author-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Video Lightbox Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 60, 105, 0.92);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-normal);
  line-height: 1;
}

.video-modal-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.video-responsive-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.video-responsive-container video,
.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile Fine-Tuning Improvements */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .form-wrapper {
    padding: 30px 20px;
  }
  .role-card {
    padding: 25px 20px;
  }
}
@media (max-width: 576px) {
  .selector-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .details-card {
    padding: 25px 20px;
  }
  .student-badge-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .fee-panel {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .fee-panel .btn {
    width: 100%;
  }
  .inquiry-form-container {
    padding: 24px 20px;
  }
  .trial-form-card {
    padding: 24px 20px;
  }
}
@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2.1rem !important;
  }
  .hero-title {
    font-size: 2.2rem !important;
  }
  .tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .roles-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

