/* ============================================================
   IQRA Madris-Al-Qur'an — Design System
   Based on ref.html patterns, IQRA green/gold palette
   ============================================================ */

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

/* ---------- CSS Variables: Light Mode ---------- */
:root {
  --accent-primary: #0d5c3b;
  --accent-secondary: #16a34a;
  --accent-gold: #c8a846;
  --accent-gold-light: #e8c86a;

  --bg-primary: #ffffff;
  --bg-secondary: #f0fdf4;
  --bg-surface: #dcfce7;

  --text-primary: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.75);

  --border: rgba(13, 92, 59, 0.12);
  --border-hover: rgba(13, 92, 59, 0.35);
  --glow: rgba(13, 92, 59, 0.22);
  --glow-gold: rgba(200, 168, 70, 0.25);

  --hero-grid: rgba(13, 92, 59, 0.055);
  --gradient-start: #0d5c3b;
  --gradient-end: #16a34a;

  --footer-bg: #0a1910;
  --footer-border: rgba(255, 255, 255, 0.07);
  --social-bg: rgba(255, 255, 255, 0.07);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px var(--glow);

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;

  --transition: all 0.3s ease;
  --transition-fast: all 0.18s ease;
}

/* ---------- CSS Variables: Dark Mode ---------- */
html.dark {
  --bg-primary: #0a1910;
  --bg-secondary: #0f2d1a;
  --bg-surface: #162b20;

  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;

  --nav-bg: rgba(10, 25, 16, 0.88);
  --card-bg: rgba(15, 45, 26, 0.85);
  --glass-bg: rgba(15, 45, 26, 0.65);

  --border: rgba(22, 163, 74, 0.18);
  --border-hover: rgba(22, 163, 74, 0.4);
  --glow: rgba(22, 163, 74, 0.28);
  --glow-gold: rgba(200, 168, 70, 0.3);

  --hero-grid: rgba(22, 163, 74, 0.07);
  --gradient-start: #4ade80;
  --gradient-end: #86efac;

  --footer-bg: #060f0a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ---------- Typography Utilities ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-text  { color: var(--accent-gold); }
.muted      { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(13, 92, 59, 0.09);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
html.dark .section-label {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}
.btn-primary:hover {
  background: #0b4e32;
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-2px);
}
html.dark .btn-primary               { background: #16a34a; }
html.dark .btn-primary:hover         { background: #15803d; box-shadow: 0 0 28px rgba(22,163,74,.45); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}
html.dark .btn-ghost:hover { border-color: #4ade80; color: #4ade80; }

.btn-gold {
  background: var(--accent-gold);
  color: #1a1000;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--accent-gold-light);
  box-shadow: 0 0 28px var(--glow-gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--accent-primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ---------- Glassmorphism Card ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* ---------- Fade-Up Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.3s ease;
}
.navbar.scrolled           { box-shadow: 0 2px 24px rgba(0,0,0,.08); }
html.dark .navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.4); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
}
html.dark .nav-logo { color: #4ade80; }

.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}
html.dark .nav-logo-icon { background: #16a34a; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(13,92,59,.07);
}
html.dark .nav-links a:hover,
html.dark .nav-links a.active {
  color: #4ade80;
  background: rgba(74,222,128,.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Dark-mode toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(13,92,59,.07);
}
html.dark .theme-toggle:hover {
  border-color: #4ade80;
  color: #4ade80;
  background: rgba(74,222,128,.07);
}
.theme-toggle svg   { width: 18px; height: 18px; }
.icon-sun           { display: none; }
.icon-moon          { display: block; }
html.dark .icon-sun  { display: block; }
html.dark .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 280px; height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 999;
  padding: 5rem 1.5rem 2rem;
  transition: right 0.35s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover              { color: var(--accent-primary); }
html.dark .mobile-menu a:hover    { color: #4ade80; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }

.close-menu {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-muted);
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.close-menu:hover { background: var(--bg-surface); color: var(--text-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Dot-grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 5%; right: -5%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(13,92,59,.13) 0%, transparent 70%);
  pointer-events: none;
}
html.dark .hero::after {
  background: radial-gradient(circle, rgba(74,222,128,.09) 0%, transparent 70%);
}

#particles {
  position: absolute; inset: 0;
  pointer-events: none;
}

.hero .container {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13,92,59,.09);
  color: var(--accent-primary);
  border: 1px solid rgba(13,92,59,.2);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.1s both;
}
html.dark .hero-badge {
  background: rgba(74,222,128,.08);
  color: #4ade80;
  border-color: rgba(74,222,128,.2);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-secondary);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.9s 0.2s both;
}
.hero-content > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.35s both;
}

.hero-arabic {
  font-size: 1.35rem;
  color: var(--accent-gold);
  font-style: italic;
  direction: rtl;
  margin-bottom: 0.35rem;
}
.hero-arabic-trans {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.5s both;
}
.hero-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.hero-check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(13,92,59,.12);
  color: var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
}
html.dark .hero-check-icon {
  background: rgba(74,222,128,.12);
  color: #4ade80;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.65s both;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.9s 0.8s both;
}
.hero-avatars { display: flex; }
.hero-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-left: -8px;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-social-text         { font-size: 0.87rem; color: var(--text-muted); }
.hero-social-text strong  { color: var(--text-primary); }

/* Hero visual (right column) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.9s 0.4s both;
}
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
  backdrop-filter: blur(20px);
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.hero-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.15rem;
}
.hero-card-title { font-size: 0.95rem; font-weight: 700; }
.hero-card-sub   { font-size: 0.78rem; color: var(--text-muted); }

.live-badge {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600;
  color: #16a34a;
  background: rgba(22,163,74,.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}
html.dark .live-badge { color: #4ade80; background: rgba(74,222,128,.1); }
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hero-stat {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}
.hero-stat-num {
  font-size: 1.35rem; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-primary);
}
html.dark .hero-stat-num { color: #4ade80; }
.hero-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

.hero-progress-label {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.hero-progress-bar {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%; width: 78%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--text-muted); font-weight: 500;
}
.trust-item strong  { color: var(--text-primary); }
.trust-icon         { color: var(--accent-primary); font-size: 1rem; }
html.dark .trust-icon { color: #4ade80; }

/* ---------- Features / Why Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--glow);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(13,92,59,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}
html.dark .feature-icon { background: rgba(74,222,128,.1); color: #4ade80; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- How It Works ---------- */
.steps-section { background: var(--bg-secondary); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(16.67% + 1.5rem);
  right: calc(16.67% + 1.5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.28;
}
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px var(--glow);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Courses ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.course-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--glow-gold);
}
.course-img-wrap { position: relative; height: 200px; overflow: hidden; }
.course-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-img-wrap img { transform: scale(1.05); }
.course-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}
.course-body       { padding: 1.5rem; }
.course-body h3    { font-size: 1.1rem; margin-bottom: 0.5rem; }
.course-body p     { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.65; }
.course-meta {
  display: flex; gap: 1rem;
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.course-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--bg-secondary); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.testimonial-stars  { color: var(--accent-gold); font-size: 0.95rem; margin-bottom: 0.75rem; }
.testimonial-text   { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9rem; font-weight: 600; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* Pagination dots */
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.dot.active { background: var(--accent-primary); width: 24px; border-radius: 4px; }
html.dark .dot.active { background: #16a34a; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.benefits-list   { display: flex; flex-direction: column; gap: 1.5rem; }
.benefit-item    { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(13,92,59,.1);
  color: var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
html.dark .benefit-icon { background: rgba(74,222,128,.1); color: #4ade80; }
.benefit-text h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.benefit-text p  { font-size: 0.88rem; color: var(--text-muted); }
.benefits-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.benefits-image-wrap img { width: 100%; height: 380px; object-fit: cover; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.blog-card-img { height: 180px; overflow: hidden; }
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body  { padding: 1.5rem; }
.blog-meta {
  display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem;
}
.blog-category          { color: var(--accent-primary); font-weight: 600; }
html.dark .blog-category { color: #4ade80; }
.blog-card-body h3  { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body p   { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.blog-card-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: gap 0.2s;
}
html.dark .blog-card-link  { color: #4ade80; }
.blog-card:hover .blog-card-link { gap: 0.55rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card-bg);
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem; font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.2s;
}
.faq-q:hover           { color: var(--accent-primary); }
html.dark .faq-q:hover { color: #4ade80; }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 1.5rem; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-a p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #0b4e32 50%, #164e34 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(1.8rem,3.5vw,2.5rem); color: #fff; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons    { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 990;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  border-radius: 50%; inset: -4px;
  border: 2px solid rgba(37,211,102,.4);
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- Scroll-to-Top ---------- */
.scroll-top {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  z-index: 990;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none; font-size: 1rem;
}
.scroll-top.visible  { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover    { background: #0b4e32; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-border);
}
.footer-brand .nav-logo        { color: #fff; margin-bottom: 1rem; }
.footer-brand .nav-logo-icon   { background: #16a34a; }
.footer-brand p {
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(255,255,255,.55); margin-bottom: 1.25rem;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,.6); margin-bottom: 0.5rem;
}
.footer-contact-item a { color: inherit; transition: color 0.2s; }
.footer-contact-item a:hover { color: #4ade80; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--social-bg);
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
}
.footer-social:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,.55); transition: color 0.2s; }
.footer-col ul a:hover { color: #4ade80; }
.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #0b4e32 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1   { font-size: clamp(2rem,4vw,2.8rem); color: #fff; margin-bottom: 0.5rem; }
.page-header p    { color: rgba(255,255,255,.75); font-size: 1rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,.6); margin-bottom: 1rem;
}
.breadcrumb a         { color: rgba(255,255,255,.7); transition: color 0.2s; }
.breadcrumb a:hover   { color: #fff; }
.breadcrumb-sep       { color: rgba(255,255,255,.4); }

/* ---------- About Page ---------- */
.about-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-intro-text h2  { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 1.25rem; }
.about-intro-text p   { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-img-wrap       { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-wrap img   { width: 100%; height: 380px; object-fit: cover; }

/* Stats */
.stats-section { background: var(--bg-secondary); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-card {
  text-align: center; padding: 2rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 0.35rem;
}
.stat-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }

/* Values */
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.value-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(13,92,59,.1);
  color: var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
html.dark .value-icon  { background: rgba(74,222,128,.1); color: #4ade80; }
.value-text h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.value-text p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Teachers */
.teachers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.teacher-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  transition: var(--transition);
}
.teacher-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.teacher-img {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.teacher-info h3   { font-size: 1rem; margin-bottom: 0.25rem; }
.teacher-role      { font-size: 0.8rem; color: var(--accent-primary); font-weight: 600; margin-bottom: 0.5rem; }
html.dark .teacher-role { color: #4ade80; }
.teacher-info p    { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Courses Detail Page ---------- */
.course-detail {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
}
.course-detail-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s;
}
.course-detail-header:hover { background: var(--bg-secondary); }
.course-detail-header h3    { font-size: 1rem; }
.course-detail-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--text-muted);
}
.course-detail.open .course-detail-icon { transform: rotate(180deg); color: var(--accent-primary); }
html.dark .course-detail.open .course-detail-icon { color: #4ade80; }
.course-detail-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.5rem;
}
.course-detail.open .course-detail-body { max-height: 600px; padding: 0 1.5rem 1.5rem; }
.course-detail-body ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.course-detail-body li {
  font-size: 0.88rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.course-detail-body li::before { content: '✓'; color: var(--accent-primary); font-weight: 700; flex-shrink: 0; }
html.dark .course-detail-body li::before { color: #4ade80; }

/* ---------- Forms / Contact ---------- */
.form-section  { background: var(--bg-secondary); }
.contact-grid  { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-card h2      { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-card .subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 2rem; }
.form-group        { margin-bottom: 1.25rem; }
.form-group label  { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(13,92,59,.1);
}
html.dark .form-group input:focus,
html.dark .form-group select:focus,
html.dark .form-group textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-info-card h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(13,92,59,.1);
  color: var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
html.dark .contact-detail-icon { background: rgba(74,222,128,.1); color: #4ade80; }
.contact-detail-text strong { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact-detail-text a,
.contact-detail-text span   { font-size: 0.9rem; color: var(--text-primary); }
.contact-detail-text a:hover { color: var(--accent-primary); }

/* ---------- Testimonials Page ---------- */
.testimonials-page-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* ---------- Blog Single Post ---------- */
.blog-post-section    { background: var(--bg-primary); padding: 4rem 0; }
.blog-post-container  { max-width: 780px; margin: 0 auto; }
.blog-post-header     { margin-bottom: 2rem; }
.blog-post-meta {
  display: flex; gap: 1rem;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.blog-post-header h1  { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 0.75rem; }
.blog-post-img {
  width: 100%; height: 360px; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 2rem;
}
.blog-post-body       { font-size: 0.97rem; color: var(--text-muted); line-height: 1.85; }
.blog-post-body h2    { font-size: 1.3rem; color: var(--text-primary); margin: 2rem 0 0.75rem; }
.blog-post-body h3    { font-size: 1.1rem; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.blog-post-body p     { margin-bottom: 1rem; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-post-body ul    { list-style: disc; }
.blog-post-body ol    { list-style: decimal; }
.blog-post-body li    { margin-bottom: 0.4rem; }

/* ---------- Utility backgrounds ---------- */
.bg-secondary { background: var(--bg-secondary); }
.bg-surface   { background: var(--bg-surface); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid,
  .courses-grid,
  .steps-grid          { grid-template-columns: repeat(2, 1fr); }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .testimonials-grid   { grid-template-columns: repeat(2, 1fr); }
  .testimonials-page-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid           { grid-template-columns: repeat(2, 1fr); }
  .hero .container     { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual         { display: none; }
  .hero-content        { max-width: 100%; }
  .contact-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links           { display: none; }
  .nav-actions .btn    { display: none; }
  .hamburger           { display: flex; }
  section              { padding: 3.5rem 0; }
  .features-grid,
  .courses-grid,
  .steps-grid,
  .blog-grid,
  .testimonials-grid,
  .testimonials-page-grid,
  .about-intro-grid,
  .benefits-grid,
  .values-grid,
  .teachers-grid       { grid-template-columns: 1fr; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .footer-grid         { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid::before  { display: none; }
  .form-row            { grid-template-columns: 1fr; }
  .hero-buttons        { flex-direction: column; }
  .hero-buttons .btn   { width: 100%; justify-content: center; }
  .trust-bar-inner     { gap: 1.25rem; }
  .hero .container     { padding-top: 2rem; }
}

@media (max-width: 480px) {
  .stats-grid          { grid-template-columns: 1fr; }
  .hero-social-proof   { flex-wrap: wrap; }
  .cta-buttons         { flex-direction: column; align-items: center; }
}
