/* ============================================================
   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=Bellota+Text:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Poppins:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ---------- CSS Variables: Light Mode ---------- */
:root {
  --accent-primary: #0d5c3b;
  --accent-secondary: #16a34a;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fef3c7;

  --font-heading: 'Bellota Text', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-surface: #f1f5f9;

  --text-primary: #0f172a;
  --text-muted: #475569;
  --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.08);
  --border-hover: rgba(13, 92, 59, 0.25);
  --glow: rgba(13, 92, 59, 0.15);
  --glow-gold: rgba(245, 158, 11, 0.25);

  --hero-grid: rgba(13, 92, 59, 0.035);
  --gradient-start: #0d5c3b;
  --gradient-end: #16a34a;

  --footer-bg: #0f172a;
  --footer-border: rgba(255, 255, 255, 0.05);
  --social-bg: rgba(255, 255, 255, 0.05);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px var(--glow);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ---------- CSS Variables: Dark Mode ---------- */
html.dark {
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: rgba(245, 158, 11, 0.15);

  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-surface: #334155;

  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --nav-bg: rgba(15, 23, 42, 0.88);
  --card-bg: rgba(30, 41, 59, 0.85);
  --glass-bg: rgba(30, 41, 59, 0.65);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(22, 163, 74, 0.3);
  --glow: rgba(22, 163, 74, 0.2);
  --glow-gold: rgba(245, 158, 11, 0.3);

  --hero-grid: rgba(255, 255, 255, 0.03);
  --gradient-start: #22c55e;
  --gradient-end: #4ade80;

  --footer-bg: #0b0f19;

  --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: var(--font-body);
  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: var(--font-heading);
  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: 1550px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 2.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: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  font-weight: 700;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover), #b45309);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}
html.dark .btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
html.dark .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover), #b45309);
}

.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-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; }

/* ---------- CTA Pulse Animation ---------- */
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}
.hero-buttons .btn-primary {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---------- 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: var(--font-heading);
  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;
  display: flex;
  align-items: center;
  padding: 70px 0 0;
  overflow: hidden;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.jpg') no-repeat center center/cover;
}

/* Hero Text Visibility Overrides for Dark Background */
.hero, .hero h1, .hero p, .hero-content > p, .hero-arabic, .hero-arabic-trans, .hero-check, .hero-social-text strong, .hero-social-text {
  color: #f8fafc !important;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #4ade80 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.hero-check-icon {
  background: rgba(74, 222, 128, 0.15) !important;
  color: #4ade80 !important;
}
.hero .btn-ghost {
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
.hero .btn-ghost:hover {
  border-color: #4ade80 !important;
  color: #4ade80 !important;
  background: rgba(255, 255, 255, 0.05);
}
.hero-visual .tour-carousel-container {
  max-width: 100%;
  padding: 0;
  width: 100%;
}

/* 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: 1rem;
  padding-bottom: 2rem;
}

.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(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  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-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  font-style: normal;
  direction: rtl;
  margin-bottom: 0.35rem;
  text-align: center;
}
.hero-arabic-trans {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  text-align: center;
}

.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: flex-end;
  align-items: center;
  align-self: start;
  margin-top: 1.5rem;
  animation: fadeUp 0.9s 0.4s both;
}
.hero-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.2rem;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
  backdrop-filter: blur(20px);
  z-index: 20;
}
.hero-card .hero-card-title {
  color: var(--text-primary) !important;
}
.hero-card .hero-card-sub {
  color: var(--text-muted) !important;
}
.hero-card .hero-stat-num {
  color: var(--accent-primary) !important;
}
html.dark .hero-card .hero-stat-num {
  color: #4ade80 !important;
}
.hero-card .hero-stat-label {
  color: var(--text-muted) !important;
}
.hero-card .hero-progress-label span {
  color: var(--text-muted) !important;
}
.hero-card .live-badge {
  color: #16a34a !important;
  background: rgba(22,163,74,.1) !important;
}
html.dark .hero-card .live-badge {
  color: #4ade80 !important;
  background: rgba(74,222,128,.1) !important;
}
.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: 1.0125rem; font-weight: 700; }
.hero-card-sub   { font-size: 0.8425rem; color: var(--text-muted); }

.live-badge {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.7825rem; 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: rgba(13, 92, 59, 0.06) !important;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
}
html.dark .hero-stat {
  background: rgba(74, 222, 128, 0.09) !important;
}
.hero-stat-num {
  font-size: 1.4125rem; font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent-primary);
}
html.dark .hero-stat-num { color: #4ade80; }
.hero-stat-label { font-size: 0.7825rem; color: var(--text-muted); margin-top: 0.15rem; }

.hero-progress-label {
  font-size: 0.8425rem; 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(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), var(--shadow-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: var(--font-heading);
  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(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}
.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: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 8rem;
  color: rgba(13, 92, 59, 0.04);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
html.dark .testimonial-card::before {
  color: rgba(255, 255, 255, 0.02);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 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: var(--font-heading);
  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: 13.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: var(--font-heading);
  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: 4.2rem 0 0.8rem;
  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(1.6rem,3vw,2.2rem); color: #fff; margin-bottom: 0.25rem; }
.page-header p    { color: rgba(255,255,255,.75); font-size: 0.9rem; }
.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: var(--font-heading);
  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: 3rem 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); }

/* ---------- Academy Tour Carousel ---------- */
.tour-carousel-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.tour-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: var(--transition);
}
.tour-slides {
  position: relative;
  width: 100%;
}
.tour-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  pointer-events: none;
}
.tour-slide.active {
  position: relative;
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.tour-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.tour-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 92, 59, 0.15);
  color: var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.tour-control svg {
  width: 20px;
  height: 20px;
}
.tour-control.prev {
  left: 1rem;
}
.tour-control.next {
  right: 1rem;
}
.tour-control:hover {
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--accent-secondary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.tour-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-light);
  opacity: 0.45;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.tour-dot:hover {
  opacity: 0.8;
  transform: scale(1.1);
}
.tour-dot.active {
  opacity: 1;
  background: var(--accent-secondary);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* Dark mode adjustments for controls */
html.dark .tour-control {
  background: rgba(10, 25, 16, 0.75);
  border-color: rgba(22, 163, 74, 0.25);
  color: #4ade80;
}
html.dark .tour-control:hover {
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--accent-secondary);
}
html.dark .tour-dot {
  background: var(--text-muted);
}
html.dark .tour-dot.active {
  background: #4ade80;
}

/* ---------- Tutor Showcase & Trust Badges ---------- */
.tutor-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.tutor-profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.tutor-profile-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.tutor-avatar-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
.tutor-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.tutor-gender-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
html.dark .tutor-gender-badge {
  background: var(--accent-secondary);
}
.tutor-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.tutor-title {
  font-size: 0.825rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
html.dark .tutor-title {
  color: #4ade80;
}
.tutor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-tag.ijazah {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.15);
}
html.dark .badge-tag.ijazah {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}
.badge-tag.sanad {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
  border: 1px solid rgba(3, 105, 161, 0.15);
}
html.dark .badge-tag.sanad {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}
.badge-tag.azhar {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.15);
}
html.dark .badge-tag.azhar {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.25);
}
.badge-tag.dbs {
  background: rgba(147, 51, 234, 0.1);
  color: #7e22ce;
  border: 1px solid rgba(126, 34, 206, 0.15);
}
html.dark .badge-tag.dbs {
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.25);
}
.tutor-details-list {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.tutor-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.tutor-detail-label {
  color: var(--text-muted);
}
.tutor-detail-val {
  font-weight: 500;
  color: var(--text-primary);
}
.tutor-bio {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Trust Badges and DBS Checked styling */
.dbs-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 92, 59, 0.05);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}
html.dark .dbs-trust-badge {
  background: rgba(22, 163, 74, 0.08);
  color: #4ade80;
}
.dbs-trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent-secondary);
}

/* Mobile-Sticky CTA bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.mobile-sticky-cta .btn {
  width: 100%;
  justify-content: center;
  max-width: 400px;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ijazah & Sanad Rotating Card Widget */
.cert-widget-section {
  padding: 3.5rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.cert-widget-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}
.cert-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 3rem;
  align-items: center;
}
.cert-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cert-tab-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.cert-tab-btn:hover {
  border-color: var(--border-hover);
  transform: translateX(5px);
}
.cert-tab-btn.active {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}
html.dark .cert-tab-btn.active {
  border-color: #22c55e;
}
.cert-tab-icon {
  font-size: 1.75rem;
  background: rgba(13, 92, 59, 0.08);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: var(--transition);
}
html.dark .cert-tab-icon {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
}
.cert-tab-btn.active .cert-tab-icon {
  background: var(--accent-primary);
  color: #fff;
}
html.dark .cert-tab-btn.active .cert-tab-icon {
  background: #22c55e;
  color: #0f172a;
}
.cert-tab-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.cert-tab-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cert-card-wrap {
  min-height: 330px;
  position: relative;
}
.cert-card-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  min-height: 330px;
  display: none;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
  animation: fadeIn 0.4s ease;
}
.cert-card-panel.active {
  display: flex;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-gold-light);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  width: fit-content;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
html.dark .cert-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.cert-card-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.cert-card-panel p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cert-highlight-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-primary);
}
html.dark .cert-highlight-box {
  border-left-color: #22c55e;
}

/* Social Proof Popup Bubble */
.social-proof-pop {
  position: fixed;
  bottom: 120px;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 280px;
  transform: translateX(-105%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.social-proof-pop.show {
  transform: translateX(0);
}
.social-proof-pop .social-proof-close {
  position: absolute;
  top: 0.2rem;
  right: 0.4rem;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}
.social-proof-icon {
  font-size: 1.2rem;
  background: var(--accent-primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-proof-content { font-size: 0.8rem; line-height: 1.3; }
.social-proof-time { display: block; font-size: 0.7rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid,
  .courses-grid,
  .steps-grid,
  .tutor-showcase-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: flex; width: 100%; max-width: 550px; margin: 0 auto; }
  .hero-content        { max-width: 100%; }
  .contact-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body.has-sticky-cta { padding-bottom: 70px; } /* Space for mobile sticky CTA */
  body.has-sticky-cta .mobile-sticky-cta { display: flex; }
  .nav-links           { display: none; }
  .nav-actions .btn    { display: none; }
  .hamburger           { display: flex; }
  section              { padding: 2.5rem 0; }
  .features-grid,
  .courses-grid,
  .steps-grid,
  .blog-grid,
  .testimonials-grid,
  .testimonials-page-grid,
  .about-intro-grid,
  .benefits-grid,
  .values-grid,
  .teachers-grid,
  .tutor-showcase-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; }
  .cert-grid           { grid-template-columns: 1fr; gap: 2rem; }
  .cert-card-panel     { min-height: auto; padding: 1.75rem; }
  .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; }
}

/* ---------- Stats Card Tip Popout ---------- */
.stats-card-tip-pop {
  position: absolute;
  top: 106%;
  bottom: auto;
  left: 10px;
  right: 10px;
  background: var(--accent-gold-light);
  border: 2px solid #16a34a;
  color: #78350f;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
html.dark .stats-card-tip-pop {
  background: rgba(245, 158, 11, 0.15);
  color: #fef3c7;
  border-color: #16a34a;
}
.stats-card-tip-pop::after {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--accent-gold) transparent;
}
.stats-card-tip-pop::before {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--accent-gold-light) transparent;
  z-index: 1;
}
html.dark .stats-card-tip-pop::before {
  border-color: transparent transparent rgba(30, 41, 59, 0.95) transparent;
}
.stats-card-tip-pop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* ---------- Theme Background for Sub-Pages ---------- */
body.theme-bg {
  --bg-primary: rgba(255, 255, 255, 0.82);
  --bg-secondary: rgba(248, 250, 252, 0.75);
  --bg-surface: rgba(241, 245, 249, 0.75);
  --card-bg: rgba(255, 255, 255, 0.75);
  
  background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('../images/theme.jpg') no-repeat center center fixed;
  background-size: cover;
  transition: background-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}

html.dark body.theme-bg {
  --bg-primary: rgba(15, 23, 42, 0.85);
  --bg-secondary: rgba(30, 41, 59, 0.78);
  --bg-surface: rgba(51, 65, 85, 0.78);
  --card-bg: rgba(30, 41, 59, 0.78);
  
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('../images/theme.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* Desktop Tip Popout overrides to be side-floating */
@media (min-width: 769px) {
  .hero-card {
    margin-left: auto;
  }
  .stats-card-tip-pop {
    top: 25%;
    bottom: auto;
    right: 106%;
    left: auto;
    width: 220px;
    transform: translateY(-25%) translateX(10px) scale(0.95);
  }
  .stats-card-tip-pop.show {
    transform: translateY(-25%) translateX(0) scale(1);
  }
  .stats-card-tip-pop::after {
    bottom: auto;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--accent-gold);
  }
  .stats-card-tip-pop::before {
    bottom: auto;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--accent-gold-light);
  }
  html.dark .stats-card-tip-pop::before {
    border-color: transparent transparent transparent rgba(30, 41, 59, 0.95);
  }
}

/* ---------- Confidence Banner ---------- */
.confidence-banner {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.confidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.confidence-card {
  padding: 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  transition: var(--transition);
  text-align: center;
}
.confidence-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.confidence-card h3 {
  font-size: 2rem;
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
html.dark .confidence-card h3 {
  color: #4ade80;
}
.confidence-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

@media (max-width: 768px) {
  .confidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .confidence-grid {
    grid-template-columns: 1fr;
  }
}
.stats-card-tip-pop {
  left: 15px !important;
  right: 15px !important;
}
@media (min-width: 769px) {
  .stats-card-tip-pop { width: 210px !important; }
}
.page-header { padding: 3rem 0 0.5rem !important; }
.page-header h1 { font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important; margin-bottom: 0 !important; }
.page-header p { margin: 0 !important; }

/* ---------- Floating Badges Stack (LEFT SIDE) ---------- */
.float-btn-secondary {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  z-index: 990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(24,119,242,.4);
  transition: var(--transition);
  text-decoration: none;
  font-size: 1.4rem;
}
.float-btn-secondary:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(24,119,242,.55);
}
.float-btn-secondary::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  inset: -4px;
  border: 2px solid rgba(24,119,242,.4);
  animation: pulse 2s ease-in-out infinite;
}

.float-btn-primary {
  position: fixed;
  bottom: 9.5rem;
  left: 1.5rem;
  z-index: 990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
  transition: var(--transition);
  text-decoration: none;
  font-size: 1.4rem;
}
.float-btn-primary:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(245,158,11,.55);
}
.float-btn-primary::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  inset: -4px;
  border: 2px solid rgba(245,158,11,.4);
  animation: pulse 2s ease-in-out infinite;
}

/* Tooltip implementation */
.float-tooltip-trigger {
  position: relative;
}
.float-tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  width: max-content;
  max-width: 250px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  line-height: 1.4;
  text-align: left;
}
.float-tooltip-trigger:hover .float-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

/* Mobile adjustments for float buttons stack when sticky CTA is active */
@media (max-width: 768px) {
  body.has-sticky-cta .whatsapp-float { bottom: 6.5rem; }
  body.has-sticky-cta .float-btn-secondary { bottom: 10.5rem; }
  body.has-sticky-cta .float-btn-primary { bottom: 14.5rem; }
  body.has-sticky-cta .scroll-top { bottom: 18.5rem; }
  
  .float-tooltip {
    display: none !important;
  }
}


/* ---------- Simulated Live Chat Feed ---------- */
.hero-live-chat {
  position: absolute;
  right: 0;
  top: 80px;
  width: 260px;
  bottom: -125px;
  background: #0b4e32;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}
@media (max-width: 1400px) {
  .hero-live-chat { display: none; }
}

.lc-header {
  background: rgba(0,0,0,0.15);
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.lc-header-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.live-chat-feed-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 0.5rem;
}
.live-chat-feed-container::-webkit-scrollbar {
  width: 3px;
}
.live-chat-feed-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.lc-msg {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  animation: lc-fade-in 0.4s ease forwards;
  transform-origin: top left;
}
.lc-msg--entering {
  opacity: 0;
  transform: translateY(10px);
}
.lc-msg--exiting {
  animation: lc-fade-out 0.4s ease forwards;
}

@keyframes lc-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lc-fade-out {
  to { opacity: 0; transform: translateY(-10px); }
}

.lc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.25);
  color: #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lc-bubble {
  background: rgba(187, 247, 208, 0.15);
  padding: 0.35rem 0.55rem;
  border-radius: 0 6px 6px 6px;
  color: #d1fae5;
  font-size: 0.65rem;
  border: none;
}
.lc-name {
  font-weight: 700;
  font-size: 0.55rem;
  margin-bottom: 0.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #86efac;
}
.lc-time {
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  font-size: 0.5rem;
}
.lc-text {
  line-height: 1.3;
  font-size: 0.6rem;
}

/* ---------- Why Us Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-primary);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--accent-primary);
}
.why-us-content h2 {
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}
.why-us-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.why-us-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.why-us-content li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.why-us-content li::before {
  content: '?';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}
.why-us-cta {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 2rem;
}
.why-us-cta p {
  margin-bottom: 1rem;
  font-weight: 500;
}
/* Appending the final fixes to CSS */
.lc-msg { flex-direction: column !important; gap: 0.3rem !important; }
.lc-header-row { display: flex; align-items: center; gap: 0.4rem; }
.lc-bubble { border-radius: 0 6px 6px 6px !important; margin-left: 10px; }
.hero-live-chat { top: 85px !important; bottom: 125px !important; height: auto !important; }

/* Apply CTA pulse to specific buttons */
.hero-buttons .btn-primary,
.confidence-banner .btn-primary,
.mobile-sticky-cta .btn-primary {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* FIX: Social Proof Pop (Left hand side tip) Border */
.social-proof-pop {
  border: 3px solid #16a34a !important;
  border-left: none !important;
}
html.dark .social-proof-pop {
  border-color: #16a34a !important;
}

/* FIX: Stats Tip Position on Desktop */
@media (min-width: 769px) {
  .stats-card-tip-pop {
    left: auto !important;
    right: 106% !important;
    width: 220px !important;
  }
}

/* FIX: Vertical Tabs for Badges */
.float-btn-primary {
  top: 40% !important;
  bottom: auto !important;
  left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  width: 45px !important;
  height: auto !important;
  padding: 0.8rem 0 !important;
  background: #0b4e32 !important;
  color: #fff !important;
  flex-direction: column !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.float-btn-primary::before { border-radius: 0 8px 8px 0 !important; }

.float-btn-secondary {
  top: 55% !important;
  bottom: auto !important;
  left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  width: 45px !important;
  height: 45px !important;
  background: #1877f2 !important;
  font-family: sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.6rem !important;
}
.float-btn-secondary::before { border-radius: 0 8px 8px 0 !important; }

/* FIX: Live Chat encroaching, font sizes, transparency */
.hero-live-chat {
  width: 220px !important;
  background: rgba(11, 78, 50, 0.5) !important;
  backdrop-filter: blur(10px) !important;
}
.lc-bubble {
  background: rgba(187, 247, 208, 0.5) !important;
}
.lc-text { font-size: 0.85rem !important; }
.lc-time { font-size: 0.75rem !important; }
.lc-name { font-size: 0.8rem !important; }
.lc-avatar { width: 32px !important; height: 32px !important; font-size: 0.75rem !important; }


/* FINAL TWEAKS */

/* 1. Left Tip Border thinner */
.social-proof-pop {
  border: 2px solid #16a34a !important;
  border-left: none !important;
}
html.dark .social-proof-pop {
  border-color: #16a34a !important;
}

/* 2. Stats Tip Font Size */
.stats-card-tip-pop {
  font-size: 0.85rem !important;
}

/* 5. Chat Bubbles Transparency and text legibility */
.lc-bubble {
  background: rgba(230, 255, 240, 0.5) !important;
  color: #0b4e32 !important;
}
.lc-name {
  color: #0b4e32 !important;
}
.lc-time {
  color: #111 !important;
}

