/* ==========================================================
   Islah Quran Academy — Global Stylesheet
   ========================================================== */

@import url('https://cdn.jsdelivr.net/npm/cal-sans@1.0.1/index.css');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;600&display=swap');

:root {
  --primary: #7F1BFF;
  --primary-light: #9B4FFF;
  --primary-muted: #E8D9FF;
  --bg: #FFFFFF;
  --bg-soft: #F9F7FF;
  --text: #0D0D0D;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success: #16A34A;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(127, 27, 255, 0.08);
  --shadow-lg: 0 10px 40px rgba(127, 27, 255, 0.12);
  --font-heading: 'Cal Sans', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

ul { list-style: none; }

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  border: 2px solid #fff;
  transition: var(--transition);
}

.btn-white:hover {
  background: var(--bg-soft);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Badge */
.badge {
  display: inline-block;
  background: var(--primary-muted);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-success {
  background: #DCFCE7;
  color: var(--success);
}

.badge-popular {
  background: var(--primary);
  color: #fff;
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-muted);
}

/* ==========================================================
   Navigation
   ========================================================== */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border-bottom-color: var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text);
}

.logo svg { width: 32px; height: 32px; }
.logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 400;
  font-size: 15px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content .badge { margin-bottom: 20px; }

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.floating-stat {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.floating-stat strong { font-family: var(--font-heading); font-size: 22px; color: var(--primary); display: block; }

.floating-stat:nth-of-type(1) { top: 20px; left: -20px; }
.floating-stat:nth-of-type(2) { bottom: 40px; right: -20px; }
.floating-stat:nth-of-type(3) { bottom: 140px; left: -30px; }

.stat-icon {
  width: 40px; height: 40px;
  background: var(--primary-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 20px;
}

/* Page Hero (for non-home pages) */
.page-hero {
  background: var(--bg-soft);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ==========================================================
   Trust Bar
   ========================================================== */

.trust-bar {
  padding: 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 14px;
}

.trust-item svg { color: var(--primary); width: 22px; height: 22px; }
.trust-item strong { color: var(--text); font-weight: 600; }

.stars { color: #F59E0B; letter-spacing: 1px; }

/* ==========================================================
   Feature Grid
   ========================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-muted);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary-muted);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================
   Course Cards
   ========================================================== */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-muted);
}

.course-card-image {
  height: 200px;
  background: var(--primary-muted);
  position: relative;
  overflow: hidden;
}

.course-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.course-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.course-card .badge { margin-bottom: 12px; align-self: flex-start; }

.course-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.course-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.course-meta span { display: inline-flex; align-items: center; gap: 4px; }

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary);
}

.course-price small { color: var(--text-muted); font-size: 13px; font-family: var(--font-body); font-weight: 400; }

/* ==========================================================
   How It Works
   ========================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  padding: 24px;
}

.step-num {
  width: 64px; height: 64px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; }

.steps::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: var(--primary-muted);
  z-index: 1;
}

/* ==========================================================
   Testimonials
   ========================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.testimonial:hover { box-shadow: var(--shadow); }

.testimonial .stars { margin-bottom: 16px; font-size: 16px; }

.testimonial-quote {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}

.testimonial-avatar {
  width: 48px; height: 48px;
  background: var(--primary-muted);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
}

.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-meta { font-size: 13px; color: var(--text-muted); }

/* ==========================================================
   Teachers
   ========================================================== */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teacher-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.teacher-image {
  height: 280px;
  background: var(--primary-muted);
  overflow: hidden;
}

.teacher-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.teacher-body { padding: 24px; }
.teacher-body h3 { font-size: 22px; margin-bottom: 6px; }
.teacher-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }

.teacher-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================
   Pricing
   ========================================================== */

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-switch {
  width: 56px; height: 28px;
  background: var(--primary);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch.annual::before { transform: translateX(28px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.pricing-card .price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.price {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 4px;
}

.price-period { font-family: var(--font-body); font-size: 16px; color: var(--text-muted); font-weight: 400; }

.pricing-features {
  margin: 28px 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  content: '✕';
  color: var(--text-muted);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-soft);
  font-family: var(--font-heading);
  font-size: 18px;
}

.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table th:not(:first-child) { text-align: center; }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .x { color: var(--text-muted); }

/* ==========================================================
   FAQ Accordion
   ========================================================== */

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text);
  user-select: none;
  gap: 16px;
}

.faq-q .icon {
  width: 28px; height: 28px;
  background: var(--primary-muted);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 18px;
  font-weight: 600;
}

.faq-item.open .faq-q .icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.4s ease;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-top: 16px;
}

/* ==========================================================
   CTA Banner
   ========================================================== */

.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================
   Forms
   ========================================================== */

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================
   Stats
   ========================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-block { padding: 24px; }
.stat-block .num {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-block .label {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================
   Two-Col
   ========================================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.two-col p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ==========================================================
   Filter Tabs
   ========================================================== */

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
  background: #0D0D0D;
  color: #fff;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--primary-light);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item svg { color: var(--primary-light); flex-shrink: 0; margin-top: 2px; }

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  margin-left: 16px;
}

.footer-bottom a:hover { color: var(--primary-light); }

/* ==========================================================
   Page content (blog, legal pages)
   ========================================================== */

.content {
  max-width: 800px;
  margin: 0 auto;
}

.content h2 {
  font-size: 32px;
  margin: 40px 0 16px;
}

.content h3 {
  font-size: 24px;
  margin: 28px 0 12px;
}

.content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.content ul, .content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.content ul li, .content ol li {
  margin-bottom: 8px;
  list-style: disc;
}

.content ol li { list-style: decimal; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 24px; }
.blog-card .badge { margin-bottom: 12px; }
.blog-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.blog-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.featured-post {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 48px;
  transition: var(--transition);
}

.featured-post:hover {
  box-shadow: var(--shadow-lg);
}

.featured-post-img {
  min-height: 320px;
  overflow: hidden;
}

.featured-post-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.featured-post-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-body h2 {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.featured-post-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sidebar { }

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 16px;
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget ul li:last-child { border: none; }
.sidebar-widget ul li a { color: var(--text); font-size: 14px; }
.sidebar-widget ul li a:hover { color: var(--primary); }

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 10px;
}

.newsletter-form button { width: 100%; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--primary-muted);
  box-shadow: var(--shadow);
}

.contact-info-card .icon {
  width: 48px; height: 48px;
  background: var(--primary-muted);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.map {
  width: 100%;
  height: 360px;
  background: var(--primary-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 20px;
  border: 1px solid var(--primary-muted);
  margin-top: 48px;
  background-image: linear-gradient(135deg, var(--primary-muted) 0%, #F9F7FF 100%);
  position: relative;
  overflow: hidden;
}

.map::after {
  content: '📍 Map View';
  background: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* Profile */
.profile-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-photo {
  width: 280px; height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-info h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.profile-info .role {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}

.profile-stat .num {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--primary);
}
.profile-stat .label { font-size: 13px; color: var(--text-muted); }

/* Personas */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.persona-card .icon {
  width: 64px; height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.persona-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.persona-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Check List */
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 8px 0;
}

.check-list li::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--primary-muted);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237F1BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page-inner {
  max-width: 540px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 140px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.error-icon { margin-bottom: 24px; display: flex; justify-content: center; }

/* Video Card */
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  background: var(--primary-muted);
}

.video-card img { width: 100%; height: 100%; object-fit: cover; }

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6));
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  font-size: 24px;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.video-card:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); }

.video-caption {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  color: #fff;
  z-index: 2;
}

.video-caption strong { display: block; font-size: 16px; }
.video-caption span { font-size: 13px; opacity: 0.9; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content h1 { font-size: 44px; }
  .floating-stat { display: none; }
  .feature-grid,
  .course-grid,
  .teacher-grid,
  .testimonial-grid,
  .pricing-grid,
  .personas { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-posts { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-header { grid-template-columns: 1fr; }
  .profile-photo { margin: 0 auto; }
  .featured-post { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 30px; }
  .hero { padding: 56px 0 64px; }
  .hero-content h1 { font-size: 36px; }
  .page-hero h1 { font-size: 34px; }
  .cta-banner h2 { font-size: 30px; }
  .cta-banner { padding: 56px 0; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    gap: 16px;
    transform: translateY(-110%);
    transition: var(--transition);
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
  .nav-cta .btn-primary { padding: 8px 14px; font-size: 13px; }

  .feature-grid,
  .course-grid,
  .teacher-grid,
  .testimonial-grid,
  .pricing-grid,
  .personas,
  .blog-posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .featured-post-body { padding: 24px; }
  .featured-post-body h2 { font-size: 24px; }

  .form { padding: 24px; }
  .footer-bottom { flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-block .num { font-size: 36px; }
  .profile-photo { width: 220px; height: 220px; }
  .error-code { font-size: 96px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { width: 100%; }
  .stats { grid-template-columns: 1fr; }
}
