/* =============================================
   SCHOOL ABOUT ISLAM - Landing Page Styles
   A magical storybook aesthetic for kids
   ============================================= */

/* CSS Custom Properties */
:root {
  /* Primary Palette - Warm & Inviting */
  --primary: #FF6B6B;
  --primary-dark: #E85555;
  --primary-light: #FF8A8A;

  /* Secondary - Teal Ocean */
  --secondary: #4ECDC4;
  --secondary-dark: #3DBDB4;
  --secondary-light: #7EDDD6;

  /* Accent Colors */
  --accent-gold: #FFE66D;
  --accent-purple: #A78BFA;
  --accent-pink: #F472B6;
  --accent-green: #34D399;

  /* Neutrals - Warm tones */
  --cream: #FFF8F0;
  --cream-dark: #FFF0E0;
  --text-dark: #2D3748;
  --text-medium: #4A5568;
  --text-light: #718096;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 50%, #FFDDC1 100%);
  --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #A78BFA 100%);
  --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #F472B6 50%, #A78BFA 100%);

  /* Typography */
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Quicksand', sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(255, 107, 107, 0.1);
  --shadow-medium: 0 8px 30px rgba(255, 107, 107, 0.15);
  --shadow-strong: 0 12px 40px rgba(255, 107, 107, 0.2);
  --shadow-card: 0 10px 40px rgba(45, 55, 72, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

/* =============================================
   Floating Decorative Elements
   ============================================= */
.floating-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  font-size: 1.5rem;
  color: var(--accent-gold);
  opacity: 0.4;
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 10%; left: 5%; animation-delay: 0s; }
.star-2 { top: 20%; right: 10%; animation-delay: 0.5s; font-size: 1rem; }
.star-3 { top: 50%; left: 3%; animation-delay: 1s; }
.star-4 { top: 70%; right: 5%; animation-delay: 1.5s; font-size: 1rem; }
.star-5 { top: 85%; left: 8%; animation-delay: 2s; }

.crescent {
  position: absolute;
  top: 15%;
  right: 8%;
  font-size: 3rem;
  color: var(--accent-gold);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.1);
  transition: var(--transition-medium);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  font-size: 1.8rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 600;
  color: var(--text-medium);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-medium);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--cream-dark);
}

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

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

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

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-card {
  background: var(--card-accent, var(--primary));
  color: white;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
}

.btn-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-icon {
  font-size: 1.2em;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 100px;
  opacity: 0.6;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud-1 {
  width: 200px;
  height: 60px;
  top: 15%;
  left: -50px;
  animation: drift 25s linear infinite;
}

.cloud-1::before {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 30px;
}

.cloud-1::after {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 90px;
}

.cloud-2 {
  width: 150px;
  height: 45px;
  top: 25%;
  right: -50px;
  animation: drift-reverse 30s linear infinite;
}

.cloud-2::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 20px;
}

.cloud-2::after {
  width: 45px;
  height: 45px;
  top: -20px;
  left: 70px;
}

.cloud-3 {
  width: 180px;
  height: 50px;
  bottom: 20%;
  left: 10%;
  animation: drift 35s linear infinite;
  animation-delay: -10s;
}

.cloud-3::before {
  width: 70px;
  height: 70px;
  top: -35px;
  left: 25px;
}

.cloud-3::after {
  width: 55px;
  height: 55px;
  top: -25px;
  left: 85px;
}

@keyframes drift {
  from { transform: translateX(-100%); }
  to { transform: translateX(calc(100vw + 100%)); }
}

@keyframes drift-reverse {
  from { transform: translateX(100%); }
  to { transform: translateX(calc(-100vw - 100%)); }
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-lg);
}

.badge-icon {
  font-size: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-alt {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: slideInRight 0.8s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quran-display {
  position: relative;
  z-index: 1;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  line-height: 2;
}

.translation {
  text-align: center;
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-fill {
  height: 100%;
  width: 15%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-light);
}

.surah-name {
  font-weight: 600;
  color: var(--primary);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  animation: bounce 3s ease-in-out infinite;
}

.badge-streak {
  top: -10px;
  right: -20px;
  color: #FF6B6B;
  animation-delay: 0s;
}

.badge-star {
  bottom: 20px;
  left: -30px;
  color: #FFE66D;
  animation-delay: 1.5s;
}

.badge-emoji {
  font-size: 1.2rem;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-light);
  font-size: 0.85rem;
  animation: fadeInUpCentered 1s ease-out;
  animation-delay: 1s;
  animation-fill-mode: both;
}

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

@keyframes fadeInUpCentered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* =============================================
   Section Common Styles
   ============================================= */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   Features Section
   ============================================= */
.features-section {
  padding: var(--space-4xl) 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-medium);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card[data-delay="0"] { animation-delay: 0.1s; }
.feature-card[data-delay="1"] { animation-delay: 0.2s; }
.feature-card[data-delay="2"] { animation-delay: 0.3s; }
.feature-card[data-delay="3"] { animation-delay: 0.4s; }
.feature-card[data-delay="4"] { animation-delay: 0.5s; }
.feature-card[data-delay="5"] { animation-delay: 0.6s; }

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-medium);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent, var(--primary)) 30%, transparent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* =============================================
   Courses Section
   ============================================= */
.courses-section {
  padding: var(--space-4xl) 0;
  background: var(--gradient-hero);
}

.courses-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-medium);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.course-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--card-accent) 20%, white),
    color-mix(in srgb, var(--card-accent) 40%, white)
  );
  position: relative;
}

.course-icon {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
}

.course-level {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--card-accent);
}

.course-content {
  padding: var(--space-lg);
}

.course-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.course-content p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.course-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-light);
}

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

/* =============================================
   How It Works Section
   ============================================= */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: white;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-xl);
  max-width: 280px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.step-icon {
  font-size: 2.5rem;
  margin-top: var(--space-md);
}

.step-connector {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* =============================================
   Testimonials Section
   ============================================= */
.testimonials-section {
  padding: var(--space-4xl) 0;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-medium);
}

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

.testimonial-card.featured {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--primary-light);
}

.testimonial-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
}

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

/* =============================================
   Pricing Section
   ============================================= */
.pricing-section {
  padding: var(--space-4xl) 0;
  background: white;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.toggle-label {
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-label.active {
  color: var(--text-dark);
}

.save-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: var(--space-xs);
}

.toggle-switch {
  width: 56px;
  height: 30px;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-switch.active {
  background: var(--gradient-primary);
}

.toggle-slider {
  display: block;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  transition: var(--transition-medium);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.popular {
  background: white;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-medium);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.pricing-header {
  margin-bottom: var(--space-lg);
}

.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-medium);
}

.amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: var(--text-light);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.pricing-features li.disabled {
  color: var(--text-light);
  opacity: 0.6;
}

.check {
  color: var(--accent-green);
  font-weight: 700;
}

.cross {
  color: var(--text-light);
}

/* =============================================
   FAQ Section
   ============================================= */
.faq-section {
  padding: 6rem 0;
  background-color: #FFF8F0;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 107, 107, 0.1);
}

.faq-item:hover {
  box-shadow: 0 10px 40px rgba(45, 55, 72, 0.1);
  transform: translateY(-2px);
}

.faq-item.active {
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2D3748;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: transparent;
  border: none;
}

.faq-question:hover {
  color: #FF6B6B;
}

.faq-item.active .faq-question {
  color: #FF6B6B;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #FF6B6B;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: #FF6B6B;
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #FAFAFA;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  color: #4A5568;
  line-height: 1.8;
  font-family: 'Quicksand', sans-serif;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faq-cta p {
  font-size: 1.1rem;
  color: #4A5568;
  font-weight: 500;
  margin: 0;
}

/* FAQ Mobile Styles */
@media (max-width: 768px) {
  .faq-section {
    padding: 4rem 0;
  }

  .faq-question {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 1.5rem 1rem;
    font-size: 0.95rem;
  }

  .faq-icon {
    width: 26px;
    height: 26px;
    font-size: 1.2rem;
  }
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--gradient-sunset);
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-decor {
  margin-bottom: var(--space-lg);
}

.cta-star {
  display: inline-block;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 var(--space-sm);
  animation: twinkle 2s ease-in-out infinite;
}

.cta-star:nth-child(2) {
  animation-delay: 0.5s;
}

.cta-star:nth-child(3) {
  animation-delay: 1s;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.cta-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--text-dark);
  color: white;
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
  color: var(--accent-gold);
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  font-size: 1.5rem;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.social-links a:hover {
  opacity: 1;
  transform: scale(1.2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: white;
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-dua {
  font-family: var(--font-arabic);
  font-size: 1rem !important;
  color: var(--accent-gold) !important;
}

/* =============================================
   Mobile Responsive Styles
   ============================================= */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .courses-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container {
    flex-direction: column;
  }

  .step-connector {
    width: 3px;
    height: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .testimonial-card.featured:hover {
    transform: translateY(-5px);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding-top: calc(70px + var(--space-xl));
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .floating-badge {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

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

  .crescent {
    display: none;
  }
}

/* Animation performance optimization */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-light: #4A5568;
    --cream: #FFFFFF;
    --cream-dark: #F0F0F0;
  }
}
