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

/* --- Design System / Variables --- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Light Mode Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #0f4c81;
  --primary-hover: #0a355c;
  --primary-rgb: 15, 76, 129;
  
  --secondary: #00a8cc;
  --secondary-hover: #0087a3;
  --accent: #ff7e67;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 15px 40px rgba(15, 76, 129, 0.08);
  
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;
  
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --header-height: 80px;
  
  /* Dynamic Background Gradient */
  --bg-gradient: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(0, 168, 204, 0.05) 100%);
}

[data-theme="dark"] {
  /* Dark Mode Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8; /* Improved from #64748b for high accessibility contrast */
  
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-rgb: 59, 130, 246;
  
  --secondary: #22d3ee;
  --secondary-hover: #67e8f9;
  
  --border-color: #223049;
  --border-hover: #334155;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 15px 40px rgba(59, 130, 246, 0.15);
  
  /* Dynamic Background Gradient (Dark Mode) */
  --bg-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(34, 211, 238, 0.08) 100%);
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-alt {
  background: var(--bg-gradient);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header .subtitle {
  color: var(--secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255,255,255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body[data-theme="dark"] .header {
  background-color: rgba(19, 27, 46, 0.85);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.logo-datetime {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 2px;
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
}

.logo-tagline {
  font-size: 0.58rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1px;
  text-transform: uppercase;
  font-family: var(--font-primary);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-family: 'Outfit', var(--font-heading), sans-serif;
  font-weight: 800;
  font-size: 2.15rem;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-nifty {
  color: #10b981; /* Premium Emerald Green */
}

.logo-india {
  color: #ff7e67; /* Premium Accent Orange */
}

.logo-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #10b981; /* Green dot */
  border-radius: 50%;
  margin-left: 6px;
  position: relative;
  top: -2px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: blinkStatus 1.5s infinite ease-in-out;
}

@keyframes blinkStatus {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.2);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  }
}

.nav-datetime {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  border-left: 1px solid var(--border-color);
  padding-left: 16px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

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

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

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

/* Premium Capsule Box Menu for Desktop */
@media (min-width: 769px) {
  .nav-menu {
    gap: 6px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
  }

  .nav-link {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link:hover {
    background-color: rgba(15, 76, 129, 0.08); /* Light primary tint */
    color: var(--primary) !important;
  }

  .nav-link.active {
    background-color: var(--primary);
    color: #ffffff !important;
  }

  .nav-link::after {
    display: none !important;
  }

  /* Dark mode capsule adjustments */
  body[data-theme="dark"] .nav-menu {
    background-color: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  body[data-theme="dark"] .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
  }

  body[data-theme="dark"] .nav-link.active {
    background-color: var(--primary); /* #3b82f6 */
    color: #ffffff !important;
  }
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn:hover::after {
  left: 110%;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.15);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #ff654a;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 126, 103, 0.35);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border-color);
}

.btn-icon:hover {
  background-color: var(--border-color);
  color: var(--primary);
  transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #071a35 0%, #0d2a54 25%, #102f60 50%, #1a1a2e 75%, #0d1b2a 100%);
  position: relative;
  overflow: hidden;
}

/* Gold shimmer orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 40%, transparent 70%);
  top: -150px;
  right: -200px;
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 204, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  z-index: 1;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Hero background grid lines */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #D4AF37 0%, #F4D160 40%, #FFE066 60%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Inline Trust Badges below Hero CTAs */
.hero-trust-inline {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-trust-badge:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.5);
  color: #F4D160;
  transform: translateY(-1px);
}

.hero-trust-badge .badge-emoji {
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2rem;
  color: #F4D160;
  margin-bottom: 4px;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
  font-weight: 500;
}

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

.hero-image-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,175,55,0.08);
  position: relative;
  z-index: 2;
  animation: floatImage 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.hero-illustration-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-img-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #0a1628 0%, #0d2a54 50%, #1a1a2e 100%);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.2);
}

.hero-img-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(212, 175, 55, 0.08) 50%, transparent 55%);
  animation: shimmer 8s infinite linear;
}

.hero-img-placeholder i {
  font-size: 4rem;
  margin-bottom: 16px;
  color: #D4AF37;
}

.badge-float {
  position: absolute;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.badge-float-1 {
  bottom: 135px;
  right: -20px;
  top: auto;
  left: auto;
}

.badge-float-2 {
  bottom: 50px;
  right: -20px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.badge-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-text strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: #ffffff;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Filter Bar and Buttons --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.15);
  transform: translateY(-2px);
}

/* --- Pricing / Courses Cards --- */
.courses-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.pricing-table-wrapper {
  margin-top: 40px;
}

.pricing-title {
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.8rem;
}

.tuition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s ease;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
}

.pricing-card.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover), 0 12px 30px rgba(var(--primary-rgb), 0.08);
}

.pricing-card.featured:hover {
  transform: translateY(-8px) scale(1.035);
}

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

/* Animate features lists inside hovered card */
.pricing-card:hover .pricing-features li i {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary);
}

.pricing-features li i {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Animate card button on hover */
.pricing-card:hover .btn {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.15);
}

.pricing-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 800;
  margin: 12px 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--secondary);
  font-size: 1rem;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled i {
  color: var(--text-muted);
}

/* --- Crash Course Grid Table --- */
.crash-course-table-container {
  overflow-x: auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  margin-top: 30px;
}

.crash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.crash-table th, .crash-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.crash-table th {
  background-color: var(--bg-tertiary);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.crash-table tr:last-child td {
  border-bottom: none;
}

.crash-table tbody tr {
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), 
              background-color 0.25s ease, 
              box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.crash-table tbody tr:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.012);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.crash-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* --- Locations Section --- */
.locations-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.locations-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.locations-text p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.location-badge i {
  color: var(--accent);
}

.location-badge:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.map-placeholder {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 12px;
  box-shadow: var(--card-shadow);
  height: 400px;
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-md);
}

/* --- Student Success Stories & Testimonials --- */
.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.success-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.success-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.2) 0%, rgba(0, 168, 204, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.success-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.success-class {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.success-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.success-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}

.testimonial-slide {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.testimonial-slide i.quote-icon {
  font-size: 2.5rem;
  color: rgba(15, 76, 129, 0.1);
  margin-bottom: 24px;
  display: block;
}

.testimonial-slide p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

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

.carousel-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* --- FAQ Accordion --- */
.faq-search-wrapper {
  max-width: 500px;
  margin: -20px auto 40px auto;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.faq-search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.faq-search-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.faq-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.faq-cat-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.faq-cat-btn:hover, .faq-cat-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  user-select: none;
}

.faq-question:hover {
  background-color: rgba(15, 76, 129, 0.01);
}

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: rgba(15, 76, 129, 0.01);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out;
}

.faq-answer-content {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Registration Forms --- */
.form-section-container {
  max-width: 750px;
  margin: 0 auto;
}

.form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

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

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.file-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-primary);
  transition: var(--transition);
}

.file-upload-box:hover {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
}

.file-upload-box i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.file-upload-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.file-upload-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* --- Contact Page Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.contact-info-title {
  margin-bottom: 24px;
}

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Blog Hub --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

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

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

.blog-img-placeholder {
  height: 220px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.8) 0%, rgba(0, 168, 204, 0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 24px;
  text-align: center;
}

.blog-img-placeholder i {
  font-size: 3rem;
  margin-bottom: 12px;
}

.blog-img-placeholder span {
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.blog-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.blog-link:hover {
  color: var(--secondary);
}

/* --- SEO Post Styling --- */
.blog-post-container {
  max-width: 800px;
  margin: calc(var(--header-height) + 60px) auto 100px auto;
  padding: 0 24px;
}

.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-header h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.post-banner {
  height: 400px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, #0f4c81 0%, #00a8cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 40px 0 16px 0;
}

.post-content h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 32px 0 12px 0;
}

.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-cta-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.post-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.post-cta-box p {
  margin-bottom: 24px;
}

/* --- Admin Dashboard CSS --- */
.admin-login-container {
  max-width: 450px;
  margin: 120px auto;
  padding: 0 24px;
}

.admin-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: var(--header-height);
  background-color: var(--bg-primary);
}

.admin-sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-btn:hover, .sidebar-btn.active {
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary);
}

.admin-main {
  padding: 40px;
  overflow-y: auto;
}

.admin-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.stat-card-text h2 {
  font-size: 2rem;
  margin-top: 4px;
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-card-icon.blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.stat-card-icon.green {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.stat-card-icon.yellow {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.stat-card-icon.red {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.admin-filter-bar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-search-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.admin-search-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.admin-search-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.admin-filters {
  display: flex;
  gap: 12px;
}

.admin-filters select {
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.admin-table-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.admin-table th {
  background-color: var(--bg-tertiary);
  font-weight: 700;
}

.admin-table tr:hover {
  background-color: rgba(15, 76, 129, 0.01);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background-color: rgba(234, 179, 8, 0.1);
  color: #d97706;
}

.status-badge.approved {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.status-badge.rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.btn-table-action {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-table-action.approve {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.btn-table-action.approve:hover {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-table-action.reject {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.btn-table-action.reject:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-table-action.delete {
  background-color: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.btn-table-action.delete:hover {
  background-color: #64748b;
  color: #ffffff;
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

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

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

.modal-header {
  margin-bottom: 24px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.modal-item:last-child {
  border-bottom: none;
}

.modal-item span:first-child {
  font-weight: 600;
  color: var(--text-muted);
}

.teacher-modal-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.teacher-modal-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.whatsapp-bubble {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 250px;
  animation: floatBubble 4s ease-in-out infinite;
  display: none;
}

.whatsapp-widget:hover .whatsapp-bubble {
  display: block;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-color);
  animation: pulseRipple 2s infinite;
  top: 0;
  left: 0;
  z-index: -1;
}

/* --- Footer --- */
.footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid #1e293b;
}

body[data-theme="light"] .footer {
  background-color: #0f172a;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

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

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

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

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom-right {
  text-align: right;
}
.footer-copyright {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0;
}
.footer-legal-links {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}
.footer-legal-links a {
  transition: color 0.2s;
}
.footer-legal-links a:hover {
  color: var(--accent) !important;
}
.footer-tagline {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* --- Animations --- */
@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes floatBubble {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Scroll reveal helper class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 40px auto 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 3;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    gap: 30px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }
  
  body[data-theme="dark"] .nav-menu {
    background-color: rgba(19, 27, 46, 0.96);
  }
  
  .nav-menu .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.05s; }
  .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.1s; }
  .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.15s; }
  .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.2s; }
  .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.25s; }
  .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.3s; }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-datetime {
    border-left: none;
    padding-left: 0;
    margin-top: 8px;
    font-size: 0.8rem;
    text-align: center;
  }
  
  .nav-actions {
    display: none;
  }
  
  .menu-toggle {
    display: block !important;
    cursor: pointer;
  }
  
  .locations-container {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-wrapper {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .sidebar-btn {
    width: auto;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .admin-sidebar > div:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .admin-sidebar > div:last-child .btn {
    width: auto !important;
    flex-grow: 1;
    max-width: 150px;
  }
  
  .form-card {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 1;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-search-wrapper {
    max-width: 100%;
  }
  
  .admin-filters {
    flex-direction: column;
  }
}

/* Custom Hamburger menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* ============================================
   NEW PROFESSIONAL UPGRADE STYLES
   ============================================ */

/* --- Reading Progress Bar --- */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

/* --- Back to Top Button --- */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 998;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.35);
}

/* --- Ticker / Stats Marquee Bar --- */
.ticker-bar {
  background: linear-gradient(90deg, var(--primary) 0%, #1a6baf 50%, var(--secondary) 100%);
  color: #ffffff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ticker-bar-bottom {
  border-top: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: inline-flex;
  animation: tickerScroll 38s linear infinite;
  gap: 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.ticker-item i { font-size: 0.9rem; opacity: 0.85; }
.ticker-highlight {
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 0.92rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.08);
  padding: 0 40px;
}
.ticker-highlight i {
  opacity: 1;
  animation: rocketPulse 1.5s ease-in-out infinite;
}
@keyframes rocketPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Trust Badges Strip --- */
.trust-strip {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-right: 1px solid var(--border-color);
  flex: 1 1 200px;
  justify-content: center;
  transition: var(--transition);
}
.trust-badge:last-child { border-right: none; }
.trust-badge:hover { background-color: rgba(var(--primary-rgb), 0.03); }
.trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.1), rgba(0,168,204,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-badge-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}
.trust-badge-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Animated Stat Counters --- */
.stat-item h3 {
  transition: color 0.3s ease;
}
.stat-item.counting h3 {
  color: var(--accent);
}

/* --- Star Rating Display --- */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* --- How It Works Section --- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.how-it-works-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.2;
  z-index: 0;
}
.how-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.how-step:hover { transform: translateY(-8px); }
.how-step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
  position: relative;
  transition: var(--transition);
}
.how-step:hover .how-step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
}
.how-step-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #ffffff;
}
.how-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 200px;
  margin: 0 auto;
}

/* --- Blog Preview Section --- */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-preview-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}
.blog-preview-thumb {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-preview-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}
.blog-preview-body {
  padding: 22px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-preview-tag {
  display: inline-block;
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-preview-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-preview-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}
.blog-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-preview-read {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.blog-preview-read:hover { color: var(--secondary); gap: 8px; }

/* --- Mid-Page CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, #0f4c81 0%, #1a6baf 40%, #00a8cc 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band-text h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 8px;
}
.cta-band-text p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
}
.cta-band-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* --- Achievement Counter Strip --- */
.achievement-strip {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.achievement-item {
  padding: 24px 16px;
  border-right: 1px solid var(--border-color);
  transition: var(--transition);
}
.achievement-item:last-child { border-right: none; }
.achievement-item:hover { transform: translateY(-4px); }
.achievement-number {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
  display: block;
}
.achievement-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.achievement-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

/* --- Mobile Bottom Navigation Bar --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 16px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  min-width: 60px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mob-nav-item i {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 1px;
}
.mob-nav-item.active,
.mob-nav-item:hover {
  color: var(--primary);
}
.mob-nav-item.mob-enroll {
  background: linear-gradient(135deg, var(--accent), #ff654a);
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 14px;
}
.mob-nav-item.mob-enroll:hover {
  color: #ffffff;
  transform: scale(1.05);
}
.mob-nav-item.mob-wa {
  color: var(--whatsapp-color);
}
.mob-nav-item.mob-wa:hover { color: var(--whatsapp-hover); }

/* --- Floating Enroll CTA (delayed) --- */
#floating-enroll-cta {
  position: fixed;
  bottom: 90px;
  left: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.35);
  z-index: 997;
  animation: slideInLeft 0.4s ease-out;
  cursor: pointer;
  text-decoration: none;
}
#floating-enroll-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(var(--primary-rgb), 0.45);
  color: #ffffff;
}
#floating-enroll-cta.show { display: flex; }
#close-floating-cta {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  flex-shrink: 0;
}
#close-floating-cta:hover { background: rgba(255,255,255,0.4); }
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Improved Testimonial Carousel --- */
.testimonial-card-new {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}
.testimonial-card-new:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.testimonial-card-new::before {
  content: '\201C';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.12;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-top: 8px;
}
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}
.testimonial-author-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.testimonial-score-badge {
  margin-left: auto;
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

/* --- Section Wave Divider --- */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* --- Highlight Pills --- */
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,0.12);
  color: #F4D160;
  border: 1px solid rgba(212,175,55,0.35);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.highlight-pill i { font-size: 0.75rem; }

/* --- Review with Stars (Success Cards upgraded) --- */
.success-card {
  transition: var(--transition);
}
.success-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.review-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  color: #f59e0b;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */

@media (max-width: 768px) {
  /* Show mobile bottom nav */
  .mobile-bottom-nav { display: block; }

  /* Add padding so content isn't hidden behind bottom nav */
  body { padding-bottom: 70px; }

  /* Move WhatsApp widget above bottom nav */
  .whatsapp-widget { bottom: 80px; right: 20px; }
  #back-to-top { bottom: 90px; right: 20px; }
  #floating-enroll-cta { bottom: 90px; left: 16px; font-size: 0.82rem; padding: 10px 16px; }

  /* Trust strip stacks nicely */
  .trust-badge { flex: 1 1 140px; padding: 10px 12px; }
  .trust-badge-text strong { font-size: 0.88rem; }
  .trust-badge-text span { font-size: 0.7rem; }

  /* How it works responsive */
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works-grid::before { display: none; }

  /* Achievement strip */
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .achievement-item:nth-child(2) { border-right: none; }
  .achievement-item { border-bottom: 1px solid var(--border-color); border-right: none; }
  .achievement-item:last-child, .achievement-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .achievement-number { font-size: 2.2rem; }

  /* CTA band stacks */
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-text h2 { font-size: 1.6rem; }
  .cta-band-actions { justify-content: center; }

  /* Testimonial grid on mobile — scrollable */
  .testimonial-swipe-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 16px;
    padding: 4px 4px 16px 4px;
    scrollbar-width: none;
  }
  .testimonial-swipe-container::-webkit-scrollbar { display: none; }
  .testimonial-card-new {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Hero font scaling — maintain min 52px feeling by using clamp */
  .hero-content h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .how-step-number { width: 58px; height: 58px; font-size: 1.3rem; }
  .hero-trust-inline { gap: 10px; }
  .hero-trust-badge { font-size: 0.75rem; padding: 5px 11px; }

  /* Upgraded Table to Cards on Mobile */
  .crash-course-table-container {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-top: 20px;
  }
  
  .crash-table {
    display: block;
    min-width: 100%;
  }
  
  .crash-table thead {
    display: none; /* Hide headings on mobile */
  }
  
  .crash-table tbody,
  .crash-table tr,
  .crash-table td {
    display: block;
    width: 100%;
  }
  
  .crash-table tr {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
  }
  
  .crash-table tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
  }
  
  .crash-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 !important;
    border-bottom: 1px dashed var(--border-color);
    text-align: right;
  }
  
  .crash-table td:last-child {
    border-bottom: none;
    padding-top: 18px !important;
    justify-content: center;
  }
  
  .crash-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    font-size: 0.9rem;
  }
  
  .crash-table td strong {
    font-size: 1rem;
  }
  
  .crash-table td .btn-table-action {
    width: 100%;
    justify-content: center;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
  
  /* Mobile Button group alignments */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ticker-bar { font-size: 0.8rem; }
  .trust-strip .container { gap: 0; flex-direction: column; }
  .trust-badge { border-right: none; border-bottom: 1px solid var(--border-color); width: 100%; }
  .trust-badge:last-child { border-bottom: none; }
  .how-it-works-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-text h2 { font-size: 1.4rem; }
  .hero-content h1 { font-size: 1.85rem; }
  .section-header h2 { font-size: 1.7rem; }
  .blog-preview-grid { grid-template-columns: 1fr; }
}

/* --- Review Show/Hide (View More) --- */
.review-item.review-hidden {
  display: none !important;
}

#view-more-reviews-btn {
  display: block;
  margin: 40px auto 0 auto;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
  letter-spacing: 0.3px;
}

#view-more-reviews-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.3);
  opacity: 0.95;
}

#view-more-reviews-btn.hidden {
  display: none;
}

/* --- Skill-First Section Label --- */
.skill-first-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(255,126,103,0.1));
  border: 1px solid rgba(212,175,55,0.3);
  color: #c49b00;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

[data-theme="dark"] .skill-first-badge {
  color: #F4D160;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(255,126,103,0.08));
}

/* --- Section Priority Visual Divider --- */
.section-priority-divider {
  text-align: center;
  margin: 0 auto 20px auto;
  position: relative;
}

.section-priority-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.section-priority-divider span {
  background: var(--bg-tertiary);
  padding: 0 16px;
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

/* ─── Announcement Bar (static banner, courses.html) ────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  position: relative;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.announcement-bar p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #ffffff;
  margin: 0;
}
.announcement-bar i {
  animation: pulse-dot 2s infinite;
}
@media (max-width: 600px) {
  .announcement-bar { font-size: 0.8rem; padding: 8px 0; }
}

/* ─── Floating CTA — Inner Link ─────────────────────────────────────────── */
.floating-cta-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  flex: 1;
}
.floating-cta-link:hover { color: #ffffff; }

/* ─── Global Readability Improvements ───────────────────────────────────── */
body { line-height: 1.7; }
p { line-height: 1.7; }
.section-header p { font-size: 1.1rem; line-height: 1.75; }
.faq-answer-content { line-height: 1.75; }
.feature-card p { line-height: 1.7; }
.pricing-features li { line-height: 1.65; }

/* --- Dark Mode Buttons & Navigation Visibility Overrides --- */
[data-theme="dark"] .btn-icon {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}
[data-theme="dark"] .btn-icon:hover {
  background-color: #334155 !important;
  border-color: #64748b !important;
  color: #60a5fa !important;
}
[data-theme="dark"] .menu-toggle {
  color: #f8fafc !important;
}
[data-theme="dark"] .btn-icon i {
  color: #eab308 !important; /* Force sun toggle icon color */
}
[data-theme="dark"] .menu-toggle i {
  color: #f8fafc !important;
}

/* Premium active/hover colors for navbar links in dark mode */
body[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .nav-link.active {
  color: var(--secondary) !important; /* High contrast cyan #22d3ee */
}

/* Premium button visibility & hover glow in dark mode */
body[data-theme="dark"] .btn-primary {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}
body[data-theme="dark"] .btn-primary:hover {
  background-color: var(--primary-hover) !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.45) !important;
  transform: translateY(-3px) !important;
}

body[data-theme="dark"] .btn-accent {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}
body[data-theme="dark"] .btn-accent:hover {
  background-color: #ff654a !important;
  box-shadow: 0 0 25px rgba(255, 126, 103, 0.45) !important;
  transform: translateY(-3px) !important;
}

body[data-theme="dark"] .btn-secondary {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  background-color: transparent !important;
}
body[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--secondary) !important;
  color: #0b0f19 !important;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.4) !important;
  transform: translateY(-3px) !important;
}

body[data-theme="dark"] .btn-outline-white {
  color: #ffffff !important;
  border-color: #ffffff !important;
  background-color: transparent !important;
}
body[data-theme="dark"] .btn-outline-white:hover {
  background-color: #ffffff !important;
  color: var(--bg-primary) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-3px) !important;
}


