/* ══════════ فاهم — تصميم واجهة الطالب ══════════ */
:root {
  --blue: #3E83C9;
  --blue-light: #E8F2FC;
  --blue-mid: #D4E6F8;
  --accent: #F59E0B;
  --accent2: #10B981;
  --dark: #0F172A;
  --mid: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-hover: 0 12px 40px rgba(62,131,201,0.18);
}

/* Base */
.fahm-wrap *,
.fahm-wrap *::before,
.fahm-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.fahm-wrap html { scroll-behavior: smooth; }
.fahm-wrap body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  direction: rtl;
}

/* ══════════ NAVBAR ══════════ */
.fahm-wrap .nav-fahm {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 32px;
  box-shadow: 0 1px 12px rgba(15,23,42,0.06);
}

/* همبرجر — يظهر على الموبايل فقط */
.fahm-wrap .nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0;
  margin-right: auto;
}
.fahm-wrap .nav-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.fahm-wrap .nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.fahm-wrap .nav-hamburger.open span:nth-child(2) { opacity: 0; }
.fahm-wrap .nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* قائمة الموبايل */
.fahm-wrap .nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.4);
  z-index: 298;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.fahm-wrap .nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}
.fahm-wrap .nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 300;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.fahm-wrap .nav-mobile-menu.open { transform: translateX(0); }
body.nav-mobile-open { overflow: hidden; }
.fahm-wrap .nav-mobile-inner {
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fahm-wrap .nav-mobile-link {
  display: block;
  padding: 12px 14px;
  color: var(--mid);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.fahm-wrap .nav-mobile-link:hover { background: var(--bg); color: var(--blue); }
.fahm-wrap .nav-mobile-link.active { background: var(--blue-light); color: var(--blue); }
.fahm-wrap .nav-mobile-link.danger { color: #EF4444; }
.fahm-wrap .nav-mobile-link.danger:hover { background: #FEF2F2; }
.fahm-wrap .nav-mobile-search {
  position: relative;
  margin: 12px 0;
  padding: 0 4px;
}
.fahm-wrap .nav-mobile-search input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
}
.fahm-wrap .nav-mobile-search .nav-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}
.fahm-wrap .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.fahm-wrap .nav-mobile-btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.fahm-wrap .nav-mobile-btn.ghost {
  border: 1.5px solid var(--border);
  color: var(--mid);
  background: var(--white);
}
.fahm-wrap .nav-mobile-btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.fahm-wrap .nav-mobile-btn.primary {
  background: var(--blue);
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(62,131,201,0.3);
}
.fahm-wrap .nav-mobile-btn.primary:hover { background: #3270b3; }
.fahm-wrap .nav-mobile-logout { margin: 0; padding: 0; }
.fahm-wrap .nav-mobile-logout button {
  width: 100%;
  padding: 12px 14px;
  text-align: right;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  color: #EF4444;
}
.fahm-wrap .nav-mobile-logout button:hover { background: #FEF2F2; }

.fahm-wrap .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-left: auto;
  color: inherit;
}

.fahm-wrap .nav-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue) 0%, #3270b3 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(62,131,201,0.35);
}

.fahm-wrap .nav-logo-text { font-weight: 800; font-size: 1rem; color: var(--dark); }

.fahm-wrap .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.fahm-wrap .nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.fahm-wrap .nav-links a:hover,
.fahm-wrap .nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.fahm-wrap .nav-search {
  flex: 1;
  max-width: 280px;
  position: relative;
}

.fahm-wrap .nav-search input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.fahm-wrap .nav-search input:focus { border-color: var(--blue); }

.fahm-wrap .nav-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}

.fahm-wrap .nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.fahm-wrap .nav-actions a { flex-shrink: 0; display: inline-flex; }
.fahm-wrap .nav-actions .btn-ghost,
.fahm-wrap .nav-actions .btn-primary { white-space: nowrap; flex-shrink: 0; }

/* ── User dropdown (logged-in) ── */
.fahm-wrap .nav-fahm .user-dropdown-wrap { position: relative; }
.fahm-wrap .nav-fahm .user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mid);
  transition: all 0.2s;
}
.fahm-wrap .nav-fahm .user-btn:hover { border-color: var(--blue); color: var(--blue); }
.fahm-wrap .nav-fahm .user-btn.open { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.fahm-wrap .nav-fahm .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.fahm-wrap .nav-fahm .user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fahm-wrap .nav-fahm .user-chevron { font-size: 0.65rem; transition: transform 0.2s; color: var(--muted); }
.fahm-wrap .nav-fahm .user-btn.open .user-chevron { transform: rotate(180deg); }

.fahm-wrap .nav-fahm .user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: 0 16px 48px rgba(15,23,42,0.14);
  padding: 8px;
  display: none;
  z-index: 400;
  animation: userDropIn 0.18s ease;
}
.fahm-wrap .nav-fahm .user-dropdown-menu.show { display: block; }
@keyframes userDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fahm-wrap .nav-fahm .user-dropdown-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.fahm-wrap .nav-fahm .user-dropdown-name { font-weight: 800; font-size: 0.9rem; color: var(--dark); }
.fahm-wrap .nav-fahm .user-dropdown-email { font-size: 0.75rem; color: var(--muted); }

.fahm-wrap .nav-fahm .user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--mid);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}
.fahm-wrap .nav-fahm .user-dropdown-item:hover { background: var(--bg); color: var(--blue); }
.fahm-wrap .nav-fahm .user-dropdown-item.danger { color: #EF4444; }
.fahm-wrap .nav-fahm .user-dropdown-item.danger:hover { background: #FEF2F2; color: #EF4444; }
.fahm-wrap .nav-fahm .user-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.fahm-wrap .nav-fahm .user-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.fahm-wrap .btn-ghost {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.fahm-wrap .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.fahm-wrap .btn-primary {
  padding: 8px 18px;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(62,131,201,0.3);
  text-decoration: none;
  display: inline-block;
}

.fahm-wrap .btn-primary:hover { background: #3270b3; transform: translateY(-1px); }

/* ══════════ HERO BAND ══════════ */
.fahm-wrap .hero-band {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  padding: 52px 5% 48px;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .hero-courses {
  background: linear-gradient(135deg, rgba(13,27,75,0.88) 0%, rgba(30,41,59,0.9) 100%), url(https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1400&q=85) center/cover no-repeat;
}
.fahm-wrap .hero-contact {
  background: linear-gradient(135deg, rgba(13,27,75,0.88) 0%, rgba(30,41,59,0.9) 100%), url(https://images.unsplash.com/photo-1543269865-cbf427effbad?w=1400&q=85) center/cover no-repeat;
}

.fahm-wrap .hero-band::before {
  content: '';
  position: absolute;
  top: -80px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(62,131,201,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.fahm-wrap .hero-band::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.fahm-wrap .hero-inner { position: relative; z-index: 1; }

.fahm-wrap .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(62,131,201,0.2);
  border: 1px solid rgba(62,131,201,0.4);
  color: #93C5FD;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.fahm-wrap .hero-band h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.25;
  margin-bottom: 12px;
}

.fahm-wrap .hero-band h1 em {
  font-style: normal;
  color: #60A5FA;
}

.fahm-wrap .hero-band p {
  color: #94A3B8;
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.8;
}

/* ══════════ STAGE FILTER ══════════ */
.fahm-wrap .stage-filter-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  position: sticky;
  top: 68px;
  z-index: 100;
}

.fahm-wrap .stage-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.fahm-wrap .stage-tabs::-webkit-scrollbar { display: none; }

.fahm-wrap .stage-tab {
  flex-shrink: 0;
  padding: 16px 24px;
  border: none;
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fahm-wrap .stage-tab::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.fahm-wrap .stage-tab:hover { color: var(--blue); }

.fahm-wrap .stage-tab.active { color: var(--blue); }

.fahm-wrap .stage-tab.active::after { transform: scaleX(1); }

.fahm-wrap .tab-badge {
  background: var(--blue-mid);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.fahm-wrap .stage-tab.active .tab-badge {
  background: var(--blue);
  color: white;
}

/* ══════════ PAGE LAYOUT ══════════ */
.fahm-wrap .page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 140px);
}

/* ══════════ SIDEBAR ══════════ */
.fahm-wrap .sidebar {
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
  position: sticky;
  top: 116px;
  height: calc(100vh - 116px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.fahm-wrap .sidebar-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 0 6px;
}

.fahm-wrap .grade-item {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.fahm-wrap .grade-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mid);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s;
  text-align: right;
}

.fahm-wrap .grade-toggle:hover { background: var(--bg); color: var(--blue); }
.fahm-wrap .grade-toggle.active { background: var(--blue-light); color: var(--blue); }

.fahm-wrap .grade-arrow { font-size: 0.7rem; transition: transform 0.2s; }

.fahm-wrap .grade-toggle.active .grade-arrow { transform: rotate(90deg); }

.fahm-wrap .grade-subjects {
  display: none;
  padding: 4px 0 6px 0;
}

.fahm-wrap .grade-toggle.active + .grade-subjects { display: block; }

.fahm-wrap .subject-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 20px;
  background: transparent;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  text-align: right;
  transition: all 0.15s;
}

.fahm-wrap .subject-btn:hover { background: var(--bg); color: var(--mid); }

.fahm-wrap .subject-btn.active {
  background: var(--blue-light);
  color: var(--blue);
}

.fahm-wrap .subject-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ══════════ CONTENT AREA ══════════ */
.fahm-wrap .content-area { padding: 36px 40px; }

.fahm-wrap .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.fahm-wrap .section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fahm-wrap .section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
}

.fahm-wrap .courses-count {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ══════════ COURSE GRID ══════════ */
.fahm-wrap .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ══════════ COURSE CARD ══════════ */
.fahm-wrap .course-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  animation: cardIn 0.4s ease both;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fahm-wrap .course-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.fahm-wrap .card-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.fahm-wrap .card-subject-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.fahm-wrap .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fahm-wrap .card-subject {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.fahm-wrap .card-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.fahm-wrap .card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
  flex: 1;
}

.fahm-wrap .card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.fahm-wrap .card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fahm-wrap .tag {
  background: var(--bg);
  color: var(--mid);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.fahm-wrap .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.fahm-wrap .card-stats {
  display: flex;
  gap: 12px;
}

.fahm-wrap .card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.fahm-wrap .btn-card {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 9px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.fahm-wrap .btn-card:hover { background: #3270b3; transform: scale(1.03); }

/* ══════════ GRADE DIVIDER ══════════ */
.fahm-wrap .grade-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 22px;
}

.fahm-wrap .grade-divider-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mid);
  white-space: nowrap;
}

.fahm-wrap .grade-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════ EMPTY STATE ══════════ */
.fahm-wrap .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: none;
}

.fahm-wrap .empty-state.show { display: block; }
.fahm-wrap .empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.5; }
.fahm-wrap .empty-text { font-size: 0.95rem; font-weight: 600; }
.fahm-wrap .empty-title { font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.fahm-wrap .empty-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.fahm-wrap .btn-browse { background: var(--blue); color: white; border: none; border-radius: 10px; padding: 12px 28px; font-family: 'Cairo', sans-serif; font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(62,131,201,0.3); text-decoration: none; display: inline-block; }
.fahm-wrap .btn-browse:hover { background: #3270b3; transform: translateY(-1px); color: white; }

/* ══════════ FAVORITES PAGE ══════════ */
.fahm-wrap .favorites-hero .hero-band::before { background: radial-gradient(circle, rgba(239,68,68,0.15) 0%, transparent 65%); }
.fahm-wrap .favorites-hero .hero-band::after { background: radial-gradient(circle, rgba(62,131,201,0.12) 0%, transparent 65%); }
.fahm-wrap .favorites-hero .hero-eyebrow { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.35); color: #FCA5A5; }
.fahm-wrap .favorites-hero .hero-band h1 em { color: #FCA5A5; }
.fahm-wrap .hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.fahm-wrap .hero-stat { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 20px; text-align: center; }
.fahm-wrap .hero-stat-val { font-size: 1.4rem; font-weight: 900; color: white; }
.fahm-wrap .hero-stat-label { font-size: 0.72rem; color: #64748B; }

.fahm-wrap .filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 5%; position: sticky; top: 68px; z-index: 100; }
.fahm-wrap .filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.fahm-wrap .filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.fahm-wrap .filter-tab { padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 20px; background: transparent; font-family: 'Cairo', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.fahm-wrap .filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.fahm-wrap .filter-tab.active { background: var(--blue); border-color: var(--blue); color: white; }
.fahm-wrap .filter-right { display: flex; align-items: center; gap: 10px; }
.fahm-wrap .sort-select { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-family: 'Cairo', sans-serif; font-size: 0.82rem; color: var(--mid); background: var(--white); outline: none; cursor: pointer; }
.fahm-wrap .sort-select:focus { border-color: var(--blue); }
.fahm-wrap .view-btns { display: flex; gap: 4px; }
.fahm-wrap .view-btn { width: 34px; height: 34px; border: 1.5px solid var(--border); background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; color: var(--muted); }
.fahm-wrap .view-btn.active, .fahm-wrap .view-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.fahm-wrap .courses-grid.list-view { grid-template-columns: 1fr; }
.fahm-wrap .courses-grid.list-view .course-card { flex-direction: row; align-items: stretch; }
.fahm-wrap .courses-grid.list-view .card-thumb { width: 180px; min-width: 180px; height: auto; }
.fahm-wrap .courses-grid.list-view .card-body { flex: 1; }

.fahm-wrap .fav-btn { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow); transition: all 0.2s; z-index: 2; }
.fahm-wrap .fav-btn:hover { transform: scale(1.15); }
.fahm-wrap .subject-tag { position: absolute; bottom: 12px; right: 12px; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(8px); }
.fahm-wrap .remove-confirm { position: absolute; top: 50px; right: 8px; background: var(--dark); color: white; font-size: 0.72rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; white-space: nowrap; z-index: 10; display: none; animation: favFadeIn 0.15s ease; }
.fahm-wrap .remove-confirm.show { display: block; }
.fahm-wrap .remove-confirm::before { content: ''; position: absolute; top: -5px; right: 10px; width: 10px; height: 10px; background: var(--dark); transform: rotate(45deg); }
.fahm-wrap .remove-confirm .remove-link { color: #FCA5A5; cursor: pointer; font-weight: 800; }
@keyframes favFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.fahm-wrap .card-rating { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: #F59E0B; }
.fahm-wrap .card-students { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.fahm-wrap .btn-view { background: var(--blue); color: white; border: none; border-radius: 9px; padding: 9px 18px; font-family: 'Cairo', sans-serif; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; }
.fahm-wrap .btn-view:hover { background: #3270b3; transform: scale(1.03); color: white; }

.fahm-wrap .thumb-geo { background: linear-gradient(135deg, #E8F2FC 0%, #C8DFF8 100%); }
.fahm-wrap .tag-geo { background: rgba(62,131,201,0.12); color: var(--blue); }

@media (max-width: 600px) {
  .fahm-wrap .courses-grid.list-view .card-thumb { width: 120px; min-width: 120px; }
}

/* ══════════ QUIZ HISTORY (اختباراتي) PAGE ══════════ */
.fahm-wrap .quizzes-hero .hero-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.fahm-wrap .quizzes-hero .hero-stat-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 22px; text-align: center; min-width: 90px; }
.fahm-wrap .quizzes-hero .hsc-val { font-size: 1.5rem; font-weight: 900; color: white; }
.fahm-wrap .quizzes-hero .hsc-label { font-size: 0.7rem; color: #64748B; margin-top: 2px; }

.fahm-wrap .quizzes-filter-bar .search-input-wrap { position: relative; }
.fahm-wrap .quizzes-filter-bar .search-input-wrap input { padding: 7px 34px 7px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-family: 'Cairo', sans-serif; font-size: 0.82rem; color: var(--dark); background: var(--bg); outline: none; width: 220px; transition: border-color 0.2s; }
.fahm-wrap .quizzes-filter-bar .search-input-wrap input:focus { border-color: var(--blue); }
.fahm-wrap .quizzes-filter-bar .search-input-wrap .si { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; }

.fahm-wrap .quizzes-page-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 5% 80px; }
.fahm-wrap .quizzes-table-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.fahm-wrap .quizzes-table-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.fahm-wrap .quizzes-table-title { font-size: 0.95rem; font-weight: 900; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.fahm-wrap .quizzes-table-count { background: var(--blue-light); color: var(--blue); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.fahm-wrap .quizzes-table { width: 100%; border-collapse: collapse; }
.fahm-wrap .quizzes-table thead tr { background: var(--bg); }
.fahm-wrap .quizzes-table thead th { padding: 13px 20px; text-align: right; font-size: 0.75rem; font-weight: 800; color: var(--muted); letter-spacing: 0.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fahm-wrap .quizzes-table thead th.center { text-align: center; }
.fahm-wrap .quizzes-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; animation: quizRowIn 0.3s ease both; }
.fahm-wrap .quizzes-table tbody tr:last-child { border-bottom: none; }
.fahm-wrap .quizzes-table tbody tr:hover { background: var(--bg); }
@keyframes quizRowIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.fahm-wrap .quizzes-table tbody tr:nth-child(2) { animation-delay: 0.07s; }
.fahm-wrap .quizzes-table tbody tr:nth-child(3) { animation-delay: 0.14s; }
.fahm-wrap .quizzes-table tbody tr:nth-child(4) { animation-delay: 0.21s; }

.fahm-wrap .quizzes-table td { padding: 16px 20px; font-size: 0.86rem; vertical-align: middle; }
.fahm-wrap .quizzes-table td.center { text-align: center; }
.fahm-wrap .quizzes-table td.num { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-align: center; width: 44px; }

.fahm-wrap .quiz-link { color: var(--blue); font-weight: 800; text-decoration: none; font-size: 0.88rem; transition: opacity 0.2s; }
.fahm-wrap .quiz-link:hover { opacity: 0.7; text-decoration: underline; }

.fahm-wrap .subject-cell { display: flex; align-items: center; gap: 10px; }
.fahm-wrap .subj-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.fahm-wrap .subj-name { font-weight: 700; font-size: 0.85rem; color: var(--dark); }
.fahm-wrap .subj-path { font-size: 0.73rem; color: var(--muted); margin-top: 1px; }

.fahm-wrap .score-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fahm-wrap .score-fraction { font-size: 0.92rem; font-weight: 900; }
.fahm-wrap .score-fraction.pass { color: #065F46; }
.fahm-wrap .score-fraction.fail { color: #991B1B; }
.fahm-wrap .score-fraction.zero { color: var(--muted); }
.fahm-wrap .score-bar-wrap { width: 70px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.fahm-wrap .score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.fahm-wrap .fill-pass { background: linear-gradient(90deg, #10B981, #059669); }
.fahm-wrap .fill-fail { background: linear-gradient(90deg, #EF4444, #DC2626); }
.fahm-wrap .fill-zero { background: var(--border); }
.fahm-wrap .score-pct { font-size: 0.68rem; color: var(--muted); font-weight: 700; }

.fahm-wrap .result-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 800; }
.fahm-wrap .chip-pass { background: #F0FDF4; color: #065F46; border: 1px solid #BBF7D0; }
.fahm-wrap .chip-fail { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.fahm-wrap .chip-zero { background: #F1F5F9; color: var(--muted); border: 1px solid var(--border); }

.fahm-wrap .date-cell { font-size: 0.78rem; color: var(--mid); font-weight: 600; white-space: nowrap; }
.fahm-wrap .date-relative { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

.fahm-wrap .action-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--border); background: transparent; font-family: 'Cairo', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--mid); cursor: pointer; transition: all 0.2s; text-decoration: none; }
.fahm-wrap .action-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.fahm-wrap .action-btn.review { background: var(--blue); color: white; border-color: var(--blue); }
.fahm-wrap .action-btn.review:hover { background: #3270b3; color: white; }

.fahm-wrap .quizzes-empty-state { text-align: center; padding: 72px 20px; display: none; }
.fahm-wrap .quizzes-empty-state.show { display: block; }
.fahm-wrap .quizzes-empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.35; }
.fahm-wrap .quizzes-empty-state .empty-title { font-size: 1rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.fahm-wrap .quizzes-empty-state .empty-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 800px) {
  .fahm-wrap .quizzes-table { display: block; overflow-x: auto; }
  .fahm-wrap .quizzes-filter-bar .search-input-wrap input { width: 160px; }
}

/* ══════════ COLOR THEMES PER SUBJECT ══════════ */
.fahm-wrap .thumb-physics  { background: linear-gradient(135deg, #E8F2FC 0%, #D4E6F8 100%); }
.fahm-wrap .thumb-arabic   { background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%); }
.fahm-wrap .thumb-math     { background: linear-gradient(135deg, #F0FDF4 0%, #BBF7D0 100%); }
.fahm-wrap .thumb-science  { background: linear-gradient(135deg, #F0F9FF 0%, #BAE6FD 100%); }
.fahm-wrap .thumb-english  { background: linear-gradient(135deg, #FDF4FF 0%, #E9D5FF 100%); }
.fahm-wrap .thumb-social   { background: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 100%); }

.fahm-wrap .tag-physics  { background: rgba(62,131,201,0.1); color: var(--blue); }
.fahm-wrap .tag-arabic   { background: rgba(245,158,11,0.15); color: #D97706; }
.fahm-wrap .tag-math     { background: rgba(16,185,129,0.12); color: #059669; }
.fahm-wrap .tag-science  { background: rgba(14,165,233,0.12); color: #0284C7; }
.fahm-wrap .tag-english  { background: rgba(139,92,246,0.12); color: #7C3AED; }
.fahm-wrap .tag-social   { background: rgba(245,158,11,0.12); color: #B45309; }

/* ══════════ CONTACT PAGE ══════════ */
.fahm-wrap .contact-section {
  padding: 64px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.fahm-wrap .info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fahm-wrap .info-headline {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.fahm-wrap .info-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.fahm-wrap .contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fahm-wrap .contact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.fahm-wrap .contact-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateX(-4px);
}

.fahm-wrap .contact-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.fahm-wrap .icon-email { background: linear-gradient(135deg, #E8F2FC, #D4E6F8); }
.fahm-wrap .icon-phone { background: linear-gradient(135deg, #F0FDF4, #BBF7D0); }
.fahm-wrap .icon-whatsapp { background: linear-gradient(135deg, #F0FDF4, #86EFAC); }
.fahm-wrap .icon-facebook { background: linear-gradient(135deg, #E8F2FC, #C8DFF8); }
.fahm-wrap .icon-instagram { background: linear-gradient(135deg, #FDF4FF, #F5D0FE); }

.fahm-wrap .contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.fahm-wrap .contact-card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.fahm-wrap .contact-card-value.link { color: var(--blue); }

.fahm-wrap .response-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  margin-top: 4px;
  width: fit-content;
}

.fahm-wrap .dot-live {
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: contactPulse 1.5s infinite;
}

@keyframes contactPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.fahm-wrap .form-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.fahm-wrap .form-panel-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
}

.fahm-wrap .form-panel-sub {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.fahm-wrap .form-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}

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

.fahm-wrap .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.fahm-wrap .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
}

.fahm-wrap .form-label span { color: #EF4444; margin-right: 2px; }

.fahm-wrap .form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: all 0.2s;
  width: 100%;
  direction: rtl;
}

.fahm-wrap .form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(62,131,201,0.1);
}

.fahm-wrap .form-input::placeholder { color: #CBD5E1; }

.fahm-wrap .form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.fahm-wrap .form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}

.fahm-wrap .btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(62,131,201,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.fahm-wrap .btn-submit:hover {
  background: #3270b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62,131,201,0.45);
}

.fahm-wrap .btn-submit:active { transform: translateY(0); }

.fahm-wrap .success-msg {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: contactFadeUp 0.4s ease;
}

.fahm-wrap .success-msg.show { display: block; }
.fahm-wrap .success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.fahm-wrap .success-title { font-size: 1.3rem; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.fahm-wrap .success-text { color: var(--muted); font-size: 0.9rem; }

@keyframes contactFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fahm-wrap .form-panel .alert { margin-bottom: 20px; border-radius: 10px; }

/* ══════════ COURSE SUBJECT PAGE ══════════ */
.fahm-wrap .breadcrumb-course {
  padding: 14px 5%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.fahm-wrap .breadcrumb-course a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.fahm-wrap .breadcrumb-course a:hover { opacity: 0.7; }
.fahm-wrap .breadcrumb-sep { color: var(--border); }

.fahm-wrap .course-hero {
  margin: 0 5% 28px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #FCD34D 100%);
  padding: 36px 36px 36px 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 140px;
  box-shadow: 0 4px 24px rgba(245,158,11,0.2);
}

.fahm-wrap .course-hero-text { flex: 1; }
.fahm-wrap .course-hero-subject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(180,83,9,0.12);
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.fahm-wrap .course-hero-title { font-size: 1.8rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.fahm-wrap .course-hero-meta { font-size: 0.88rem; color: #78350F; font-weight: 600; }
.fahm-wrap .course-hero-price { font-size: 1.25rem; font-weight: 900; color: var(--blue); margin: 0.5rem 0 0.75rem; }
.fahm-wrap .course-hero-img {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 130px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.fahm-wrap .course-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.fahm-wrap .course-hero-fav {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.fahm-wrap .course-hero-fav:hover { transform: scale(1.1); }
.fahm-wrap .course-hero-fav .favorite-btn {
  width: 100%; height: 100%; padding: 0; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; color: inherit;
}
.fahm-wrap .course-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fahm-wrap .course-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  color: #78350F;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
}

.fahm-wrap .course-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 0 5% 60px;
  align-items: start;
}

.fahm-wrap .section-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}

.fahm-wrap .section-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fahm-wrap .section-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fahm-wrap .section-card-badge {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.fahm-wrap .lessons-list { padding: 12px; }
.fahm-wrap .lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
  margin-bottom: 6px;
}

.fahm-wrap .lesson-item:last-child { margin-bottom: 0; }
.fahm-wrap .lesson-item:hover { background: var(--bg); border-color: var(--border); }
.fahm-wrap .lesson-item.locked { opacity: 0.85; cursor: pointer; }
.fahm-wrap .lesson-item.active { background: var(--blue-light); border-color: var(--blue-mid); }

.fahm-wrap .lesson-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.fahm-wrap .lesson-icon-play { background: linear-gradient(135deg, var(--blue), #3270b3); color: white; }
.fahm-wrap .lesson-icon-lock { background: var(--bg); border: 1.5px solid var(--border); color: var(--muted); }

.fahm-wrap .lesson-info { flex: 1; min-width: 0; }
.fahm-wrap .lesson-title { font-weight: 700; font-size: 0.9rem; color: var(--dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fahm-wrap .lesson-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fahm-wrap .lesson-meta { display: flex; gap: 10px; margin-top: 5px; }
.fahm-wrap .lesson-tag { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.fahm-wrap .lesson-action { flex-shrink: 0; }
.fahm-wrap .btn-lesson {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.fahm-wrap .btn-lesson-play { background: var(--blue); color: white; box-shadow: 0 2px 8px rgba(62,131,201,0.3); }
.fahm-wrap .btn-lesson-play:hover { background: #3270b3; transform: scale(1.03); }
.fahm-wrap .btn-lesson-lock { background: var(--bg); color: var(--muted); border: 1.5px solid var(--border); cursor: not-allowed; }

.fahm-wrap .live-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.fahm-wrap .live-item:last-child { border-bottom: none; }
.fahm-wrap .live-item:hover { background: var(--bg); }
.fahm-wrap .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.5s infinite;
}

.fahm-wrap .live-dot.red { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.fahm-wrap .live-info { flex: 1; }
.fahm-wrap .live-title { font-weight: 700; font-size: 0.88rem; color: var(--dark); }
.fahm-wrap .live-time { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.fahm-wrap .btn-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  background: #FEF2F2;
  color: #EF4444;
  border: 1.5px solid #FECACA;
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.fahm-wrap .btn-zoom:hover { background: #EF4444; color: white; border-color: #EF4444; }

.fahm-wrap .resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fahm-wrap .resource-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.fahm-wrap .resource-card:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.fahm-wrap .resource-icon { font-size: 1.6rem; margin-bottom: 8px; }
.fahm-wrap .resource-title { font-weight: 800; font-size: 0.85rem; color: var(--dark); margin-bottom: 3px; }
.fahm-wrap .resource-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.fahm-wrap .resource-card.amber { border-color: #FCD34D; background: #FFFBEB; }
.fahm-wrap .resource-card.amber .resource-title { color: #92400E; }

.fahm-wrap .ratings-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.fahm-wrap .rating-big-score { text-align: center; }
.fahm-wrap .rating-number { font-size: 3rem; font-weight: 900; color: var(--dark); line-height: 1; }
.fahm-wrap .rating-stars-big { display: flex; gap: 3px; justify-content: center; margin: 6px 0; }
.fahm-wrap .rating-count { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.fahm-wrap .rating-bars { flex: 1; }
.fahm-wrap .rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fahm-wrap .rating-bar-row:last-child { margin-bottom: 0; }
.fahm-wrap .rating-bar-label { font-size: 0.75rem; font-weight: 700; color: var(--mid); width: 12px; text-align: center; }
.fahm-wrap .rating-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.fahm-wrap .rating-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #F59E0B, #F59E0B); transition: width 0.6s ease; }
.fahm-wrap .rating-bar-pct { font-size: 0.72rem; color: var(--muted); width: 30px; text-align: left; }

.fahm-wrap .review-item { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.fahm-wrap .review-item:last-child { border-bottom: none; }
.fahm-wrap .review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fahm-wrap .review-user { display: flex; align-items: center; gap: 10px; }
.fahm-wrap .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}

.fahm-wrap .review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fahm-wrap .review-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.fahm-wrap .review-phone { font-size: 0.75rem; color: var(--muted); }
.fahm-wrap .review-stars { display: flex; gap: 2px; }
.fahm-wrap .star { font-size: 1rem; color: #D1D5DB; }
.fahm-wrap .star.filled { color: #F59E0B; }
.fahm-wrap .review-body { font-size: 0.85rem; color: var(--mid); line-height: 1.7; margin-top: 8px; }

.fahm-wrap .enroll-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.fahm-wrap .enroll-card-header {
  background: linear-gradient(135deg, var(--blue), #3270b3);
  padding: 20px;
  text-align: center;
}

.fahm-wrap .enroll-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.fahm-wrap .enroll-title { font-size: 1.1rem; font-weight: 900; color: white; }
.fahm-wrap .enroll-sub { color: rgba(255,255,255,0.75); font-size: 0.8rem; margin-top: 4px; }
.fahm-wrap .enroll-body { padding: 20px; }
.fahm-wrap .btn-enroll {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.fahm-wrap .btn-enroll-primary { background: var(--blue); color: white; box-shadow: 0 4px 14px rgba(62,131,201,0.3); }
.fahm-wrap .btn-enroll-primary:hover { background: #3270b3; transform: translateY(-1px); }
.fahm-wrap .btn-enroll-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.fahm-wrap .btn-enroll-outline:hover { background: var(--blue-light); }
.fahm-wrap .enrolled-check { display: flex; align-items: center; gap: 6px; justify-content: center; color: #10B981; font-size: 0.82rem; font-weight: 700; margin-top: 6px; }

.fahm-wrap .instructor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.fahm-wrap .instructor-inner { display: flex; align-items: center; gap: 14px; }
.fahm-wrap .instructor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7C3AED, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.fahm-wrap .instructor-name { font-weight: 800; font-size: 0.95rem; color: var(--dark); }
.fahm-wrap .instructor-role { font-size: 0.75rem; color: var(--muted); }
.fahm-wrap .instructor-stats { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.fahm-wrap .inst-stat { text-align: center; flex: 1; }
.fahm-wrap .inst-stat-val { font-size: 1rem; font-weight: 900; color: var(--dark); }
.fahm-wrap .inst-stat-label { font-size: 0.7rem; color: var(--muted); }

.fahm-wrap .course-details-card { padding: 16px; }
.fahm-wrap .course-details-card .section-card-title { margin-bottom: 14px; }
.fahm-wrap .course-details-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 10px; }
.fahm-wrap .course-details-row:last-child { margin-bottom: 0; }
.fahm-wrap .course-details-label { color: var(--muted); }
.fahm-wrap .course-details-val { font-weight: 700; }

/* Enroll hint in section header */
.fahm-wrap .enroll-hint-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Locked lesson — اشترك الآن button */
.fahm-wrap .btn-lesson-lock-amber {
  background: #FEF3C7;
  color: #92400E;
  border: 1.5px solid #FCD34D;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}
.fahm-wrap .btn-lesson-lock-amber:hover { background: #FDE68A; border-color: #F59E0B; }

/* Enroll form (sidebar) */
.fahm-wrap .form-group-enroll { margin-bottom: 16px; }
.fahm-wrap .enroll-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--mid); margin-bottom: 7px; }
.fahm-wrap .custom-select-wrap { position: relative; }
.fahm-wrap .enroll-select {
  width: 100%;
  padding: 11px 36px 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.fahm-wrap .enroll-select:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(62,131,201,0.1); }
.fahm-wrap .select-arrow {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.65rem;
  pointer-events: none;
}

.fahm-wrap .payment-methods { display: flex; flex-direction: column; gap: 8px; }
.fahm-wrap .payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.fahm-wrap .payment-option:hover { border-color: var(--blue); background: var(--blue-light); }
.fahm-wrap .payment-option.selected { border-color: var(--blue); background: var(--blue-light); }
.fahm-wrap .payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}
.fahm-wrap .payment-option.selected .payment-radio { border-color: var(--blue); background: var(--blue); }
.fahm-wrap .payment-option.selected .payment-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}
.fahm-wrap .payment-icon { font-size: 1.2rem; }
.fahm-wrap .payment-name { font-size: 0.88rem; font-weight: 700; color: var(--mid); }
.fahm-wrap .payment-option.selected .payment-name { color: var(--blue); }

.fahm-wrap .upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.fahm-wrap .upload-zone:hover { border-color: var(--blue); background: var(--blue-light); }
.fahm-wrap .upload-zone.has-file { border-color: #10B981; background: #F0FDF4; border-style: solid; }
.fahm-wrap .upload-icon { font-size: 1.6rem; margin-bottom: 6px; }
.fahm-wrap .upload-text { font-size: 0.83rem; font-weight: 700; color: var(--mid); }
.fahm-wrap .upload-zone.has-file .upload-text { color: #065F46; }
.fahm-wrap .upload-hint { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }

.fahm-wrap .enroll-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 10px 12px;
}
.fahm-wrap .enroll-info-box span:last-child { font-size: 0.77rem; color: #065F46; line-height: 1.6; }

.fahm-wrap .enroll-success-msg {
  display: none;
  background: var(--white);
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 16px;
  animation: contactFadeUp 0.4s ease;
}
.fahm-wrap .enroll-success-msg.show { display: block; }

/* Lock modal */
.fahm-wrap .lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: lockFadeIn 0.2s ease;
}
.fahm-wrap .lock-overlay.show { display: flex; }
@keyframes lockFadeIn { from { opacity: 0; } to { opacity: 1; } }
.fahm-wrap .lock-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15,23,42,0.2);
  animation: lockScaleIn 0.25s ease;
}
@keyframes lockScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.fahm-wrap .lock-modal-icon { font-size: 3.5rem; margin-bottom: 16px; }
.fahm-wrap .lock-modal-title { font-size: 1.2rem; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.fahm-wrap .lock-modal-text { font-size: 0.88rem; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.fahm-wrap .lock-modal-actions { display: flex; gap: 10px; }
.fahm-wrap .btn-lock-enroll {
  flex: 1;
  padding: 12px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(62,131,201,0.3);
}
.fahm-wrap .btn-lock-enroll:hover { background: #3270b3; }
.fahm-wrap .btn-lock-close {
  padding: 12px 18px;
  background: var(--bg);
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.fahm-wrap .btn-lock-close:hover { border-color: var(--mid); color: var(--mid); }

/* ══════════ PROFILE PAGE ══════════ */
.fahm-wrap .profile-page-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 5% 80px; }
.fahm-wrap .profile-page-header { margin-bottom: 28px; }
.fahm-wrap .profile-page-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; }
.fahm-wrap .profile-page-title { font-size: 1.8rem; font-weight: 900; color: var(--dark); }

.fahm-wrap .profile-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .profile-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(62,131,201,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.fahm-wrap .profile-hero-avatar-wrap { position: relative; flex-shrink: 0; }
.fahm-wrap .profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(62,131,201,0.4);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.fahm-wrap .profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fahm-wrap .avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
  font-size: 1.2rem;
  color: white;
}
.fahm-wrap .profile-hero-avatar:hover .avatar-overlay { opacity: 1; }
.fahm-wrap .avatar-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #10B981;
  border-radius: 50%;
  border: 3px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: white;
  font-weight: 900;
}
.fahm-wrap .profile-hero-info { flex: 1; min-width: 0; }
.fahm-wrap .profile-hero-name { font-size: 1.5rem; font-weight: 900; color: white; margin-bottom: 4px; }
.fahm-wrap .profile-hero-email { color: #94A3B8; font-size: 0.88rem; margin-bottom: 12px; }
.fahm-wrap .profile-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.fahm-wrap .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.fahm-wrap .badge-active { background: rgba(16,185,129,0.2); color: #6EE7B7; border: 1px solid rgba(16,185,129,0.3); }
.fahm-wrap .badge-courses { background: rgba(62,131,201,0.2); color: #93C5FD; border: 1px solid rgba(62,131,201,0.3); }
.fahm-wrap .profile-hero-stats { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fahm-wrap .hero-stat { text-align: center; }
.fahm-wrap .hero-stat-val { font-size: 1.4rem; font-weight: 900; color: white; }
.fahm-wrap .hero-stat-label { font-size: 0.72rem; color: #64748B; }

.fahm-wrap .profile-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: start; }

.fahm-wrap .profile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.fahm-wrap .profile-card:last-child { margin-bottom: 0; }
.fahm-wrap .profile-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fahm-wrap .profile-card-title { font-size: 0.95rem; font-weight: 900; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.fahm-wrap .profile-card-body { padding: 22px; }

.fahm-wrap .profile-info-list { display: flex; flex-direction: column; gap: 0; }
.fahm-wrap .profile-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.fahm-wrap .profile-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.fahm-wrap .profile-info-item:first-child { padding-top: 0; }
.fahm-wrap .profile-info-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fahm-wrap .profile-info-value { font-size: 0.88rem; font-weight: 700; color: var(--dark); text-align: left; }
.fahm-wrap .profile-info-value.email { color: var(--blue); font-size: 0.82rem; }
.fahm-wrap .profile-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F0FDF4;
  color: #065F46;
  border: 1px solid #BBF7D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.fahm-wrap .profile-status-dot { width: 7px; height: 7px; background: #10B981; border-radius: 50%; animation: profilePulse 1.5s infinite; }
@keyframes profilePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); opacity: 0.5; } }

.fahm-wrap .btn-profile-courses {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--blue);
  background: var(--blue-light);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
  text-decoration: none;
  display: block;
  text-align: center;
}
.fahm-wrap .btn-profile-courses:hover { background: var(--blue); color: white; }

.fahm-wrap .profile-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--mid);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
  margin-bottom: 4px;
}
.fahm-wrap .profile-quick-link:hover { background: var(--bg); color: var(--blue); }
.fahm-wrap .profile-quick-link:last-child { margin-bottom: 0; }

.fahm-wrap .profile-form-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.fahm-wrap .profile-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fahm-wrap .profile-form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.fahm-wrap .profile-form-group:last-of-type { margin-bottom: 0; }
.fahm-wrap .profile-form-label { font-size: 0.8rem; font-weight: 700; color: var(--mid); }
.fahm-wrap .profile-form-label span { color: #EF4444; margin-right: 2px; }
.fahm-wrap .profile-form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: all 0.2s;
  width: 100%;
  direction: rtl;
}
.fahm-wrap .profile-form-input:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(62,131,201,0.1); }
.fahm-wrap .profile-form-input::placeholder { color: #CBD5E1; }
.fahm-wrap .profile-form-input:disabled { background: #F1F5F9; color: var(--muted); cursor: not-allowed; }
.fahm-wrap .profile-form-hint { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }

.fahm-wrap .profile-avatar-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.fahm-wrap .profile-avatar-upload-area:hover { border-color: var(--blue); background: var(--blue-light); }
.fahm-wrap .profile-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.fahm-wrap .profile-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.fahm-wrap .profile-upload-title { font-size: 0.85rem; font-weight: 700; color: var(--mid); margin-bottom: 3px; }
.fahm-wrap .profile-upload-hint-text { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.fahm-wrap .profile-upload-text-area { flex: 1; min-width: 0; }

.fahm-wrap .profile-password-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 4px;
}
.fahm-wrap .profile-password-section-title { font-size: 0.82rem; font-weight: 800; color: var(--mid); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.fahm-wrap .profile-pass-input-wrap { position: relative; }
.fahm-wrap .profile-pass-input-wrap .profile-form-input { padding-left: 40px; }
.fahm-wrap .profile-pass-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.fahm-wrap .profile-pass-strength { display: flex; gap: 4px; margin-top: 6px; }
.fahm-wrap .profile-strength-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.fahm-wrap .profile-strength-bar.weak { background: #EF4444; }
.fahm-wrap .profile-strength-bar.medium { background: #F59E0B; }
.fahm-wrap .profile-strength-bar.strong { background: #10B981; }

.fahm-wrap .btn-profile-save {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(62,131,201,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.fahm-wrap .btn-profile-save:hover { background: #3270b3; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,131,201,0.45); }
.fahm-wrap .btn-profile-save:active { transform: translateY(0); }

.fahm-wrap .profile-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(15,23,42,0.3);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fahm-wrap .profile-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fahm-wrap .profile-toast.success { background: #065F46; border: 1px solid #BBF7D0; }

@media (max-width: 860px) {
  .fahm-wrap .profile-grid { grid-template-columns: 1fr; }
  .fahm-wrap .profile-hero { flex-direction: column; text-align: center; }
  .fahm-wrap .profile-hero-badges { justify-content: center; }
  .fahm-wrap .profile-hero-stats { align-items: center; flex-direction: row; gap: 24px; }
}
@media (max-width: 520px) {
  .fahm-wrap .profile-form-row { grid-template-columns: 1fr; }
}

/* Course hero responsive */
@media (max-width: 960px) {
  .fahm-wrap .course-page-layout { grid-template-columns: 1fr; }
  .fahm-wrap .sidebar-right { order: -1; }
  .fahm-wrap .course-hero { padding: 24px; padding-left: 24px; }
  .fahm-wrap .course-hero-img { display: none; }
}

@media (max-width: 600px) {
  .fahm-wrap .resource-grid { grid-template-columns: 1fr; }
}

/* ══════════ FOOTER ══════════ */
.fahm-wrap .site-footer {
  background: var(--dark);
  margin-top: 80px;
  position: relative;
}

.fahm-wrap .footer-wave {
  line-height: 0;
  height: 60px;
  overflow: hidden;
}

.fahm-wrap .footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fahm-wrap .footer-inner { padding: 0 5% 0; }

.fahm-wrap .footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fahm-wrap .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fahm-wrap .footer-logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue) 0%, #3270b3 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(62,131,201,0.4);
  flex-shrink: 0;
}

.fahm-wrap .footer-logo-name { font-weight: 900; font-size: 1.1rem; color: white; }

.fahm-wrap .footer-logo-sub { font-size: 0.72rem; color: #64748B; font-weight: 600; }

.fahm-wrap .footer-tagline {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 300px;
}

.fahm-wrap .social-row { display: flex; gap: 10px; flex-wrap: wrap; }

.fahm-wrap .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s;
  border: 1.5px solid transparent;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
  /* override next.css fixed size (login buttons) so footer buttons size to content */
  width: auto;
  min-width: fit-content;
  height: auto;
  min-height: 44px;
}
.fahm-wrap .social-btn span {
  flex-shrink: 0;
}

.fahm-wrap .social-btn.facebook {
  background: rgba(24,119,242,0.12);
  color: #60A5FA;
  border-color: rgba(24,119,242,0.25);
}
.fahm-wrap .social-btn.facebook:hover {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24,119,242,0.4);
}

.fahm-wrap .social-btn.instagram {
  background: rgba(225,48,108,0.1);
  color: #F472B6;
  border-color: rgba(225,48,108,0.25);
}
.fahm-wrap .social-btn.instagram:hover {
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221,42,123,0.4);
}

.fahm-wrap .social-btn.whatsapp {
  background: rgba(37,211,102,0.1);
  color: #4ADE80;
  border-color: rgba(37,211,102,0.25);
}
.fahm-wrap .social-btn.whatsapp:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.fahm-wrap .footer-col-title {
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
}

.fahm-wrap .footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.fahm-wrap .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fahm-wrap .footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fahm-wrap .footer-links a:hover {
  color: white;
  transform: translateX(-4px);
}

.fahm-wrap .footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: rgba(62,131,201,0.1);
  border: 1px solid rgba(62,131,201,0.2);
  border-radius: var(--radius);
  margin: 36px 0;
}

.fahm-wrap .newsletter-title { font-weight: 800; font-size: 1rem; color: white; margin-bottom: 4px; }

.fahm-wrap .newsletter-sub { font-size: 0.82rem; color: #94A3B8; font-weight: 500; }

.fahm-wrap .newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }

.fahm-wrap .newsletter-input {
  padding: 11px 18px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: white;
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
  direction: rtl;
}

.fahm-wrap .newsletter-input::placeholder { color: #475569; }
.fahm-wrap .newsletter-input:focus { border-color: var(--blue); }

.fahm-wrap .newsletter-btn {
  padding: 11px 22px;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(62,131,201,0.35);
}

.fahm-wrap .newsletter-btn:hover {
  background: #3270b3;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(62,131,201,0.45);
}

.fahm-wrap .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.fahm-wrap .footer-copy { color: #475569; font-size: 0.8rem; font-weight: 600; }

.fahm-wrap .footer-bottom-links { display: flex; align-items: center; gap: 10px; }

.fahm-wrap .footer-bottom-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}

.fahm-wrap .footer-bottom-links a:hover { color: #94A3B8; }
.fahm-wrap .footer-dot { color: #334155; }
.fahm-wrap .footer-made { color: #475569; font-size: 0.78rem; font-weight: 600; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .fahm-wrap .page-layout { grid-template-columns: 1fr; }
  .fahm-wrap .sidebar { display: none; }
  .fahm-wrap .content-area { padding: 24px 20px; }
  .fahm-wrap .nav-fahm {
    padding: 0 3%;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .fahm-wrap .nav-hamburger { display: flex; margin-right: 0; margin-left: 0; }
  .fahm-wrap .nav-mobile-overlay,
  .fahm-wrap .nav-mobile-menu { display: block; }
  .fahm-wrap .nav-links { display: none; }
  .fahm-wrap .nav-actions { display: none; }
  .fahm-wrap .nav-search {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 200px;
    margin-inline: auto;
  }
  .fahm-wrap .nav-logo { margin: 0; flex-shrink: 0; }
  .fahm-wrap .nav-actions { flex-shrink: 0; }
  .fahm-wrap .courses-grid { grid-template-columns: 1fr 1fr; }
  .fahm-wrap .contact-section { grid-template-columns: 1fr; gap: 32px; }
  .fahm-wrap .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .fahm-wrap .footer-brand { grid-column: 1 / -1; }
  .fahm-wrap .footer-newsletter {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .fahm-wrap .newsletter-form { width: 100%; }
  .fahm-wrap .newsletter-input { flex: 1; width: auto; }
  .fahm-wrap .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .fahm-wrap .nav-fahm { padding: 0 4%; gap: 10px; }
  .fahm-wrap .nav-search { max-width: 140px; }
  .fahm-wrap .nav-search input { padding: 6px 30px 6px 10px; font-size: 0.8rem; }
  .fahm-wrap .nav-actions .btn-ghost,
  .fahm-wrap .nav-actions .btn-primary { padding: 6px 12px; font-size: 0.8rem; }
  .fahm-wrap .nav-logo-mark { width: 34px; height: 34px; font-size: 0.85rem; }
  .fahm-wrap .nav-logo-text { font-size: 0.9rem; }
}

@media (max-width: 560px) {
  .fahm-wrap .nav-fahm { padding: 0 3%; gap: 8px; }
  .fahm-wrap .nav-search { display: none; }
  .fahm-wrap .nav-actions .btn-ghost,
  .fahm-wrap .nav-actions .btn-primary { padding: 6px 10px; font-size: 0.78rem; }
  .fahm-wrap .nav-logo-mark { width: 32px; height: 32px; font-size: 0.8rem; }
  .fahm-wrap .nav-logo-text { font-size: 0.85rem; }
  .fahm-wrap .courses-grid { grid-template-columns: 1fr; }
  .fahm-wrap .footer-top { grid-template-columns: 1fr; }
  .fahm-wrap .social-row { gap: 8px; }
  .fahm-wrap .social-btn span { display: none; }
  .fahm-wrap .social-btn { padding: 10px 12px; }
  .fahm-wrap .form-row { grid-template-columns: 1fr; }
}

/* ══════════ STAGES LIST & DETAIL (المراحل الدراسية) ══════════ */
.fahm-wrap .stages-hero {
  background: linear-gradient(135deg, #0d1b4b 0%, #2a5a94 60%, #3E83C9 100%);
  padding: 3rem 5% 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .hero-stages {
  background: linear-gradient(135deg, rgba(13,27,75,0.88) 0%, rgba(42,90,148,0.9) 100%), url(https://images.unsplash.com/photo-1532012197267-da84d127e765?w=1400&q=85) center/cover no-repeat;
}
.fahm-wrap .stages-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.fahm-wrap .stages-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
}
.fahm-wrap .stages-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.fahm-wrap .stages-hero p { font-size: 0.95rem; opacity: 0.85; font-weight: 500; position: relative; z-index: 1; }

.fahm-wrap .stages-grid-wrap { padding: 2.5rem 5% 3.5rem; max-width: 1200px; margin: 0 auto; }
.fahm-wrap .stages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fahm-wrap .stage-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 30px rgba(26,86,219,0.1);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.fahm-wrap .stage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, #5a9ad4 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.fahm-wrap .stage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(26,86,219,0.18);
  border-color: var(--blue);
}
.fahm-wrap .stage-card:hover::before { opacity: 1; }
.fahm-wrap .stage-card:hover .sc-icon,
.fahm-wrap .stage-card:hover .sc-title,
.fahm-wrap .stage-card:hover .sc-sub { color: #fff !important; }
.fahm-wrap .stage-card:hover .sc-badge { background: rgba(255,255,255,0.25); color: #fff; }
.fahm-wrap .stage-card * { position: relative; z-index: 1; }
.fahm-wrap .sc-icon { font-size: 2.2rem; transition: color 0.3s; }
.fahm-wrap .sc-title { font-size: 1.05rem; font-weight: 800; color: var(--dark); transition: color 0.3s; }
.fahm-wrap .sc-sub { font-size: 0.78rem; color: var(--muted); font-weight: 600; transition: color 0.3s; }
.fahm-wrap .sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s;
}
.fahm-wrap .stage-card[data-color="blue"] .sc-icon { color: var(--blue); }
.fahm-wrap .stage-card[data-color="purple"] .sc-icon { color: #7c3aed; }
.fahm-wrap .stage-card[data-color="green"] .sc-icon { color: #059669; }
.fahm-wrap .stage-card[data-color="orange"] .sc-icon { color: #ea580c; }
.fahm-wrap .stage-card[data-color="rose"] .sc-icon { color: #e11d48; }
.fahm-wrap .stage-card[data-color="teal"] .sc-icon { color: #0891b2; }

/* Stage detail page */
.fahm-wrap .stage-detail-hero {
  background: linear-gradient(135deg, #0d1b4b 0%, #3270b3 60%, #3E83C9 100%);
  color: #fff;
  padding: 3rem 5% 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.fahm-wrap .hero-stage-detail {
  background: linear-gradient(135deg, rgba(13,27,75,0.88) 0%, rgba(50,112,179,0.9) 100%), url(https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1400&q=85) center/cover no-repeat;
}
.fahm-wrap .stage-detail-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.fahm-wrap .stage-detail-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
}
.fahm-wrap .stage-detail-hero .hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.fahm-wrap .stage-detail-hero .hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.fahm-wrap .stage-detail-hero .hero-breadcrumb a { color: #fff; text-decoration: none; transition: opacity 0.2s; }
.fahm-wrap .stage-detail-hero .hero-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.fahm-wrap .stage-detail-hero .hero-breadcrumb .sep { color: rgba(255,255,255,0.5); }
.fahm-wrap .stage-detail-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 0.75rem; line-height: 1.3; }
.fahm-wrap .stage-detail-hero .hero-desc { font-size: 0.95rem; opacity: 0.88; max-width: 560px; margin: 0 auto 1.5rem; line-height: 1.7; }
.fahm-wrap .stage-detail-hero .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F59E0B;
  color: #4a2800;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(245,158,11,0.35);
  text-decoration: none;
}
.fahm-wrap .stage-detail-hero .hero-btn:hover { transform: translateY(-2px); color: #4a2800; box-shadow: 0 10px 30px rgba(245,158,11,0.45); }
.fahm-wrap .stage-detail-hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.fahm-wrap .stage-detail-hero .hero-stat { text-align: center; }
.fahm-wrap .stage-detail-hero .hero-stat .num { font-size: 1.6rem; font-weight: 900; color: #FDE68A; }
.fahm-wrap .stage-detail-hero .hero-stat .lbl { font-size: 0.76rem; opacity: 0.8; font-weight: 600; margin-top: 2px; }

.fahm-wrap .grades-section { padding: 2.5rem 5%; max-width: 1100px; margin: 0 auto; }
.fahm-wrap .grades-section .section-header { text-align: center; margin-bottom: 2rem; }
.fahm-wrap .grades-section .section-header h2 { font-size: 1.6rem; font-weight: 900; color: var(--dark); margin-bottom: 0.4rem; }
.fahm-wrap .grades-section .section-header p { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.fahm-wrap .grades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fahm-wrap .grade-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 30px rgba(26,86,219,0.08);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.fahm-wrap .grade-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #5a9ad4);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.fahm-wrap .grade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26,86,219,0.15);
  border-color: var(--blue);
}
.fahm-wrap .grade-card:hover::after { transform: scaleX(1); }
.fahm-wrap .grade-header { display: flex; align-items: center; justify-content: space-between; }
.fahm-wrap .grade-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #5a9ad4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(62,131,201,0.3);
}
.fahm-wrap .grade-num { font-size: 1.9rem; font-weight: 900; color: #E8EEF8; font-family: 'Cairo', sans-serif; line-height: 1; }
.fahm-wrap .grade-title { font-size: 1rem; font-weight: 800; color: var(--dark); }
.fahm-wrap .grade-sub { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.fahm-wrap .grade-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.fahm-wrap .grade-count { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.fahm-wrap .grade-count svg { color: var(--blue); flex-shrink: 0; }
.fahm-wrap .btn-details {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(62,131,201,0.3);
  text-decoration: none;
  display: inline-block;
}
.fahm-wrap .btn-details:hover { background: #3270b3; transform: translateY(-1px); color: #fff; }

.fahm-wrap .features-section { background: #fff; padding: 2.5rem 5% 3rem; margin-top: 1rem; }
.fahm-wrap .features-section .section-header { margin-bottom: 2.5rem; }
.fahm-wrap .features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.fahm-wrap .feat-card {
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s;
  cursor: default;
}
.fahm-wrap .feat-card:nth-child(odd) { background: #FFFBEB; }
.fahm-wrap .feat-card:nth-child(even) { background: #E8F2FC; }
.fahm-wrap .feat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(26,86,219,0.12); }
.fahm-wrap .feat-icon { font-size: 1.9rem; }
.fahm-wrap .feat-title { font-size: 0.86rem; font-weight: 800; color: var(--dark); line-height: 1.4; }
.fahm-wrap .feat-cta { margin-top: 2.5rem; text-align: center; }
.fahm-wrap .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 14px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.fahm-wrap .btn-contact:hover { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(62,131,201,0.3); }

/* Navbar stages dropdown — تحسين مظهر القائمة المنسدلة */
.fahm-wrap .nav-fahm .dropdown-menu { min-width: 220px; border-radius: 14px; box-shadow: 0 16px 50px rgba(26,86,219,0.14); border: 1px solid var(--border); padding: 10px 0; }
.fahm-wrap .nav-fahm .dropdown-menu .dropdown-item { padding: 10px 20px; font-size: 0.84rem; font-weight: 600; border-radius: 8px; margin: 2px 10px; transition: all 0.2s; }
.fahm-wrap .nav-fahm .dropdown-menu .dropdown-item:hover { background: var(--bg); color: var(--blue); }
.fahm-wrap .nav-fahm .dropdown-menu .dropdown-divider { margin: 6px 12px; }
.fahm-wrap .nav-fahm .dropdown-menu .view-all { color: var(--blue); text-align: center; font-weight: 700; }

/* Responsive — المراحل */
@media (max-width: 992px) {
  .fahm-wrap .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .grades-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .fahm-wrap .stages-hero { padding: 2.5rem 4% 2rem; }
  .fahm-wrap .stages-grid-wrap { padding: 2rem 4% 2.5rem; }
  .fahm-wrap .stages-grid { grid-template-columns: 1fr; gap: 1rem; }
  .fahm-wrap .stage-detail-hero { padding: 2.5rem 4% 2rem; }
  .fahm-wrap .stage-detail-hero .hero-stats { gap: 1.5rem; }
  .fahm-wrap .grades-section { padding: 2rem 4%; }
  .fahm-wrap .grades-grid { grid-template-columns: 1fr; }
  .fahm-wrap .features-section { padding: 2rem 4%; }
  .fahm-wrap .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fahm-wrap .stages-hero h1 { font-size: 1.45rem; }
  .fahm-wrap .stage-detail-hero h1 { font-size: 1.4rem; }
  .fahm-wrap .stage-detail-hero .hero-stat .num { font-size: 1.35rem; }
  .fahm-wrap .grades-section .section-header h2 { font-size: 1.35rem; }
  .fahm-wrap .features-grid { grid-template-columns: 1fr; }
  .fahm-wrap .feat-card { padding: 1.25rem; }
}

/* ══════════ SUBJECTS PAGE (المواد الدراسية) ══════════ */
.fahm-wrap .subj-hero {
  background: linear-gradient(135deg, #0d1b4b 0%, #3270b3 55%, #3E83C9 100%);
  padding: 2.5rem 5% 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .hero-subjects {
  background: linear-gradient(135deg, rgba(13,27,75,0.88) 0%, rgba(50,112,179,0.9) 100%), url(https://images.unsplash.com/photo-1532012197267-da84d127e765?w=1400&q=85) center/cover no-repeat;
}
.fahm-wrap .subj-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.fahm-wrap .subj-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
}
.fahm-wrap .subj-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.fahm-wrap .subj-hero h1 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 900; margin-bottom: 0.4rem; }
.fahm-wrap .subj-hero .subj-hero-desc { font-size: 0.95rem; opacity: 0.85; font-weight: 500; }
.fahm-wrap .hero-pills { display: flex; gap: 8px; margin-top: 1rem; flex-wrap: wrap; }
.fahm-wrap .hero-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.fahm-wrap .hero-pill:hover,
.fahm-wrap .hero-pill.active { background: #F59E0B; border-color: #F59E0B; color: #4a2800; }
.fahm-wrap .hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 10px 18px;
  min-width: 260px;
  max-width: 100%;
}
.fahm-wrap .hero-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: #fff;
  width: 100%;
}
.fahm-wrap .hero-search input::placeholder { color: rgba(255,255,255,0.6); }

.fahm-wrap .subj-wrap { padding: 2rem 5% 3rem; max-width: 1200px; margin: 0 auto; }
.fahm-wrap .subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.fahm-wrap .subj-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.1);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.fahm-wrap .subj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(26,86,219,0.16);
  border-color: var(--blue);
  color: inherit;
}
/* زر المفضلة في زاوية الكارت بعيداً عن البادج */
.fahm-wrap .subj-card .subj-card-fav {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 10;
  margin: 0;
}
.fahm-wrap .subj-card .subj-card-fav .favorite-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.fahm-wrap .subj-card .subj-card-fav .favorite-btn:hover,
.fahm-wrap .subj-card .subj-card-fav .favorite-btn.favorited { color: #e11d48; }
.fahm-wrap .subj-thumb {
  height: 170px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fahm-wrap .subj-thumb .subj-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fahm-wrap .subj-thumb .bg-text {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  letter-spacing: -2px;
  white-space: nowrap;
  z-index: 1;
}
.fahm-wrap .subj-thumb .subject-icon {
  font-size: 3.2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.fahm-wrap .subj-thumb .badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  left: auto;
  right: auto;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}
.fahm-wrap .subj-body { padding: 1.25rem 1.35rem 0; }
.fahm-wrap .subj-name { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 0.2rem; }
.fahm-wrap .subj-meta { font-size: 0.76rem; color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; }
.fahm-wrap .subj-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}
.fahm-wrap .subj-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  margin-top: 0.5rem;
}
.fahm-wrap .subj-stats { display: flex; gap: 0.85rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.fahm-wrap .subj-stat { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.fahm-wrap .subj-stat svg { color: var(--blue); flex-shrink: 0; }
.fahm-wrap .subj-footer { padding: 1rem 1.35rem 1.25rem; }
.fahm-wrap .btn-view {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--blue) 0%, #5a9ad4 100%);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(62,131,201,0.35);
  text-align: center;
}
.fahm-wrap .subj-card:hover .btn-view { box-shadow: 0 8px 24px rgba(62,131,201,0.45); transform: translateY(-1px); }
.fahm-wrap .theme-blue .subj-thumb { background: linear-gradient(135deg, #3E83C9, #5a9ad4); }
.fahm-wrap .theme-green .subj-thumb { background: linear-gradient(135deg, #059669, #34d399); }
.fahm-wrap .theme-purple .subj-thumb { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.fahm-wrap .theme-orange .subj-thumb { background: linear-gradient(135deg, #ea580c, #fb923c); }
.fahm-wrap .theme-rose .subj-thumb { background: linear-gradient(135deg, #e11d48, #fb7185); }
.fahm-wrap .theme-teal .subj-thumb { background: linear-gradient(135deg, #0891b2, #22d3ee); }

/* ══════════ GRADE SUBJECTS PAGE (مواد الفصل) ══════════ */
.fahm-wrap .grade-subj-wrap { padding: 2rem 5% 3rem; max-width: 1200px; margin: 0 auto; }
.fahm-wrap .subj-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.fahm-wrap .subj-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.fahm-wrap .subj-breadcrumb a:hover { color: var(--blue); }
.fahm-wrap .subj-breadcrumb .sep { opacity: 0.4; }
.fahm-wrap .subj-breadcrumb .current { color: var(--blue); font-weight: 700; }
.fahm-wrap .grade-header-card {
  background: linear-gradient(135deg, #0d1b4b 0%, #3E83C9 100%);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  color: #fff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.fahm-wrap .grade-header-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.fahm-wrap .ghc-info { position: relative; z-index: 1; }
.fahm-wrap .ghc-info h1 { font-size: 1.65rem; font-weight: 900; margin-bottom: 0.35rem; }
.fahm-wrap .ghc-info p { font-size: 0.86rem; opacity: 0.85; font-weight: 500; }
.fahm-wrap .ghc-stats { display: flex; gap: 1.5rem; position: relative; z-index: 1; flex-wrap: wrap; }
.fahm-wrap .ghc-stat {
  text-align: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 12px 18px;
  backdrop-filter: blur(10px);
}
.fahm-wrap .ghc-stat .n { font-size: 1.5rem; font-weight: 900; color: #FDE68A; }
.fahm-wrap .ghc-stat .l { font-size: 0.7rem; opacity: 0.85; font-weight: 600; margin-top: 2px; }
.fahm-wrap .mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.fahm-wrap .mini-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.08);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.fahm-wrap .mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(26,86,219,0.15);
  border-color: var(--blue);
  color: inherit;
}
.fahm-wrap .mini-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .mini-thumb .big-icon {
  font-size: 2.75rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}
.fahm-wrap .mini-thumb .watermark {
  position: absolute;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  letter-spacing: -2px;
}
.fahm-wrap .mini-body { padding: 1rem; }
.fahm-wrap .mini-name { font-size: 0.92rem; font-weight: 800; color: var(--dark); margin-bottom: 0.2rem; }
.fahm-wrap .mini-sub { font-size: 0.7rem; color: var(--muted); font-weight: 600; margin-bottom: 0.35rem; }
.fahm-wrap .mini-price { font-size: 0.9rem; font-weight: 800; color: var(--blue); margin-bottom: 0.5rem; }
.fahm-wrap .btn-mini {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  pointer-events: none;
}
.fahm-wrap .mini-card:hover .btn-mini { background: #3270b3; }
.fahm-wrap .mini-card .mini-card-fav {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 10;
  margin: 0;
}
.fahm-wrap .mini-card .mini-card-fav .favorite-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.fahm-wrap .mini-card .mini-card-fav .favorite-btn:hover,
.fahm-wrap .mini-card .mini-card-fav .favorite-btn.favorited { color: #e11d48; }
.fahm-wrap .mini-thumb .mini-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (max-width: 992px) {
  .fahm-wrap .subj-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fahm-wrap .subj-hero-inner { flex-direction: column; align-items: flex-start; }
  .fahm-wrap .hero-search { min-width: 100%; }
  .fahm-wrap .subj-wrap { padding: 1.75rem 4%; }
  .fahm-wrap .subj-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .fahm-wrap .subj-thumb { height: 150px; }
  .fahm-wrap .grade-subj-wrap { padding: 1.5rem 4%; }
  .fahm-wrap .grade-header-card { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .fahm-wrap .ghc-stats { gap: 1rem; }
  .fahm-wrap .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fahm-wrap .subj-hero { padding: 2rem 4% 2rem; }
  .fahm-wrap .subj-hero h1 { font-size: 1.4rem; }
  .fahm-wrap .ghc-info h1 { font-size: 1.35rem; }
  .fahm-wrap .ghc-stat .n { font-size: 1.25rem; }
}

/* ══════════ QUIZ PAGE ══════════ */
.fahm-wrap .quiz-progress-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  position: sticky;
  top: 68px;
  z-index: 200;
}
.fahm-wrap .quiz-progress-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.fahm-wrap .quiz-progress-bar .progress-label { font-size: 0.82rem; font-weight: 700; color: var(--mid); white-space: nowrap; }
.fahm-wrap .quiz-progress-bar .progress-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.fahm-wrap .quiz-progress-bar .progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #7C3AED); transition: width 0.4s ease; }
.fahm-wrap .quiz-progress-bar .progress-count { font-size: 0.82rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.fahm-wrap .quiz-progress-bar .progress-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
}
.fahm-wrap .quiz-progress-bar .timer-dot { width: 7px; height: 7px; background: #F59E0B; border-radius: 50%; animation: quizTimerPulse 1s infinite; }
@keyframes quizTimerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.fahm-wrap .quiz-page-wrap { max-width: 860px; margin: 0 auto; padding: 36px 5% 80px; }

.fahm-wrap .quiz-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .quiz-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(62,131,201,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.fahm-wrap .quiz-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(62,131,201,0.2); border: 1px solid rgba(62,131,201,0.4); color: #93C5FD; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.fahm-wrap .quiz-title { font-size: 2rem; font-weight: 900; color: white; margin-bottom: 6px; }
.fahm-wrap .quiz-meta { color: #94A3B8; font-size: 0.88rem; margin-bottom: 18px; }
.fahm-wrap .quiz-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.fahm-wrap .quiz-stat { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; padding: 8px 14px; }
.fahm-wrap .quiz-stat-val { font-weight: 900; font-size: 0.95rem; color: white; }
.fahm-wrap .quiz-stat-label { font-size: 0.75rem; color: #94A3B8; }

.fahm-wrap .score-banner {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fahm-wrap .score-banner.pass { background: #F0FDF4; border: 1.5px solid #BBF7D0; }
.fahm-wrap .score-banner.fail { background: #FEF2F2; border: 1.5px solid #FECACA; }
.fahm-wrap .score-banner.pending { background: #FFFBEB; border: 1.5px solid #FCD34D; }
.fahm-wrap .score-icon { font-size: 2.4rem; flex-shrink: 0; }
.fahm-wrap .score-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 3px; }
.fahm-wrap .score-banner.pass .score-title { color: #065F46; }
.fahm-wrap .score-banner.fail .score-title { color: #991B1B; }
.fahm-wrap .score-banner.pending .score-title { color: #92400E; }
.fahm-wrap .score-sub { font-size: 0.83rem; font-weight: 600; }
.fahm-wrap .score-banner.pass .score-sub { color: #059669; }
.fahm-wrap .score-banner.fail .score-sub { color: #DC2626; }
.fahm-wrap .score-banner.pending .score-sub { color: #B45309; }
.fahm-wrap .score-num { margin-right: auto; text-align: center; }
.fahm-wrap .score-big { font-size: 2.2rem; font-weight: 900; }
.fahm-wrap .score-banner.pass .score-big { color: #065F46; }
.fahm-wrap .score-banner.fail .score-big { color: #DC2626; }
.fahm-wrap .score-banner.pending .score-big { color: #92400E; }
.fahm-wrap .score-out { font-size: 0.75rem; color: var(--muted); }

.fahm-wrap .question-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  animation: quizCardIn 0.35s ease both;
}
@keyframes quizCardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fahm-wrap .question-card:nth-child(2) { animation-delay: 0.05s; }
.fahm-wrap .question-card:nth-child(3) { animation-delay: 0.1s; }
.fahm-wrap .question-card:nth-child(4) { animation-delay: 0.15s; }

.fahm-wrap .q-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.fahm-wrap .q-num-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: white;
}
.fahm-wrap .q-num-badge.badge-neutral { background: linear-gradient(135deg, var(--blue), #3270b3); }
.fahm-wrap .q-num-badge.badge-correct { background: linear-gradient(135deg, #10B981, #059669); }
.fahm-wrap .q-num-badge.badge-wrong { background: linear-gradient(135deg, #EF4444, #DC2626); }
.fahm-wrap .q-num-badge.badge-unanswered { background: linear-gradient(135deg, var(--muted), var(--mid)); }
.fahm-wrap .q-header-text { flex: 1; }
.fahm-wrap .q-title { font-size: 0.9rem; font-weight: 900; color: var(--dark); }
.fahm-wrap .q-points-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.fahm-wrap .q-points { font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.fahm-wrap .points-neutral { background: var(--blue-light); color: var(--blue); }
.fahm-wrap .points-correct { background: #F0FDF4; color: #065F46; }
.fahm-wrap .points-wrong { background: #FEF2F2; color: #991B1B; }
.fahm-wrap .q-status-chip { font-size: 0.7rem; font-weight: 800; padding: 2px 10px; border-radius: 20px; }
.fahm-wrap .chip-correct { background: #F0FDF4; color: #065F46; border: 1px solid #BBF7D0; }
.fahm-wrap .chip-wrong { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.fahm-wrap .chip-unanswered { background: #F1F5F9; color: var(--muted); border: 1px solid var(--border); }

.fahm-wrap .q-card-body { padding: 20px 22px; }
.fahm-wrap .q-text { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; line-height: 1.6; }

.fahm-wrap .q-options { display: flex; flex-direction: column; gap: 8px; }
.fahm-wrap .q-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.fahm-wrap .q-option:hover:not(.disabled) { border-color: var(--blue); background: var(--blue-light); }
.fahm-wrap .q-option.disabled { cursor: default; }
.fahm-wrap .q-option.correct { border-color: #10B981 !important; background: #F0FDF4 !important; }
.fahm-wrap .q-option.wrong { border-color: #EF4444 !important; background: #FEF2F2 !important; }
.fahm-wrap .q-option.selected-neutral { border-color: var(--blue); background: var(--blue-light); }

.fahm-wrap .q-opt-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.fahm-wrap .q-option.correct .q-opt-indicator { border-color: #10B981; background: #10B981; color: white; }
.fahm-wrap .q-option.wrong .q-opt-indicator { border-color: #EF4444; background: #EF4444; color: white; }
.fahm-wrap .q-option.selected-neutral .q-opt-indicator { border-color: var(--blue); background: var(--blue); color: white; }
.fahm-wrap .q-opt-label { font-size: 0.88rem; font-weight: 600; color: var(--mid); flex: 1; }
.fahm-wrap .q-option.correct .q-opt-label { color: #065F46; font-weight: 700; }
.fahm-wrap .q-option.wrong .q-opt-label { color: #991B1B; font-weight: 700; }
.fahm-wrap .q-option.selected-neutral .q-opt-label { color: var(--blue); font-weight: 700; }
.fahm-wrap .q-opt-tag { font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-right: auto; flex-shrink: 0; }
.fahm-wrap .tag-correct { background: #F0FDF4; color: #065F46; }
.fahm-wrap .tag-wrong { background: #FEF2F2; color: #991B1B; }
.fahm-wrap .tag-your { background: var(--blue-light); color: var(--blue); }

.fahm-wrap .text-answer-wrap { display: flex; flex-direction: column; gap: 12px; }
.fahm-wrap .text-answer-box {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  resize: vertical;
  min-height: 80px;
  direction: rtl;
  transition: border-color 0.2s;
}
.fahm-wrap .text-answer-box:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(62,131,201,0.1); }
.fahm-wrap .text-answer-box.submitted { background: #F8FAFC; cursor: default; }
.fahm-wrap .model-answer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 12px 14px;
}
.fahm-wrap .model-answer-label { font-size: 0.75rem; font-weight: 800; color: #065F46; white-space: nowrap; }
.fahm-wrap .model-answer-text { font-size: 0.85rem; color: #065F46; font-weight: 600; line-height: 1.6; }

.fahm-wrap .submit-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-top: 8px;
  text-align: center;
}
.fahm-wrap .submit-title { font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.fahm-wrap .submit-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; line-height: 1.7; }
.fahm-wrap .submit-summary { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.fahm-wrap .submit-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 24px;
  min-width: 100px;
}
.fahm-wrap .submit-stat-val { font-size: 1.4rem; font-weight: 900; }
.fahm-wrap .submit-stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.fahm-wrap .submit-stat.answered .submit-stat-val { color: var(--blue); }
.fahm-wrap .submit-stat.unanswered .submit-stat-val { color: #F59E0B; }
.fahm-wrap .submit-stat.total .submit-stat-val { color: var(--mid); }

.fahm-wrap .btn-submit-quiz {
  padding: 14px 48px;
  background: var(--blue);
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(62,131,201,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fahm-wrap .btn-submit-quiz:hover { background: #3270b3; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,131,201,0.45); }
.fahm-wrap .btn-submit-quiz:disabled { background: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }

.fahm-wrap .quiz-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 500; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.fahm-wrap .quiz-modal-overlay.show { display: flex; animation: quizFadeIn 0.2s ease; }
@keyframes quizFadeIn { from { opacity: 0; } to { opacity: 1; } }
.fahm-wrap .quiz-modal { background: var(--white); border-radius: 20px; padding: 32px; max-width: 420px; width: 90%; box-shadow: 0 24px 80px rgba(15,23,42,0.2); animation: quizScaleIn 0.25s ease; }
@keyframes quizScaleIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fahm-wrap .quiz-modal-icon { font-size: 3rem; text-align: center; margin-bottom: 14px; }
.fahm-wrap .quiz-modal-title { font-size: 1.15rem; font-weight: 900; color: var(--dark); text-align: center; margin-bottom: 8px; }
.fahm-wrap .quiz-modal-text { font-size: 0.88rem; color: var(--muted); text-align: center; line-height: 1.8; margin-bottom: 22px; }
.fahm-wrap .quiz-modal-actions { display: flex; gap: 10px; }
.fahm-wrap .btn-modal-confirm { flex: 1; padding: 12px; background: var(--blue); color: white; border: none; border-radius: 10px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(62,131,201,0.3); }
.fahm-wrap .btn-modal-confirm:hover { background: #3270b3; }
.fahm-wrap .btn-modal-cancel { padding: 12px 18px; background: var(--bg); color: var(--muted); border: 1.5px solid var(--border); border-radius: 10px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.fahm-wrap .btn-modal-cancel:hover { border-color: var(--mid); color: var(--mid); }

.fahm-wrap .result-modal .quiz-modal-icon { font-size: 4rem; }
.fahm-wrap .score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  border: 5px solid;
}
.fahm-wrap .score-circle.pass { border-color: #10B981; color: #065F46; background: #F0FDF4; }
.fahm-wrap .score-circle.fail { border-color: #EF4444; color: #991B1B; background: #FEF2F2; }
.fahm-wrap .score-circle-label { font-size: 0.7rem; font-weight: 700; }

@media (max-width: 600px) {
  .fahm-wrap .quiz-stats { gap: 10px; }
  .fahm-wrap .submit-summary { gap: 12px; }
}

/* Card favorite button overlay */
.fahm-wrap .course-card .favorite-btn-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.fahm-wrap .badge-subscribed {
  background: var(--accent2) !important;
  color: white !important;
}

/* ══════════ LESSON PAGE (عرض الدرس) ══════════ */
.lesson-page { background: #0F172A; color: #fff; min-height: 100vh; }
.lesson-page .lesson-navbar {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  position: sticky;
  top: 0;
  z-index: 300;
  gap: 24px;
}
.lesson-page .lesson-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.lesson-page .lesson-nav-logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--blue), #3270b3); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(62,131,201,0.4); }
.lesson-page .lesson-nav-logo-text { font-weight: 800; font-size: 0.95rem; color: white; }
.lesson-page .lesson-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lesson-page .lesson-nav-links a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 0.85rem; font-weight: 600; padding: 5px 10px; border-radius: 7px; transition: all 0.2s; }
.lesson-page .lesson-nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.lesson-page .nav-back { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 9px; color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: all 0.2s; font-family: 'Cairo', sans-serif; }
.lesson-page .nav-back:hover { border-color: rgba(255,255,255,0.4); color: white; background: rgba(255,255,255,0.06); }
.lesson-page .lesson-user-wrap { position: relative; }
.lesson-page .lesson-user-btn { display: flex; align-items: center; gap: 9px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 9px; background: transparent; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.7); transition: all 0.2s; }
.lesson-page .lesson-user-btn:hover, .lesson-page .lesson-user-btn.open { border-color: rgba(255,255,255,0.35); color: white; background: rgba(255,255,255,0.06); }
.lesson-page .lesson-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #7C3AED); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.72rem; font-weight: 900; flex-shrink: 0; }
.lesson-page .lesson-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); min-width: 200px; box-shadow: 0 16px 48px rgba(15,23,42,0.25); padding: 8px; display: none; z-index: 400; }
.lesson-page .lesson-dropdown.show { display: block; animation: lessonDropIn 0.18s ease; }
@keyframes lessonDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lesson-page .lesson-dropdown-header { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.lesson-page .lesson-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--mid); font-size: 0.83rem; font-weight: 600; transition: all 0.15s; cursor: pointer; border: none; background: transparent; width: 100%; text-align: right; font-family: 'Cairo', sans-serif; }
.lesson-page .lesson-dropdown-item:hover { background: var(--bg); color: var(--blue); }
.lesson-page .lesson-dropdown-item.danger { color: #EF4444; }
.lesson-page .lesson-dropdown-item.danger:hover { background: #FEF2F2; }
.lesson-page .lesson-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.lesson-page .lesson-dropdown-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }

.lesson-page .lesson-layout { display: grid; grid-template-columns: 1fr 340px; min-height: calc(100vh - 64px); align-items: start; }
.lesson-page .lesson-main { background: #0F172A; padding-bottom: 40px; }

.lesson-page .lesson-breadcrumb { padding: 14px 24px; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; }
.lesson-page .lesson-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.lesson-page .lesson-breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.lesson-page .breadcrumb-sep { color: rgba(255,255,255,0.2); }
.lesson-page .breadcrumb-cur { color: rgba(255,255,255,0.8); font-weight: 700; }

.lesson-page .video-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; overflow: hidden; }
.lesson-page .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.lesson-page .video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #0F172A, #1E293B); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; }
.lesson-page .play-btn { width: 80px; height: 80px; border-radius: 50%; background: rgba(62,131,201,0.9); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: all 0.2s; border: 3px solid rgba(255,255,255,0.2); box-shadow: 0 0 40px rgba(62,131,201,0.5); pointer-events: none; }
.lesson-page .video-placeholder:hover .play-btn { transform: scale(1.08); background: var(--blue); }
.lesson-page .video-placeholder-text { color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 600; }

.lesson-page .video-meta-bar { background: #1E293B; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lesson-page .lesson-title-main { font-size: 1.1rem; font-weight: 900; color: white; }
.lesson-page .lesson-sub { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.lesson-page .meta-actions { display: flex; gap: 8px; align-items: center; }
.lesson-page .meta-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 9px; background: transparent; color: rgba(255,255,255,0.6); font-family: 'Cairo', sans-serif; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.lesson-page .meta-btn:hover { border-color: rgba(255,255,255,0.4); color: white; background: rgba(255,255,255,0.06); }
.lesson-page .meta-btn.active { border-color: #10B981; color: #10B981; background: rgba(16,185,129,0.08); }

.lesson-page .lesson-content { padding: 24px; }
.lesson-page .content-section { margin-bottom: 24px; }
.lesson-page .content-section-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.lesson-page .content-section-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.lesson-page .desc-text { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.8; }
.lesson-page .files-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-page .file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; text-decoration: none; transition: all 0.2s; color: inherit; }
.lesson-page .file-item:hover { background: rgba(62,131,201,0.12); border-color: rgba(62,131,201,0.3); }
.lesson-page .file-icon { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: rgba(62,131,201,0.15); }
.lesson-page .file-name { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.lesson-page .file-size { font-size: 0.72rem; color: rgba(255,255,255,0.35); }
.lesson-page .file-download { margin-right: auto; font-size: 0.72rem; font-weight: 700; color: var(--blue); padding: 4px 10px; background: rgba(62,131,201,0.1); border-radius: 6px; }

.lesson-page .lesson-nav { display: flex; gap: 10px; padding: 0 24px 24px; }
.lesson-page .nav-lesson-btn { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; text-decoration: none; transition: all 0.2s; color: rgba(255,255,255,0.6); }
.lesson-page .nav-lesson-btn:hover { background: rgba(62,131,201,0.1); border-color: rgba(62,131,201,0.3); color: white; }
.lesson-page .nav-lesson-btn.next { flex-direction: row-reverse; text-align: left; }
.lesson-page .nlb-arrow { font-size: 1.1rem; flex-shrink: 0; }
.lesson-page .nlb-label { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.3); margin-bottom: 2px; }
.lesson-page .nlb-title { font-size: 0.85rem; font-weight: 700; }

.lesson-page .lesson-sidebar { background: #111827; border-right: 1px solid rgba(255,255,255,0.06); min-height: calc(100vh - 64px); }
.lesson-page .sidebar-section { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.lesson-page .sidebar-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 14px; }

.lesson-page .playlist-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: all 0.2s; margin-bottom: 4px; border: 1px solid transparent; text-decoration: none; color: inherit; }
.lesson-page .playlist-item:last-child { margin-bottom: 0; }
.lesson-page .playlist-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.06); }
.lesson-page .playlist-item.active { background: rgba(62,131,201,0.15); border-color: rgba(62,131,201,0.3); cursor: default; }
.lesson-page .playlist-item.locked { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.lesson-page .pl-num { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; }
.lesson-page .pl-num-active { background: var(--blue); color: white; }
.lesson-page .pl-num-done { background: rgba(16,185,129,0.2); color: #10B981; font-size: 0.9rem; }
.lesson-page .pl-num-lock { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.lesson-page .pl-num-next { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.lesson-page .pl-info { flex: 1; min-width: 0; }
.lesson-page .pl-title { font-size: 0.83rem; font-weight: 700; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-page .playlist-item.active .pl-title { color: white; }
.lesson-page .playlist-item.locked .pl-title { color: rgba(255,255,255,0.3); }
.lesson-page .pl-meta { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
.lesson-page .pl-status { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.lesson-page .status-now { background: rgba(62,131,201,0.2); color: #93C5FD; }
.lesson-page .status-done { background: rgba(16,185,129,0.15); color: #10B981; }
.lesson-page .status-lock { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); }

.lesson-page .quiz-card { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: 12px; padding: 16px; }
.lesson-page .quiz-card-title { font-size: 0.92rem; font-weight: 900; color: white; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.lesson-page .quiz-info-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lesson-page .quiz-info-text { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.lesson-page .quiz-done-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(16,185,129,0.15); color: #10B981; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(16,185,129,0.25); }
.lesson-page .btn-quiz-view { width: 100%; padding: 10px; background: linear-gradient(135deg, #F59E0B, #D97706); border: none; border-radius: 10px; font-family: 'Cairo', sans-serif; font-size: 0.85rem; font-weight: 800; color: white; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(245,158,11,0.3); text-decoration: none; display: block; text-align: center; }
.lesson-page .btn-quiz-view:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); color: white; }

.lesson-page .course-sidebar-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; margin-bottom: 12px; }
.lesson-page .course-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #FFF7ED, #FED7AA); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.lesson-page .course-sidebar-name { font-size: 0.88rem; font-weight: 800; color: rgba(255,255,255,0.85); }
.lesson-page .course-sidebar-path { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 2px; }
.lesson-page .btn-back-course { width: 100%; padding: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; font-family: 'Cairo', sans-serif; font-size: 0.83rem; font-weight: 700; color: rgba(255,255,255,0.65); cursor: pointer; transition: all 0.2s; text-decoration: none; display: block; text-align: center; }
.lesson-page .btn-back-course:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.2); }

.lesson-page .progress-wrap { margin-bottom: 8px; }
.lesson-page .progress-label-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.lesson-page .progress-label-text { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 600; }
.lesson-page .progress-pct { font-size: 0.75rem; color: #10B981; font-weight: 800; }
.lesson-page .progress-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.lesson-page .progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #10B981, #059669); transition: width 0.5s ease; }

@media (max-width: 960px) {
  .lesson-page .lesson-layout { grid-template-columns: 1fr; }
  .lesson-page .lesson-sidebar { border-right: none; border-top: 1px solid rgba(255,255,255,0.06); min-height: auto; }
  .lesson-page .lesson-nav-links { display: none; }
}
@media (max-width: 560px) {
  .lesson-page .video-meta-bar { flex-direction: column; align-items: flex-start; }
  .lesson-page .lesson-nav { flex-direction: column; }
}

/* ══════════ LESSON PAGE — داخل الـ layout العادي (ثيم فاتح) ══════════ */
.fahm-wrap .lesson-page-wrap { background: var(--bg); color: var(--dark); min-height: 60vh; padding: 40px 5% 80px; }
.fahm-wrap .lesson-page-wrap .lesson-layout { display: grid; grid-template-columns: 1fr 340px; min-height: 60vh; align-items: start; }
.fahm-wrap .lesson-page-wrap .lesson-main { background: var(--white); padding-bottom: 40px; border-radius: 0; box-shadow: none; }

.fahm-wrap .lesson-page-wrap .lesson-breadcrumb { padding: 14px 24px; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; background: var(--white); border-bottom: 1px solid var(--border); }
.fahm-wrap .lesson-page-wrap .lesson-breadcrumb a { color: var(--mid); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.fahm-wrap .lesson-page-wrap .lesson-breadcrumb a:hover { color: var(--blue); }
.fahm-wrap .lesson-page-wrap .breadcrumb-sep { color: var(--border); }
.fahm-wrap .lesson-page-wrap .breadcrumb-cur { color: var(--dark); font-weight: 700; }

.fahm-wrap .lesson-page-wrap .video-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #1a1a1a; overflow: hidden; }
.fahm-wrap .lesson-page-wrap .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.fahm-wrap .lesson-page-wrap .video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #1E293B, #334155); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; }
.fahm-wrap .lesson-page-wrap .play-btn { width: 80px; height: 80px; border-radius: 50%; background: rgba(62,131,201,0.9); display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: all 0.2s; border: 3px solid rgba(255,255,255,0.2); box-shadow: 0 0 40px rgba(62,131,201,0.4); pointer-events: none; }
.fahm-wrap .lesson-page-wrap .video-placeholder:hover .play-btn { transform: scale(1.08); background: var(--blue); }
.fahm-wrap .lesson-page-wrap .video-placeholder-text { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600; }

.fahm-wrap .lesson-page-wrap .video-meta-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fahm-wrap .lesson-page-wrap .lesson-title-main { font-size: 1.1rem; font-weight: 900; color: var(--dark); }
.fahm-wrap .lesson-page-wrap .lesson-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.fahm-wrap .lesson-page-wrap .meta-actions { display: flex; gap: 8px; align-items: center; }
.fahm-wrap .lesson-page-wrap .meta-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--white); color: var(--mid); font-family: 'Cairo', sans-serif; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.fahm-wrap .lesson-page-wrap .meta-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.fahm-wrap .lesson-page-wrap .meta-btn.active { border-color: #10B981; color: #10B981; background: var(--green-light, #F0FDF4); }

.fahm-wrap .lesson-page-wrap .lesson-content { padding: 24px; background: var(--white); }
.fahm-wrap .lesson-page-wrap .content-section { margin-bottom: 24px; }
.fahm-wrap .lesson-page-wrap .content-section-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fahm-wrap .lesson-page-wrap .content-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.fahm-wrap .lesson-page-wrap .desc-text { color: var(--mid); font-size: 0.88rem; line-height: 1.8; }
.fahm-wrap .lesson-page-wrap .files-list { display: flex; flex-direction: column; gap: 8px; }
.fahm-wrap .lesson-page-wrap .file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: all 0.2s; color: inherit; }
.fahm-wrap .lesson-page-wrap .file-item:hover { background: var(--blue-light); border-color: var(--blue-mid); }
.fahm-wrap .lesson-page-wrap .file-icon { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--blue-mid); color: var(--blue); }
.fahm-wrap .lesson-page-wrap .file-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.fahm-wrap .lesson-page-wrap .file-size { font-size: 0.72rem; color: var(--muted); }
.fahm-wrap .lesson-page-wrap .file-download { margin-right: auto; font-size: 0.72rem; font-weight: 700; color: var(--blue); padding: 4px 10px; background: var(--blue-light); border-radius: 6px; }

.fahm-wrap .lesson-page-wrap .lesson-nav { display: flex; gap: 10px; padding: 0 24px 24px; background: var(--white); }
.fahm-wrap .lesson-page-wrap .nav-lesson-btn { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; text-decoration: none; transition: all 0.2s; color: var(--mid); }
.fahm-wrap .lesson-page-wrap .nav-lesson-btn:hover { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }
.fahm-wrap .lesson-page-wrap .nav-lesson-btn.next { flex-direction: row-reverse; text-align: left; }
.fahm-wrap .lesson-page-wrap .nlb-arrow { font-size: 1.1rem; flex-shrink: 0; }
.fahm-wrap .lesson-page-wrap .nlb-label { font-size: 0.7rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.fahm-wrap .lesson-page-wrap .nlb-title { font-size: 0.85rem; font-weight: 700; color: var(--dark); }

.fahm-wrap .lesson-page-wrap .lesson-sidebar { background: var(--white); border-right: 1px solid var(--border); border-left: none; min-height: 60vh; }
.fahm-wrap .lesson-page-wrap .sidebar-section { padding: 20px; border-bottom: 1px solid var(--border); }
.fahm-wrap .lesson-page-wrap .sidebar-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }

.fahm-wrap .lesson-page-wrap .playlist-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: all 0.2s; margin-bottom: 4px; border: 1px solid transparent; text-decoration: none; color: inherit; }
.fahm-wrap .lesson-page-wrap .playlist-item:last-child { margin-bottom: 0; }
.fahm-wrap .lesson-page-wrap .playlist-item:hover { background: var(--bg); border-color: var(--border); }
.fahm-wrap .lesson-page-wrap .playlist-item.active { background: var(--blue-light); border-color: var(--blue-mid); cursor: default; }
.fahm-wrap .lesson-page-wrap .playlist-item.locked { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.fahm-wrap .lesson-page-wrap .pl-num { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; }
.fahm-wrap .lesson-page-wrap .pl-num-active { background: var(--blue); color: white; }
.fahm-wrap .lesson-page-wrap .pl-num-done { background: #F0FDF4; color: #10B981; font-size: 0.9rem; }
.fahm-wrap .lesson-page-wrap .pl-num-next { background: var(--bg); color: var(--muted); font-size: 0.8rem; }
.fahm-wrap .lesson-page-wrap .pl-info { flex: 1; min-width: 0; }
.fahm-wrap .lesson-page-wrap .pl-title { font-size: 0.83rem; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fahm-wrap .lesson-page-wrap .playlist-item.active .pl-title { color: var(--blue); }
.fahm-wrap .lesson-page-wrap .playlist-item.locked .pl-title { color: var(--muted); }
.fahm-wrap .lesson-page-wrap .pl-meta { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.fahm-wrap .lesson-page-wrap .pl-status { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.fahm-wrap .lesson-page-wrap .status-now { background: var(--blue-mid); color: var(--blue); }
.fahm-wrap .lesson-page-wrap .status-done { background: #F0FDF4; color: #10B981; }
.fahm-wrap .lesson-page-wrap .status-lock { background: var(--bg); color: var(--muted); }

.fahm-wrap .lesson-page-wrap .quiz-card { background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 12px; padding: 16px; }
.fahm-wrap .lesson-page-wrap .quiz-card-title { font-size: 0.92rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.fahm-wrap .lesson-page-wrap .quiz-info-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fahm-wrap .lesson-page-wrap .quiz-info-text { font-size: 0.78rem; color: var(--muted); }
.fahm-wrap .lesson-page-wrap .quiz-done-badge { display: inline-flex; align-items: center; gap: 4px; background: #F0FDF4; color: #10B981; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(16,185,129,0.25); }
.fahm-wrap .lesson-page-wrap .btn-quiz-view { width: 100%; padding: 10px; background: linear-gradient(135deg, #F59E0B, #D97706); border: none; border-radius: 10px; font-family: 'Cairo', sans-serif; font-size: 0.85rem; font-weight: 800; color: white; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(245,158,11,0.3); text-decoration: none; display: block; text-align: center; }
.fahm-wrap .lesson-page-wrap .btn-quiz-view:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); color: white; }

.fahm-wrap .lesson-page-wrap .course-sidebar-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.fahm-wrap .lesson-page-wrap .course-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #FFF7ED, #FED7AA); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.fahm-wrap .lesson-page-wrap .course-sidebar-name { font-size: 0.88rem; font-weight: 800; color: var(--dark); }
.fahm-wrap .lesson-page-wrap .course-sidebar-path { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.fahm-wrap .lesson-page-wrap .btn-back-course { width: 100%; padding: 10px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; font-family: 'Cairo', sans-serif; font-size: 0.83rem; font-weight: 700; color: var(--mid); cursor: pointer; transition: all 0.2s; text-decoration: none; display: block; text-align: center; }
.fahm-wrap .lesson-page-wrap .btn-back-course:hover { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }

.fahm-wrap .lesson-page-wrap .progress-wrap { margin-bottom: 8px; }
.fahm-wrap .lesson-page-wrap .progress-label-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.fahm-wrap .lesson-page-wrap .progress-label-text { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.fahm-wrap .lesson-page-wrap .progress-pct { font-size: 0.75rem; color: #10B981; font-weight: 800; }
.fahm-wrap .lesson-page-wrap .progress-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.fahm-wrap .lesson-page-wrap .progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #10B981, #059669); transition: width 0.5s ease; }

@media (max-width: 960px) {
  .fahm-wrap .lesson-page-wrap .lesson-layout { grid-template-columns: 1fr; }
  .fahm-wrap .lesson-page-wrap .lesson-sidebar { border-right: none; border-top: 1px solid var(--border); min-height: auto; }
}
@media (max-width: 560px) {
  .fahm-wrap .lesson-page-wrap .video-meta-bar { flex-direction: column; align-items: flex-start; }
  .fahm-wrap .lesson-page-wrap .lesson-nav { flex-direction: column; }
}

/* ══════════ AUTH PAGES (تسجيل الدخول / التسجيل) ══════════ */
.fahm-wrap .auth-page {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 80px 5% 90px;
}
.fahm-wrap .auth-page::before,
.fahm-wrap .auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.fahm-wrap .auth-page::before {
  top: -220px; left: -220px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(62,131,201,0.12), transparent 70%);
}
.fahm-wrap .auth-page::after {
  bottom: -200px; right: -200px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245,158,11,0.10), transparent 70%);
}
.fahm-wrap .auth-page .auth-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 50px;
}
.fahm-wrap .auth-page .auth-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: stretch;
}
.fahm-wrap .auth-page .auth-headline {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 24px;
}
.fahm-wrap .auth-page .auth-headline span { color: var(--blue); }
.fahm-wrap .auth-page .auth-img-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15,23,42,0.20);
  width: 100%;
  flex: 1;
  min-height: 420px;
}
.fahm-wrap .auth-page .auth-img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fahm-wrap .auth-page .auth-img-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(15,23,42,0.85), transparent);
  color: #fff;
}
.fahm-wrap .auth-page .auth-img-tag {
  display: inline-block;
  background: var(--accent);
  color: #4a2800;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.fahm-wrap .auth-page .auth-img-overlay p {
  font-size: 0.94rem;
  font-weight: 600;
}
.fahm-wrap .auth-page .auth-stat-badge {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 10px 15px;
  box-shadow: 0 12px 34px rgba(15,23,42,0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: authFloat 3s ease-in-out infinite;
}
.fahm-wrap .auth-page .auth-stat-badge.top { top: -16px; inset-inline-end: -20px; animation-delay: 0s; }
.fahm-wrap .auth-page .auth-stat-badge.bottom { bottom: 90px; inset-inline-start: -20px; animation-delay: 1.3s; }
.fahm-wrap .auth-page .auth-stat-badge .icon { font-size: 1.4rem; }
.fahm-wrap .auth-page .auth-stat-badge .info { display: flex; flex-direction: column; }
.fahm-wrap .auth-page .auth-stat-badge .num { font-size: 1rem; font-weight: 800; color: var(--blue); }
.fahm-wrap .auth-page .auth-stat-badge .lbl { font-size: 0.7rem; color: var(--muted); }
@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fahm-wrap .auth-page .auth-form-side {
  flex: 0 0 420px;
  width: 420px;
}
.fahm-wrap .auth-page .auth-form-card {
  background: #fff;
  border-radius: 26px;
  padding: 28px 26px 26px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(15,23,42,0.10);
  position: relative;
  overflow: hidden;
}
.fahm-wrap .auth-page .auth-form-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #5a9ad4, var(--accent));
}
.fahm-wrap .auth-page .auth-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 4px;
}
.fahm-wrap .auth-page .auth-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.fahm-wrap .auth-page .auth-field { margin-bottom: 12px; }
.fahm-wrap .auth-page .auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}
.fahm-wrap .auth-page .auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fahm-wrap .auth-page .auth-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #dde3f5;
  background: #F7FAFF;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: all 0.25s;
  direction: rtl;
}
.fahm-wrap .auth-page .auth-input-wrap input::placeholder { color: #b0b8d8; }
.fahm-wrap .auth-page .auth-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(62,131,201,0.18);
  background: #fff;
}
.fahm-wrap .auth-page .auth-input-icon {
  position: absolute;
  inset-inline-end: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.fahm-wrap .auth-page .auth-input-eye {
  position: absolute;
  inset-inline-start: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.fahm-wrap .auth-page .auth-input-eye:hover { color: var(--blue); }

.fahm-wrap .auth-page .auth-field-row {
  display: flex;
  gap: 10px;
}
.fahm-wrap .auth-page .auth-field-row .auth-field { flex: 1; }

.fahm-wrap .auth-page .auth-forgot {
  text-align: left;
  margin-top: 4px;
  margin-bottom: 16px;
}
.fahm-wrap .auth-page .auth-forgot a {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.fahm-wrap .auth-page .auth-forgot a:hover { opacity: 0.75; }

.fahm-wrap .auth-page .auth-btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--blue), #5a9ad4);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(62,131,201,0.35);
  transition: all 0.28s;
}
.fahm-wrap .auth-page .auth-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(62,131,201,0.45);
}

.fahm-wrap .auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.fahm-wrap .auth-page .auth-divider::before,
.fahm-wrap .auth-page .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dde3f5;
}
.fahm-wrap .auth-page .auth-divider span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.fahm-wrap .auth-page .auth-social-btns {
  display: flex;
  gap: 10px;
}
.fahm-wrap .auth-page .auth-social-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #dde3f5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
  transition: all 0.25s;
}
.fahm-wrap .auth-page .auth-social-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(62,131,201,0.25);
  transform: translateY(-1px);
}
.fahm-wrap .auth-page .auth-social-btn img {
  width: 20px;
  height: 20px;
}

.fahm-wrap .auth-page .auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
}
.fahm-wrap .auth-page .auth-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.fahm-wrap .auth-page .auth-footer a:hover { text-decoration: underline; }

.fahm-wrap .auth-page .auth-errors {
  margin-bottom: 10px;
}
.fahm-wrap .auth-page .auth-errors .alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
}

@media (max-width: 992px) {
  .fahm-wrap .auth-page {
    padding: 80px 5% 70px;
  }
  .fahm-wrap .auth-page .auth-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .fahm-wrap .auth-page .auth-visual {
    align-items: center;
    text-align: center;
  }
  .fahm-wrap .auth-page .auth-headline {
    font-size: 1.7rem;
  }
  .fahm-wrap .auth-page .auth-form-side {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .fahm-wrap .auth-page {
    padding: 70px 4% 60px;
  }
  .fahm-wrap .auth-page .auth-img-card {
    min-height: 320px;
  }
  .fahm-wrap .auth-page .auth-form-card {
    padding: 22px 18px 20px;
    border-radius: 22px;
  }
  .fahm-wrap .auth-page .auth-field-row {
    flex-direction: column;
  }
  .fahm-wrap .auth-page .auth-social-btns {
    flex-direction: column;
  }
}

/* ══════════ HOMEPAGE (الرئيسية) ══════════ */
.fahm-wrap .home-page { overflow-x: hidden; }
.fahm-wrap .home-page .hp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 6% 72px;
  position: relative;
  overflow: hidden;
  background: url('/images/hero-bg.png') center center / cover no-repeat;
}
.fahm-wrap .home-page .hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.7) 100%);
  pointer-events: none;
}
.fahm-wrap .home-page .hp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  animation: hpOrbFloat 9s ease-in-out infinite;
}
.fahm-wrap .home-page .hp-orb1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(62,131,201,0.2), transparent 70%); top: -120px; left: -80px; }
.fahm-wrap .home-page .hp-orb2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(253,230,138,0.15), transparent 70%); bottom: -80px; right: -50px; animation-delay: -4s; }
@keyframes hpOrbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.fahm-wrap .home-page .hp-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.fahm-wrap .home-page .h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.fahm-wrap .home-page .e-dot { width: 6px; height: 6px; background: #FDE68A; border-radius: 50%; animation: hpEPulse 1.5s infinite; }
@keyframes hpEPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(1.6); } }
.fahm-wrap .home-page .h-headline { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 900; line-height: 1.18; margin-bottom: 18px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3); }
.fahm-wrap .home-page .h-line-small { font-size: 0.52em; font-weight: 700; color: rgba(255,255,255,0.85); display: block; margin-bottom: 4px; }
.fahm-wrap .home-page .h-accent { color: #FDE68A; position: relative; display: inline; }
.fahm-wrap .home-page .h-accent::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #F59E0B, transparent); border-radius: 2px; }
.fahm-wrap .home-page .h-desc { color: rgba(255,255,255,0.92); font-size: 1rem; line-height: 1.85; max-width: 540px; margin: 0 auto 30px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.fahm-wrap .home-page .h-desc strong { color: #fff; font-weight: 700; }
.fahm-wrap .home-page .h-ctas { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.fahm-wrap .home-page .btn-hp { padding: 14px 30px; background: linear-gradient(135deg, var(--blue), #3270b3); border: none; border-radius: 12px; color: white; font-family: 'Cairo', sans-serif; font-size: 0.93rem; font-weight: 800; cursor: pointer; transition: all 0.25s; box-shadow: 0 6px 22px rgba(62,131,201,0.4); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.fahm-wrap .home-page .btn-hp:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(62,131,201,0.52); color: white; }
.fahm-wrap .home-page .btn-hs { padding: 14px 26px; background: transparent; border: 2px solid rgba(255,255,255,0.9); border-radius: 12px; color: #fff; font-family: 'Cairo', sans-serif; font-size: 0.93rem; font-weight: 700; cursor: pointer; transition: all 0.25s; text-decoration: none; display: inline-flex; align-items: center; }
.fahm-wrap .home-page .btn-hs:hover { border-color: #fff; background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }
.fahm-wrap .home-page .trust-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.fahm-wrap .home-page .t-avs { display: flex; }
.fahm-wrap .home-page .t-av { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid white; background: linear-gradient(135deg, var(--blue), #7C3AED); display: flex; align-items: center; justify-content: center; font-size: 0.67rem; font-weight: 900; color: white; margin-left: -9px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.fahm-wrap .home-page .t-av:first-child { margin-left: 0; }
.fahm-wrap .home-page .t-info { font-size: 0.78rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.fahm-wrap .home-page .t-info strong { color: #fff; font-weight: 800; display: block; }

.fahm-wrap .home-page .hp-visual { position: relative; }
.fahm-wrap .home-page .hvc {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 70px rgba(62,131,201,0.1), 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.fahm-wrap .home-page .hvc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #F59E0B); }
.fahm-wrap .home-page .hp-cp { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.fahm-wrap .home-page .hp-cph { padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); background: white; }
.fahm-wrap .home-page .hp-cphi { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #FFF7ED, #FED7AA); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.fahm-wrap .home-page .hp-cphn { font-size: 0.87rem; font-weight: 800; color: var(--dark); }
.fahm-wrap .home-page .hp-cphp { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }
.fahm-wrap .home-page .hp-cpp { padding: 12px 16px; background: white; border-bottom: 1px solid var(--border); }
.fahm-wrap .home-page .hp-cpp-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.fahm-wrap .home-page .hp-cpp-l { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.fahm-wrap .home-page .hp-cpp-v { font-size: 0.7rem; font-weight: 800; color: var(--blue); }
.fahm-wrap .home-page .hp-cpp-track { height: 6px; background: var(--blue-mid); border-radius: 3px; overflow: hidden; }
.fahm-wrap .home-page .hp-cpp-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), #7C3AED); width: 68%; }
.fahm-wrap .home-page .hp-cpl { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fahm-wrap .home-page .hp-cpli { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; transition: all 0.2s; }
.fahm-wrap .home-page .hp-cpli.active { background: var(--blue-light); border-color: var(--blue-mid); }
.fahm-wrap .home-page .hp-cpli-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; flex-shrink: 0; }
.fahm-wrap .home-page .hp-cpli-ico.ib { background: var(--blue-mid); color: var(--blue); }
.fahm-wrap .home-page .hp-cpli-ico.ig { background: #F0FDF4; color: #10B981; }
.fahm-wrap .home-page .hp-cpli-ico.il { background: var(--bg); color: var(--border); }
.fahm-wrap .home-page .hp-cpli-t { font-size: 0.78rem; font-weight: 600; color: var(--mid); flex: 1; }
.fahm-wrap .home-page .hp-cpli.active .hp-cpli-t { color: var(--blue); font-weight: 700; }
.fahm-wrap .home-page .hp-cpli-b { font-size: 0.63rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.fahm-wrap .home-page .hp-cpli-b.bn { background: var(--blue-mid); color: var(--blue); }
.fahm-wrap .home-page .hp-cpli-b.bd { background: #F0FDF4; color: #10B981; }
.fahm-wrap .home-page .hp-fc {
  position: absolute;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: 0 8px 32px rgba(62,131,201,0.13);
  z-index: 2;
}
.fahm-wrap .home-page .hp-fc1 { top: -16px; right: -16px; }
.fahm-wrap .home-page .hp-fc2 { bottom: 40px; left: -18px; }
.fahm-wrap .home-page .hp-fc3 { top: 38%; left: -26px; }
.fahm-wrap .home-page .hp-fc-val { font-size: 1.1rem; font-weight: 900; color: var(--dark); display: flex; align-items: center; gap: 5px; }
.fahm-wrap .home-page .hp-fc-lbl { font-size: 0.67rem; color: var(--muted); margin-top: 1px; font-weight: 600; }
.fahm-wrap .home-page .hp-fc-tr { font-size: 0.63rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: #F0FDF4; color: #10B981; }

.fahm-wrap .home-page .stats-band { padding: 52px 6%; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fahm-wrap .home-page .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.fahm-wrap .home-page .stat-box { padding: 28px 20px; text-align: center; border-left: 1px solid var(--border); transition: background 0.2s; }
.fahm-wrap .home-page .stat-box:last-child { border-left: none; }
.fahm-wrap .home-page .stat-ico { font-size: 1.5rem; margin-bottom: 10px; display: block; }
.fahm-wrap .home-page .stat-num { font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 5px; }
.fahm-wrap .home-page .stat-num span { color: var(--blue); }
.fahm-wrap .home-page .stat-lbl { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.fahm-wrap .home-page .sec-hd { text-align: center; margin-bottom: 48px; }
.fahm-wrap .home-page .s-ey { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-light); border: 1px solid var(--blue-mid); color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; padding: 5px 16px; border-radius: 20px; margin-bottom: 14px; text-transform: uppercase; }
.fahm-wrap .home-page .s-ti { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 900; color: var(--dark); margin-bottom: 10px; line-height: 1.25; }
.fahm-wrap .home-page .s-ti em { font-style: normal; color: #F59E0B; }
.fahm-wrap .home-page .s-sb { color: var(--muted); font-size: 0.9rem; line-height: 1.75; }

.fahm-wrap .home-page .stages-section { padding: 76px 6%; background: white; }
.fahm-wrap .home-page .stages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fahm-wrap .home-page .stg {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  color: inherit;
}
.fahm-wrap .home-page .stg::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--stg-line, linear-gradient(90deg, var(--blue), #7C3AED)); transform: scaleX(0); transition: transform 0.3s; transform-origin: right; }
.fahm-wrap .home-page .stg:hover { border-color: var(--stg-hover, #C8DFF8); background: white; transform: translateY(-4px); box-shadow: 0 12px 48px rgba(62,131,201,0.14); }
.fahm-wrap .home-page .stg:hover::after { transform: scaleX(1); }
.fahm-wrap .home-page .stg-n { font-size: 0.68rem; font-weight: 800; color: var(--muted); letter-spacing: 2px; margin-bottom: 12px; text-transform: uppercase; }
.fahm-wrap .home-page .stg-ico { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.fahm-wrap .home-page .stg-name { font-size: 1rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.fahm-wrap .home-page .stg-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.fahm-wrap .home-page .stg-cnt { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--border); padding: 3px 10px; border-radius: 20px; }

.fahm-wrap .home-page .subj-sec { padding: 76px 6%; background: var(--bg); }
.fahm-wrap .home-page .subj-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.fahm-wrap .home-page .subj-scroll::-webkit-scrollbar { display: none; }
.fahm-wrap .home-page .sp {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.fahm-wrap .home-page .sp:hover { border-color: var(--blue); background: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.fahm-wrap .home-page .sp:hover .sp-n { color: var(--blue); }
.fahm-wrap .home-page .sp-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.fahm-wrap .home-page .sp-n { font-size: 0.88rem; font-weight: 800; color: var(--dark); transition: color 0.2s; }
.fahm-wrap .home-page .sp-c { font-size: 0.7rem; color: var(--muted); }

.fahm-wrap .home-page .how-sec { padding: 76px 6%; background: white; }
.fahm-wrap .home-page .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; max-width: 1100px; margin: 0 auto; }
.fahm-wrap .home-page .steps-line { position: absolute; top: 44px; right: 12.5%; left: 12.5%; height: 2px; background: linear-gradient(90deg, var(--blue-mid), #FEF3C7); pointer-events: none; border-radius: 1px; }
.fahm-wrap .home-page .step-card { text-align: center; position: relative; }
.fahm-wrap .home-page .step-ico { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; position: relative; z-index: 1; border: 2px solid var(--border); background: white; box-shadow: var(--shadow); }
.fahm-wrap .home-page .step-ico.si1 { border-color: var(--blue-mid) !important; background: var(--blue-light) !important; }
.fahm-wrap .home-page .step-ico.si2 { border-color: #FEF3C7 !important; background: #FFFBEB !important; }
.fahm-wrap .home-page .step-ico.si3 { border-color: #E9D5FF !important; background: #F5F3FF !important; }
.fahm-wrap .home-page .step-ico.si4 { border-color: #BBF7D0 !important; background: #F0FDF4 !important; }
.fahm-wrap .home-page .step-title { font-size: 0.93rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.fahm-wrap .home-page .step-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.7; }

.fahm-wrap .home-page .courses-prev { padding: 76px 6%; background: var(--bg); }
.fahm-wrap .home-page .cpg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.fahm-wrap .home-page .pc { background: white; border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; transition: all 0.3s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.fahm-wrap .home-page .pc:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 48px rgba(62,131,201,0.14); }
.fahm-wrap .home-page .pc-thumb { height: 155px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; overflow: hidden; }
.fahm-wrap .home-page .pc-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.fahm-wrap .home-page .pc-body { padding: 18px; }
.fahm-wrap .home-page .pc-subj { font-size: 0.68rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; }
.fahm-wrap .home-page .pc-title { font-size: 0.95rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.fahm-wrap .home-page .pc-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; }
.fahm-wrap .home-page .pc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.fahm-wrap .home-page .pc-rating { font-size: 0.75rem; font-weight: 700; color: #F59E0B; }
.fahm-wrap .home-page .pc-stu { font-size: 0.72rem; color: var(--muted); }

.fahm-wrap .home-page .testi-sec { padding: 76px 6%; background: white; }
.fahm-wrap .home-page .tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.fahm-wrap .home-page .tc { background: var(--bg); border: 1.5px solid var(--border); border-radius: 18px; padding: 24px; transition: all 0.2s; }
.fahm-wrap .home-page .tc:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); }
.fahm-wrap .home-page .tc-stars { color: #F59E0B; font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 2px; }
.fahm-wrap .home-page .tc-text { font-size: 0.87rem; color: var(--mid); line-height: 1.8; margin-bottom: 16px; }
.fahm-wrap .home-page .tc-user { display: flex; align-items: center; gap: 10px; }
.fahm-wrap .home-page .tc-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #7C3AED); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.8rem; font-weight: 900; flex-shrink: 0; }
.fahm-wrap .home-page .tc-name { font-size: 0.85rem; font-weight: 800; color: var(--dark); }
.fahm-wrap .home-page .tc-grade { font-size: 0.72rem; color: var(--muted); }

.fahm-wrap .home-page .cta-sec { padding: 80px 6%; background: var(--bg); }
.fahm-wrap .home-page .cta-in {
  background: linear-gradient(135deg, var(--blue), #3270b3);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.fahm-wrap .home-page .cta-in::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 65%); pointer-events: none; }
.fahm-wrap .home-page .cta-badge { display: inline-block; background: rgba(255,255,255,0.14); color: white; font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; padding: 5px 16px; border-radius: 20px; margin-bottom: 16px; position: relative; z-index: 1; }
.fahm-wrap .home-page .cta-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; color: white; margin-bottom: 12px; line-height: 1.25; position: relative; z-index: 1; }
.fahm-wrap .home-page .cta-sub { color: rgba(255,255,255,0.72); font-size: 0.92rem; line-height: 1.8; max-width: 480px; margin: 0 auto 32px; position: relative; z-index: 1; }
.fahm-wrap .home-page .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.fahm-wrap .home-page .btn-cw { padding: 14px 34px; background: white; border: none; border-radius: 12px; color: var(--blue); font-family: 'Cairo', sans-serif; font-size: 0.93rem; font-weight: 800; cursor: pointer; transition: all 0.25s; box-shadow: 0 6px 24px rgba(0,0,0,0.18); text-decoration: none; display: inline-block; }
.fahm-wrap .home-page .btn-cw:hover { transform: translateY(-2px); color: var(--blue); box-shadow: 0 10px 36px rgba(0,0,0,0.26); }
.fahm-wrap .home-page .btn-co { padding: 14px 28px; background: transparent; border: 2px solid rgba(255,255,255,0.32); border-radius: 12px; color: white; font-family: 'Cairo', sans-serif; font-size: 0.93rem; font-weight: 700; cursor: pointer; transition: all 0.25s; text-decoration: none; display: inline-block; }
.fahm-wrap .home-page .btn-co:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.07); color: white; }

@media (max-width: 1024px) {
  .fahm-wrap .home-page .hp-hero-content { grid-template-columns: 1fr; gap: 48px; }
  .fahm-wrap .home-page .hp-visual { max-width: 480px; margin: 0 auto; }
  .fahm-wrap .home-page .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .home-page .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .home-page .cpg, .fahm-wrap .home-page .tg { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .home-page .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .home-page .steps-line { display: none; }
}
.fahm-wrap .home-page .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fahm-wrap .home-page .reveal.visible { opacity: 1; transform: translateY(0); }
.fahm-wrap .home-page .rd1 { transition-delay: 0.1s; }
.fahm-wrap .home-page .rd2 { transition-delay: 0.2s; }
.fahm-wrap .home-page .rd3 { transition-delay: 0.3s; }

@media (max-width: 640px) {
  .fahm-wrap .home-page .hp-hero { padding: 88px 5% 56px; }
  .fahm-wrap .home-page .stats-grid { grid-template-columns: 1fr 1fr; }
  .fahm-wrap .home-page .stages-grid, .fahm-wrap .home-page .cpg, .fahm-wrap .home-page .tg { grid-template-columns: 1fr; }
  .fahm-wrap .home-page .steps-grid { grid-template-columns: 1fr; }
  .fahm-wrap .home-page .cta-in { padding: 40px 22px; }
}

/* ══════════ INFO PAGES (من نحن، الأسئلة الشائعة، سياسة الخصوصية، الشروط، الدعم) ══════════ */
.fahm-wrap .info-page-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 5% 3rem;
  color: #fff;
  background: linear-gradient(135deg, #0d1b4b 0%, #3270b3 55%, #3E83C9 100%);
}
.fahm-wrap .hero-about {
  background: linear-gradient(135deg, rgba(13,27,75,0.88) 0%, rgba(50,112,179,0.9) 100%), url(https://images.unsplash.com/photo-1543269865-cbf427effbad?w=1400&q=85) center/cover no-repeat;
}
.fahm-wrap .info-page-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.fahm-wrap .info-page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: 6%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
}
.fahm-wrap .info-page-hero .hero-inner { position: relative; z-index: 1; max-width: 700px; }
.fahm-wrap .info-page-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.fahm-wrap .info-page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.25; margin-bottom: 0.6rem; }
.fahm-wrap .info-page-hero .hero-desc { font-size: 0.95rem; opacity: 0.85; line-height: 1.8; max-width: 540px; }
.fahm-wrap .info-page-hero .hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }

/* About */
.fahm-wrap .about-body { max-width: 1200px; margin: 0 auto; padding: 2.5rem 5% 3rem; }
.fahm-wrap .mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.fahm-wrap .mission-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.08);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .mission-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #5a9ad4);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.fahm-wrap .mission-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(26,86,219,0.14); }
.fahm-wrap .mission-card:hover::before { transform: scaleX(1); }
.fahm-wrap .mc-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.fahm-wrap .mc-title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 0.4rem; }
.fahm-wrap .mc-text { font-size: 0.82rem; color: var(--muted); line-height: 1.75; font-weight: 500; }
.fahm-wrap .story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.fahm-wrap .story-text h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 900; margin-bottom: 0.85rem; line-height: 1.3; }
.fahm-wrap .story-text h2 span { color: var(--blue); }
.fahm-wrap .story-text p { font-size: 0.88rem; color: var(--muted); line-height: 1.85; margin-bottom: 0.85rem; font-weight: 500; }
.fahm-wrap .story-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.fahm-wrap .story-list li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.fahm-wrap .story-list .check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), #5a9ad4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.fahm-wrap .story-visual {
  background: linear-gradient(135deg, #0d1b4b, #3E83C9);
  border-radius: 24px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fahm-wrap .story-visual::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
}
.fahm-wrap .stats-big { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; z-index: 1; }
.fahm-wrap .stat-big {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.fahm-wrap .stat-big .n { font-size: 1.85rem; font-weight: 900; color: #FDE68A; }
.fahm-wrap .stat-big .l { font-size: 0.75rem; opacity: 0.85; font-weight: 600; margin-top: 2px; }
.fahm-wrap .team-section { margin-bottom: 4rem; }
.fahm-wrap .info-section-title { text-align: center; margin-bottom: 2rem; }
.fahm-wrap .info-section-title h2 { font-size: 1.65rem; font-weight: 900; margin-bottom: 0.35rem; }
.fahm-wrap .info-section-title p { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.fahm-wrap .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fahm-wrap .team-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.08);
  transition: all 0.3s;
}
.fahm-wrap .team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(26,86,219,0.14); }
.fahm-wrap .team-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(26,86,219,0.15);
}
.fahm-wrap .team-name { font-size: 0.92rem; font-weight: 800; color: var(--dark); margin-bottom: 0.2rem; }
.fahm-wrap .team-role { font-size: 0.72rem; color: var(--blue); font-weight: 600; background: var(--blue-light); padding: 3px 10px; border-radius: 12px; display: inline-block; }

/* FAQ */
.fahm-wrap .faq-body { max-width: 900px; margin: 0 auto; padding: 2.5rem 5% 3rem; }
.fahm-wrap .faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.fahm-wrap .faq-cat {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s;
}
.fahm-wrap .faq-cat:hover,
.fahm-wrap .faq-cat.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 14px rgba(62,131,201,0.35); }
.fahm-wrap .faq-list { display: flex; flex-direction: column; gap: 0.85rem; }
.fahm-wrap .faq-item {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.06);
  overflow: hidden;
  transition: all 0.3s;
}
.fahm-wrap .faq-item.open { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(62,131,201,0.2), 0 8px 32px rgba(26,86,219,0.08); }
.fahm-wrap .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  gap: 1rem;
}
.fahm-wrap .faq-q-text { font-size: 0.92rem; font-weight: 700; color: var(--dark); flex: 1; }
.fahm-wrap .faq-item.open .faq-q-text { color: var(--blue); }
.fahm-wrap .faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--muted);
}
.fahm-wrap .faq-item.open .faq-icon { background: var(--blue); color: #fff; transform: rotate(45deg); }
.fahm-wrap .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.fahm-wrap .faq-item.open .faq-a { max-height: 400px; padding: 0 1.4rem 1.2rem; }
.fahm-wrap .faq-a p { font-size: 0.85rem; color: var(--muted); line-height: 1.85; font-weight: 500; }
.fahm-wrap .faq-num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--blue);
  background: var(--blue-light);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Policy (Privacy / Terms) */
.fahm-wrap .policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 2.5rem 5% 3rem; align-items: start; }
.fahm-wrap .policy-nav {
  position: sticky;
  top: 86px;
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.06);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fahm-wrap .policy-nav .pn-title { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4rem 0.75rem; margin-bottom: 0.2rem; }
.fahm-wrap .policy-nav a { display: flex; align-items: center; gap: 8px; padding: 0.6rem 0.75rem; border-radius: 10px; font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; transition: all 0.2s; }
.fahm-wrap .policy-nav a:hover,
.fahm-wrap .policy-nav a.active { background: var(--bg); color: var(--blue); }
.fahm-wrap .policy-nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.fahm-wrap .policy-content {}
.fahm-wrap .policy-section {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.06);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.fahm-wrap .policy-section h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--bg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fahm-wrap .policy-section h2 .sec-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #5a9ad4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fahm-wrap .policy-section p { font-size: 0.85rem; color: var(--muted); line-height: 1.9; margin-bottom: 0.85rem; font-weight: 500; }
.fahm-wrap .policy-section p:last-child { margin-bottom: 0; }
.fahm-wrap .policy-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.fahm-wrap .policy-section ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--muted); font-weight: 500; line-height: 1.6; }
.fahm-wrap .policy-section ul li::before { content: '•'; color: var(--blue); font-weight: 900; font-size: 1.05rem; line-height: 1.3; flex-shrink: 0; }
.fahm-wrap .last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Support */
.fahm-wrap .support-body { max-width: 1200px; margin: 0 auto; padding: 2.5rem 5% 3rem; }
.fahm-wrap .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.fahm-wrap .contact-card {
  background: #fff;
  border-radius: 22px;
  padding: 2rem 1.6rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.08);
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.fahm-wrap .contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), #5a9ad4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.fahm-wrap .contact-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(26,86,219,0.14); }
.fahm-wrap .contact-card:hover::after { opacity: 1; }
.fahm-wrap .contact-card:hover .cc-icon-wrap,
.fahm-wrap .contact-card:hover .cc-title,
.fahm-wrap .contact-card:hover .cc-desc,
.fahm-wrap .contact-card:hover .cc-link { color: #fff !important; }
.fahm-wrap .contact-card:hover .cc-icon-wrap { background: rgba(255,255,255,0.2) !important; box-shadow: none !important; }
.fahm-wrap .contact-card:hover .cc-badge { background: rgba(255,255,255,0.2); color: #fff; }
.fahm-wrap .contact-card * { position: relative; z-index: 1; }
.fahm-wrap .cc-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: all 0.3s;
}
.fahm-wrap .cc-title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 0.35rem; transition: color 0.3s; }
.fahm-wrap .cc-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.85rem; font-weight: 500; transition: color 0.3s; }
.fahm-wrap .cc-link { font-size: 0.82rem; font-weight: 700; color: var(--blue); transition: color 0.3s; }
.fahm-wrap .cc-badge { display: inline-block; background: var(--bg); color: var(--blue); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-top: 0.4rem; transition: all 0.3s; }
.fahm-wrap .support-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.fahm-wrap .support-form {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.08);
}
.fahm-wrap .support-form h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 0.35rem; }
.fahm-wrap .support-form .sf-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; font-weight: 500; }
.fahm-wrap .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fahm-wrap .info-page .field { margin-bottom: 1rem; }
.fahm-wrap .info-page .field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.fahm-wrap .info-page .field input,
.fahm-wrap .info-page .field select,
.fahm-wrap .info-page .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-family: 'Cairo', sans-serif;
  font-size: 0.86rem;
  color: var(--dark);
  outline: none;
  transition: all 0.3s;
  resize: none;
  direction: rtl;
}
.fahm-wrap .info-page .field input:focus,
.fahm-wrap .info-page .field select:focus,
.fahm-wrap .info-page .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(62,131,201,0.2); background: #fff; }
.fahm-wrap .info-page .field textarea { min-height: 120px; }
.fahm-wrap .btn-send {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--blue), #5a9ad4);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(62,131,201,0.35);
}
.fahm-wrap .btn-send:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(62,131,201,0.4); }
.fahm-wrap .support-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.fahm-wrap .sidebar-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,86,219,0.06);
}
.fahm-wrap .sidebar-card h4 { font-size: 0.92rem; font-weight: 800; color: var(--dark); margin-bottom: 0.85rem; display: flex; align-items: center; gap: 8px; }
.fahm-wrap .sidebar-card h4 .icon { font-size: 1rem; }
.fahm-wrap .quick-links { display: flex; flex-direction: column; gap: 0.45rem; }
.fahm-wrap .quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.2s;
  text-decoration: none;
}
.fahm-wrap .quick-link:hover { background: var(--blue-light); color: var(--blue); }
.fahm-wrap .quick-link .arr { color: var(--blue); font-size: 0.95rem; }
.fahm-wrap .working-hours { display: flex; flex-direction: column; gap: 0.6rem; }
.fahm-wrap .wh-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; }
.fahm-wrap .wh-row .day { color: var(--muted); }
.fahm-wrap .wh-row .time { color: var(--dark); background: var(--bg); padding: 3px 10px; border-radius: 8px; }
.fahm-wrap .wh-row.today .day { color: var(--blue); font-weight: 700; }
.fahm-wrap .wh-row.today .time { background: var(--blue); color: #fff; }
.fahm-wrap .status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  margin-top: 0.5rem;
}
.fahm-wrap .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: infoPulse 2s infinite; }
@keyframes infoPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Info pages responsive */
@media (max-width: 992px) {
  .fahm-wrap .mission-grid { grid-template-columns: 1fr; }
  .fahm-wrap .story-section { grid-template-columns: 1fr; gap: 2rem; }
  .fahm-wrap .team-grid { grid-template-columns: repeat(2, 1fr); }
  .fahm-wrap .policy-layout { grid-template-columns: 1fr; }
  .fahm-wrap .policy-nav { position: static; }
  .fahm-wrap .contact-grid { grid-template-columns: 1fr; }
  .fahm-wrap .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .fahm-wrap .info-page-hero { padding: 2.5rem 4% 2.5rem; }
  .fahm-wrap .about-body { padding: 2rem 4%; }
  .fahm-wrap .faq-body { padding: 2rem 4%; }
  .fahm-wrap .faq-q { padding: 1rem 1.2rem; flex-wrap: wrap; }
  .fahm-wrap .form-row { grid-template-columns: 1fr; }
  .fahm-wrap .team-grid { grid-template-columns: 1fr; }
  .fahm-wrap .stats-big { gap: 0.85rem; }
  .fahm-wrap .stat-big .n { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .fahm-wrap .info-page-hero h1 { font-size: 1.45rem; }
  .fahm-wrap .story-visual { padding: 1.5rem; }
  .fahm-wrap .info-section-title h2 { font-size: 1.4rem; }
}
