/* ============================================
   پەیک - Islamic Kurdish Sorani Website
   Main Stylesheet
   ============================================ */

@font-face {
  font-family: 'Paik';
  src: url('../assets/fonts/paik.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========================
   CSS Custom Properties
   ======================== */
:root {
  --primary:        #1B4332;
  --primary-700:    #2D5A45;
  --primary-600:    #2D6A4F;
  --primary-500:    #40916C;
  --primary-400:    #52B788;
  --primary-300:    #74C69D;
  --primary-200:    #95D5B2;
  --primary-100:    #D8F3DC;
  --primary-50:     #F0FBF3;

  --accent:         #C9930A;
  --accent-light:   #E8A914;
  --accent-pale:    #FEF3C7;
  --accent-dark:    #92690A;

  --bg:             #FAFAF8;
  --bg-alt:         #F4F0E8;
  --bg-dark:        #EDE5D8;
  --bg-card:        #FFFFFF;

  --text:           #111827;
  --text-2:         #374151;
  --text-3:         #6B7280;
  --text-4:         #9CA3AF;

  --border:         #E5E0D8;
  --border-light:   #F0EDE8;

  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(27,67,50,0.08);
  --shadow-md:  0 4px 16px rgba(27,67,50,0.12);
  --shadow-lg:  0 8px 32px rgba(27,67,50,0.14);
  --shadow-xl:  0 16px 48px rgba(27,67,50,0.18);

  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --radius-full: 9999px;

  --font: 'Paik', 'Cairo', sans-serif;
  --nav-height: 72px;

  --transition-fast: 0.15s ease;
  --transition-mid:  0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================
   Reset & Base
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* ========================
   Utilities
   ======================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-100); color: var(--primary-600);
  font-size: 0.82rem; font-weight: 700;
  padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; color: var(--text);
  line-height: 1.3; margin-bottom: 14px;
}
.section-title span { color: var(--primary-500); }

.section-desc {
  font-size: 1.05rem; color: var(--text-3);
  max-width: 580px; margin: 0 auto; line-height: 1.85;
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 700; font-family: var(--font);
  transition: all 0.25s ease; cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-500); color: #fff;
  box-shadow: 0 4px 16px rgba(64,145,108,0.35);
}
.btn-primary:hover {
  background: var(--primary-600);
  box-shadow: 0 6px 24px rgba(64,145,108,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--primary-500);
  border-color: var(--primary-500);
}
.btn-outline:hover {
  background: var(--primary-500); color: #fff;
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(201,147,10,0.35);
}
.btn-accent:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 24px rgba(201,147,10,0.45);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff; color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.15); color: #fff;
  border-color: rgba(255,255,255,0.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ========================
   Navbar
   ======================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(250,250,248,0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
  box-shadow: 0 3px 10px rgba(64,145,108,0.4);
  transition: transform 0.3s ease;
}
.nav-logo:hover .logo-mark { transform: rotate(-5deg) scale(1.05); }
.logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(64,145,108,0.18));
  transition: transform 0.3s ease;
}
.nav-logo:hover .logo-image { transform: rotate(-5deg) scale(1.05); }
.logo-text { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 0.92rem; font-weight: 600; color: var(--text-2);
  transition: all 0.2s ease; position: relative;
}
.nav-link:hover { color: var(--primary-500); background: var(--primary-100); }
.nav-link.active { color: var(--primary-600); background: var(--primary-100); font-weight: 700; }

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

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer; border-radius: var(--radius-xs);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg); z-index: 999;
  padding: 16px 24px 28px;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  transform: translateY(-110%); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.mobile-nav-link {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; color: var(--text-2); transition: all 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary-600); background: var(--primary-100);
}

/* ========================
   Page Hero (Inner Pages)
   ======================== */
.page-hero {
  padding: calc(var(--nav-height) + 70px) 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 60px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 60px);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 64px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  font-size: 0.82rem; font-weight: 700;
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.78);
  max-width: 560px; margin: 0 auto; line-height: 1.85;
}

/* ========================
   Home Hero
   ======================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 55%, var(--primary-500) 100%);
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-pattern svg { width: 100%; height: 100%; opacity: 0.07; }
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: rgba(212,160,23,0.2);
  top: -150px; left: -100px;
  animation: floatGlow 9s ease-in-out infinite;
}
.hero-glow-2 {
  width: 450px; height: 450px;
  background: rgba(116,198,157,0.18);
  bottom: -100px; right: -80px;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.hero-text { animation: slideInRight 0.8s ease forwards; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.95); font-size: 0.85rem; font-weight: 700;
  padding: 8px 18px; border-radius: var(--radius-full);
  margin-bottom: 28px; border: 1px solid rgba(255,255,255,0.2);
}
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--accent-light);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 24px;
}
.hero-title .highlight { color: var(--accent-light); }
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  line-height: 1.85; margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack {
  position: relative; width: 360px; height: 400px;
  animation: slideInLeft 0.8s ease 0.2s both;
}
.hero-card-bg {
  position: absolute;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-card-bg:nth-child(1) { inset: 0; transform: rotate(-7deg); }
.hero-card-bg:nth-child(2) { inset: 10px; transform: rotate(-2.5deg); }
.hero-card-main {
  position: absolute; inset: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 36px 28px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 16px;
}
.hero-card-icon { font-size: 4.5rem; line-height: 1; }
.hero-card-title { font-size: 1.5rem; font-weight: 900; color: #fff; }
.hero-card-sub { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.hero-stats-row { display: flex; gap: 24px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.6rem; font-weight: 900; color: var(--accent-light); }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ========================
   Stats
   ======================== */
.stats-section { padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.stat-item {
  padding: 36px 24px; text-align: center;
  border-left: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-item:last-child { border-left: none; }
.stat-item:hover { background: var(--bg-alt); }
.stat-icon { font-size: 2rem; margin-bottom: 10px; }
.stat-num {
  font-size: 2.4rem; font-weight: 900; color: var(--primary-500);
  line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: var(--text-3); font-weight: 500; }

/* ========================
   Category Cards (Home)
   ======================== */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 32px 24px;
  transition: all 0.35s ease; cursor: pointer; position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  opacity: 0; transition: opacity 0.35s ease;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); border-color: transparent; }
.category-card > * { position: relative; z-index: 1; }
.category-card:hover .cat-icon { background: rgba(255,255,255,0.18); }
.category-card:hover .cat-title,
.category-card:hover .cat-arrow { color: #fff; }
.category-card:hover .cat-desc { color: rgba(255,255,255,0.78); }
.category-card:hover .cat-count { color: rgba(255,255,255,0.65); }
.category-card:hover .cat-arrow-wrap { background: rgba(255,255,255,0.18); }

.cat-icon {
  width: 60px; height: 60px;
  background: var(--primary-100); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin-bottom: 20px; transition: background 0.35s;
}
.cat-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; transition: color 0.35s; }
.cat-desc { font-size: 0.875rem; color: var(--text-3); line-height: 1.75; margin-bottom: 20px; transition: color 0.35s; }
.cat-footer { display: flex; align-items: center; justify-content: space-between; }
.cat-count { font-size: 0.8rem; color: var(--text-4); transition: color 0.35s; }
.cat-arrow-wrap {
  width: 34px; height: 34px; background: var(--primary-100);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.35s; color: var(--primary-500); font-size: 1.1rem;
}

/* ========================
   News Cards
   ======================== */
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 24px;
}
.news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s ease; cursor: pointer; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.news-img-wrap {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative;
}
.news-img-wrap.featured { height: 280px; }
.news-tag {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  background: var(--accent); color: #fff;
}
.news-body { padding: 22px; }
.news-date { font-size: 0.75rem; color: var(--text-4); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.news-title { font-size: 0.98rem; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; transition: color 0.2s; }
.news-card:hover .news-title { color: var(--primary-500); }
.news-excerpt { font-size: 0.85rem; color: var(--text-3); line-height: 1.7; }
.news-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.news-read-more { font-size: 0.82rem; color: var(--primary-500); font-weight: 600; }

/* ========================
   Quote Section
   ======================== */
.quote-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  position: relative; overflow: hidden;
}
.quote-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 80px);
}
.quote-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.quote-icon { font-size: 3.5rem; opacity: 0.25; margin-bottom: 24px; display: block; }
.quote-text { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: #fff; line-height: 1.65; margin-bottom: 24px; }
.quote-source { font-size: 0.92rem; color: rgba(255,255,255,0.55); }
.quote-source span { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ========================
   HUJRA PAGE
   ======================== */
.progress-banner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 32px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px; box-shadow: var(--shadow-sm);
}
.progress-banner-icon { font-size: 2.5rem; flex-shrink: 0; }
.progress-banner-info { flex: 1; }
.progress-banner-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.progress-banner-desc { font-size: 0.82rem; color: var(--text-3); margin-bottom: 10px; }
.progress-bar-wrap { height: 8px; background: var(--bg-alt); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-400), var(--primary-500));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-banner-stat { text-align: center; flex-shrink: 0; }
.progress-stat-num { font-size: 2.2rem; font-weight: 900; color: var(--primary-500); display: block; }
.progress-stat-label { font-size: 0.72rem; color: var(--text-4); }

.level-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.level-tab {
  padding: 10px 28px; border-radius: var(--radius-full);
  font-size: 0.92rem; font-weight: 700; color: var(--text-3);
  background: var(--bg-card); border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.25s ease; font-family: var(--font);
}
.level-tab:hover { border-color: var(--primary-400); color: var(--primary-500); }
.level-tab.active {
  background: var(--primary-500); color: #fff;
  border-color: var(--primary-500);
  box-shadow: 0 4px 16px rgba(64,145,108,0.35);
}

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

/* Curriculum Cards */
.curriculum-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all 0.3s ease; position: relative;
}
.curriculum-card:not(.locked):hover {
  box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent;
}
.curriculum-card.locked { opacity: 0.65; }
.curriculum-card.completed { border-color: var(--primary-300); }

.cc-header {
  padding: 22px 22px 18px; position: relative;
  display: flex; align-items: flex-start; gap: 14px;
}
.cc-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.cc-header-info { flex: 1; }
.cc-title { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.cc-level-badge {
  font-size: 0.72rem; font-weight: 700; padding: 2px 10px;
  border-radius: var(--radius-full); display: inline-block;
}
.lv-1 { background: #DBEAFE; color: #1D4ED8; }
.lv-2 { background: var(--accent-pale); color: var(--accent-dark); }
.lv-3 { background: #FCE7F3; color: #BE185D; }

.cc-badge {
  position: absolute; top: 14px; left: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.lock-badge { background: rgba(107,114,128,0.15); color: var(--text-3); }
.done-badge { background: var(--primary-500); color: #fff; box-shadow: 0 2px 8px rgba(64,145,108,0.4); }

.cc-body { padding: 0 22px 22px; }
.cc-desc { font-size: 0.85rem; color: var(--text-3); line-height: 1.75; margin-bottom: 14px; }
.cc-meta { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.cc-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-4); }
.cc-meta-icon { font-size: 0.85rem; }

.cc-progress { margin-bottom: 16px; }
.cc-progress-label { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-4); margin-bottom: 5px; }
.cc-progress-bar { height: 6px; background: var(--bg-alt); border-radius: var(--radius-full); overflow: hidden; }
.cc-progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-400), var(--primary-500));
  transition: width 1s ease 0.4s; width: 0%;
}

.cc-prereqs { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.cc-prereqs-label { font-size: 0.72rem; font-weight: 700; color: var(--text-3); margin-bottom: 7px; }
.cc-prereq-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-prereq-tag {
  font-size: 0.7rem; padding: 2px 9px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-3);
  transition: all 0.2s;
}
.cc-prereq-tag.done { background: var(--primary-100); border-color: var(--primary-300); color: var(--primary-600); }

.cc-locked-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--bg-alt);
  border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--text-3);
  margin-bottom: 0;
}

.hujra-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  margin-bottom: 28px;
}
.hujra-intro-desc {
  max-width: none;
  margin: 0;
}
.hujra-intro-aside {
  display: flex;
  align-items: stretch;
}
.hujra-mini-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(201,147,10,0.12), rgba(27,67,50,0.08));
  border: 1px solid rgba(201,147,10,0.22);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.hujra-mini-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.hujra-mini-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.hujra-mini-card p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.8;
}

.hujra-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.hujra-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.hujra-summary-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-4);
  margin-bottom: 10px;
}
.hujra-summary-card strong {
  display: block;
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.hujra-summary-card p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.curriculum-rationale {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 10px;
}
.cc-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-lesson-count {
  font-size: 0.78rem;
  color: var(--text-4);
}
.cc-action-btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hujra-dashboard-section {
  background: linear-gradient(180deg, rgba(240,251,243,0.5), rgba(244,240,232,0.85));
}
.hujra-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
.hujra-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.hujra-panel-head {
  margin-bottom: 22px;
}
.hujra-panel-head h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 6px;
}
.hujra-panel-head p {
  font-size: 0.85rem;
  color: var(--text-3);
}
.profile-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.profile-form.compact {
  grid-template-columns: 1fr;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.profile-field span {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 700;
}
.profile-field input,
.profile-field textarea,
.profile-field select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(116,198,157,0.18);
}
.profile-field-wide {
  grid-column: 1 / -1;
}
.profile-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.dashboard-stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 18px;
}
.dashboard-stat-card strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.dashboard-stat-card span {
  font-size: 0.78rem;
  color: var(--text-3);
}
.dashboard-data-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.certificate-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.certificate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(254,243,199,0.6), rgba(255,255,255,0.95));
}
.certificate-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.certificate-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.certificate-card p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--bg-alt);
  color: var(--text-3);
  font-size: 0.88rem;
  line-height: 1.8;
}

.hujra-modal-box {
  width: min(720px, calc(100vw - 40px));
}
.hujra-fullscreen-modal {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}
.lesson-modal-box.hujra-fullscreen-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.hujra-force-modal .lesson-modal-backdrop {
  pointer-events: none;
}
.hujra-category-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.category-rationale-box,
.lesson-points-box,
.category-quiz-box {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.category-rationale-box strong,
.lesson-points-box strong,
.category-quiz-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 8px;
}
.category-rationale-box span,
.category-quiz-box p {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.8;
}
.lesson-unit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lesson-unit {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fff;
}
.lesson-unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lesson-unit-kicker {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-4);
  margin-bottom: 5px;
}
.lesson-unit h4 {
  font-size: 0.98rem;
  color: var(--text);
}
.lesson-unit-duration {
  font-size: 0.75rem;
  color: var(--text-4);
}
.lesson-unit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lesson-complete-badge {
  font-size: 0.78rem;
  color: var(--primary-600);
  background: var(--primary-100);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.lesson-reading-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lesson-reading-meta span {
  font-size: 0.78rem;
  color: var(--text-4);
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}
.lesson-points-box ul {
  padding-right: 18px;
  list-style: disc;
}
.lesson-points-box li {
  color: var(--text-3);
  font-size: 0.84rem;
  line-height: 1.8;
}

.quiz-question {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.quiz-question h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.7;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.quiz-option input {
  margin-top: 4px;
}
.quiz-option span {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Color headers per subject */
.cc-header.green  { background: linear-gradient(135deg, #D8F3DC, #B7E4C7); }
.cc-header.blue   { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.cc-header.purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.cc-header.teal   { background: linear-gradient(135deg, #CCFBF1, #99F6E4); }
.cc-header.gold   { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.cc-header.rose   { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }
.cc-header.indigo { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); }
.cc-header.orange { background: linear-gradient(135deg, #FFEDD5, #FED7AA); }
.cc-header.gray   { background: var(--bg-alt); }

/* ========================
   MAKHTOUTAT PAGE
   ======================== */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
  color: var(--text-3); background: var(--bg-card); border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.filter-btn:hover { border-color: var(--primary-400); color: var(--primary-500); }
.filter-btn.active { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }

.manuscript-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.manuscript-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: all 0.3s ease;
}
.manuscript-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.manuscript-cover {
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; position: relative;
}
.manuscript-cover-label {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.68rem; font-weight: 800; background: var(--accent); color: #fff;
}
.manuscript-info { padding: 16px; }
.manuscript-title { font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 5px; line-height: 1.4; transition: color 0.2s; }
.manuscript-card:hover .manuscript-title { color: var(--primary-500); }
.manuscript-author { font-size: 0.78rem; color: var(--text-3); margin-bottom: 10px; }
.manuscript-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.manuscript-tag { font-size: 0.68rem; padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-alt); color: var(--text-3); }

/* ========================
   MEDIA PAGE
   ======================== */
.media-tabs-wrap {
  display: flex; gap: 4px; background: var(--bg-alt);
  padding: 4px; border-radius: var(--radius-full);
  width: fit-content; margin: 0 auto 48px;
  max-width: 100%;
  overflow-x: auto;
}
.media-tab {
  padding: 10px 30px; border-radius: var(--radius-full);
  font-size: 0.92rem; font-weight: 700; color: var(--text-3);
  cursor: pointer; transition: all 0.25s; font-family: var(--font); border: none; background: none;
}
.media-tab.active { background: var(--bg-card); color: var(--primary-600); box-shadow: var(--shadow-sm); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: all 0.3s ease;
}
.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.video-thumb {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; cursor: pointer;
}
.play-btn {
  position: absolute; width: 54px; height: 54px;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  font-size: 1.3rem; color: var(--primary-600);
}
.video-card:hover .play-btn {
  background: var(--primary-500); color: #fff;
  box-shadow: 0 6px 24px rgba(64,145,108,0.5); transform: scale(1.1);
}
.video-info { padding: 18px; }
.video-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.video-meta { font-size: 0.78rem; color: var(--text-4); display: flex; gap: 12px; }

.audio-list { display: flex; flex-direction: column; gap: 12px; }
.audio-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px;
  display: flex; align-items: center; gap: 18px;
  cursor: pointer; transition: all 0.25s;
}
.audio-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-300); }
.audio-play {
  width: 46px; height: 46px; background: var(--primary-100);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.25s; font-size: 1.2rem; color: var(--primary-500);
}
.audio-card:hover .audio-play { background: var(--primary-500); color: #fff; box-shadow: 0 4px 16px rgba(64,145,108,0.35); }
.audio-info { flex: 1; }
.audio-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.audio-desc { font-size: 0.8rem; color: var(--text-3); }
.audio-duration { font-size: 0.8rem; color: var(--text-4); font-weight: 700; flex-shrink: 0; }

/* ========================
   HAWAL (NEWS) PAGE
   ======================== */
.hawal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

.featured-news {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 32px; cursor: pointer; transition: all 0.3s;
}
.featured-news:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.featured-img { height: 300px; display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; }
.featured-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 14px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 800; background: var(--accent); color: #fff;
}
.featured-body { padding: 28px; }
.featured-title { font-size: 1.4rem; font-weight: 900; color: var(--text); line-height: 1.4; margin-bottom: 12px; transition: color 0.2s; }
.featured-news:hover .featured-title { color: var(--primary-500); }
.featured-excerpt { font-size: 0.92rem; color: var(--text-3); line-height: 1.8; margin-bottom: 20px; }
.featured-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-4); }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-list-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px;
  display: flex; gap: 16px; cursor: pointer; transition: all 0.25s;
}
.news-list-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-300); }
.news-list-thumb {
  width: 88px; height: 88px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.news-list-title { font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 8px; transition: color 0.2s; }
.news-list-card:hover .news-list-title { color: var(--primary-500); }
.news-list-meta { font-size: 0.75rem; color: var(--text-4); display: flex; gap: 10px; }

.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px; margin-bottom: 24px;
}
.sidebar-title {
  font-size: 0.95rem; font-weight: 800; color: var(--text);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
  display: flex; align-items: center; gap: 8px;
}
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; gap: 10px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); transition: background 0.2s; }
.recent-item:hover { background: var(--bg-alt); }
.recent-thumb { width: 56px; height: 56px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.recent-title { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 4px; }
.recent-date { font-size: 0.72rem; color: var(--text-4); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item {
  padding: 5px 14px; border-radius: var(--radius-full); font-size: 0.8rem;
  color: var(--text-3); background: var(--bg-alt); cursor: pointer; transition: all 0.2s;
  font-family: var(--font); border: none;
}
.tag-cloud-item:hover { background: var(--primary-100); color: var(--primary-600); }

/* ========================
   Footer
   ======================== */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.78);
  padding: 70px 0 0; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark {
  width: 40px; height: 40px; background: rgba(255,255,255,0.13);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
}
.footer-logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.footer-logo-text { font-size: 1.4rem; font-weight: 900; color: #fff; }
.footer-logo-text span { color: var(--accent-light); }
.footer-desc { font-size: 0.875rem; line-height: 1.85; margin-bottom: 24px; color: rgba(255,255,255,0.6); }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all 0.25s;
  color: rgba(255,255,255,0.75); border: none;
}
.social-btn:hover { background: rgba(255,255,255,0.2); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-size: 0.92rem; font-weight: 800; color: #fff; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.85rem; color: rgba(255,255,255,0.58); transition: color 0.2s; cursor: pointer; }
.footer-link:hover { color: rgba(255,255,255,0.95); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* ========================
   Animations
   ======================== */
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp    { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatGlow    { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-20px); } }
@keyframes pulse        { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.7; } }
@keyframes spin         { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeSlideUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* Loading Screen */
.loading-overlay {
  position: fixed; inset: 0; background: var(--primary); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.lottie-loader { width: 240px; height: 240px; }

/* ========================
   Modal & Toast (Hujra)
   ======================== */
.lesson-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.lesson-modal.open { opacity: 1; }
.lesson-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(27,67,50,0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lesson-modal-box {
  position: relative; z-index: 1;
  background: var(--bg-card); border-radius: var(--radius-lg);
  width: min(480px, calc(100vw - 40px));
  box-shadow: var(--shadow-xl); overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.lesson-modal.open .lesson-modal-box { transform: translateY(0) scale(1); }
.lesson-modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  padding: 24px 28px; display: flex; align-items: center; justify-content: space-between;
}
.lesson-modal-header h3 { color: #fff; font-size: 1.1rem; font-weight: 800; }
.lesson-modal-close {
  width: 32px; height: 32px; background: rgba(255,255,255,0.15);
  border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 0.85rem; transition: background 0.2s;
}
.lesson-modal-close:hover { background: rgba(255,255,255,0.3); }
.lesson-modal-body {
  padding: 28px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.lesson-modal-body p { font-size: 0.95rem; color: var(--text-3); line-height: 1.8; margin-bottom: 24px; }
.lesson-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 3000;
  opacity: 0; transition: all 0.35s ease; white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========================
   Responsive
   ======================== */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .manuscript-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .level-content { grid-template-columns: repeat(2, 1fr); }
  .hujra-intro,
  .hujra-dashboard-grid { grid-template-columns: 1fr; }
  .hujra-summary-grid { grid-template-columns: 1fr; }
  .hawal-layout { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .section-desc { font-size: 0.98rem; }
  .btn { white-space: normal; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .page-hero { padding: calc(var(--nav-height) + 52px) 0 68px; }
  .page-hero::after { height: 44px; clip-path: ellipse(75% 100% at 50% 100%); }
  .page-hero-title { font-size: 1.9rem; }
  .page-hero-desc { font-size: 0.98rem; }
  .category-grid { grid-template-columns: 1fr; }
  .level-content { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .manuscript-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .progress-banner { flex-direction: column; text-align: center; }
  .progress-banner { padding: 22px 20px; gap: 18px; }
  .filter-bar { gap: 8px; margin-bottom: 28px; }
  .filter-btn { padding: 8px 16px; }
  .media-tabs-wrap { margin-bottom: 32px; }
  .media-tab { padding: 10px 18px; white-space: nowrap; flex: 0 0 auto; }
  .audio-card { flex-wrap: wrap; align-items: flex-start; }
  .audio-duration { width: 100%; text-align: right; }
  .featured-meta { flex-wrap: wrap; gap: 10px 16px; }
  .news-list-card { align-items: flex-start; }
  .news-list-meta { flex-wrap: wrap; }
  .recent-item { align-items: flex-start; }
  .lesson-modal-header { padding: 20px 22px; }
  .lesson-modal-body { padding: 22px; }
  .lesson-modal-actions > * { width: 100%; justify-content: center; }
  .lesson-modal-box.hujra-fullscreen-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-desc { max-width: 100%; }
  .profile-form { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .certificate-card,
  .lesson-unit-head,
  .lesson-unit-actions { align-items: flex-start; }
  .certificate-card { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .mobile-nav { padding: 14px 16px 22px; }
  .manuscript-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 28px 18px; border-left: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .hero-title { font-size: 2rem; }
  .logo-image { width: 38px; height: 38px; }
  .footer-logo-image { width: 36px; height: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .news-body,
  .featured-body,
  .sidebar-widget,
  .audio-card { padding-left: 16px; padding-right: 16px; }
  .news-list-card { flex-direction: column; }
  .news-list-thumb { width: 100%; height: 160px; }
  .featured-img { height: 220px; font-size: 4rem; }
  .progress-banner { padding: 20px 16px; }
  .lesson-modal-header { padding: 16px 18px; }
  .lesson-modal-body { padding: 18px 16px; }
  .toast {
    white-space: normal;
    text-align: center;
    padding: 12px 18px;
  }
  .level-tab { padding: 8px 18px; font-size: 0.85rem; }
}
