/* ===== CSS Variables (Light Theme) ===== */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 10%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 10%;
  --primary: 255 85% 55%;       /* Electric Indigo */
  --primary-foreground: 0 0% 100%;
  --secondary: 240 5% 96%;
  --secondary-foreground: 240 6% 10%;
  --muted: 240 5% 96%;
  --muted-foreground: 240 4% 46%;
  --accent: 210 100% 55%;       /* Electric Blue */
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 150 70% 45%;       /* Emerald Green */
  --success-foreground: 0 0% 100%;
  --border: 240 6% 90%;
  --ring: 255 85% 55%;
  --radius: 1rem;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

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

body {
  background-color: hsl(var(--background));
  background-image: url('Group.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: hsl(var(--foreground));
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background image overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: hsl(var(--background));
  opacity: 0.92;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ===== Glass Effects (Light Mode) ===== */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== Gradient Utilities ===== */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

/* ===== Glow Effects ===== */
.glow-primary {
  box-shadow: 0 0 60px -12px hsla(263, 70%, 58%, 0.25);
}

.glow-accent {
  box-shadow: 0 0 60px -12px hsla(217, 91%, 60%, 0.2);
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px 0 hsla(263, 70%, 58%, 0.2); }
  50% { box-shadow: 0 0 40px 8px hsla(263, 70%, 58%, 0.35); }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slide-left {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slide-down {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== Banner Carousel ===== */
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.banner-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: hsl(240, 5%, 82%);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.banner-dot.active {
  width: 32px;
  background: hsl(263, 70%, 58%);
  border-color: hsl(263, 70%, 58%);
}

.banner-dot:hover {
  background: hsl(263, 70%, 48%);
}

/* ===== Scroll Animation ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* ===== Stagger delay utilities ===== */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* ===== Phone Screen Transition ===== */
.phone-screen {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  inset: 0;
}

.phone-screen.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== Navbar animation ===== */
.nav-enter {
  animation: slide-down 0.5s ease-out forwards;
}

/* Navbar must stay below mega menu */
#navbar {
  z-index: 9998 !important;
}

/* ===== Hero entrance ===== */
.hero-left {
  animation: slide-left 0.7s ease-out forwards;
}

.hero-right {
  animation: slide-right 0.8s 0.3s ease-out both;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  animation: fade-up 0.3s ease-out;
}

.mobile-menu.open {
  display: block;
}

/* ===== Feature card colors & hover ===== */
.feature-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-left: 4px solid transparent !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:nth-child(1) { border-left-color: #8b5cf6 !important; }
.feature-card:nth-child(2) { border-left-color: #3b82f6 !important; }
.feature-card:nth-child(3) { border-left-color: #ec4899 !important; }
.feature-card:nth-child(4) { border-left-color: #10b981 !important; }
.feature-card:nth-child(5) { border-left-color: #f59e0b !important; }
.feature-card:nth-child(6) { border-left-color: #6366f1 !important; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

/* ===== Problem / Solution card colors ===== */
.problem-card {
  background: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.12) !important;
  border-left: 4px solid #ef4444 !important;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.06);
}
.solution-card {
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-left: 4px solid #6366f1 !important;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

/* ===== Pricing card hover ===== */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:first-child {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
}

/* ===== Testimonial card colors & hover ===== */
.testimonial-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}

/* ===== Journey card colors & hover ===== */
.journey-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}

/* ===== Button styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: rgba(245, 243, 255, 0.95);
  border-color: hsla(263, 70%, 58%, 0.2);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  height: 2.25rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  height: 3.5rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  height: 4rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(240, 5%, 82%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

/* ===== Phone dot indicators ===== */
.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.phone-dot.active {
  background: white;
  width: 24px;
}

/* ===== Lucide icon sizing ===== */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 32px;
  height: 32px;
}

/* ===== iPhone Realistic Mockup ===== */
.iphone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  border-radius: 50px;
  background: #1a1a1a;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 0 0 4px #1a1a1a,
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 6px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .iphone-frame {
    width: 300px;
    height: 610px;
  }
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
}

/* Dynamic Island */
.iphone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

/* Status Bar */
.iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 15;
}

.iphone-status-bar .time {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.iphone-status-bar .icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.iphone-status-bar .icons svg {
  fill: white;
}

/* Home Indicator */
.iphone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  z-index: 20;
}

/* Side Buttons */
.iphone-side-btn-right {
  position: absolute;
  right: -3px;
  top: 140px;
  width: 3px;
  height: 50px;
  background: #333;
  border-radius: 0 2px 2px 0;
}

.iphone-side-btn-left-1 {
  position: absolute;
  left: -3px;
  top: 110px;
  width: 3px;
  height: 28px;
  background: #333;
  border-radius: 2px 0 0 2px;
}

.iphone-side-btn-left-2 {
  position: absolute;
  left: -3px;
  top: 160px;
  width: 3px;
  height: 50px;
  background: #333;
  border-radius: 2px 0 0 2px;
}

.iphone-side-btn-left-3 {
  position: absolute;
  left: -3px;
  top: 220px;
  width: 3px;
  height: 50px;
  background: #333;
  border-radius: 2px 0 0 2px;
}

/* ===== VidhyaIQ Splash Screen (Phone Screen 1) ===== */
.phone-screen-splash {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 85%, rgba(255, 255, 255, 0.10) 0%, transparent 40%),
    linear-gradient(160deg, #4338ca 0%, #6366f1 45%, #7c3aed 100%);
}

.splash-bg::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  animation: splash-pulse 3s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.splash-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 5;
}

.splash-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.15),
    0 0 0 14px rgba(255, 255, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 22px;
  animation: splash-logo-in 0.8s ease-out;
}

@keyframes splash-logo-in {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.splash-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.splash-title {
  font-size: 32px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.splash-title span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.splash-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}

.splash-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
  max-width: 240px;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.splash-loading-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 70px;
}

.splash-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  animation: splash-dot 1.4s ease-in-out infinite;
}

.splash-loading-dots span:nth-child(1) { background: #fbbf24; animation-delay: 0s; }
.splash-loading-dots span:nth-child(2) { background: #34d399; animation-delay: 0.2s; }
.splash-loading-dots span:nth-child(3) { background: #f87171; animation-delay: 0.4s; }

@keyframes splash-dot {
  0%, 80%, 100% { opacity: 0.4; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.3); }
}

.splash-footer {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== Hero Floating Feature Pills ===== */
.hero-float-pill {
  position: absolute;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(124, 58, 237, 0.18),
    0 0 0 1px rgba(124, 58, 237, 0.06);
  z-index: 15;
}

.hero-float-pill .pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-pill-1 {
  top: 60px;
  right: -30px;
  animation: pill-float-1 3.5s ease-in-out infinite;
}

.hero-float-pill-2 {
  bottom: 110px;
  right: -20px;
  animation: pill-float-2 4s ease-in-out infinite;
}

@keyframes pill-float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pill-float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (min-width: 768px) {
  .hero-float-pill {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero-float-pill-1 {
    top: 80px;
    right: -50px;
  }
  .hero-float-pill-2 {
    bottom: 130px;
    right: -40px;
  }
}

/* ===== Blog Styles ===== */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.article-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.article-content blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.blog-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

.nav-active {
  color: hsl(var(--primary)) !important;
  font-weight: 600;
}

/* ===== FAQ Section ===== */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.faq-open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(180deg);
}

.faq-toggle:hover {
  background: hsl(var(--muted)) !important;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #1a1a1a;
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1);
  }
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/* ===== Batch Cards ===== */
.batch-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.batch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
}

/* ===== Promo Banner ===== */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.promo-overlay.active {
  opacity: 1;
  visibility: visible;
}

.promo-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85) translateY(30px);
  z-index: 9999;
  width: 92%;
  max-width: 460px;
  border-radius: 1.75rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.6s ease;
}

.promo-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1) translateY(0);
}

.promo-inner {
  background: linear-gradient(145deg, #0f0c29 0%, #1a1040 30%, #302b63 60%, #24243e 100%);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Animated glow orbs */
.promo-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: promoOrb1 6s ease-in-out infinite;
}

.promo-inner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: promoOrb2 8s ease-in-out infinite;
}

@keyframes promoOrb1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

@keyframes promoOrb2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -15px); }
}

/* Floating particles */
.promo-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.promo-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: promoFloat linear infinite;
}

.promo-particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 4s; animation-delay: 0s; }
.promo-particle:nth-child(2) { left: 25%; top: 70%; animation-duration: 5s; animation-delay: 0.5s; width: 2px; height: 2px; }
.promo-particle:nth-child(3) { left: 50%; top: 15%; animation-duration: 6s; animation-delay: 1s; }
.promo-particle:nth-child(4) { left: 70%; top: 60%; animation-duration: 4.5s; animation-delay: 1.5s; width: 2px; height: 2px; }
.promo-particle:nth-child(5) { left: 85%; top: 30%; animation-duration: 5.5s; animation-delay: 0.8s; }
.promo-particle:nth-child(6) { left: 40%; top: 85%; animation-duration: 4s; animation-delay: 2s; width: 4px; height: 4px; }
.promo-particle:nth-child(7) { left: 60%; top: 45%; animation-duration: 7s; animation-delay: 0.3s; width: 2px; height: 2px; }
.promo-particle:nth-child(8) { left: 15%; top: 50%; animation-duration: 5s; animation-delay: 1.2s; }

@keyframes promoFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-80px) scale(0.5); opacity: 0; }
}

.promo-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.promo-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: rotate(90deg);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(59, 130, 246, 0.4));
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  animation: promoBadgeGlow 2s ease-in-out infinite;
}

@keyframes promoBadgeGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(124, 58, 237, 0.2); }
}

.promo-rocket {
  display: inline-block;
  animation: promoRocket 1.5s ease-in-out infinite;
  font-size: 0.85rem;
}

@keyframes promoRocket {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.promo-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  background: linear-gradient(to right, #ffffff 0%, #c4b5fd 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Countdown */
.promo-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.6rem 0.5rem;
  min-width: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(to bottom, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
  font-weight: 500;
}

.countdown-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(167, 139, 250, 0.6);
  animation: countdownBlink 1s ease-in-out infinite;
  margin-top: -0.5rem;
}

@keyframes countdownBlink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.1; }
}

/* Features */
.promo-features {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.promo-feature {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.promo-feature svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #a78bfa;
}

/* CTA Button */
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7c3aed, #6366f1, #3b82f6);
  background-size: 200% 200%;
  animation: promoCtaShimmer 3s ease infinite;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 25px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
}

.promo-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: promoCtaShine 3s ease-in-out infinite;
}

@keyframes promoCtaShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes promoCtaShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  60%, 100% { transform: translateX(100%) rotate(45deg); }
}

.promo-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 35px rgba(124, 58, 237, 0.5);
}

.promo-dismiss {
  display: block;
  margin-top: 0.85rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

.promo-dismiss:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
  .promo-inner {
    padding: 1.25rem 1rem;
  }
  .promo-title {
    font-size: 1.3rem;
  }
  .promo-subtitle {
    font-size: 0.76rem;
  }
  .promo-cta {
    font-size: 0.82rem;
    padding: 0.7rem 1.3rem;
  }
  .countdown-item {
    min-width: 46px;
    padding: 0.4rem 0.3rem;
  }
  .countdown-num {
    font-size: 1.15rem;
  }
}

/* ===== Syllabus Drawer ===== */
.syllabus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.syllabus-overlay.active {
  opacity: 1;
  visibility: visible;
}

.syllabus-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  z-index: 10001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.syllabus-drawer.active {
  right: 0;
}

.syllabus-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-list {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.class-item:hover {
  border-color: #7C3AED;
  transform: translateX(-4px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.1);
}

.class-item-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.class-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(124, 58, 237, 0.06);
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.class-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
}

.class-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.class-item:hover .class-arrow {
  transform: translateX(3px);
  color: #7C3AED;
}

@media (max-width: 640px) {
  .syllabus-drawer {
    max-width: 100%;
  }
}

/* ===== Scholarship Page Overhaul Styles ===== */

/* Sticky Bottom Banner */
.sticky-banner {
  position: fixed;
  bottom: -150px;
  left: 0;
  right: 0;
  background: #1a1a1a;
  z-index: 1000;
  padding: 1rem;
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.sticky-banner.active {
  bottom: 0;
}

.sticky-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .sticky-banner-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-bottom: 0.5rem;
  }
}

/* Info Tables */
.vsat-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: white;
}

.vsat-info-table th {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid rgba(0,0,0,0.03);
}

.vsat-info-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
  color: #475569;
}

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

.vsat-info-table tr:nth-child(even) td {
  background: rgba(124, 58, 237, 0.015);
}

/* Share Section */
.share-section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.share-card {
  background: #ffffff;
  border-radius: 2.5rem;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .share-card {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    text-align: center;
    gap: 2rem;
  }
}

/* ===== All Courses Mega Menu ===== */
#courses-btn:hover,
#courses-btn.active {
  color: hsl(var(--foreground)) !important;
}

#courses-btn.active svg {
  transform: rotate(180deg);
}

.courses-mega-menu {
  position: fixed;
  top: 65px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 680px;
  max-height: calc(100vh - 80px);
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 99999;
  overflow: visible;
}

.courses-mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: flex;
  height: 420px;
  overflow: hidden;
  border-radius: 1.25rem;
}

/* Categories Sidebar */
.mega-categories {
  width: 190px;
  background: #f8f7ff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

.mega-categories::-webkit-scrollbar {
  width: 3px;
}

.mega-categories::-webkit-scrollbar-track {
  background: transparent;
}

.mega-categories::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
  border-radius: 4px;
}

.mega-cat-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  flex-shrink: 0;
}

.mega-cat-btn:hover {
  background: rgba(124, 58, 237, 0.08);
}

.mega-cat-btn.active {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mega-cat-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.mega-cat-btn div {
  display: flex;
  flex-direction: column;
}

.mega-cat-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.mega-cat-desc {
  display: none;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.2;
  margin-top: 2px;
}

/* Content Panel */
.mega-content {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mega-panel {
  display: none;
}

.mega-panel.active {
  display: block;
  animation: fade-up 0.3s ease;
}

.mega-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-panel-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mega-panel-title div h3 {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.mega-panel-title div p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 2px;
}

.mega-view-all {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s;
}

.mega-view-all:hover {
  color: hsl(var(--accent));
}

/* Course Cards Grid */
.mega-courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mega-course-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mega-course-card:hover {
  border-color: hsl(var(--primary));
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.mega-course-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 0.625rem;
}

.mega-course-info h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mega-course-info p {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.3;
  margin-bottom: 0.375rem;
}

.mega-course-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(124, 58, 237, 0.08);
  color: hsl(var(--primary));
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

.mega-course-tag.new {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.mega-course-tag.trending {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

@media (max-width: 1023px) {
  .mega-menu-inner {
    flex-direction: column;
    max-height: none;
  }

  .mega-categories {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: auto;
  }

  .mega-categories::-webkit-scrollbar {
    display: none;
  }

  .mega-cat-btn {
    flex-direction: column;
    padding: 0.625rem 0.875rem;
    min-width: 80px;
    min-height: 44px;
    text-align: center;
    gap: 0.25rem;
  }

  .mega-cat-desc {
    display: none;
  }

  .mega-courses-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile: full-width mega menu positioned below the navbar */
  .courses-mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    transform: translateX(0) translateY(-10px);
    max-width: none;
    max-height: calc(100vh - 64px);
    top: 64px;
    border-radius: 0 0 1.25rem 1.25rem;
    overflow: hidden;
  }

  .courses-mega-menu.active {
    transform: translateX(0) translateY(0);
  }

  /* Hide the arrow pointer on mobile */
  .courses-mega-menu::before {
    display: none;
  }

  /* Hide the hover bridge on mobile */
  .courses-mega-menu::after {
    display: none;
  }

  /* Show the close button on mobile */
  .mega-menu-close-btn {
    display: flex;
  }

  /* Ensure mega menu inner can scroll */
  .mega-menu-inner {
    max-height: calc(100vh - 64px - 44px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Better touch targets for course cards */
  .mega-course-card {
    padding: 1rem;
    min-height: 44px;
  }

  /* Better touch targets for view all links */
  .mega-view-all {
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ===== Mobile Mega Menu Close Button ===== */
.mega-menu-close-btn {
  display: none;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: hsl(var(--foreground));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.mega-menu-close-btn:hover,
.mega-menu-close-btn:active {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.mega-menu-close-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* ===== Mobile Courses Toggle Button (inside hamburger menu) ===== */
.mobile-courses-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.5rem;
  min-height: 44px;
  background: linear-gradient(135deg, hsla(263, 70%, 58%, 0.08), hsla(217, 91%, 60%, 0.08));
  border: 1px solid hsla(263, 70%, 58%, 0.15);
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: all 0.2s ease;
}

.mobile-courses-toggle:active {
  background: linear-gradient(135deg, hsla(263, 70%, 58%, 0.15), hsla(217, 91%, 60%, 0.15));
}

.mobile-courses-toggle.active {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  border-color: transparent;
}

.mobile-courses-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-courses-toggle.active .mobile-courses-chevron {
  transform: rotate(180deg);
}

/* Invisible bridge between button and mega menu so hover doesn't break */
.courses-mega-menu::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

/* Arrow positioning fix */
.courses-mega-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: white;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* All Courses button - pointer cursor but no click action */
#courses-btn {
  cursor: default;
}


/* ==================== FLOATING QR SCANNER WIDGET ==================== */
.qr-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99998;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-widget.collapsed {
  transform: translateY(-50%) translateX(calc(100% - 44px));
}

.qr-widget-toggle {
  width: 44px;
  min-height: 120px;
  background: linear-gradient(180deg, hsl(263, 70%, 58%) 0%, hsl(263, 70%, 48%) 100%);
  border: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  box-shadow: -4px 4px 16px rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.qr-widget-toggle:hover {
  background: linear-gradient(180deg, hsl(263, 70%, 52%) 0%, hsl(263, 70%, 42%) 100%);
  box-shadow: -4px 4px 20px rgba(124, 58, 237, 0.45);
}

.qr-widget-toggle svg {
  width: 20px;
  height: 20px;
  color: white;
  transition: transform 0.3s ease;
}

.qr-widget.collapsed .qr-widget-toggle .qr-arrow {
  transform: rotate(180deg);
}

.qr-widget-toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.qr-widget-card {
  background: white;
  border-radius: 16px 0 0 16px;
  padding: 20px;
  box-shadow: -8px 4px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.qr-widget-badge {
  background: linear-gradient(135deg, hsl(263, 70%, 58%), hsl(217, 91%, 60%));
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.qr-widget-qr {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 3px solid hsl(263, 70%, 58%);
  padding: 6px;
  background: white;
}

.qr-widget-qr img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.qr-widget-label {
  font-size: 13px;
  font-weight: 700;
  color: hsl(240, 10%, 10%);
  text-align: center;
  line-height: 1.3;
}

.qr-widget-sublabel {
  font-size: 10px;
  color: hsl(240, 4%, 46%);
  text-align: center;
}

/* Pulse animation on toggle button when collapsed */
.qr-widget.collapsed .qr-widget-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5);
  animation: qr-pulse 2s ease-in-out infinite;
}

@keyframes qr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}

/* Mobile: smaller widget */
@media (max-width: 640px) {
  .qr-widget-card {
    padding: 14px;
    min-width: 150px;
  }
  .qr-widget-qr {
    width: 110px;
    height: 110px;
  }
  .qr-widget-toggle {
    width: 38px;
    min-height: 100px;
  }
}

/* ==================== STICKY CTA BAR ==================== */
.sticky-cta-bar {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 9990;
  transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.sticky-cta-bar.visible {
  bottom: 0;
}

.sticky-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-cta-title {
  font-size: 14px;
  font-weight: 800;
  color: hsl(240, 10%, 10%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sticky-cta-price .old {
  font-size: 12px;
  color: hsl(240, 4%, 46%);
  text-decoration: line-through;
}

.sticky-cta-price .current {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(263, 70%, 58%), hsl(217, 91%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sticky-cta-price .period {
  font-size: 12px;
  color: hsl(240, 4%, 46%);
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, hsl(263, 70%, 58%), hsl(217, 91%, 60%));
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.sticky-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sticky-cta-inner {
    padding: 10px 16px;
  }
  .sticky-cta-title {
    font-size: 13px;
  }
  .sticky-cta-price .current {
    font-size: 16px;
  }
  .sticky-cta-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .sticky-cta-price .old,
  .sticky-cta-price .period {
    display: none;
  }
}

/* ==================== MOBILE RESPONSIVENESS FIXES ==================== */

/* iPhone frame: prevent overflow on small screens */
.iphone-frame {
  max-width: calc(100vw - 40px);
}

/* WhatsApp button: move up when sticky CTA is visible */
.sticky-cta-bar.visible ~ .whatsapp-float,
body:has(.sticky-cta-bar.visible) .whatsapp-float {
  bottom: 90px !important;
  transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
  /* Fix background-attachment: fixed broken on iOS Safari */
  body {
    background-attachment: scroll;
  }

  /* Hide QR widget on tablets and phones - too intrusive */
  .qr-widget {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body:has(.sticky-cta-bar.visible) .whatsapp-float {
    bottom: 76px !important;
  }

  /* Prevent text overflow in grid cells */
  .grid.grid-cols-2 .flex.items-center span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* Comparison table: tighter padding on mobile */
  table th {
    padding: 12px 8px !important;
    font-size: 11px !important;
  }
  table td {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }
  table .inline-flex {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  /* Trust badges: tighter on mobile */
  .grid.grid-cols-2 > .glass.rounded-2xl.p-5 {
    padding: 12px !important;
  }

  /* Money-back guarantee: ensure stacking */
  .flex.flex-col.sm\:flex-row .glass.rounded-full {
    width: 100%;
  }

  /* Course page sections: tighter padding */
  .glass.rounded-2xl.p-6 {
    padding: 16px !important;
  }
  .glass.rounded-2xl.p-5 {
    padding: 14px !important;
  }
  .glass.rounded-xl.p-4 {
    padding: 10px !important;
  }

  /* Promo banner: reduce padding */
  .promo-inner {
    padding: 1.5rem 1.25rem;
  }
  .promo-title {
    font-size: 1.4rem;
  }

  /* Section headings: slightly smaller on mobile */
  section h2 {
    word-break: break-word;
  }

  /* Sticky CTA bar: proper spacing */
  .sticky-cta-inner {
    gap: 10px;
  }
}

/* Extra small screens (380px and below) */
@media (max-width: 380px) {
  /* Comparison table: even smaller */
  table th {
    padding: 10px 6px !important;
    font-size: 10px !important;
  }
  table td {
    padding: 8px 6px !important;
    font-size: 11px !important;
  }

  /* Sticky CTA: tighter */
  .sticky-cta-inner {
    padding: 8px 12px !important;
    gap: 8px;
  }
  .sticky-cta-title {
    font-size: 12px !important;
  }
  .sticky-cta-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  /* Course sections: even tighter */
  .glass.rounded-2xl.p-6 {
    padding: 12px !important;
  }
  .glass.rounded-2xl.p-5 {
    padding: 10px !important;
  }
  .glass.rounded-xl.p-4 {
    padding: 8px !important;
  }

  /* Promo banner: extra small */
  .promo-banner {
    width: 96%;
  }
  .promo-inner {
    padding: 1.25rem 0.875rem;
  }
  .promo-title {
    font-size: 1.2rem;
  }
  .promo-subtitle {
    font-size: 0.72rem;
  }

  /* Countdown items smaller */
  .countdown-item {
    min-width: 42px;
    padding: 0.35rem 0.25rem;
  }
  .countdown-num {
    font-size: 1rem;
  }

  /* Hero stats and grids: reduce gap */
  .grid {
    gap: 8px;
  }
}

/* ===== MEGA MENU MOBILE OVERHAUL ===== */
@media (max-width: 1023px) {
  /* Force hide category descriptions on mobile */
  .mega-cat-desc {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Mega menu: full-width panel below navbar */
  .courses-mega-menu {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 64px) !important;
    border-radius: 0 0 16px 16px !important;
    overflow: hidden !important;
    background: white !important;
    z-index: 99999 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  }

  .courses-mega-menu.active {
    transform: translateX(0) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hide arrows and bridges on mobile */
  .courses-mega-menu::before,
  .courses-mega-menu::after {
    display: none !important;
  }

  /* Inner layout: stack vertically */
  .mega-menu-inner {
    flex-direction: column !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Category buttons: wrap so ALL 6 are visible */
  .mega-categories {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 12px 12px 8px 12px !important;
    gap: 6px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f8f7ff !important;
  }

  .mega-cat-btn {
    flex-direction: row !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 6px 10px !important;
    min-width: auto !important;
    min-height: 36px !important;
    text-align: center !important;
    gap: 4px !important;
    border-radius: 18px !important;
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  .mega-cat-btn.active {
    background: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
  }

  .mega-cat-btn.active .mega-cat-name {
    color: white !important;
  }

  .mega-cat-btn div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .mega-cat-icon {
    font-size: 0.875rem !important;
  }

  .mega-cat-name {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* Content area: compact padding */
  .mega-content {
    padding: 12px !important;
    overflow-y: auto !important;
  }

  /* Panel header: tighter */
  .mega-panel-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }

  .mega-panel-title div h3 {
    font-size: 0.9rem !important;
  }

  .mega-panel-title div p {
    font-size: 0.7rem !important;
  }

  /* Course cards: single column, clearly styled */
  .mega-courses-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .mega-course-card {
    padding: 14px !important;
    min-height: 44px !important;
    background: #f9f9fb !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .mega-course-card:active {
    background: rgba(124, 58, 237, 0.06) !important;
    border-color: hsl(var(--primary)) !important;
  }

  /* View all: bigger touch target */
  .mega-view-all {
    padding: 10px 14px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.8rem !important;
  }

  /* Close button: always visible on mobile, positioned top-right */
  .mega-menu-close-btn {
    display: flex !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 50% !important;
  }
}
