/* ============================================================
   Ilm-e-Quran Online — stylesheet
   Palette: ink #150f0d / rust accent #c1442d / gold #d4af37
   Cards float in white on a dark canvas; text-on-white keeps
   the original deep-green (#0d5c3f) as a warm neutral ink.
   Fonts: Poppins (English), Playfair Display (hero serif),
   Noto Nastaliq Urdu (Urdu spans)
   ============================================================ */

:root {
  --ink: #150f0d;
  --ink-alt: #1d1512;
  --accent: #c1442d;
  --accent-dark: #9c3320;
  --gold: #d4af37;
  --gold-dark: #b8952c;
  --green: #0d5c3f;
  --green-dark: #093f2b;
  --tint: #f5efe9;
  --text: #23302a;
  --text-light: #5b6b64;
  --text-on-dark: #f5efe9;
  --text-on-dark-muted: #c9beb6;
  --text-on-dark-faint: rgba(245, 239, 233, 0.55);
  --white: #ffffff;
  --border: #e1e8e4;
  --border-on-dark: rgba(245, 239, 233, 0.14);
  --border-on-dark-strong: rgba(245, 239, 233, 0.45);
  --radius: 14px;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--text-on-dark-muted);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { margin: 0; padding: 0; }

.urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  direction: rtl;
  unicode-bidi: isolate;
  display: block;
  line-height: 2;
}

/* ---------- Language toggle (EN / UR) ---------- */
html[data-lang="en"] .urdu { display: none !important; }
html[data-lang="ur"] .lang-en { display: none !important; }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  padding: 2px;
  flex-shrink: 0;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-on-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
}
.lang-btn:not([aria-pressed="true"]):hover { background: rgba(245, 239, 233, 0.1); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(193, 68, 45, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(193, 68, 45, 0.48); }

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-on-dark-strong);
}
.btn-outline:hover { background: rgba(245, 239, 233, 0.08); border-color: var(--text-on-dark); }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5b; box-shadow: var(--shadow-lg); }

.enroll-btn,
.footer-contact .btn-whatsapp {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 15, 13, 0.94);
  border-bottom: 1px solid var(--border-on-dark);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 56px;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
}
.main-nav a .urdu { font-size: 0.78rem; color: var(--text-on-dark-muted); line-height: 1.3; }
.main-nav a:hover { color: var(--accent); }

.nav-whatsapp { padding: 9px 18px; font-size: 0.85rem; flex-shrink: 0; width: auto; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(245, 239, 233, 0.08);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero-dark {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 75% 20%, var(--ink-alt) 0%, var(--ink) 55%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 45px 0 45px;
}
.hero-text { text-align: left; align-self: center; }
.hero-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-on-dark);
  margin: 0 0 20px;
}
.hero-heading .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  text-align: right;
  line-height: 1.9;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.03rem;
  color: var(--text-on-dark-muted);
  max-width: 480px;
  margin: 0 0 30px;
}
.hero-text .hero-sub.urdu { text-align: right; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(245, 239, 233, 0.06);
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
}
.trust-badge .urdu { display: inline; line-height: 1.4; }

/* ---------- Hero visual: Desktop & Mobile Banner ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 780px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-banner-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(212, 175, 55, 0.25);
}

.hero-banner-desktop {
  display: block;
}
.hero-banner-mobile {
  display: none;
}

.hero-arch-pattern {
  position: relative;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M0 16 Q10 0 20 16 T40 16' fill='none' stroke='%23c1442d' stroke-width='1.6' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, rgba(29, 21, 18, 0.98) 0%, rgba(13, 9, 8, 0.98) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 38px 0;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(212, 175, 55, 0.15);
}
.stat-icon {
  font-size: 1.7rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.15);
}
.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fce4ad 0%, #d4af37 50%, #c19628 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  line-height: 1.25;
}
.stat-label.urdu {
  display: block;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.82rem;
  color: rgba(212, 175, 55, 0.85);
  line-height: 1.5;
}

/* ---------- Hear their voice ---------- */
.voice-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.2);
  margin: 0 auto 20px;
}
.voice-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 36px auto 0;
  align-items: stretch;
}
.voice-full-card {
  position: relative;
  background: linear-gradient(145deg, rgba(29, 21, 18, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.voice-full-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.voice-full-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(212, 175, 55, 0.22);
}

.voice-full-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 18px;
  margin-bottom: 14px;
}
.voice-full-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.voice-full-head h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fce4ad;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 12px;
  border-radius: 50px;
}
.voice-badge .urdu { display: inline; }

.voice-full-card .sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.18);
}
.voice-full-card .sample-row:last-child {
  border-bottom: none;
}
.voice-full-card .sample-row span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}
.voice-full-card .sample-row audio {
  width: 100%;
  max-width: 250px;
  height: 38px;
  border-radius: 20px;
  filter: invert(0.92) hue-rotate(180deg) saturate(1.8);
}

/* ---------- How it works (Interactive Step Process) ---------- */
.steps-wrapper {
  position: relative;
  margin-top: 36px;
}
.steps-line {
  position: absolute;
  top: 55px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.4) 20%, rgba(212, 175, 55, 0.4) 80%, transparent 100%);
  z-index: 1;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
}
.step-card {
  background: linear-gradient(145deg, rgba(29, 21, 18, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
  background: linear-gradient(145deg, rgba(38, 27, 23, 0.95) 0%, rgba(22, 14, 12, 0.98) 100%);
}

.step-num-badge {
  margin-bottom: 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce4ad 0%, #d4af37 50%, #c19628 100%);
  color: #120c0a;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover .step-num {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 55, 0.6);
}

.step-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 12px;
}
.step-card h3 .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.1rem;
  color: rgba(212, 175, 55, 0.9);
  display: block;
  margin-top: 4px;
}
.step-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.step-card p.urdu {
  margin-top: 6px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--ink-alt); }

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--text-on-dark);
  margin: 0 0 8px;
  font-weight: 700;
}
.section-title .urdu {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  display: inline;
  margin-inline-start: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Features Carousel ---------- */
.features-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 36px;
}
.features-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 16px 6px 24px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.features-carousel-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 calc(33.333% - 15px);
  min-width: 280px;
  scroll-snap-align: start;
  background: linear-gradient(145deg, rgba(29, 21, 18, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
  background: linear-gradient(145deg, rgba(38, 27, 23, 0.95) 0%, rgba(22, 14, 12, 0.98) 100%);
}

.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(4deg);
  background: rgba(212, 175, 55, 0.22);
}

.feature-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 12px;
}
.feature-card h3 .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.15rem;
  color: rgba(212, 175, 55, 0.9);
  display: block;
  margin-top: 4px;
}
.feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.feature-card p.urdu {
  margin-top: 6px;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(21, 15, 13, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.carousel-btn:hover {
  background: var(--gold);
  color: #150f0d;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn-prev {
  left: -24px;
}
.carousel-btn-next {
  right: -24px;
}

/* Pagination Dots */
.features-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ---------- Courses (Visual Tile Cards) ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  padding: 24px;
  background: var(--ink-alt);
}

.course-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.course-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to top,
    rgba(14, 8, 6, 0.98) 0%,
    rgba(14, 8, 6, 0.78) 45%,
    rgba(14, 8, 6, 0.28) 75%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 2;
  transition: background 0.4s ease;
}

.course-card:hover .course-bg-img {
  transform: scale(1.08);
}
.course-card:hover .course-overlay {
  background: linear-gradient(
    to top,
    rgba(14, 8, 6, 0.99) 0%,
    rgba(14, 8, 6, 0.84) 50%,
    rgba(14, 8, 6, 0.35) 80%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), 0 0 32px rgba(212, 175, 55, 0.28);
}

.course-card.course-popular {
  border: 2px solid rgba(212, 175, 55, 0.75);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 35px rgba(212, 175, 55, 0.3);
}

.popular-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, #fce4ad 0%, #d4af37 50%, #c19628 100%);
  color: #120c0a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  z-index: 3;
}
.popular-ribbon .urdu { display: inline; }

.course-top-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.course-card:hover .course-top-icon {
  transform: scale(1.1);
  background: rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.6);
}

.course-badge {
  position: relative;
  z-index: 3;
  display: inline-block;
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fce4ad;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 32px;
}

.course-bottom-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.course-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(212, 175, 55, 0.95);
  margin-bottom: 4px;
}
.course-subtitle .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.85rem;
  display: block;
}

.course-bottom-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.course-bottom-content h3 .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.course-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
}

.course-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fce4ad;
  margin: 0;
  line-height: 1;
}
.course-price span {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 2px;
}

.course-action-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.course-card:hover .course-action-btn {
  color: #ffffff;
  transform: translateX(4px);
}

.courses-cta { text-align: center; margin-top: 32px; }

/* ---------- Tutors ---------- */
.tutors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 28px auto 0;
}
.tutor-card {
  background: linear-gradient(145deg, rgba(29, 21, 18, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.tutor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
  z-index: 3;
}
.tutor-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 28px rgba(212, 175, 55, 0.2);
}

.tutor-photo {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f0a08;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutor-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}
.tutor-card:hover .tutor-photo img {
  transform: scale(1.04);
}
.tutor-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(to top, rgba(29, 21, 18, 1) 0%, transparent 100%);
  pointer-events: none;
}

.tutor-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.tutor-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}
.tutor-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
  color: rgba(212, 175, 55, 0.95);
  margin: 0 0 10px;
}
.tutor-bio {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
  margin: 0 0 14px;
}

.samples {
  margin-top: auto;
  margin-bottom: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 10px;
}
.samples summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
  padding: 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.samples summary .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.85);
  font-size: 0.82rem;
  display: inline;
}
.sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.18);
}
.sample-row:last-child { border-bottom: none; }
.sample-row span {
  font-size: 0.84rem;
  color: var(--text-on-dark);
  font-weight: 500;
  flex-shrink: 0;
}
.sample-row audio {
  width: 100%;
  max-width: 220px;
  height: 34px;
  border-radius: 20px;
  filter: invert(0.92) hue-rotate(180deg) saturate(1.8);
}

.enroll-box {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.enroll-box label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.enroll-box label .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  display: inline;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.9);
}
.course-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-family: inherit;
  font-size: 0.88rem;
  background: rgba(14, 8, 6, 0.9);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.course-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.course-select option {
  background: #18110e;
  color: #ffffff;
}

.enroll-box .enroll-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.enroll-box .enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(37, 211, 102, 0.5);
}

.tutor-phone {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  text-align: center;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Global Family Testimonials (Bayyinah Style) ---------- */
.section-community {
  background: radial-gradient(ellipse at 20% 50%, rgba(38, 27, 23, 0.6) 0%, var(--ink-alt) 70%);
  padding: 80px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.community-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 48px;
  align-items: center;
}

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

.community-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fce4ad;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.community-rating .urdu { display: inline; }

.community-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-on-dark);
  margin: 0 0 18px;
}
.community-title .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-top: 6px;
}

.community-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  margin: 0 0 28px;
}
.community-desc.urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.05rem;
}

.community-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.community-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease;
}
.community-card:hover {
  transform: translateY(-6px);
}

.community-img-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.community-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.community-card:hover .community-img-wrap img {
  transform: scale(1.05);
}

.community-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.play-badge-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.9);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}
.community-card:hover .play-badge-btn {
  transform: scale(1.12);
  background: var(--gold);
}

.community-quote {
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 10px;
  flex-grow: 1;
}
.community-quote .quote-mark {
  color: #e55338;
  font-size: 1.1rem;
}
.community-quote.urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.community-author {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

/* ---------- Hakeem & Herbal Healthcare Page ---------- */
.tibb-hero-banner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(145deg, rgba(29, 21, 18, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}
.tibb-hero-img {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.tibb-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tibb-hero-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 14px;
  line-height: 1.3;
}
.tibb-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fce4ad;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 14px;
  border-radius: 50px;
}
.tibb-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.tibb-feat-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fce4ad;
}
.tibb-feat-item .urdu { display: inline; }

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.treatment-card {
  background: linear-gradient(145deg, rgba(29, 21, 18, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.treatment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
  z-index: 3;
}
.treatment-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 28px rgba(212, 175, 55, 0.2);
}

.treatment-img-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0f0a08;
}
.treatment-img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.treatment-card:hover .treatment-img-banner img {
  transform: scale(1.06);
}
.treatment-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(29, 21, 18, 1) 0%, rgba(29, 21, 18, 0.3) 60%, transparent 100%);
  pointer-events: none;
}
.treatment-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(14, 8, 6, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.treatment-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.treatment-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.3;
}
.treatment-sub {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin: 0 0 14px;
}
.treatment-details {
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 12px;
  margin-bottom: 14px;
  flex-grow: 1;
}
.treatment-details h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-on-dark-muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.treatment-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.treatment-details li {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ffffff;
  position: relative;
  padding-left: 14px;
}
.treatment-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}
.remedy-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fce4ad;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}
.treatment-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.84rem;
  padding: 10px 14px;
}

.tibb-prep-box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(38, 27, 23, 0.6) 0%, var(--ink-alt) 70%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}
.tibb-prep-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
}
.tibb-prep-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tibb-prep-badges span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fce4ad;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
}
.tibb-prep-img {
  width: 100%;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.tibb-prep-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
  .tibb-hero-banner { grid-template-columns: 1fr; }
  .tibb-prep-box { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .treatments-grid { grid-template-columns: 1fr; }
  .tibb-hero-banner { padding: 20px; }
  .tibb-prep-box { padding: 20px; }
}

/* ---------- Course detail pages ---------- */
.course-hero {
  background: radial-gradient(ellipse at 75% 20%, var(--ink-alt) 0%, var(--ink) 55%);
  padding: 56px 0 60px;
  text-align: center;
}
.course-hero .back-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}
.course-hero .back-link:hover { text-decoration: underline; }
.course-hero .back-link .urdu { display: inline; }
.course-badge-lg {
  font-size: 0.78rem;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.course-hero h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  color: var(--text-on-dark);
  margin: 0 0 14px;
  font-weight: 700;
}
.course-hero-sub {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 22px;
}
.course-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.course-hero-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}
.course-hero-price .lang-en, .course-hero-price .urdu { font-size: 0.85rem; font-weight: 500; color: var(--text-on-dark-muted); display: inline; }

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.cover-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cover-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.cover-item h3 { font-size: 0.98rem; margin: 0 0 4px; color: var(--text-on-dark); }
.cover-item p { font-size: 0.86rem; color: var(--text-on-dark-muted); margin: 0; }

.course-audio-grid { max-width: 760px; }

.details-table-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.details-table { width: 100%; border-collapse: collapse; }
.details-table tr:not(:last-child) th,
.details-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.details-table th, .details-table td { text-align: left; padding: 14px 20px; font-size: 0.9rem; vertical-align: top; }
.details-table th { width: 40%; color: var(--text-light); font-weight: 600; background: var(--tint); }
.details-table th .urdu, .details-table td .urdu { display: inline; }
.fee-cell { font-weight: 700; color: var(--gold-dark); font-size: 1rem; }

@media (max-width: 700px) {
  .cover-grid { grid-template-columns: 1fr; }
  .details-table th { width: 45%; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  list-style: revert;
}
.faq-item summary .urdu { font-weight: 500; color: var(--text-light); font-size: 0.85rem; display: inline; }
.faq-item p { font-size: 0.88rem; color: var(--text-light); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-alt); border-top: 1px solid var(--border-on-dark); color: var(--text-on-dark-muted); padding: 50px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand .logo-en { color: var(--text-on-dark); font-size: 1.1rem; }
.footer-brand .logo-ur { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; color: var(--text-on-dark-muted); margin-top: 10px; max-width: 280px; }

.footer-contact h4, .footer-links h4 {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.footer-contact .urdu { display: inline; font-size: 0.8rem; color: var(--text-on-dark-muted); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact .btn-whatsapp { font-size: 0.82rem; padding: 10px 16px; justify-content: flex-start; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.88rem; color: var(--text-on-dark-muted); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding: 18px 20px;
  font-size: 0.8rem;
  color: var(--text-on-dark-faint);
}
.footer-bottom .urdu { display: inline; }

/* ---------- Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { gap: 28px; padding: 40px 0 36px; }
  .hero-banner-wrap { max-width: 600px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .voice-full-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--ink-alt);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border-on-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { flex-direction: row; gap: 8px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border-on-dark); align-items: baseline; }
  .main-nav a .urdu { display: inline; }
  .main-nav a:last-child { border-bottom: none; }

  .nav-whatsapp span { display: none !important; }
  .nav-whatsapp {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .lang-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }
  .lang-btn { padding: 4px 8px; font-size: 0.72rem; }
  .logo-img { height: 42px; }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
  }

  .hero-dark { min-height: auto; }
  .hero-grid { display: flex; flex-direction: column; padding: 36px 0 36px; gap: 24px; }
  .hero-text { display: contents; text-align: center; }
  .hero-heading { order: 1; text-align: center; margin-bottom: 0; }
  .hero-visual { order: 2; width: 100%; min-height: auto; max-width: 440px; margin: 0 auto; }
  .hero-sub { order: 3; margin-left: auto; margin-right: auto; margin-bottom: 0; }
  .hero-text .hero-sub.urdu { text-align: center; }
  .hero-cta { order: 4; justify-content: center; }
  .trust-badges { order: 5; justify-content: center; margin-top: 8px; }
  .hero-banner-wrap { max-width: 100%; margin-top: 0; }
  .hero-banner-desktop { display: none; }
  .hero-banner-mobile { display: block; }
  .section { padding: 46px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .tutors-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-full-head { flex-direction: column; text-align: center; }

  .community-layout { grid-template-columns: 1fr; gap: 36px; }
  .community-cards-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }

  .float-whatsapp { width: 50px; height: 50px; bottom: 16px; right: 16px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 14px 12px; gap: 10px; border-radius: 12px; }
  .stat-icon { width: 42px; height: 42px; font-size: 1.35rem; border-radius: 10px; }
  .stat-num { font-size: 1.45rem; }
  .stat-label { font-size: 0.76rem; }
}

@media (max-width: 400px) {
  .logo-en { font-size: 0.92rem; }
  .logo-ur { font-size: 0.8rem; }
  .hero-heading { font-size: 1.7rem; }
}
