/* ═══════════════════════════════════════════════════════════════
   MAWZOON — نظام التصميم الموحَّد
   أكاديمية ابن الجزري الدولية
   Version: 2.0
═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  /* ── الألوان الأساسية ── */
  --gold:        #C9952A;
  --gold-lt:     #E0B84A;
  --gold-dk:     #A07820;
  --gold-bg:     rgba(201, 149, 42, 0.08);
  --gold-border: rgba(201, 149, 42, 0.25);

  /* ── الخلفيات ── */
  --bg:          #F9F7F2;
  --bg-alt:      #F2EDE4;
  --white:       #FFFFFF;
  --card-bg:     #FFFFFF;

  /* ── النصوص ── */
  --dark:        #1A1A1A;
  --text:        #2C2C2C;
  --text-light:  #555555;
  --muted:       #7A7A7A;

  /* ── الحدود ── */
  --border:      #E8E0D0;
  --border-dark: #D0C8B8;

  /* ── حالات ── */
  --success:     #198754;
  --danger:      #DC3545;
  --warning:     #FFC107;
  --info:        #0DCAF0;

  /* ── الخطوط ── */
  --font-ui:     'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --font-quran:  'Noto Naskh Arabic', 'Amiri', serif;

  /* ── المسافات ── */
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-full: 9999px;

  /* ── الظلال ── */
  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.06);
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.12);

  /* ── اللغة ── */
  --dir: rtl;

  /* ═══════════════════════════════════════════════════════════════
     مقياس الفراغات — Spacing Scale
  ═══════════════════════════════════════════════════════════════ */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;

  /* ═══════════════════════════════════════════════════════════════
     مقياس الخطوط — Typography Scale
  ═══════════════════════════════════════════════════════════════ */
  --text-xs:   0.72rem;   /* 11.5px */
  --text-sm:   0.83rem;   /* 13px   */
  --text-base: 0.93rem;   /* 15px   */
  --text-md:   1rem;      /* 16px   */
  --text-lg:   1.1rem;    /* 17.6px */
  --text-xl:   1.25rem;   /* 20px   */
  --text-2xl:  1.5rem;    /* 24px   */
  --text-3xl:  1.875rem;  /* 30px   */
  --text-4xl:  2.25rem;   /* 36px   */

  /* ═══════════════════════════════════════════════════════════════
     مقياس z-index — Z-Index Scale
  ═══════════════════════════════════════════════════════════════ */
  --z-base:    1;
  --z-sticky:  100;
  --z-nav:     200;
  --z-overlay: 500;
  --z-modal:   1000;
  --z-toast:   9999;

  /* ═══════════════════════════════════════════════════════════════
     مقياس الرمادي — للوحات التحكم والنماذج
  ═══════════════════════════════════════════════════════════════ */
  --gray-50:    #F9F9F9;
  --gray-100:   #F3F3F3;
  --gray-200:   #E8E8E8;
  --gray-300:   #D0D0D0;
  --gray-400:   #A0A0A0;
  --gray-500:   #707070;
  --gray-700:   #404040;
  --gray-900:   #1A1A1A;  /* = --dark */

  /* ═══════════════════════════════════════════════════════════════
     أسماء بديلة موحَّدة (Canonical Aliases)
     — تُستخدم في الصفحات كبديل لأسماء مختلفة لنفس اللون
  ═══════════════════════════════════════════════════════════════ */
  --gold-dark:   #A07820;              /* يُعادل --gold-dk */
  --gold-bright: #D4A017;             /* نسخة أكثر إشراقاً من الذهبي */
  --gold-line:   rgba(201,149,42,0.22); /* خط / حد ذهبي خفيف */
  --gold-dim:    rgba(201,149,42,0.12); /* طبقة ذهبية شبه شفافة */
  --off-white:   #F2EDE4;              /* يُعادل --bg-alt */
  --surface:     #FFFFFF;              /* يُعادل --white (سطح البطاقات) */
  --text-mid:    #555555;              /* يُعادل --text-light */
  --text-soft:   #7A7A7A;              /* يُعادل --muted */
  --black-soft:  #141414;              /* خلفية داكنة متوسطة */
  --black-card:  #1C1C1C;             /* بطاقة داكنة (الصفحة الرئيسية) */
}

/* ─── LTR Override (English / Indonesian) ─── */
[dir="ltr"] {
  --dir: ltr;
}

/* ═══════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  direction: var(--dir);
}

/* ═══ NAVBAR Phase 2 — محذوف (مستبدَل بـ Phase 3 في الأسفل) ═══
   كانت تسبب تعارضاً: .mw-nav-links a { color: white } يطغى على Phase 3
═══════════════════════════════════════════════════════════════ */
/* .mw-nav-brand و .mw-nav-actions و .mw-nav-toggle لا تُستخدم في أي صفحة */

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */

/* عنوان الصفحة */
.mw-page-title {
  font-family: var(--font-quran);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 8px;
}
.mw-page-title span,
.mw-page-title em {
  color: var(--gold);
  font-style: normal;
}

/* نص قرآني / تجويد */
.quran-text,
.tajweed-text {
  font-family: var(--font-quran);
  font-size: 1.3rem;
  line-height: 2.2;
  color: var(--dark);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.mw-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mw-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.mw-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mw-card-header h3 {
  font-family: var(--font-quran);
  font-size: 1.05rem;
  color: var(--dark);
}
.mw-card-body {
  padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.mw-btn-primary {
  background: var(--gold);
  color: var(--white);
}
.mw-btn-primary:hover { background: var(--gold-lt); }

.mw-btn-dark {
  background: var(--dark);
  color: var(--white);
}
.mw-btn-dark:hover { background: #333; }

.mw-btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.mw-btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.mw-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.mw-btn-ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}

.mw-btn-sm { padding: 7px 16px; font-size: 0.83rem; }
.mw-btn-lg { padding: 13px 32px; font-size: 1rem; }
.mw-btn-pill { border-radius: var(--radius-full); }

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════════════════ */
.mw-input,
.mw-select,
.mw-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  direction: inherit;
}
.mw-input:focus,
.mw-select:focus,
.mw-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,149,42,0.1);
}
.mw-input:disabled,
.mw-select:disabled {
  background: #f5f5f5;
  color: var(--muted);
  cursor: not-allowed;
}
.mw-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.mw-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   BADGE / LEVEL INDICATORS
═══════════════════════════════════════════════════════════════ */
.mw-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.mw-badge-gold    { background: var(--gold-bg); color: var(--gold-dk); border: 1px solid var(--gold-border); }
.mw-badge-green   { background: #d4edda; color: #155724; }
.mw-badge-yellow  { background: #fff3cd; color: #856404; }
.mw-badge-red     { background: #f8d7da; color: #721c24; }
.mw-badge-blue    { background: #d1ecf1; color: #0c5460; }
.mw-badge-new     { background: var(--gold); color: var(--dark); }

/* ═══════════════════════════════════════════════════════════════
   TOAST / ALERTS
═══════════════════════════════════════════════════════════════ */
.mw-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s;
  pointer-events: none;
  border-inline-start: 4px solid var(--gold);
  min-width: 200px;
  text-align: center;
}
.mw-toast.show        { opacity: 1; transform: translateX(-50%) translateY(0); }
.mw-toast.success     { border-inline-start-color: var(--success); }
.mw-toast.error       { border-inline-start-color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════════════ */
.mw-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.mw-divider::before,
.mw-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold), transparent);
}
.mw-divider-text {
  font-family: var(--font-quran);
  font-size: 0.9rem;
  color: var(--gold-dk);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════════════════ */
.mw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.mw-section {
  padding: 60px 0;
}
.mw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mw-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.mw-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.mw-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(201,149,42,0.15);
}
.mw-footer span { color: var(--gold); }
.mw-footer-logo {
  height: 44px;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 2px 8px rgba(201,149,42,0.3));
}
.mw-footer p { font-size: 0.82rem; margin: 2px 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mw-nav { padding: 0 16px; }
  .mw-nav-links { display: none; }
  .mw-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    inset-inline-start: 0;
    width: 100%;
    background: var(--dark);
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 199;
    gap: 2px;
  }
  .mw-nav-toggle { display: block; }
  .mw-container { padding: 0 16px; }
  .mw-grid-2,
  .mw-grid-3,
  .mw-grid-4 { grid-template-columns: 1fr; }

  /* ══════════════════════════════════════
     BOTTOM BAR — التابات على الجوال
  ══════════════════════════════════════ */
  .mw-tabs-bar {
    position: fixed !important;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    background: var(--white) !important;
    padding: 6px 8px env(safe-area-inset-bottom, 6px) !important;
    margin: 0 !important;
    z-index: 300;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    gap: 2px !important;
  }
  .mw-tab-btn {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 4px !important;
    font-size: 0.65rem !important;
    color: var(--muted) !important;
    border-radius: 8px !important;
  }
  .mw-tab-btn .tab-icon { font-size: 1.2rem; }
  .mw-tab-btn.active {
    background: var(--gold-bg) !important;
    color: var(--gold) !important;
    box-shadow: none !important;
  }

  /* iframe يملأ الشاشة مع مراعاة الـ bottom bar */
  .mw-tab-frame {
    height: calc(100vh - 68px - 70px) !important;
    border-radius: 0 !important;
  }

  /* إضافة padding للمحتوى يمنع الـ bottom bar من إخفائه */
  .mw-tab-panel.active {
    padding-bottom: 70px;
  }
  #tab-home {
    padding-bottom: 80px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — FULL MOBILE / TABLET / DESKTOP
   أكاديمية ابن الجزري الدولية — موزون v3.0
═══════════════════════════════════════════════════════════════ */

/* ─── متغيرات الخطوط على الموبايل ─── */
@media (max-width: 480px) {
  :root {
    --fs-xs:  0.72rem;
    --fs-sm:  0.82rem;
    --fs-md:  0.92rem;
    --fs-lg:  1.05rem;
    --fs-xl:  1.25rem;
    --fs-2xl: 1.55rem;
    --fs-3xl: 1.85rem;
  }
}

/* ═════════════════════════════════════
   TABLET — 640px → 1024px
═════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Dashboard: stack sidebar + content */
  .mw-dash-layout {
    grid-template-columns: 1fr !important;
  }
  .mw-dash-sidebar {
    width: 100% !important;
    position: static !important;
  }
}

@media (max-width: 900px) {
  /* ── Nav ── */
  .mw-nav { padding: 0 20px; }
  .mw-nav-links { display: none; }
  .mw-nav-toggle { display: flex !important; }

  /* ── Grids collapse ── */
  .mw-grid-3 { grid-template-columns: repeat(2,1fr); }
  .mw-grid-4 { grid-template-columns: repeat(2,1fr); }

  /* ── Card stacking ── */
  .mw-card-row {
    flex-direction: column !important;
    gap: 12px;
  }

  /* ── Dashboard main ── */
  .main, [class*="dash-main"] {
    grid-template-columns: 1fr !important;
    padding: 0 16px !important;
  }

  /* ── Section padding ── */
  section { padding-left: 5% !important; padding-right: 5% !important; }
}

/* ═════════════════════════════════════
   MOBILE — < 640px
═════════════════════════════════════ */
@media (max-width: 640px) {

  /* ──────────────────────────────────
     NAV — Hamburger
  ────────────────────────────────── */
  .mw-nav {
    padding: 0 16px;
    height: 60px;
  }
  .mw-nav-brand img { height: 32px; }
  .mw-nav-links { display: none; }
  .mw-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    inset-inline-start: 0;
    width: 100%;
    background: var(--dark);
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 9990;
    gap: 4px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .mw-nav-links.open a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .mw-nav-toggle { display: flex !important; }
  .mw-lang-wrap { margin-inline-start: auto; }

  /* ──────────────────────────────────
     HERO SECTION
  ────────────────────────────────── */
  .hero, .hero-section {
    padding: 48px 16px 40px !important;
    text-align: center !important;
  }
  .hero-title, h1.hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.35 !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
  }
  .hero-btns {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .hero-btns a, .hero-btns button {
    width: 100% !important;
    max-width: 320px;
    text-align: center !important;
  }
  .hero-stats {
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
  }

  /* ──────────────────────────────────
     SECTIONS
  ────────────────────────────────── */
  section {
    padding: 48px 16px !important;
  }
  .sec-title {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
    line-height: 1.3 !important;
  }
  .sec-label {
    font-size: 0.75rem !important;
  }
  .sec-sub {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
  }

  /* ──────────────────────────────────
     GRIDS
  ────────────────────────────────── */
  .mw-grid-2,
  .mw-grid-3,
  .mw-grid-4,
  [class*="grid-"][class*="col"] {
    grid-template-columns: 1fr !important;
  }

  /* ──────────────────────────────────
     CARDS
  ────────────────────────────────── */
  .mw-card { padding: 16px !important; border-radius: 12px !important; }
  .mw-card-title { font-size: 1rem !important; }

  /* ──────────────────────────────────
     DASHBOARDS
  ────────────────────────────────── */
  .main,
  [class$="-layout"],
  [class*="dash-grid"] {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }
  .detail-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .detail-stats {
    margin-inline-start: 0 !important;
    width: 100%;
    justify-content: space-between !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  /* Dashboard nav info */
  .nav-info, .nav-info-wrap {
    gap: 8px !important;
  }

  /* ──────────────────────────────────
     TABLES → SCROLLABLE
  ────────────────────────────────── */
  .tbl-wrap, table {
    overflow-x: auto;
    display: block;
    max-width: 100%;
  }
  .tbl { min-width: 500px; }

  /* ──────────────────────────────────
     PRICING CARDS
  ────────────────────────────────── */
  .pricing-grid, .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .plan-card { padding: 20px 16px !important; }

  /* ──────────────────────────────────
     BOOKS PAGE
  ────────────────────────────────── */
  .books-grid, .lib-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .featured-card {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .featured-card img, .book-cover {
    width: 100% !important;
    max-width: 160px !important;
    margin: 0 auto !important;
  }

  /* ──────────────────────────────────
     PDF MODAL
  ────────────────────────────────── */
  .pdf-modal, .modal-box {
    width: 96vw !important;
    max-height: 90vh !important;
    margin: 5vh auto !important;
  }
  .pdf-modal iframe, .modal-box iframe {
    height: 55vh !important;
  }

  /* ──────────────────────────────────
     TAJWEED PAGE
  ────────────────────────────────── */
  .main-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .sidebar {
    position: static !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    border-radius: 12px 12px 0 0 !important;
  }
  .lesson-panel {
    padding: 16px !important;
  }

  /* ──────────────────────────────────
     LOGIN PAGE
  ────────────────────────────────── */
  .login-card, .login-box {
    width: 95vw !important;
    padding: 24px 16px !important;
    margin: 16px auto !important;
  }

  /* ──────────────────────────────────
     CERTIFICATE
  ────────────────────────────────── */
  .cert-paper, .certificate-box {
    padding: 24px 12px !important;
    transform: scale(0.9) !important;
    transform-origin: top center;
  }

  /* ──────────────────────────────────
     FOOTER
  ────────────────────────────────── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }

  /* ──────────────────────────────────
     PROFILE PAGE
  ────────────────────────────────── */
  .profile-grid, .profile-layout {
    grid-template-columns: 1fr !important;
  }
  .profile-avatar-section {
    text-align: center !important;
  }

  /* ──────────────────────────────────
     QURAN GRID (teacher dashboard)
  ────────────────────────────────── */
  .quran-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }

  /* ──────────────────────────────────
     CHAT WIDGET on mobile
  ────────────────────────────────── */
  #mw-chat-panel {
    width: calc(100vw - 24px) !important;
    inset-inline-end: 12px !important;
    bottom: 80px !important;
  }
  #mw-chat-fab {
    inset-inline-end: 16px !important;
    bottom: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

/* ═════════════════════════════════════
   EXTRA SMALL — < 380px
═════════════════════════════════════ */
@media (max-width: 380px) {
  .hero-title, h1.hero-title {
    font-size: 1.45rem !important;
  }
  .sec-title { font-size: 1.25rem !important; }
  .books-grid, .lib-grid {
    grid-template-columns: 1fr !important;
  }
  .mw-tab-btn .tab-lbl {
    font-size: 0.6rem !important;
  }
}

/* ═════════════════════════════════════
   LANDSCAPE PHONES
═════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .mw-nav { height: 52px; }
  .hero, .hero-section {
    padding: 24px 16px !important;
    min-height: auto !important;
  }
  .mw-tab-frame {
    height: calc(100vh - 52px - 64px) !important;
  }
}

/* ═════════════════════════════════════
   PROGRAMS GRID — شبكة البرامج المركزية
   الاستخدام: <div id="mw-programs-placeholder"></div>
═════════════════════════════════════ */
.mw-programs-section {
  padding: 64px 5%;
  background: var(--gray-50, #F9F9F9);
}
.mw-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.mw-prog-card {
  background: var(--surface, #fff);
  border: 1px solid var(--gray-200, #E8E8E8);
  border-radius: 16px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  overflow: hidden;
}
.mw-prog-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  transition: height 0.3s;
}
.mw-prog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-color: var(--gold-line); transform: translateY(-2px); }
.mw-prog-card:hover::before { height: 100%; }
.mw-prog-card--featured {
  border-color: rgba(201,149,42,0.4);
  background: linear-gradient(135deg, #fffbf3, #fff);
}
.mw-prog-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-dim, rgba(201,149,42,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.mw-prog-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.mw-prog-badge--free    { background: #E8F5E9; color: #2E7D32; }
.mw-prog-badge--pro     { background: #EEE8FF; color: #5E35B1; }
.mw-prog-badge--new     { background: #FFF3E0; color: #E65100; }
.mw-prog-badge--ijazah  { background: linear-gradient(135deg,#C9952A,#A87820); color: #fff; border: none; }
.mw-prog-title  { font-family: 'Noto Naskh Arabic', serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.45; }
.mw-prog-desc   { font-size: 0.88rem; color: var(--text-soft, #7A7A7A); line-height: 1.7; margin-bottom: 14px; }
.mw-prog-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.mw-prog-feat   { font-size: 0.82rem; color: var(--text-mid, #555); display: flex; align-items: center; gap: 6px; }
.mw-prog-feat::before { content: '✓'; color: var(--gold); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.mw-prog-card--featured .mw-prog-feat::before { display: none; } /* الإجازة تستخدم نجوم بدل ✓ */
.mw-prog-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 13px; font-weight: 700;
  text-decoration: none;
  background: rgba(201,149,42,0.08);
  border: 1.5px solid rgba(201,149,42,0.3);
  border-radius: 8px; padding: 8px 16px;
  transition: background 0.2s;
}
.mw-prog-link:hover { background: rgba(201,149,42,0.18); }

@media (max-width: 640px) {
  .mw-programs-grid { grid-template-columns: 1fr; }
  .mw-programs-section { padding: 40px 4%; }
}

/* ═════════════════════════════════════
   SEARCH OVERLAY — نظام البحث المركزي
═════════════════════════════════════ */

/* زر البحث — مدمج في شريط السوشيال ميديا (#mw-social-bar) */
.mw-search-bar-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A1A1A;
  border-radius: 8px 0 0 8px;   /* يطابق .mw-social-btn */
  cursor: pointer;
  border: none;
  color: var(--gold);
  font-size: 17px;
  transition: width .25s, background .2s;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
[dir="ltr"] .mw-search-bar-btn { border-radius: 0 8px 8px 0; }
.mw-search-bar-btn:hover {
  width: 54px;
  background: rgba(201,149,42,0.18);
}

/* طبقة النافذة المنبثقة */
.mw-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.88);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  z-index: 9999;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.mw-hidden { display: none !important; }

/* صندوق البحث */
.mw-search-box {
  width: 90%;
  max-width: 600px;
  background: #0b1b33;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(201,149,42,0.18);
}

/* حقل الإدخال */
#mwSearchInput {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  outline: none;
  background: #0f2747;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  direction: rtl;
}
#mwSearchInput:focus { border-color: var(--gold-bright, #D4A017); }
#mwSearchInput::placeholder { color: rgba(255,255,255,0.4); }

/* نتائج البحث */
.mw-search-results {
  margin-top: 14px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,149,42,0.3) transparent;
}
.mw-search-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(212,175,55,0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.92rem;
  transition: background 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mw-search-item:last-child { border-bottom: none; }
.mw-search-item:hover { background: rgba(212,175,55,0.10); }
.mw-search-item-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(201,149,42,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.mw-search-item-icon i { color: var(--gold); font-size: 13px; }
.mw-search-item-body { flex: 1; min-width: 0; }
.mw-search-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mw-search-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Badge التصنيف */
.mw-search-badge {
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 500;
  background: rgba(201,149,42,0.18);
  color: var(--gold);
  border: 1px solid rgba(201,149,42,0.3);
  white-space: nowrap;
}
.mw-search-badge--lesson  { background: rgba(88,130,235,0.15); color: #7ca3f5; border-color: rgba(88,130,235,0.3); }
.mw-search-badge--book    { background: rgba(52,199,89,0.13);  color: #4cde7a; border-color: rgba(52,199,89,0.25); }
.mw-search-badge--faq     { background: rgba(255,159,10,0.13); color: #ffb443; border-color: rgba(255,159,10,0.25); }
.mw-search-badge--feature { background: rgba(175,82,222,0.13); color: #c07de8; border-color: rgba(175,82,222,0.25); }
/* رسالة "لا نتائج" */
.mw-search-empty {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
  padding: 24px 0;
}
/* رسالة "نتائج أكثر" */
.mw-search-more {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 4px;
}

/* ═════════════════════════════════════
   PRINT — الطباعة
═════════════════════════════════════ */
@media print {
  .mw-nav, #mw-social-bar, #mw-chat-fab, #mw-chat-panel,
  .mw-tabs-bar, .notif-wrap, .mw-lang-wrap {
    display: none !important;
  }
  body { background: #fff !important; }
  .cert-paper, .certificate-box {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MAWZOON — SHARED NAVBAR v3
   أبيض ذهبي — RTL — 5 Dropdowns مستقرة
   تقنية: visibility/opacity بدلاً من display:none لمنع الـ flicker
   + pseudo-element bridge لمنع اختفاء الـ dropdown أثناء تحريك الماوس
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   NAVBAR — الحاوية الرئيسية (أبيض ذهبي)
═══════════════════════════════════════════════ */
.mw-nav {
  background: #FFFFFF;
  border-bottom: 1.5px solid rgba(197,168,128,0.30);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav, 200);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 0;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  direction: rtl;
}

/* ─── الشعار ─── */
.mw-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;  /* إزاحة للداخل من الحافة اليمنى */
  margin-left: 48px;
}

.mw-nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(197,168,128,0.40));
  transition: opacity 0.2s, transform 0.2s;
}
.mw-nav-logo img:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* اسم العلامة التجارية — يظهر دائماً */
.mw-nav-brand-text {
  font-family: var(--font-quran);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

/* ─── قائمة الروابط — تملأ المساحة المتبقية ─── */
.mw-nav-links {
  display: flex;
  align-items: stretch;   /* يمتد للارتفاع الكامل للـ nav */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
  justify-content: flex-start;
}

/* ─── عنصر قائمة ─── */
.mw-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* ─── الرابط الرئيسي ─── */
.mw-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #222222;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 12px;
  height: 68px;              /* يمتد لارتفاع الـ nav كاملاً = منطقة hover أكبر */
  border-bottom: 2.5px solid transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.mw-nav-link:hover {
  color: #B8860B;
  background: rgba(197,168,128,0.07);
}

.mw-nav-link--active {
  color: #C5A880 !important;
  font-weight: 700;
  border-bottom-color: #C5A880;
}

/* ─── السهم ▾ ─── */
.mw-nav-arrow {
  font-size: 8px;
  opacity: 0.50;
  transition: transform 0.22s, opacity 0.2s;
  line-height: 1;
  margin-top: 1px;
}

.mw-nav-drop:hover > .mw-nav-link .mw-nav-arrow,
.mw-nav-drop--open > .mw-nav-link .mw-nav-arrow {
  transform: rotate(180deg);
  opacity: 0.9;
  color: #C5A880;
}

/* ─── لوحة الـ Dropdown ─── */
/*
   استخدمنا visibility + opacity بدلاً من display:none
   • يمنح تأخيراً عند الإغلاق (0.15s) لحماية الـ hover
   • يسمح بـ CSS transitions سلسة
   • pointer-events:none يمنع تداخل الـ clicks عند الإخفاء
*/
.mw-nav-drop-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid rgba(197,168,128,0.25);
  border-top: 2.5px solid #C5A880;
  border-radius: 0 0 12px 12px;
  padding: 8px 0 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 999;
  /* ظهور: فوري — اختفاء: بتأخير 150ms لحماية مسار الماوس */
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transition-delay: 0.15s;
  transform: translateY(-4px);
}

/* جسر شفاف يغطي الفجوة بين الـ trigger و الـ panel
   يمنع اختفاء القائمة أثناء تحريك الماوس بشكل قُطري */
.mw-nav-drop-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
  background: transparent;
}

/* فتح الـ dropdown عند Hover — بدون تأخير في الظهور */
.mw-nav-drop:hover > .mw-nav-drop-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;     /* ظهور فوري */
}

/* فتح بـ JS للموبايل */
.mw-nav-drop--open > .mw-nav-drop-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* ─── رأس اللوحة ─── */
/* ─── قائمة البنود الفرعية ─── */
.mw-nav-sub-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}

.mw-nav-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #333333;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}

.mw-nav-sub-link:hover {
  background: rgba(197,168,128,0.09);
  color: #B8860B;
}

.mw-nav-sub-link--active {
  color: #C5A880 !important;
  font-weight: 600;
}

.mw-nav-sub-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  background: #C5A880;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── فاصل بصري بين الأقسام الرئيسية والثانوية ─── */
.mw-nav-sep {
  width: 1px;
  height: 22px;
  background: rgba(197,168,128,0.30);
  margin: 0 8px;
  flex-shrink: 0;
  align-self: center;
}

/* ─── الروابط الثانوية ─── */
.mw-nav-link--secondary {
  font-size: 12.5px !important;
  color: #888888 !important;
  padding: 0 9px !important;
  height: 68px;
}

.mw-nav-link--secondary:hover {
  color: #C5A880 !important;
  background: rgba(197,168,128,0.06) !important;
}

/* ─── الجانب الأيسر (RTL): لغة + دخول ─── */
.mw-nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 16px;    /* RTL: مسافة من القائمة */
}

/* ─── زر تسجيل الدخول ─── */
.mw-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #C5A880;
  color: #1A1A1A !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 22px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(197,168,128,0.30);
}

.mw-nav-login:hover {
  background: #B8940A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(197,168,128,0.40);
}

/* ─── مبدّل اللغة ─── */
.mw-nav .mw-lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(197,168,128,0.40);
  color: #555555;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.mw-nav .mw-lang-toggle:hover {
  border-color: #C5A880;
  color: #C5A880;
  background: rgba(197,168,128,0.06);
}

/* قائمة اللغات */
.mw-nav #langMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #FFFFFF;
  border: 1px solid rgba(197,168,128,0.30);
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 9999;
  direction: rtl;
}

.mw-nav #langMenu button {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #333333;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.mw-nav #langMenu button:hover {
  background: rgba(197,168,128,0.10);
  color: #B8860B;
}

/* ─── Hamburger (موبايل) ─── */
.mw-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-right: auto;   /* RTL: يُدفع لليمين */
  order: 1;
  flex-shrink: 0;
}

.mw-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333333;
  border-radius: 2px;
  transition: all 0.25s;
}

.mw-nav-burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mw-nav-burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mw-nav-burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Backdrop للموبايل ─── */
.mw-nav-backdrop {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(0,0,0,0.35);
  z-index: 199;
  backdrop-filter: blur(2px);
}

.mw-nav-backdrop--show { display: block; }

/* ═══ RESPONSIVE ≤ 1100px (شاشات متوسطة) ═══ */
@media (max-width: 1100px) and (min-width: 901px) {
  .mw-nav { padding: 0 16px; }

  .mw-nav-logo { margin-left: 12px; }
  .mw-nav-logo img { height: 44px; }

  .mw-nav-link {
    font-size: 12.5px;
    padding: 0 8px;
  }

  .mw-nav-link--secondary { padding: 0 6px !important; font-size: 12px !important; }

  .mw-nav-end { gap: 7px; margin-right: 8px; }

  .mw-nav-login { padding: 7px 14px; font-size: 12px; }

  .mw-nav .mw-lang-toggle { padding: 5px 9px; font-size: 11.5px; }
}

/* ═══ RESPONSIVE ≤ 900px (موبايل) ═══ */
@media (max-width: 900px) {
  .mw-nav {
    padding: 0 16px;
    height: 60px;
  }

  /* الـ logo يأتي أولاً (RTL: يمين) */
  .mw-nav-logo {
    margin-left: 0;
    order: 2;
  }
  .mw-nav-logo img { height: 42px; }

  /* الـ burger يكون في اليسار */
  .mw-nav-burger {
    display: flex;
    order: 3;
    margin-right: 0;
    margin-left: auto;
  }

  /* الـ end section */
  .mw-nav-end {
    order: 4;
    margin-right: 0;
    gap: 6px;
  }

  /* الـ langMenu بعض الصفحات يخفيه */
  .mw-nav .mw-lang-toggle { display: none; }

  /* Sidebar من اليمين */
  .mw-nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 290px;
    background: #FFFFFF;
    border-right: none;
    border-left: 2px solid rgba(197,168,128,0.25);
    padding: 16px 0 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 201;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: -4px 0 24px rgba(0,0,0,0.10);
  }

  .mw-nav-links--open { transform: translateX(0); }

  .mw-nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .mw-nav-link {
    height: auto;
    padding: 13px 20px;
    font-size: 14px;
    border-bottom: none;
    border-bottom-color: transparent;
    color: #222222;
  }

  .mw-nav-link:hover {
    background: rgba(197,168,128,0.08);
    color: #B8860B;
    padding-right: 20px;
  }

  .mw-nav-sep { display: none; }

  .mw-nav-link--secondary {
    font-size: 13px !important;
    color: #666666 !important;
    padding: 11px 20px !important;
    height: auto !important;
  }

  /* Dropdown موبايل — ينفتح للأسفل بدون animation */
  .mw-nav-drop-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    background: rgba(197,168,128,0.05);
    padding: 4px 0 8px;
    transition: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .mw-nav-drop--open > .mw-nav-drop-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 400px;
    transition-delay: 0s;
  }

  /* على الموبايل: لا تُفتح الـ dropdown بالـ hover */
  .mw-nav-drop:hover > .mw-nav-drop-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    transition-delay: 0s;
  }

  .mw-nav-drop--open:hover > .mw-nav-drop-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 400px;
  }

  .mw-nav-drop-header { display: none; }

  .mw-nav-sub-link {
    padding: 9px 28px 9px 16px;
    font-size: 13px;
    color: #444444;
    padding-right: 28px;
    transition: none;
  }

  .mw-nav-sub-link:hover {
    padding-right: 28px;     /* بدون حركة في الموبايل */
    background: rgba(197,168,128,0.10);
    color: #B8860B;
  }

  .mw-nav-backdrop { inset: 60px 0 0 0; }
}

/* ═══ شاشات كبيرة ≥ 1400px ═══ */
@media (min-width: 1400px) {
  .mw-nav { padding: 0 48px; }
  .mw-nav-logo { margin-left: 32px; }
  .mw-nav-logo img { height: 54px; }
  .mw-nav-link { font-size: 14px; padding: 0 14px; }
  .mw-nav-end { margin-right: 24px; }
}

/* ═══ إصلاح التباين — نصوص داكنة على خلفيات فاتحة ═══
   يطبّق على الصفحات التي تستخدم الـ navbar الجديد وبطاقاتها
═══════════════════════════════════════════════════════════════ */

/* بطاقات البرامج — عناوين وأوصاف */
.mw-prog-title,
.card-title,
.section-title,
.program-title {
  color: #1A1A1A;
}

.mw-prog-desc,
.card-desc,
.section-desc {
  color: #3D3D3D;
}

/* إصلاح عام: أي عنوان h* على خلفية فاتحة */
.light-bg h1, .light-bg h2, .light-bg h3,
.light-bg h4, .light-bg p,
section:not([class*="dark"]):not([style*="background:#0"]):not([style*="background: #0"]) .section-heading {
  color: #1A1A1A;
}

