@charset "UTF-8";
/* =====================================================================
   المركز الليبي لإعداد وتأهيل القادة — أنماط الموقع العام
   ===================================================================== */

/* ---------- 1. الرموز التصميمية (Design Tokens) ---------- */
:root {
  --brand: #0b57a4;
  --brand-700: #094a8b;
  --brand-800: #073b70;
  --brand-900: #01285b;
  --brand-soft: #e8f0f9;
  --brand-soft-2: #d4e3f3;
  --gold: #0a8aa4;
  --gold-soft: #e1f4f8;
  --ink: #13243b;
  --ink-2: #33475f;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cdd8e5;
  --bg: #f5f8fc;
  --card: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #0f7b3f;
  --success-soft: #e7f6ed;
  --warn: #b25e09;
  --warn-soft: #fdf3e6;
  --info: #175cd3;
  --info-soft: #eaf1fd;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 40, 91, .06), 0 1px 3px rgba(6, 40, 91, .05);
  --shadow: 0 4px 14px rgba(6, 40, 91, .08);
  --shadow-lg: 0 14px 40px rgba(6, 40, 91, .14);

  --wrap: 1220px;
  --header-h: 76px;

  --font: "Cairo", "Segoe UI", "Noto Sans Arabic", "Dubai", Tahoma, "Traditional Arabic", Arial, sans-serif;
}

/* ---------- 2. إعادة الضبط ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.35; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.95rem); }
h3 { font-size: clamp(1.1rem, .98rem + .6vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. الحاويات والأدوات ---------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 860px); margin-inline: auto; }
.section { padding: clamp(2.2rem, 1.4rem + 3vw, 4rem) 0; }
.section-sm { padding: clamp(1.5rem, 1rem + 2vw, 2.4rem) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-tint { background: var(--brand-soft); border-block: 1px solid var(--brand-soft-2); }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* عنوان القسم */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.sec-head .sh-text { position: relative; padding-inline-start: .85rem; }
.sec-head .sh-text::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .28em; bottom: .3em;
  width: 5px; border-radius: 99px; background: linear-gradient(var(--brand), var(--gold));
}
.sec-head h2 { margin: 0; }
.sec-head .sh-sub { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.sec-head .sh-more { font-weight: 700; font-size: .93rem; white-space: nowrap; display: inline-flex; gap: .35rem; align-items: center; }
.sec-head .sh-more svg { width: 16px; height: 16px; }

/* ---------- 4. الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.35rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: .18s ease; text-align: center; line-height: 1.4;
}
.btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #04303a; }
.btn-gold:hover { background: #087b93; border-color: #087b93; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn-sm { padding: .42rem .9rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.is-busy::after {
  content: ""; width: 15px; height: 15px; border: 2px solid currentColor;
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. الشارات ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: var(--brand-soft); color: var(--brand-800); line-height: 1.7;
}
.badge-gold { background: var(--gold-soft); color: #065567; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-mute { background: #eef3f9; color: var(--muted); }
.badge-urgent { background: var(--danger); color: #fff; }

/* ---------- 6. الترويسة ---------- */
.topbar {
  background: var(--brand-900); color: #d5e3f4; font-size: .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cfe0f2; }
.topbar a:hover { color: #fff; }
.topbar .tb-list { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.topbar .tb-list li { display: inline-flex; align-items: center; gap: .35rem; }
.topbar svg { width: 15px; height: 15px; opacity: .8; flex: none; }
.topbar .sp { flex: 1; }
.topbar .tb-social { display: flex; gap: .55rem; }
.topbar .tb-social a {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .09); transition: .18s;
}
.topbar .tb-social a:hover { background: var(--gold); color: #04303a; }

/* الشريط العلوي */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.head-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 52px; width: auto; object-fit: contain; }
.brand-text h1 { font-size: 1.06rem; margin: 0; line-height: 1.3; color: var(--brand-800); }
.brand-text p { margin: 0; font-size: .78rem; color: var(--muted); font-weight: 600; }
.head-sp { flex: 1; }

.mainnav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  display: block; padding: .55rem .85rem; border-radius: 9px;
  font-weight: 700; font-size: .96rem; color: var(--ink-2); transition: .15s;
}
.mainnav a:hover { background: var(--brand-soft); color: var(--brand); }
.mainnav a[aria-current="page"] { background: var(--brand); color: #fff; }
.head-cta { display: flex; align-items: center; gap: .5rem; flex: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* قوائم فرعية منسدلة: الدورات التدريبية / عن المركز */
.mainnav li.has-sub { position: relative; }
.mainnav .nav-parent { display: flex; align-items: center; gap: .3rem; }
.mainnav .nav-parent .caret { display: inline-grid; place-items: center; width: 15px; height: 15px; transition: transform .2s; }
.mainnav .nav-parent .caret svg { width: 15px; height: 15px; }
.mainnav .submenu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70;
  display: block; min-width: 240px; max-width: 320px; margin: 0; padding: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mainnav li.has-sub:hover .submenu,
.mainnav li.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.mainnav li.has-sub:hover .caret,
.mainnav li.has-sub:focus-within .caret { transform: rotate(180deg); }
.mainnav .submenu li { display: block; }
.mainnav .submenu a {
  display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mainnav .submenu a:hover { background: var(--brand-soft); color: var(--brand); }
.mainnav .submenu .sub-all {
  font-weight: 800; color: var(--brand); border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: .2rem;
}
section[id] { scroll-margin-top: calc(var(--header-h, 76px) + 16px); }

/* ---------- 7. شريط الأخبار العاجلة ---------- */
.ticker {
  background: var(--brand-800); color: #fff; font-size: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ticker .wrap { display: flex; align-items: center; gap: .8rem; min-height: 44px; }
.ticker .tk-label {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .8rem;
  background: var(--danger); padding: .18rem .7rem; border-radius: 999px; flex: none;
}
.ticker .tk-label .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.ticker .tk-view { position: relative; flex: 1; min-width: 0; height: 1.6em; overflow: hidden; }
.ticker .tk-item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: .5rem;
  opacity: 0; transform: translateY(60%); transition: .45s ease; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker .tk-item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ticker .tk-item a { color: #fff; font-weight: 600; }
.ticker .tk-item a:hover { text-decoration: underline; }

/* ---------- 8. العرض الرئيسي (Hero) ---------- */
.hero { position: relative; background: var(--brand-900); overflow: hidden; }
.hero-slides { position: relative; min-height: clamp(340px, 46vw, 520px); }
.hero-slide {
  position: absolute; inset: 0; display: grid; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-slide .hs-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .34;
  transform: scale(1.06); transition: transform 7s ease-out;
}
.hero-slide.is-on .hs-bg { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(1, 40, 91, .92) 0%, rgba(1, 40, 91, .7) 45%, rgba(1, 40, 91, .35) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0; }
.hero-content { max-width: 640px; color: #fff; }
.hero-content h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3rem); margin: 0 0 .6rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35); line-height: 1.3;
}
.hero-content p {
  font-size: clamp(.98rem, .9rem + .5vw, 1.22rem); color: #e2edf8;
  margin: 0 0 1.5rem; max-width: 54ch;
}
.hero-content .hc-kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
  background: rgba(192, 152, 47, .22); border: 1px solid rgba(192, 152, 47, .55);
  color: #bfe9f2; padding: .25rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 800;
}
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 1.3rem; inset-inline-start: 0; }
.hero-dots .wrap { display: flex; gap: .45rem; }
.hero-dots button {
  width: 28px; height: 5px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: .2s; padding: 0;
}
.hero-dots button.is-on { background: var(--gold); width: 46px; }

/* بانر الصفحة الرئيسية: صورة واحدة كبيرة مع حركة بطيئة متموّجة */
.hero-banner .hs-bg {
  opacity: 1; will-change: transform;
  animation: hero-drift 26s ease-in-out infinite;
}
@keyframes hero-drift {
  0%   { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0) rotate(-.6deg); }
  50%  { transform: scale(1.18) translate3d(1.6%, 1.2%, 0) rotate(.6deg); }
  100% { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0) rotate(-.6deg); }
}
.hero-banner::after {
  background: linear-gradient(90deg, rgba(1, 40, 91, .05) 0%, rgba(1, 40, 91, .38) 52%, rgba(1, 40, 91, .9) 100%);
}
.hero-banner .hero-inner { padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0; }

/* ---------- 9. كلمة رئيس المركز (تتغير دورياً) ---------- */
.speech {
  background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 55%, #011b40 100%);
  color: #fff; position: relative; overflow: hidden;
}
.speech::before {
  content: "\201C"; position: absolute; top: -2.2rem; inset-inline-end: 1.5rem;
  font-size: 15rem; line-height: 1; font-family: Georgia, serif;
  color: rgba(255, 255, 255, .05); pointer-events: none;
}
.speech-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.speech-head .sp-title { display: flex; align-items: center; gap: .7rem; }
.speech-head .sp-title svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.speech-head h2 { margin: 0; color: #fff; }
.speech-head .sp-sub { margin: 0; color: #a9c2da; font-size: .88rem; }
.speech-ctrls { display: flex; align-items: center; gap: .5rem; }
.speech-ctrls .sc-count { font-size: .82rem; color: #a9c2da; font-weight: 700; min-width: 3.2em; text-align: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer; transition: .18s;
}
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: #04303a; }
.icon-btn svg { width: 19px; height: 19px; }

.speech-body { position: relative; }
.speech-item { display: block; }
.speech-item[hidden] { display: none; }

/* صندوق الكلمة المميّز */
.speech-card {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .028));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  padding: clamp(1.1rem, .8rem + 1.8vw, 2.3rem);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}
.speech-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.sp-grid { display: grid; gap: clamp(1.2rem, .9rem + 1.8vw, 2.4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 840px) {
  .sp-grid.has-photo { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
}

.sp-photo { position: relative; }
.sp-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .75);
  position: relative; z-index: 1;
}
.sp-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold); border-radius: 18px; opacity: .5;
}
.sp-photo::after {
  content: "\201C"; position: absolute; z-index: 2; inset-block-end: -12px; inset-inline-start: -8px;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--gold); color: #04303a; border-radius: 50%;
  font-family: Georgia, serif; font-size: 2.1rem; line-height: 1; padding-block-end: .34rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
}

.sp-text { min-height: 12rem; }
.sp-text .sp-occasion { display: inline-flex; margin-bottom: .6rem; }
.sp-text h3 { color: #fff; margin: 0 0 .55rem; font-size: clamp(1.02rem, .95rem + .45vw, 1.3rem); }
.sp-text .sp-content { color: #cfe0f2; font-size: .92rem; line-height: 1.85; }
.sp-text .sp-content p { margin: 0 0 .7em; }
.sp-text .sp-foot { margin-top: .9rem; display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; align-items: center; color: #8fb0cf; font-size: .8rem; }
.sp-text .sp-foot .sp-byline { font-weight: 800; color: #cfe0f2; }

/* شريط تقدم الدوران */
.speech-progress { display: flex; gap: .35rem; margin-top: 1.4rem; }
.speech-progress i {
  height: 3px; flex: 1; max-width: 70px; border-radius: 99px;
  background: rgba(255, 255, 255, .18); overflow: hidden; position: relative;
}
.speech-progress i.is-on { background: rgba(255, 255, 255, .3); }
.speech-progress i.is-on::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform-origin: right center; animation: fill linear forwards;
  animation-duration: var(--spd, 7s);
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.speech-empty { text-align: center; padding: 2.5rem 1rem; color: #a9c2da; }

/* ---------- 10. بطاقات الأخبار ---------- */
.news-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .2s ease; box-shadow: var(--shadow-sm); height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-soft-2); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .ci-badges { position: absolute; top: .6rem; inset-inline-start: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.card-img .ci-none {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-soft), var(--brand-soft-2));
  color: var(--brand); opacity: .5;
}
.card-img .ci-none svg { width: 46px; height: 46px; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .76rem; font-weight: 800; color: var(--brand); margin-bottom: .35rem; }
.card-title { font-size: 1.04rem; margin: 0 0 .45rem; line-height: 1.5; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.card-sum {
  margin: 0 0 .8rem; font-size: .9rem; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem;
}
.card-foot .cf-date { display: inline-flex; align-items: center; gap: .3rem; }
.card-foot svg { width: 14px; height: 14px; opacity: .7; }
.card-foot .cf-read { font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: .25rem; }
.card-foot .cf-read:hover { text-decoration: underline; }

/* بطاقة بارزة */
.card-lg { grid-column: span 2; flex-direction: row; }
@media (max-width: 720px) { .card-lg { grid-column: span 1; flex-direction: column; } }
.card-lg .card-img { aspect-ratio: auto; flex: 1 1 46%; }
.card-lg .card-title { font-size: 1.25rem; }
.card-lg .card-sum { -webkit-line-clamp: 4; font-size: .95rem; }

/* ---------- 11. بطاقات الدورات ---------- */
.courses-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.ccard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: .2s ease;
}
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ccard-top { position: relative; aspect-ratio: 16 / 8; background: var(--brand-soft); overflow: hidden; }
.ccard-top img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.ccard:hover .ccard-top img { transform: scale(1.05); }
.ccard-top .ct-status { position: absolute; top: .6rem; inset-inline-end: .6rem; }
.ccard-top .ct-track {
  position: absolute; bottom: .6rem; inset-inline-start: .6rem;
  background: rgba(1, 40, 91, .82); color: #fff; backdrop-filter: blur(4px);
  padding: .18rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
}
.ccard-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.ccard-body h3 { font-size: 1.08rem; margin: 0 0 .3rem; line-height: 1.5; }
.ccard-body h3 a { color: var(--ink); }
.ccard-body h3 a:hover { color: var(--brand); }
.ccard-sub { color: var(--muted); font-size: .85rem; margin: 0 0 .7rem; }
.ccard-sum {
  font-size: .89rem; color: var(--ink-2); margin: 0 0 .9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ccard-info { display: grid; gap: .45rem; font-size: .84rem; color: var(--ink-2); margin-bottom: .9rem; }
.ccard-info li { display: flex; align-items: flex-start; gap: .45rem; list-style: none; }
.ccard-info svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: .28em; }

.seats { margin-bottom: .9rem; }
.seats .seats-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; font-weight: 700; }
.seats .bar { height: 6px; border-radius: 99px; background: var(--brand-soft-2); overflow: hidden; }
.seats .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.seats.is-full .bar i { background: var(--danger); }
.seats.is-full .seats-row { color: var(--danger); }

.ccard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  border-top: 1px solid var(--line); padding-top: .8rem; margin-top: auto;
}
.ccard-foot .cf-fee { font-size: .88rem; font-weight: 800; color: var(--brand-800); }

/* ---------- 12. الأرقام ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .st-num {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800;
  color: var(--brand); line-height: 1.2; display: block;
  font-variant-numeric: tabular-nums;
}
.stat .st-label { font-size: .88rem; color: var(--muted); font-weight: 700; }

/* ---------- 13. تخطيط صفحتين ---------- */
.two-col { display: grid; grid-template-columns: 1fr 330px; gap: 2rem; align-items: start; }
@media (max-width: 940px) { .two-col { grid-template-columns: 1fr; } }

/* صفحة اتصل بنا: المساحة الأكبر لنموذج «أرسل رسالة» */
.contact-two { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 940px) { .contact-two { grid-template-columns: 1fr; } }

.side { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 940px) { .side { position: static; } }

.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-box > h3 {
  margin: 0; padding: .85rem 1.1rem; font-size: 1rem; color: #fff;
  background: var(--brand); display: flex; align-items: center; gap: .5rem;
}
.side-box > h3 svg { width: 19px; height: 19px; }
.side-box .sb-body { padding: 1rem 1.1rem; }
.side-box .sb-foot { padding: .8rem 1.1rem; border-top: 1px solid var(--line); text-align: center; }

/* قائمة مصغّرة */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; gap: .7rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list li:first-child { padding-top: 0; }
.mini-num {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .9rem;
}
.mini-list a { color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.55; display: block; }
.mini-list a:hover { color: var(--brand); }
.mini-list .ml-date { font-size: .78rem; color: var(--muted); margin-top: .2rem; display: block; }

/* قائمة التصنيفات */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem 1.1rem; color: var(--ink-2); font-weight: 700; font-size: .92rem;
  transition: .15s;
}
.cat-list a:hover, .cat-list a.is-on { background: var(--brand-soft); color: var(--brand); }
.cat-list .n {
  background: #eef3f9; color: var(--muted); font-size: .76rem; font-weight: 800;
  padding: .1rem .55rem; border-radius: 999px;
}
.cat-list a.is-on .n { background: var(--brand); color: #fff; }

/* ---------- 14. أدوات التصفية ---------- */
.filters {
  display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.filters .f-group { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.filters label { font-size: .85rem; font-weight: 800; color: var(--muted); }
.chip {
  padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; font-size: .86rem; font-weight: 700; cursor: pointer; transition: .15s;
  color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.f-search { position: relative; flex: 1; min-width: 200px; }
.f-search svg { position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.f-search input { padding-inline-start: 2.2rem; }
.filters select { min-width: 150px; }

.results-note { font-size: .88rem; color: var(--muted); margin: -1rem 0 1.2rem; }
.results-note b { color: var(--brand); }

/* ---------- 15. الحقول ---------- */
.field { margin-bottom: 1rem; }
.field > label { display: block; font-size: .88rem; font-weight: 800; margin-bottom: .35rem; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 600; }
.field .req { color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], input[type="url"],
select, textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: #fff; transition: .15s; font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: #9aa8b8; }
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364756f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .7rem center; background-size: 15px; padding-inline-end: .85rem; padding-inline-start: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.check { display: flex; align-items: flex-start; gap: .5rem; font-size: .89rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .25em 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }

/* رسائل التنبيه */
.alert {
  padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem;
  font-weight: 700; margin-bottom: 1rem; display: flex; gap: .55rem; align-items: flex-start;
  border: 1px solid transparent;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: .18em; }
.alert-ok { background: var(--success-soft); color: var(--success); border-color: #b9e3cb; }
.alert-err { background: var(--danger-soft); color: var(--danger); border-color: #f5c6c2; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #c5d8fa; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f2ddb9; }
.alert[hidden] { display: none; }

/* ---------- 16. ترقيم الصفحات ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: #fff; font-weight: 800; font-size: .9rem; color: var(--ink-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pager .is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-off { opacity: .4; pointer-events: none; }
.pager svg { width: 17px; height: 17px; }

/* ---------- 17. صفحة الخبر ---------- */
.crumbs { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); font-weight: 700; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; opacity: .5; }
.crumbs .cur { color: var(--ink-2); font-weight: 700; }

.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-hero { position: relative; aspect-ratio: 21 / 9; background: var(--brand-soft); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .ah-badges { position: absolute; top: 1rem; inset-inline-start: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.article-body { padding: clamp(1.3rem, 1rem + 1.5vw, 2.6rem); }
.article-body h1 { margin: 0 0 .7rem; }
.article-meta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  font-size: .87rem; color: var(--muted); padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.article-meta .am-item { display: inline-flex; align-items: center; gap: .35rem; }
.article-meta svg { width: 16px; height: 16px; opacity: .75; }
.article-lead {
  font-size: 1.08rem; font-weight: 700; color: var(--ink-2);
  background: var(--brand-soft); border-inline-start: 4px solid var(--brand);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.6rem;
}
.prose { font-size: 1.03rem; color: var(--ink-2); }
.prose p { margin: 0 0 1.15em; line-height: 1.95; }
.prose ul { padding-inline-start: 1.5em; margin-bottom: 1.15em; }
.prose li { margin-bottom: .45em; line-height: 1.85; }
.prose a { font-weight: 700; text-decoration: underline; }
.article-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.article-share {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 700; color: var(--muted);
}
.article-share .as-btns { display: flex; gap: .4rem; }
.article-share .as-btns a, .article-share .as-btns button {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.article-share .as-btns a:hover, .article-share .as-btns button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.article-share svg { width: 18px; height: 18px; }

/* ---------- 18. صفحة الدورة ---------- */
.course-hero {
  background: linear-gradient(140deg, var(--brand-800), var(--brand-900));
  color: #fff; padding: clamp(2rem, 1.5rem + 2.5vw, 3.4rem) 0; position: relative; overflow: hidden;
}
.course-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(192, 152, 47, .16), transparent 55%);
  pointer-events: none;
}
.course-hero .ch-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: center; }
@media (max-width: 940px) { .course-hero .ch-inner { grid-template-columns: 1fr; } }
.course-hero h1 { color: #fff; margin: .6rem 0 .5rem; }
.course-hero .ch-sub { color: #bcd4e8; font-size: 1.05rem; margin: 0 0 1rem; }
.course-hero .ch-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .88rem; color: #a9c2da; }
.course-hero .ch-meta .cm { display: inline-flex; align-items: center; gap: .4rem; }
.course-hero .ch-meta svg { width: 16px; height: 16px; color: var(--gold); }
.course-hero .ch-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .14); }
.course-hero .ch-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.enroll-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.enroll-card .ec-price { font-size: 1.3rem; font-weight: 800; color: var(--brand-800); margin-bottom: .3rem; }
.enroll-card .ec-note { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.enroll-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.enroll-list li { display: flex; gap: .5rem; align-items: flex-start; }
.enroll-list svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: .2em; }

.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.8rem; }
.info-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start;
}
.info-cell .ic-ico {
  width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.info-cell .ic-ico svg { width: 21px; height: 21px; }
.info-cell .ic-label { font-size: .8rem; color: var(--muted); font-weight: 700; }
.info-cell .ic-value { font-weight: 800; color: var(--ink); line-height: 1.5; }

/* ---------- 19. صفحة عن المركز ---------- */
.vm-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vm-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  border-top: 4px solid var(--brand);
}
.vm-card.gold { border-top-color: var(--gold); }
.vm-card .vm-ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem;
}
.vm-card.gold .vm-ico { background: var(--gold-soft); color: #076b80; }
.vm-card .vm-ico svg { width: 27px; height: 27px; }
.vm-card h3 { margin-bottom: .5rem; }
.vm-card p { margin: 0; color: var(--ink-2); }

.path-list { list-style: none; margin: 0; padding: 0; counter-reset: path; }
.path-list li {
  position: relative; padding: 0 3rem 1.7rem 0; counter-increment: path;
}
.path-list li::before {
  content: counter(path); position: absolute; top: 0; inset-inline-end: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.path-list li::after {
  content: ""; position: absolute; top: 42px; inset-inline-end: 19px; bottom: 4px;
  width: 2px; background: var(--line-2);
}
.path-list li:last-child { padding-bottom: 0; }
.path-list li:last-child::after { display: none; }
.path-list h3 { font-size: 1.05rem; margin: .35rem 0 .3rem; }
.path-list p { margin: 0; color: var(--muted); font-size: .92rem; }

.org-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.org-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; text-align: center; transition: .2s;
}
.org-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.org-card .oc-ico {
  width: 48px; height: 48px; margin: 0 auto .8rem; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.org-card .oc-ico svg { width: 24px; height: 24px; }
.org-card h3 { font-size: 1rem; margin: 0 0 .25rem; }
.org-card p { margin: 0; font-size: .84rem; color: var(--muted); }

/* ---------- 20. صفحة اتصل بنا ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; display: flex; gap: .95rem; align-items: flex-start;
  transition: .2s;
}
.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.contact-card .cc-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.contact-card .cc-ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: .98rem; margin: 0 0 .2rem; }
.contact-card p { margin: 0; font-size: .89rem; color: var(--muted); line-height: 1.7; }
.contact-card a { font-weight: 700; word-break: break-word; }
.contact-list { display: grid; gap: 1rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-soft); }
.map-box iframe { width: 100%; height: 380px; border: 0; display: block; }

.faq { display: grid; gap: .7rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.1rem; transition: .18s;
}
.faq details[open] { border-color: var(--brand-soft-2); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 800; padding: .95rem 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; flex: none;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding-bottom: 1rem; color: var(--ink-2); font-size: .94rem; }

/* ---------- 21. دعوة للتسجيل / الدعوة للتواصل ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-900));
  color: #fff; padding: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem) 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(192, 152, 47, .2), transparent 50%);
  pointer-events: none;
}
.cta-band .cb-inner {
  position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: #bcd4e8; margin: 0; max-width: 60ch; }
.cta-band .cb-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- 22. التذييل ---------- */
.site-foot {
  background: var(--brand-900); color: #fff;
  padding: clamp(2.5rem, 2rem + 2vw, 3.6rem) 0 0; font-size: .92rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about .fa-logo { height: 58px; margin-bottom: .9rem; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: .35rem; }
.foot-about p { color: #e6eef8; line-height: 1.85; font-size: .9rem; }
.site-foot h4 {
  color: #fff; font-size: 1rem; margin: 0 0 1rem; position: relative; padding-bottom: .6rem;
}
.site-foot h4::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px;
  border-radius: 99px; background: var(--gold);
}
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-links a { color: #fff; font-weight: 600; transition: .15s; }
.foot-links a:hover { color: #bfe9f2; padding-inline-start: .25rem; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.foot-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.foot-contact svg { width: 17px; height: 17px; color: #7fd4e6; flex: none; margin-top: .3em; }
.foot-contact a { color: #fff; font-weight: 700; word-break: break-word; }
.foot-social { display: flex; gap: .55rem; margin-top: 1.1rem; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; transition: .18s;
}
.foot-social a:hover { background: var(--gold); color: #04303a; transform: translateY(-2px); }
.foot-social svg { width: 19px; height: 19px; }
.foot-bottom {
  margin-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 1.1rem 0; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #dce8f5;
}
.foot-bottom a { color: #fff; font-weight: 700; }

/* ---------- 23. حالات التحميل والفراغ ---------- */
.skel {
  background: linear-gradient(90deg, #eef3f9 25%, #e2e9f2 37%, #eef3f9 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel-card { height: 260px; border-radius: var(--radius); }
.skel-line { height: 12px; margin-bottom: .55rem; }
.skel-line.w70 { width: 70%; } .skel-line.w50 { width: 50%; } .skel-line.w90 { width: 90%; }

.empty {
  text-align: center; padding: 3rem 1.5rem; color: var(--muted);
  border: 2px dashed var(--line-2); border-radius: var(--radius); background: #fff;
}
.empty .em-ico {
  width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.empty .em-ico svg { width: 32px; height: 32px; }
.empty h3 { color: var(--ink); margin-bottom: .35rem; }
.empty p { margin: 0 auto; max-width: 46ch; font-size: .93rem; }

/* ---------- 24. 404 ---------- */
.page-404 { display: grid; place-items: center; min-height: 100vh; background: var(--bg); }
.nf { text-align: center; padding: 2rem 1.2rem; max-width: 560px; }
.nf-code {
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem;
}
.nf h1 { font-size: 1.35rem; margin-bottom: .6rem; }
.nf p { color: var(--muted); margin-bottom: 1.6rem; }
.nf-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 25. أدوات ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.text-c { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.flex { display: flex; gap: .6rem; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- 26. الاستجابة ---------- */
@media (max-width: 1040px) {
  .mainnav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: #fff; box-shadow: var(--shadow-lg); padding: 1.4rem 1.2rem;
    transform: translateX(100%); transition: transform .28s ease; z-index: 90;
    overflow-y: auto; border-inline-start: 1px solid var(--line);
  }
  [dir="rtl"] .mainnav { transform: translateX(100%); }
  .mainnav.is-open { transform: translateX(0); }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .mainnav a { padding: .8rem 1rem; border-radius: 10px; }
  .mainnav .submenu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    min-width: 0; max-width: none; margin: 0 0 .25rem; padding: 0;
    background: transparent; border: 0; box-shadow: none; border-radius: 0;
  }
  .mainnav li.has-sub.is-open .submenu { display: block; }
  .mainnav li.has-sub.is-open .caret { transform: rotate(180deg); }
  .mainnav .submenu a {
    padding: .55rem .7rem; font-size: .92rem; border-inline-start: 2px solid var(--line-2);
    border-radius: 0; margin-inline-start: .4rem;
  }
  .mainnav .submenu .sub-all { border-bottom: 0; color: var(--brand); font-weight: 800; }
  .nav-toggle { display: grid; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(1, 40, 91, .5); z-index: 85;
    opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-backdrop.is-on { opacity: 1; visibility: visible; }
  .head-cta .btn span { display: none; }
  .head-cta .btn { padding: .6rem .8rem; }
}

@media (max-width: 860px) {
  .sp-text { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar .tb-list li:not(.keep) { display: none; }
  .brand-text h1 { font-size: .95rem; }
  .brand-text p { display: none; }
  .brand img { height: 44px; }
  .news-grid, .courses-grid { grid-template-columns: 1fr; }
  .filters { padding: .8rem; }
  .foot-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .topbar, .site-head, .ticker, .site-foot, .speech-ctrls, .article-share, .side, .nav-backdrop { display: none !important; }
  body { background: #fff; }
  .article { border: 0; box-shadow: none; }
}