/* ══ مرسى — Shared Design System ══════════════════════════════════════════ */
:root {
  --navy:     #1e3a5f;
  --navy2:    #0f1f30;
  --navy3:    #2a4f7a;
  --amber:    #e8a838;
  --amber2:   #f0c060;
  --amber3:   #b07820;
  --green:    #2d7a4f;
  --green2:   #3da066;
  --green3:   #1a5c38;
  --red:      #c0392b;
  --purple:   #6c3d9e;
  --teal:     #1a8080;
  --light:    #f8f4ee;
  --light2:   #eee8dc;
  --light3:   #ddd5c5;
  --txt:      #1a1a1a;
  --txt2:     #444;
  --txt3:     #888;
  --white:    #ffffff;
  --r:        10px;
  --r2:       16px;
  --shadow:   0 4px 24px rgba(30,58,95,.12);
  --shadow2:  0 2px 12px rgba(30,58,95,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--light);
  color: var(--txt);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  direction: rtl;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--amber3); }

img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

/* ── Site Header ── */
.site-header {
  background: var(--navy2);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 3px solid var(--amber);
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.site-logo .logo-mark {
  width: 38px; height: 38px; background: var(--amber);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem;
}
.site-logo .logo-text { font-size: 1.2rem; font-weight: 700; }
.site-logo .logo-text span { color: var(--amber2); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,.7); padding: 8px 14px;
  font-size: 13px; font-weight: 500; border-radius: 6px;
  transition: all .2s;
}
.site-nav a:hover, .site-nav a.active { background: rgba(232,168,56,.15); color: var(--amber2); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 60%, #1a4a3a 100%);
  color: var(--white); padding: 80px 24px 70px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block; background: rgba(232,168,56,.2);
  border: 1px solid var(--amber); color: var(--amber2);
  border-radius: 30px; padding: 5px 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 span { color: var(--amber2); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 640px; margin: 0 auto 32px; }
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 40px;
}
.hero-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r); padding: 16px 24px; text-align: center;
}
.hero-stat .n { font-size: 1.8rem; font-weight: 700; color: var(--amber2); line-height: 1; }
.hero-stat .l { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── Container ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Sections ── */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy2); color: var(--white); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,58,95,.08); color: var(--navy);
  border: 1px solid rgba(30,58,95,.15); border-radius: 20px;
  padding: 4px 16px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px;
}
.section-dark .section-label { background: rgba(232,168,56,.1); color: var(--amber2); border-color: rgba(232,168,56,.3); }

.section-title { font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.section-dark .section-title { color: var(--white); }
.section-sub { color: var(--txt3); font-size: 1rem; margin-bottom: 36px; max-width: 600px; }
.section-dark .section-sub { color: rgba(255,255,255,.5); }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--light3);
  border-radius: var(--r2); padding: 28px; box-shadow: var(--shadow2);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.section-alt .card { background: var(--light); }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px; flex-shrink: 0;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.card p { font-size: 13.5px; color: var(--txt2); line-height: 1.7; }

/* ── Pillar Cards ── */
.pillar-card .card-icon { background: rgba(30,58,95,.08); }
.pillar-card.amber .card-icon { background: rgba(232,168,56,.12); }
.pillar-card.green .card-icon { background: rgba(45,122,79,.1); }
.pillar-card.purple .card-icon { background: rgba(108,61,158,.1); }
.pillar-card.teal .card-icon { background: rgba(26,128,128,.1); }
.pillar-card.red .card-icon { background: rgba(192,57,43,.08); }

.card-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; margin-bottom: 12px;
}
.tag-amber { background: rgba(232,168,56,.15); color: var(--amber3); }
.tag-navy  { background: rgba(30,58,95,.1);   color: var(--navy); }
.tag-green { background: rgba(45,122,79,.1);  color: var(--green3); }
.tag-red   { background: rgba(192,57,43,.08); color: var(--red); }
.tag-purple{ background: rgba(108,61,158,.1); color: var(--purple); }
.tag-teal  { background: rgba(26,128,128,.1); color: var(--teal); }

/* ── Project Card ── */
.project-card {
  background: var(--white); border: 1px solid var(--light3);
  border-radius: var(--r2); overflow: hidden;
  box-shadow: var(--shadow2); transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card-header {
  padding: 24px 24px 18px;
  display: flex; align-items: flex-start; gap: 16px;
}
.project-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.project-card-meta { flex: 1; }
.project-card-meta h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.project-card-meta .sub { font-size: 12px; color: var(--txt3); }
.project-card-body { padding: 0 24px 20px; }
.project-card-body p { font-size: 13.5px; color: var(--txt2); line-height: 1.7; margin-bottom: 16px; }
.project-card-footer {
  padding: 16px 24px;
  background: var(--light); border-top: 1px solid var(--light3);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.pstat { font-size: 12px; color: var(--txt3); }
.pstat strong { color: var(--navy); font-size: 13px; display: block; }

/* ── Timeline ── */
.tl { position: relative; padding-right: 28px; }
.tl::before {
  content: ''; position: absolute;
  right: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--light3);
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot {
  position: absolute; right: -22px; top: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--amber); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; z-index: 1;
}
.tl-item h4 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.tl-item p { font-size: 13px; color: var(--txt2); }

/* ── Stat block ── */
.stat-block {
  text-align: center; padding: 24px 16px;
}
.stat-block .n {
  font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1;
}
.stat-block .u { font-size: 13px; color: var(--amber3); font-weight: 700; }
.stat-block .l { font-size: 12px; color: var(--txt3); margin-top: 6px; }
.section-dark .stat-block .n { color: var(--amber2); }
.section-dark .stat-block .l { color: rgba(255,255,255,.5); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-amber { background: rgba(232,168,56,.15); color: var(--amber3); }
.badge-green { background: rgba(45,122,79,.1);  color: var(--green3); }
.badge-navy  { background: rgba(30,58,95,.1);   color: var(--navy); }
.badge-red   { background: rgba(192,57,43,.08); color: var(--red); }
.badge-purple{ background: rgba(108,61,158,.1); color: var(--purple); }

/* ── Progress bar ── */
.progress { height: 6px; background: var(--light2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress-bar { height: 100%; border-radius: 3px; background: var(--amber); }
.progress-bar.green { background: var(--green); }
.progress-bar.navy  { background: var(--navy3); }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt th {
  background: var(--navy2); color: var(--amber2);
  padding: 10px 16px; text-align: right;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.dt td { padding: 10px 16px; border-bottom: 1px solid var(--light2); color: var(--txt2); }
.dt tr:hover td { background: var(--light); }
.dt td:first-child { color: var(--txt); font-weight: 600; }

/* ── Alert boxes ── */
.alert {
  padding: 14px 18px; border-radius: var(--r);
  display: flex; gap: 12px; font-size: 13px; line-height: 1.7; margin-bottom: 16px;
}
.alert-warn { background: #fff8e6; border: 1px solid var(--amber); color: #7a5010; }
.alert-info { background: #e8f0fa; border: 1px solid var(--navy3); color: var(--navy2); }
.alert-ok   { background: #e8f5ee; border: 1px solid var(--green); color: var(--green3); }
.alert-red  { background: #fdf0ef; border: 1px solid var(--red); color: var(--red); }

/* ── Quote ── */
blockquote.pull {
  border-right: 4px solid var(--amber); padding: 16px 20px;
  background: rgba(232,168,56,.06); border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.05rem; color: var(--navy); margin: 20px 0;
}
blockquote.pull cite { display: block; margin-top: 8px; font-size: 12px; color: var(--txt3); font-style: normal; }

/* ── Community chip ── */
.community-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.chip-sudan { background: #f0f8e8; color: #2d5a1a; border: 1px solid #9fc87a; }
.chip-palestine { background: #fef0e6; color: #8a3010; border: 1px solid #f0a060; }
.chip-eritrea { background: #e8f0fe; color: #1a3a8a; border: 1px solid #7aa0e0; }

/* ── CTA Button ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-amber { background: var(--amber); color: var(--navy2); }
.btn-amber:hover { background: var(--amber2); color: var(--navy2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy3); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Footer ── */
.site-footer {
  background: var(--navy2); color: rgba(255,255,255,.6);
  padding: 48px 24px 24px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-mark { width: 44px; height: 44px; background: var(--amber); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 12px; }
.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--amber2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero { padding: 50px 16px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Utility ── */
.mt8  { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mb8  { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-amber { color: var(--amber3); }
.text-navy  { color: var(--navy); }
.text-green { color: var(--green3); }
.bold { font-weight: 700; }
.mono { font-family: 'IBM Plex Mono', monospace; direction: ltr; display: inline; }
