/* ==========================================================================
   براعم التطوع — الأنماط
   --------------------------------------------------------------------------
   الفهرس:
     1. الخطوط
     2. المتغيرات (الألوان والأحجام)
     3. إعادة الضبط
     4. أدوات عامة (حاويات، عناوين، أزرار)
     5. شريط التنقل وقائمة الجوال
     6. الواجهة (الفيديو)
     7. الحلقات
     8. الملصقات
     9. لعبة Roblox والباركود
    10. فريق العمل
    11. الأسئلة الشائعة
    12. التذييل
    13. النوافذ المنبثقة (المشغل + التكبير)
    14. الحركات عند التمرير
    15. الاستجابة لأحجام الشاشات
   ========================================================================== */


/* ───────────── 1. الخطوط ─────────────
   العناوين: Baloo Bhaijaan 2 — النصوص: Tajawal. يُحمَّلان من Google Fonts عبر وسم <link> في index.html.
   لتغيير أي خط: غيّر اسمه في الوسم، ثم في المتغيرين --font-display و --font-body أدناه. */


/* ───────────── 2. المتغيرات ───────────── */
:root {
  /* ألوان الأقسام الداكنة (الحلقات + Roblox) — غيّرها من هنا فقط */
  --bg-dark:   #1A1640;
  --footer-bg: #0F0C2B;

  /* ألوان الهوية */
  --navy:  #17275A;
  --sun:   #F5A03C;   /* البرتقالي */
  --brand-blue: #4D93F2;   /* أزرق الشعار: الزر الرئيسي + فرشاة العنوان + خط القائمة. غيّر هذا اللون فقط */
  --leaf:  #7FB341;   /* الأخضر (نجاح النسخ) */

  /* ألوان عامة */
  --paper:   #FFFFFF;
  --text:    #3A4468;

  /* الخطوط */
  --font-display: 'Baloo Bhaijaan 2', 'Tajawal', system-ui, sans-serif;   /* العناوين */
  --font-body:    'Tajawal', system-ui, sans-serif;   /* النصوص الفرعية */

  /* أحجام وحركة وظلال */
  --radius: 12px;   /* نفس زوايا الأزرار — يتحكم في كل البطاقات */
  --ease:   cubic-bezier(.25, .46, .45, .94);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 14px 40px rgba(14, 24, 56, .12);
}


/* ───────────── 3. إعادة الضبط ───────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}


/* ───────────── 4. أدوات عامة ───────────── */
.skip {
  position: absolute;
  top: -60px;
  inset-inline-start: 12px;
  z-index: 2000;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.section {
  padding-block: clamp(72px, 10vw, 120px);
}

/* قسم بخلفية داكنة: النصوص تتحول للأبيض */
.bg-dark {
  background: var(--bg-dark);
  color: #fff;
  --lede-color: rgba(255, 255, 255, .86);
}
.bg-dark h2,
.bg-dark h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.centered {
  margin-inline: auto;
  text-align: center;
}
.section-head.centered .lede { margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}
h1, h2 { font-weight: 800; }
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.lede {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--lede-color, var(--text));
}

/* ── الأزرار ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 12px 24px;
  border-radius: 12px;               /* قلّل الرقم لزوايا أحدّ، وزِده لزوايا أدور */
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-3px); }

.btn-sm {
  min-width: 0;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: .88rem;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(77, 147, 242, .45); }

.btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .18);   /* بدون blur حتى لا يهتز مع حركة الفيديو خلفه */
}
.btn-ghost:hover { background: rgba(255, 255, 255, .3); }

.btn-outline {
  color: var(--navy);
  border: 1.5px solid rgba(23, 39, 90, .25);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}


/* ───────────── 5. شريط التنقل ───────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), padding .45s var(--ease);
}

/* بعد النزول: يصبح زجاجياً أبيض */
.nav.is-solid {
  padding-block: 8px;
  background: rgba(255, 255, 255, .78);
  border-color: rgba(23, 39, 90, .08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav-brand {
  display: flex;
  align-items: center;
}
.nav-brand img {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: height .45s var(--ease);
}
.nav.is-solid .nav-brand img { height: 78px; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  position: relative;
  top: -12px;                       /* رفع الروابط شوي لفوق */
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  transition: color .2s;
}
.nav-links a::after {                 /* الخط السفلي: أزرق الشعار */
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* الرابط الحالي: نفس لون بقية الروابط لكن أوضح وأعرض */
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active { font-weight: 700; }

/* بعد النزول (خلفية بيضاء) */
.nav.is-solid .nav-links a { color: var(--text); }
.nav.is-solid .nav-links a:hover,
.nav.is-solid .nav-links a.active { color: var(--navy); }

/* زر القائمة (جوال): ثلاثة خطوط رفيعة بدون إطار، تتحول إلى ✕ */
.hamburger {
  position: relative;
  display: none;
  width: 44px;                        /* مساحة اللمس فقط، بدون مربع ظاهر */
  height: 44px;
  justify-self: end;
  z-index: 920;
}
.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .35s var(--ease), opacity .2s, width .3s var(--ease), background .3s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; width: 14px; }   /* الخط الأوسط أقصر */
.hamburger span:nth-child(3) { top: 28px; }
.hamburger:hover span:nth-child(2) { width: 22px; }

/* بعد النزول (شريط أبيض) */
.nav.is-solid .hamburger span { background: var(--navy); }

/* القائمة مفتوحة: الشريط شفاف حتى تظهر ✕ البيضاء فوق خلفية القائمة الداكنة */
.nav.menu-open {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* حالة الفتح: ✕ بيضاء فوق القائمة */
.hamburger.is-open span { background: #fff !important; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: rgba(14, 10, 40, .7);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .45s var(--spring);
}
.mobile-nav.is-open {
  transform: none;
  visibility: visible;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
}


/* ───────────── 6. الواجهة (الفيديو) ───────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;             /* المحتوى في الوسط والسهم أسفله */
  align-items: center;
  overflow: hidden;
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
}

.hero-media,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* طبقة تعتيم خفيفة لتوضيح النص فوق الفيديو */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
              rgba(14, 10, 40, .45),
              rgba(14, 10, 40, .25) 45%,
              rgba(14, 10, 40, .7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-block: auto;                 /* يتوسط المساحة فوق السهم */
  padding: 110px 24px 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.hero-content > * {                   /* دخول متتابع ناعم */
  opacity: 0;
  animation: rise .9s var(--ease) forwards;
}
.hero-content > :nth-child(1) { animation-delay: .1s; }
.hero-content > :nth-child(2) { animation-delay: .28s; }
.hero-content > :nth-child(3) { animation-delay: .46s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-title {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  line-height: 1.3;
}

/* أثراً كبيراً بنفس لون النص، وخلفها ضربة فرشاة تُرسم بحركة */
.hl {
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 353 137' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M5.2 131.2 3.5 131.0 1.0 133.5 0.8 134.5 0.0 134.8 0.0 135.8 2.2 135.8 4.5 133.5ZM15.2 124.2 15.8 124.8 18.2 124.8 19.5 123.5 17.2 122.0 16.5 122.0ZM13.8 94.5 12.8 94.5 10.8 97.0 9.5 97.0 8.2 98.2 8.8 98.8 10.2 98.8 10.8 98.2 10.8 97.0 12.2 96.8 13.2 96.0ZM39.8 79.5 38.5 79.0 36.2 81.0 34.8 81.5 34.2 82.5 32.5 83.8 32.5 84.8 33.8 84.2 33.8 83.2 34.2 82.8 36.2 82.8 37.5 81.8 38.2 81.8 39.8 80.2ZM66.2 73.0 64.5 73.0 64.0 73.5 64.0 75.2 64.5 75.8 65.2 75.8 66.8 74.2ZM73.2 68.2 75.5 69.5 76.8 68.2 76.8 67.5 76.2 67.0 74.5 67.0ZM343.2 39.5 344.5 40.8 352.8 40.8 352.8 40.0 351.2 39.0 346.5 39.0 345.2 38.2ZM331.0 29.5 331.5 30.8 333.2 30.8 333.8 30.2 333.2 29.0 331.5 29.0ZM343.8 56.5 342.2 55.0 340.5 55.0 337.2 53.0 334.5 53.0 332.2 51.0 330.5 51.0 329.2 50.0 326.8 50.0 326.0 49.2 326.8 48.2 326.2 47.0 323.5 47.0 321.2 45.0 319.5 45.0 318.2 44.0 318.0 43.2 319.5 40.8 324.2 40.8 324.8 39.5 323.2 38.0 321.5 38.0 320.2 37.0 317.5 37.0 316.8 36.2 316.8 35.5 317.5 34.8 319.2 34.8 319.8 35.2 323.5 35.0 325.5 36.8 327.2 37.5 329.8 37.0 328.8 34.5 327.5 34.0 325.2 32.0 323.5 32.0 322.2 31.0 320.5 31.0 319.2 32.0 318.5 32.0 316.5 30.2 315.2 31.0 313.5 31.0 312.2 30.0 310.5 30.0 306.2 26.0 305.5 26.2 305.5 27.5 303.2 29.0 301.5 29.0 299.2 27.2 301.5 26.2 300.8 25.2 300.8 23.5 301.8 22.2 301.8 21.5 301.2 21.0 297.5 21.0 296.2 20.0 294.8 20.0 294.2 19.2 295.2 18.5 294.2 15.0 286.5 15.0 284.2 13.0 283.5 13.0 281.2 15.0 270.5 15.0 269.8 14.2 269.8 13.5 270.5 12.8 271.2 12.8 272.5 11.8 276.2 11.8 277.5 10.8 278.2 10.8 278.8 9.5 278.2 9.0 276.8 9.0 276.0 8.2 276.8 7.2 276.8 4.5 275.2 3.0 274.5 3.0 273.2 2.0 270.5 2.0 269.2 1.0 251.5 1.0 250.8 0.0 245.0 0.0 244.2 1.0 218.5 1.0 217.5 2.0 217.8 2.8 225.0 2.8 225.5 3.5 225.0 4.0 211.5 4.0 210.5 4.8 209.2 4.2 208.2 5.0 205.5 5.0 204.2 6.0 197.5 6.0 196.2 7.0 187.5 7.0 186.2 8.0 180.5 8.0 179.5 8.8 178.2 8.0 175.5 8.0 173.2 10.0 170.5 10.0 169.2 11.0 160.5 11.0 159.2 12.0 156.5 12.0 155.2 13.0 150.5 13.0 149.2 14.0 147.5 14.0 146.2 15.0 142.5 15.0 141.2 14.0 139.8 14.0 139.5 14.5 140.5 15.2 140.0 16.0 137.5 16.0 136.2 15.0 133.5 15.0 132.5 15.8 132.5 17.5 132.0 18.0 130.5 18.0 129.2 19.0 125.5 19.0 122.2 21.0 118.5 21.0 117.2 22.0 115.5 22.0 114.2 23.0 112.5 23.0 109.2 25.0 106.5 25.0 103.2 27.0 100.5 27.0 97.2 29.0 95.5 29.0 94.2 30.0 91.5 31.0 89.2 33.0 87.5 33.0 85.2 35.0 84.5 35.0 81.2 37.0 79.5 37.0 76.2 39.0 73.5 39.0 72.2 40.0 71.5 40.0 70.2 41.0 65.5 43.0 63.2 45.0 62.5 45.0 61.0 46.5 61.5 47.8 62.2 47.8 63.5 46.8 65.2 46.8 68.5 44.8 70.2 44.8 73.5 42.8 76.2 42.8 77.5 41.8 79.2 41.8 80.5 40.8 81.2 40.8 82.0 41.5 82.0 42.2 81.2 43.0 80.5 43.0 75.2 47.0 73.5 47.0 72.2 48.0 71.5 48.0 70.2 49.0 65.5 51.0 63.2 53.0 60.5 53.0 58.2 55.0 56.5 55.0 54.2 57.0 52.5 57.0 50.2 59.0 49.2 59.2 48.2 61.0 46.5 61.0 44.8 63.0 43.5 63.0 43.0 63.5 43.5 64.8 44.8 64.2 45.0 62.8 51.0 63.0 50.0 64.5 48.5 65.0 46.0 67.5 47.8 69.2 47.0 70.0 43.2 71.5 42.8 71.0 42.8 69.5 41.5 69.0 38.5 71.2 38.5 72.5 37.0 73.5 37.5 74.8 38.2 74.8 40.5 72.8 47.2 72.8 48.2 70.8 49.2 70.0 52.0 71.0 51.0 72.5 49.5 73.0 47.2 75.0 44.5 75.0 42.2 77.0 41.5 77.0 41.0 77.5 41.2 79.5 44.2 79.8 45.5 78.8 46.2 78.8 48.5 76.8 50.2 76.8 52.5 74.8 54.2 74.8 55.5 73.8 58.2 72.8 60.5 70.8 63.2 70.8 66.5 68.8 68.2 68.8 73.5 64.8 75.2 64.8 76.5 63.8 79.2 63.8 79.8 63.2 79.8 61.5 80.5 60.8 84.0 60.8 84.8 61.5 84.0 62.5 84.0 65.2 84.5 65.8 86.2 65.8 89.0 64.2 89.5 63.5 88.5 61.2 87.0 60.2 88.5 58.8 90.2 58.8 91.5 59.5 93.5 57.8 96.2 56.8 97.0 57.5 97.0 58.2 94.0 61.5 94.8 63.2 94.5 64.0 93.2 65.0 92.5 65.0 90.2 67.0 89.5 67.0 86.2 69.0 83.5 69.0 76.2 73.0 74.5 73.0 73.2 74.0 71.5 74.0 70.2 75.0 68.5 75.0 66.2 77.0 65.2 77.2 63.2 79.0 62.5 79.0 59.2 82.0 58.5 82.0 56.2 84.0 54.5 84.0 53.2 84.8 52.0 83.5 53.0 81.2 55.2 80.0 55.2 79.0 54.5 79.0 51.2 81.0 49.5 81.0 47.2 83.0 45.5 83.0 44.2 84.0 43.5 84.0 41.2 86.2 39.2 87.5 39.8 88.2 41.0 88.2 42.5 86.8 44.2 86.8 46.5 84.8 49.5 84.8 50.0 83.8 50.5 84.2 49.0 86.5 47.5 87.0 45.2 89.0 43.5 89.0 40.5 91.8 40.5 93.5 38.2 94.5 39.2 96.5 41.2 97.5 42.5 96.8 46.2 96.8 47.8 95.2 48.8 95.2 49.0 96.2 48.0 97.5 48.0 98.2 44.2 102.0 43.5 102.0 40.2 100.0 37.5 100.0 36.2 101.0 35.5 101.0 33.5 99.2 33.0 99.8 33.0 102.0 32.5 102.5 31.2 102.2 30.2 103.0 27.0 103.0 26.8 101.0 28.5 100.2 27.5 99.2 26.8 101.0 24.5 101.0 22.2 103.0 20.5 103.0 18.2 105.0 17.2 105.2 16.5 106.8 12.2 109.2 11.2 111.0 9.5 111.0 8.2 113.2 6.2 115.0 5.0 115.5 5.0 116.8 4.0 118.0 4.5 118.2 5.2 116.8 6.2 116.8 9.5 113.8 10.2 113.8 12.5 111.8 15.2 110.8 17.5 108.8 18.2 108.8 22.5 104.8 23.2 104.8 25.5 102.8 26.8 102.8 27.0 104.2 25.2 105.2 25.0 106.2 23.2 108.0 20.5 109.0 16.2 114.2 16.8 114.8 18.2 114.8 19.5 113.8 20.2 113.8 23.5 110.8 25.2 110.8 26.0 111.5 26.0 112.2 25.0 113.5 25.0 114.2 21.0 118.5 21.2 120.0 22.5 120.8 24.2 120.8 26.5 118.8 29.2 117.8 32.5 114.8 35.2 113.8 37.5 111.8 40.2 110.8 42.5 108.8 45.2 107.8 48.5 104.8 50.2 104.8 53.5 102.8 56.2 102.8 59.5 99.8 60.2 99.8 65.5 96.8 67.2 96.8 71.2 92.8 74.5 90.8 77.2 90.8 79.5 88.8 82.2 88.8 84.5 86.8 86.2 86.8 87.5 85.8 90.2 84.8 92.5 82.8 99.2 82.8 105.5 78.8 107.2 78.8 108.5 77.8 114.2 77.8 115.5 76.8 118.2 76.8 119.5 75.8 121.2 75.8 122.5 76.5 123.5 75.8 126.2 75.8 127.5 74.8 132.2 74.8 133.5 73.8 136.2 73.8 137.5 72.8 144.2 72.8 145.5 71.8 151.2 71.8 152.5 70.8 157.2 70.8 158.5 71.8 169.2 71.8 170.5 70.8 172.2 70.8 173.2 71.5 174.5 70.8 181.0 70.8 181.8 71.5 180.2 73.0 173.5 73.0 172.2 74.0 169.5 74.0 168.2 75.0 163.5 75.0 162.2 76.0 160.5 76.0 159.2 77.0 156.5 77.0 155.2 78.5 157.5 80.8 161.2 80.8 162.5 79.8 173.2 79.8 174.5 78.8 187.2 78.8 188.5 77.8 191.2 77.8 192.5 76.8 195.2 76.8 198.5 74.8 200.2 74.8 201.5 73.8 204.5 73.8 204.8 74.2 203.2 75.2 203.0 76.2 203.5 76.8 206.2 76.8 206.8 75.5 204.8 73.5 207.5 70.8 208.2 70.8 209.5 69.8 215.2 69.8 216.5 70.8 226.2 70.8 227.5 71.8 234.2 71.8 235.5 70.8 236.2 70.8 236.8 69.5 233.8 68.0 233.0 67.2 235.5 64.8 239.2 64.8 240.2 65.5 241.5 64.8 243.2 64.8 243.8 63.5 242.0 61.5 242.8 60.8 246.2 60.8 247.5 61.8 250.2 61.8 251.5 62.8 254.2 62.8 255.5 63.8 258.2 64.8 259.5 63.8 260.2 63.8 261.8 62.2 260.8 59.5 263.5 57.8 268.2 57.8 270.5 59.0 271.5 60.5 274.5 58.8 277.2 58.8 279.0 60.5 279.0 62.0 279.5 62.5 281.2 61.8 284.0 64.5 284.0 65.2 285.5 66.8 288.2 66.8 289.8 65.2 289.8 63.5 289.2 63.0 287.5 63.0 285.8 61.2 285.8 60.5 286.5 59.8 288.2 59.8 289.5 58.8 293.2 58.8 295.0 60.5 295.0 63.2 296.5 64.8 300.2 64.8 301.2 62.8 302.2 62.0 303.5 62.8 304.5 64.5 305.5 63.8 308.2 63.8 309.5 62.8 310.2 62.8 311.5 64.8 313.2 64.8 314.8 63.2 314.8 60.5 315.5 59.8 318.2 58.8 318.8 58.2 318.8 56.5 323.5 51.8 324.2 51.8 325.0 52.5 325.0 54.2 325.5 54.8 326.2 54.8 327.5 55.8 329.2 55.8 330.5 56.8 334.2 56.8 335.5 57.8 339.2 57.8 340.5 58.8 343.2 58.8 343.8 58.2ZM48.2 89.8 49.0 90.5 49.0 91.2 47.2 93.0 46.5 93.0 45.8 92.2 45.8 91.5 47.5 89.8ZM85.0 79.0 84.5 79.8 82.2 81.0 80.5 81.0 77.2 83.0 76.5 83.0 76.0 82.2 77.5 80.8 81.5 78.8ZM51.8 70.8 53.5 68.8 56.0 69.0 54.2 71.0ZM55.8 68.8 57.5 66.8 60.0 67.0 58.2 69.0ZM96.8 61.5 97.5 60.8 99.2 60.8 100.0 61.5 100.0 62.2 99.2 63.0 97.5 63.0 96.8 62.2ZM50.8 61.5 51.5 60.8 57.2 60.8 58.0 61.5 58.0 63.2 57.2 64.0 55.5 64.0 54.2 63.0 51.0 63.0ZM104.2 57.8 105.0 58.5 105.0 59.2 103.2 61.0 102.5 61.0 101.8 60.2 102.0 58.2 102.8 57.8ZM312.2 47.0 313.2 46.8 314.8 48.2 314.5 48.8 313.5 49.0 312.0 47.5ZM291.8 24.2 291.0 25.0 289.8 25.0 288.5 25.8 287.8 25.2 287.8 24.5 288.5 23.8 290.2 23.0ZM227.2 3.2 227.8 2.8 240.0 2.8 240.5 3.5 240.0 4.0 227.8 4.0Z'/%3E%3C/svg%3E");   /* شكل ضربة الفرشاة (قناع SVG) */
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding-inline: .22em;
  text-shadow: 0 2px 8px rgba(26, 22, 64, .35);   /* تبرز الكلمة فوق الفرشاة */
}
.hl::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline: -.42em;
  top: -.04em;
  bottom: -.42em;
  background: var(--brand-blue);       /* نفس أزرق الأزرار */
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  clip-path: inset(0 0 0 100%);
  animation: hlDraw .9s .7s var(--ease) forwards;
}
@keyframes hlDraw {
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hl::before { animation: none; clip-path: none; }
}

.hero-sub {
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: clamp(.82rem, 1.35vw, .95rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, .85);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* سهم النزول */
.hero-scroll {
  position: relative;                 /* داخل التخطيط: لا يتراكب مع الأزرار */
  z-index: 2;
  margin-bottom: 26px;
}
.hero-scroll-arrow {                  /* سهم فقط بدون دائرة */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, .85);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45));
  animation: nudge 2.4s var(--ease) infinite;
}
.hero-scroll-arrow svg {
  width: 20px;
  height: 20px;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}


/* ───────────── 7. الحلقات ───────────── */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

/* بطاقة الحلقة: ثلاث بطاقات في الصف الأول وبطاقتان متوسطتان في الثاني */
.ep-card {
  position: relative;                 /* لتثبيت وسم رقم الحلقة على زاويتها */
  grid-column: span 2;
  padding: 13px 13px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(255, 255, 255, .06);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.ep-card:nth-child(4) { grid-column: 2 / span 2; }
.ep-card:nth-child(5) { grid-column: 4 / span 2; }
.ep-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .1);
}

/* لون وسم كل حلقة */
.ep-card:nth-child(1) { --tag: #F59A46; }
.ep-card:nth-child(2) { --tag: #91B44F; }
.ep-card:nth-child(3) { --tag: var(--brand-blue); }
.ep-card:nth-child(4) { --tag: #BD4255; }
.ep-card:nth-child(5) { --tag: #66808E; }

.ep-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;                 /* داخل البطاقة: أصغر قليلاً ليتناسق مع حافتها */
  background: #0F0C2B;
}
.ep-thumb img {                       /* صورة الحلقة (البوستر) */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.ep-card:hover .ep-thumb img { transform: scale(1.05); }
.ep-thumb::after {                    /* تدرج سفلي خفيف */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 10, 40, .35), transparent 50%);
}

/* وسم رقم الحلقة: مائل، بارز فوق زاوية البطاقة */
.ep-badge {
  position: absolute;
  top: -15px;
  inset-inline-start: -6px;
  z-index: 3;
  padding: 5px 15px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: var(--tag);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  transform: rotate(-7deg);
  transition: transform .3s var(--spring);
}
.ep-card:hover .ep-badge { transform: rotate(-3deg) scale(1.06); }

/* زر التشغيل: دائرة بيضاء بمثلث كحلي */
.ep-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  color: var(--bg-dark);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  transition: transform .3s var(--spring), background .2s;
}
.ep-play svg {
  width: 22px;
  height: 22px;
  margin-inline-end: -3px;
}
.ep-card:hover .ep-play {
  transform: scale(1.1);
  background: var(--tag);
  color: #fff;
}

.ep-card h3 {
  margin: 18px 6px 4px;
  font-size: 1.2rem;
}
.ep-emoji {
  margin-inline-start: .35em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.ep-card p {
  margin-inline: 6px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
}


/* ───────────── 8. الملصقات (بطاقتان جنب بعض) ───────────── */
.sticker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* minmax(0) يمنع خروج الأزرار من الإطار */
  gap: 24px;
  max-width: 940px;
  margin-inline: auto;
  align-items: start;
}

/* تقريب البطاقات من النص الفرعي فوقها */
#gallery .section-head { margin-bottom: 28px; }

.sticker {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(23, 39, 90, .08);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sticker:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(14, 24, 56, .18);
}
.sticker-img {
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: #E5E8EF;
}
.sticker-img img {
  width: 100%;
  height: auto;
}
.sticker-bar {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.sticker-bar .btn { width: 100%; }


/* ───────────── 9. لعبة Roblox والباركود ───────────── */
.game-wrap {
  max-width: 720px;
  text-align: center;
}
.game-wrap .lede { margin-inline: auto; }

.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
}
.game-actions .btn { min-width: 160px; }

/* قريباً: زر غير قابل للضغط */
.btn.is-soon,
.btn.is-soon:hover {
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .75);
  box-shadow: none;
  transform: none;
  cursor: default;
}

/* بطاقة الباركود — الميلان يتحكم به script.js عبر المتغيرات --rx و --ry */
.qr-wrap {
  position: relative;
  animation: pop .35s var(--spring);
  width: min(100%, 320px);
  perspective: 900px;                 /* المنظور للبطاقة فقط */
}
.qr-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: 100%;
  padding: 34px 24px 22px;
  text-align: center;
  color: var(--navy);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.qr-card.is-tilting {
  transition: transform .08s linear;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.qr-glare {                           /* لمعة تتبع المؤشر */
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .65), transparent 55%);
  transition: opacity .25s;
}
.qr-card.is-tilting .qr-glare { opacity: 1; }

.qr-frame {
  position: relative;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
}
.qr-frame img {
  display: block;
  width: 100%;
  filter: blur(14px);                 /* غبش قوي: الرمز غير قابل للمسح */
  transform: scale(1.08);
}
.qr-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
}
.qr-note {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text);
}


/* ───────────── 10. فريق العمل ───────────── */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* بطاقة بتدرّج لوني: وسم بنقطة ملوّنة + الاسم + أيقونة كبيرة زخرفية */
.team-card {
  --dot: #4B5563;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 calc((100% - 32px) / 3);
  min-height: 120px;
  padding: 22px 26px 22px 84px;       /* النص يبدأ من اليمين، واليسار محجوز للأيقونة */
  text-align: start;
  color: var(--navy);
  background: linear-gradient(to bottom left, var(--g1), var(--g2));
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(14, 24, 56, .08);
}

/* التدرّج + لون النقطة لكل بطاقة — غيّرها من هنا */
.team-card:nth-child(1) { --g1: #EDE9FE; --g2: rgba(199, 210, 254, .6); --dot: #8B5CF6; }   /* بنفسجي */
.team-card:nth-child(2) { --g1: #F1F5F9; --g2: rgba(226, 232, 240, .6); --dot: #4B5563; }   /* رمادي */
.team-card:nth-child(3) { --g1: #FFE4E6; --g2: rgba(251, 207, 232, .5); --dot: #E11D48; }   /* وردي */
.team-card:nth-child(4) { --g1: #FFEDD5; --g2: rgba(253, 230, 138, .5); --dot: #F59E0B; }   /* برتقالي */
.team-card:nth-child(5) { --g1: #D1FAE5; --g2: rgba(153, 246, 228, .5); --dot: #10B981; }   /* أخضر */
.team-card:nth-child(6) { --g1: #DBEAFE; --g2: rgba(186, 230, 253, .6); --dot: #4D93F2; }   /* أزرق */

/* الأيقونة: صغيرة وثابتة على اليسار (لا تتحرك) */
.team-icon {
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  color: var(--dot);
  opacity: .6;
  pointer-events: none;
}

.team-body { position: relative; z-index: 1; }

.team-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}
.team-role {
  margin-top: 2px;
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(23, 39, 90, .75);
}


/* ───────────── 11. الأسئلة الشائعة ─────────────
   بطاقات بحدود ناعمة تتوسع بحركة: السؤال، وسهم يدور ويتلوّن بأزرق الشعار، والجواب ينزلق للأسفل.
   سؤال واحد مفتوح في كل مرة. الحالة المفتوحة: الكلاس is-open على .faq-item. */
.faq {
  --faq-line: rgba(23, 39, 90, .14);
  --faq-tint: rgba(23, 39, 90, .05);        /* تظليل خفيف عند الوقوف (يختلف عن أبيض السؤال المفتوح) */
  background: #EFF5FE;                       /* أزرق فاتح: يميّز القسم عن الفريق (أبيض) قبله */
}
#faq .section-head { margin-bottom: 44px; }

.faq-list {
  display: grid;
  gap: 8px;
  max-width: 672px;
  margin-inline: auto;
  list-style: none;
}

.faq-item {
  border: 1px solid var(--faq-line);
  border-radius: var(--radius);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
/* الوقوف بالماوس فقط (على اللمس يبقى التأثير عالقاً على آخر سؤال لُمس فيبدو كأنه مفتوح) */
@media (hover: hover) and (pointer: fine) {
  .faq-item:not(.is-open):hover { background: var(--faq-tint); }
}
.faq-item.is-open {
  background: #fff;
}

.faq-h { margin: 0; font: inherit; }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: start;
  -webkit-tap-highlight-color: transparent;
}

.faq-q {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(23, 39, 90, .7);
  transition: color .2s;
}
.faq-item.is-open .faq-q { color: var(--navy); }

.faq-chev {
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  color: rgba(23, 39, 90, .5);
  transition: transform .2s var(--ease), color .2s;
}
.faq-chev svg { display: block; width: 16px; height: 16px; }
.faq-item.is-open .faq-chev {
  transform: rotate(180deg) scale(1.1);
  color: var(--brand-blue);
}

/* الجواب: ينزلق بالارتفاع ويظهر بتلاشي */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s var(--ease);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-in { overflow: hidden; min-height: 0; }
.faq-item:not(.is-open) .faq-panel-in {
  visibility: hidden;                 /* يخرج من التركيز بعد انتهاء الحركة */
  transition: visibility 0s .2s;
}
.faq-answer {
  padding: 8px 24px 16px;
  font-size: .92rem;
  line-height: 1.9;
  color: var(--text);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.faq-item.is-open .faq-answer { opacity: 1; transform: none; }


/* ───────────── 12. التذييل ───────────── */
.footer {
  padding-block: 56px 34px;
  text-align: center;
  color: #B9C0DF;
  background: var(--footer-bg);
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}
.footer-logos img {
  height: 36px;
  width: auto;
}
.footer-logos .logo-qisati { height: 80px; }   /* شعار براعم التطوع (أبيض أصلاً، بدون فلتر) */
.footer-logos .logo-rcjy { filter: brightness(0) invert(1); }
.footer-copy {
  margin-top: 14px;
  font-size: .82rem;
  color: #8A93BD;
}


/* ───────────── 13. النوافذ المنبثقة ───────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 6, 24, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal[hidden] { display: none; }

.modal-box {
  position: relative;
  width: min(100%, 920px);
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--bg-dark);
  animation: pop .35s var(--spring);
}
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

.modal-box h3 {
  margin-bottom: 14px;
  padding-inline-end: 56px;           /* مسافة لزر الإغلاق */
  font-size: 1.2rem;
}
.modal-box video {
  width: 100%;
  max-height: 68svh;
  border-radius: 8px;
  background: #000;
}
.modal-bar {                          /* الأزرار الثلاثة جنب بعض دائماً */
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.modal-bar .btn {
  min-width: 0;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.modal-bar .btn:hover:not(:disabled) {
  background: #fff;
  color: var(--navy);
}
.modal-bar .btn:disabled {
  opacity: .35;
  pointer-events: none;
}

/* زر الإغلاق ✕: دائرة زجاجية بخطين مرسومين بالـCSS (متمركز تماماً) */
.modal-x {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0;                       /* نخفي رمز ✕ النصي ونرسم بدله */
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background .2s, transform .2s var(--ease);
}
.modal-x::before,
.modal-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-x:hover {
  background: rgba(255, 255, 255, .28);
  transform: rotate(90deg);
}

/* تكبير الملصق */
.lightbox img {
  max-width: 100%;
  max-height: 88svh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox .modal-x { position: fixed; }

/* وضع ملء الشاشة: الفيديو يملأ الشاشة كاملة بدون قص */
.modal-box:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: #000;
}
.modal-box:fullscreen video {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
}
.modal-box:fullscreen .modal-x { top: max(14px, env(safe-area-inset-top)); }
/* نفس القواعد لمتصفحات Safari القديمة */
.modal-box:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  background: #000;
}
.modal-box:-webkit-full-screen video {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}


/* ───────────── 14. الحركات عند التمرير ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ───────────── 15. الاستجابة لأحجام الشاشات ───────────── */

/* شاشات كبيرة جداً */
@media (min-width: 1600px) {
  html { font-size: 18px; }
  .container { max-width: 1360px; }
}

/* آيباد واللابتوب الصغير */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-brand img { height: 90px; }
  .nav.is-solid .nav-brand img { height: 68px; }

  .ep-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { flex-basis: calc((100% - 16px) / 2); }
  .ep-card,
  .ep-card:nth-child(4),
  .ep-card:nth-child(5) { grid-column: auto; }
  .ep-card:nth-child(5) {               /* الحلقة الأخيرة في المنتصف */
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 11px);
  }
}

/* جوال */
@media (max-width: 640px) {
  .nav-brand img { height: 72px; }
  .nav.is-solid .nav-brand img { height: 58px; }
  .btn { min-width: 118px; padding: 9px 16px; font-size: .86rem; font-weight: 500; }

  .ep-grid { grid-template-columns: 1fr; }
  .ep-card:nth-child(5) { width: 100%; }

  .modal-box { padding: 14px; }
  .sticker-list { gap: 12px; }
  .sticker-bar { padding: 10px; }
  .sticker-bar .btn {                   /* زر تحميل الملصق: أصغر ويبقى داخل البطاقة */
    min-width: 0;
    padding: 8px 6px;
    font-size: .8rem;
    white-space: nowrap;
  }
  .modal-bar { gap: 6px; }
  .modal-bar .btn { padding: 7px 10px; font-size: .78rem; }
  #gallery .section-head { margin-bottom: 20px; }

  .team-grid { gap: 12px; }
  .team-card { flex-basis: 100%; min-height: 100px; padding: 18px 20px 18px 70px; }
  .team-icon { inset-inline-end: 18px; width: 36px; height: 36px; margin-top: -18px; }
  .team-card h3 { font-size: 1.3rem; }
    .team-role { font-size: .85rem; }

  .faq-btn { padding: 14px 16px; }
  .faq-answer { padding-inline: 16px; }

  .footer-logos .logo-qisati { height: 62px; }
  .footer-logos img:not(.logo-qisati) { height: 32px; }
}

/* جوال بالوضع الأفقي */
@media (orientation: landscape) and (max-height: 560px) {
  .modal-box { padding: 12px; }
  .modal-box h3 { margin-bottom: 8px; font-size: 1rem; }
  .modal-box video { max-height: 62svh; }
}

/* الأجهزة اللمسية: بدون رفع البطاقة عند اللمس */
@media (hover: none) {
  .ep-card:hover,
  .sticker:hover { transform: none; }
  .team-card.is-visible:hover { transform: none; }
}