/* ===========================================================================
   هوية إرادة البصرية — Irada Visual Identity stylesheet
   جمعية إرادة الخيرية لذوي الاحتياجات الخاصة بالجبيل
   Landscape (16:9) RTL Arabic report/slide system. Link this file, then use the
   component classes. Slide size = 1280 x 720; one .slide = one printed page.
   =========================================================================== */

:root{
  /* --- teal (primary) --- */
  --teal-900:#033B42; --teal-800:#064A54; --teal-700:#0A5A66;
  --teal-600:#0E6E7C; --teal-500:#1A8290; --teal-300:#7FB8C2;
  --teal-100:#C9E2E6; --teal-50:#EAF4F5;
  /* --- gold (accent) --- */
  --gold-600:#B4842F; --gold-500:#C89A44; --gold-300:#DFC079; --gold-100:#F3E7C7;
  /* --- neutrals --- */
  --ink:#17272B; --muted:#5A6B70; --paper:#F2F3F4; --card:#FFFFFF; --line:#E1E6E7;
  /* --- spacing / radius / shadow --- */
  --space-1:6px; --space-2:12px; --space-3:20px; --space-4:32px; --space-5:48px; --space-6:72px;
  --radius-card:14px; --radius-pill:999px; --radius-sm:8px;
  --shadow-card:0 6px 20px rgba(3,59,66,.08);
  --shadow-lift:0 10px 30px rgba(3,59,66,.14);
  /* --- fonts --- */
  --font-head:"Tajawal","Cairo","Noto Kufi Arabic","Almarai",sans-serif;
  --font-body:"Tajawal","Almarai","IBM Plex Arabic","Segoe UI",sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{direction:rtl}
body{
  font-family:var(--font-body); color:var(--ink); background:#8a9598;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

/* --- slide frame --------------------------------------------------------- */
.slide{
  position:relative; width:1280px; height:720px; margin:0 auto 24px;
  background:var(--paper); overflow:hidden; direction:rtl;
  display:flex; flex-direction:column;
}
@media print{
  body{background:#fff}
  .slide{margin:0; box-shadow:none; page-break-after:always}
}

/* ========================================================================== */
/* COVER — الغلاف                                                              */
/* ========================================================================== */
.cover{
  background:linear-gradient(135deg,var(--teal-600) 0%,var(--teal-800) 70%,var(--teal-900) 100%);
  align-items:flex-start; justify-content:center; padding:0 96px; color:#fff;
}
.cover::before,.cover::after{ /* soft decorative teal circles */
  content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.05);
}
.cover::before{width:520px;height:520px;top:-160px;left:-140px}
.cover::after{width:300px;height:300px;bottom:-120px;right:-60px}
.cover__logo{position:absolute; top:64px; left:96px; height:66px; opacity:.96}
.cover__org{font-size:18px; font-weight:500; color:var(--teal-100); margin-bottom:18px}
.cover__title{
  font-family:var(--font-head); font-weight:800; font-size:60px; line-height:1.16;
  max-width:820px; margin-bottom:24px;
}
.cover__title::after{ /* thin gold rule */
  content:""; display:block; width:120px; height:5px; border-radius:3px;
  background:var(--gold-500); margin-top:26px;
}
.cover__subtitle{font-size:23px; font-weight:500; color:var(--gold-300); max-width:720px; line-height:1.7}
.cover__band{
  position:absolute; bottom:70px; right:96px; display:flex; gap:26px; align-items:center;
  font-size:16px; color:var(--teal-100);
}
.cover__band span:first-child{position:relative; padding-left:26px}
.cover__band span:first-child::after{
  content:""; position:absolute; left:0; top:50%; width:6px;height:6px;border-radius:50%;
  background:var(--gold-500); transform:translateY(-50%);
}

/* ========================================================================== */
/* SECTION DIVIDER — فاصل قسم                                                  */
/* ========================================================================== */
.divider{
  background:linear-gradient(135deg,var(--teal-700) 0%,var(--teal-900) 100%);
  justify-content:center; padding:0 110px; color:#fff;
}
.divider::before{
  content:""; position:absolute; width:460px;height:460px;border-radius:50%;
  background:rgba(255,255,255,.04); top:-150px; left:-120px;
}
.divider__num{
  position:absolute; left:96px; bottom:40px; font-family:var(--font-head); font-weight:800;
  font-size:200px; line-height:.8; color:var(--gold-500); opacity:.22;
}
.divider__kicker{font-size:20px; font-weight:700; color:var(--gold-300); letter-spacing:0}
.divider__kicker::before{content:"— "; color:var(--gold-500)}
.divider__title{font-family:var(--font-head); font-weight:800; font-size:48px; margin:14px 0}
.divider__rule{display:block; width:88px; height:5px; border-radius:3px; background:var(--gold-500)}

/* ========================================================================== */
/* CONTENT PAGE — الترويسة/الجسم/التذييل                                        */
/* ========================================================================== */
.page{background:var(--paper)}
.page__head{
  flex:0 0 auto; height:96px; background:var(--teal-600); color:#fff;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 var(--space-5); border-bottom:3px solid var(--gold-500);
}
.page__title{font-family:var(--font-head); font-weight:800; font-size:30px}
.page__logo{height:44px; opacity:.95}
.page__body{flex:1 1 auto; padding:var(--space-5); overflow:hidden}
.page__foot{
  flex:0 0 auto; height:52px; display:flex; align-items:center; gap:var(--space-3);
  padding:0 var(--space-5); font-size:13px; color:var(--muted);
}
.page__foot-line{flex:1 1 auto; height:2px; border-radius:2px; background:var(--gold-500); opacity:.65}
.page__num{
  font-weight:700; color:#fff; background:var(--teal-600); border-radius:var(--radius-pill);
  min-width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px;
}

/* section kicker used inside content pages (e.g. «الجزء الأول · الإحصاءات») */
.eyebrow{font-size:15px; font-weight:700; color:var(--teal-500); margin-bottom:6px}
.block-title{font-family:var(--font-head); font-weight:800; font-size:26px; color:var(--teal-700); margin-bottom:var(--space-3)}
.block-title--underline{position:relative; padding-bottom:12px}
.block-title--underline::after{content:"";position:absolute;right:0;bottom:0;width:72px;height:4px;border-radius:3px;background:var(--gold-500)}

/* ========================================================================== */
/* KPI CARDS — بطاقات المؤشرات                                                 */
/* ========================================================================== */
.kpis{display:flex; gap:var(--space-4); align-items:stretch}
.kpi{
  flex:1 1 0; background:var(--card); border-radius:var(--radius-card);
  box-shadow:var(--shadow-card); border:1px solid var(--line);
  padding:var(--space-4) var(--space-3) var(--space-3); text-align:center;
  position:relative; overflow:hidden;
}
.kpi::before{content:"";position:absolute;top:0;right:0;left:0;height:5px;background:var(--teal-500)}
.kpi__num{display:block; font-family:var(--font-head); font-weight:800; font-size:46px; color:var(--teal-600); line-height:1}
.kpi__label{display:block; margin-top:10px; font-size:15px; font-weight:500; color:var(--muted)}
.kpi--gold::before{background:var(--gold-500)}
.kpi--gold .kpi__num{color:var(--gold-600)}
/* dark variant (teal card on light page, white number) — used sparingly */
.kpi--dark{background:linear-gradient(160deg,var(--teal-600),var(--teal-800)); border:none}
.kpi--dark::before{background:var(--gold-500)}
.kpi--dark .kpi__num{color:#fff}
.kpi--dark .kpi__label{color:var(--teal-100)}

/* small round icon chip for cards */
.chip-ic{width:44px;height:44px;border-radius:50%;background:var(--teal-100);color:var(--teal-700);
  display:inline-flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:10px}

/* ========================================================================== */
/* TABLE — الجدول                                                              */
/* ========================================================================== */
.tbl{width:100%; border-collapse:separate; border-spacing:0; font-size:16px;
  background:var(--card); border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-card)}
.tbl thead th{
  background:var(--teal-600); color:#fff; font-family:var(--font-head); font-weight:700;
  padding:14px 18px; text-align:right; font-size:16px;
}
.tbl tbody td{padding:12px 18px; text-align:right; border-bottom:1px solid var(--line); color:var(--ink)}
.tbl tbody tr:nth-child(even){background:var(--teal-50)}
.tbl tbody tr:last-child td{border-bottom:none}
.tbl tbody td:first-child{font-weight:700; box-shadow:inset -4px 0 0 var(--gold-500)} /* gold right edge on first col */
.tbl tfoot td{background:var(--teal-100); font-weight:800; color:var(--teal-800); padding:12px 18px}

/* status chips inside tables/cards */
.chip{display:inline-block; padding:3px 12px; border-radius:var(--radius-pill); font-size:13px; font-weight:700}
.chip--am{background:var(--teal-100); color:var(--teal-800)}   /* صباحي */
.chip--pm{background:var(--gold-100); color:var(--gold-600)}   /* مسائي */

/* ========================================================================== */
/* CALLOUT — تنبيه / ملاحظة                                                    */
/* ========================================================================== */
.callout{
  background:var(--gold-100); border-right:5px solid var(--gold-500);
  border-radius:var(--radius-sm); padding:var(--space-3) var(--space-3);
  color:var(--ink); font-size:16px; line-height:1.7;
}
.callout--teal{background:var(--teal-50); border-right-color:var(--teal-600)}
.callout strong{color:var(--gold-600)}
.callout--teal strong{color:var(--teal-700)}

/* ========================================================================== */
/* CHART — الرسوم البيانية                                                     */
/* ========================================================================== */
.chart{background:var(--card); border-radius:var(--radius-card); box-shadow:var(--shadow-card);
  border:1px solid var(--line); padding:var(--space-4)}
.chart__cap{font-family:var(--font-head); font-weight:700; font-size:18px; color:var(--teal-700); margin-bottom:var(--space-3)}
.chart__area{width:100%}
/* horizontal bar row helper (pure CSS bars) */
.bar-row{display:flex; align-items:center; gap:var(--space-3); margin:12px 0}
.bar-row__label{flex:0 0 210px; text-align:left; font-size:15px; color:var(--ink)}
.bar-row__track{flex:1 1 auto; background:var(--teal-50); border-radius:var(--radius-pill); height:26px; position:relative}
.bar-row__fill{height:100%; border-radius:var(--radius-pill); background:var(--teal-600)}
.bar-row__fill--gold{background:var(--gold-500)}
.bar-row__fill--tint{background:var(--teal-300)}
.bar-row__val{flex:0 0 auto; font-weight:800; color:var(--teal-700); font-size:15px; min-width:56px}

/* legend */
.legend{display:flex; gap:var(--space-4); flex-wrap:wrap; margin-top:var(--space-3); font-size:14px; color:var(--muted)}
.legend span{display:inline-flex; align-items:center; gap:8px}
.legend i{width:14px;height:14px;border-radius:4px;display:inline-block}

/* utility */
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4)}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4)}
.mt-3{margin-top:var(--space-3)} .mt-4{margin-top:var(--space-4)}
.lead{font-size:18px; line-height:1.8; color:var(--ink)}
.muted{color:var(--muted)}
