/* =========================================================
   جمعية دار البر — النموذج الأول: «معاصر»
   ========================================================= */

/* ---------- الخط: Dubai (خط واحد لكامل النموذج) ---------- */
@font-face { font-family: "Dubai"; src: url("../assets/fonts/Dubai-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../assets/fonts/Dubai-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../assets/fonts/Dubai-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- المتغيرات ---------- */
:root {
  /* ===== الألوان الأساسية الموحّدة (من شعار دار البر) — مطابقة في النموذجين =====
     الأزرق: اللون الطاغي | الذهبي: لون التمييز | الزيتوني: لمسات ثانوية جدًا */
  --blue: #1c79b5;
  --blue-dark: #155f8f;
  --blue-deep: #0f4467;
  --blue-light: #e8f2f9;
  --olive: #485019;
  --olive-dark: #353b12;
  --olive-light: #eef0e3;
  --gold: #fbc006;
  --gold-dark: #d9a400;
  --gold-light: #fff6d6;
  --red: #d93a2b;
  --ink: #1d1f16;

  /* أسماء مشتقة */
  --blue-600: var(--blue-dark);
  --blue-800: var(--blue-deep);
  --blue-50: var(--blue-light);
  --blue-100: #d1e4f2;
  --olive-700: var(--olive-dark);
  --olive-50: var(--olive-light);
  --gold-600: var(--gold-dark);
  --gold-50: var(--gold-light);

  /* محايدات */
  --ink-2: #3b3d33;
  --muted: #6b6d62;
  --line: #e4e6df;
  --bg: #ffffff;
  --bg-2: #f6f7f3;

  --f-body: "Dubai", "Segoe UI", Tahoma, sans-serif;
  --f-head: "Dubai", "Segoe UI", Tahoma, sans-serif;
  --f-serif: "Dubai", "Segoe UI", Tahoma, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-sm: 0 1px 2px rgba(29, 31, 22, .06), 0 1px 3px rgba(29, 31, 22, .08);
  --sh: 0 10px 30px -12px rgba(29, 31, 22, .18);
  --sh-lg: 0 30px 60px -20px rgba(21, 95, 143, .30);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --header-h: 84px;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; top: -100px; right: 16px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { top: 8px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; box-shadow: 0 0 0 0 rgba(251, 192, 6, .7); animation: pulse 2s infinite; }
.dot--white { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(251, 192, 6, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 192, 6, 0); } }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--f-head); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(28, 121, 181, .7); }
.btn--primary:hover { background: var(--blue-600); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(251, 192, 6, .8); }
.btn--gold:hover { background: #ffcb2b; }
.btn--olive { background: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--olive-700); }
.btn--outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.btn--ghost-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .2); }

.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.badge { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.badge--red { background: var(--red); }
.round-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: .2s; }
.round-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.round-btn:disabled { opacity: .35; pointer-events: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--blue); background: var(--blue-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.h2--light { color: #fff; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.hl { color: var(--blue); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .28em; background: var(--gold); opacity: .45; z-index: -1; border-radius: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.tag--olive { background: var(--olive-50); color: var(--olive); }
.tag--red { background: var(--red); color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 600; color: var(--blue); }
.link-more:hover .ic { transform: translateX(-4px); }
.link-more .ic { transition: transform .2s; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--blue-800); color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topbar__ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar__ticker span:last-child { transition: opacity .4s; }
.topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar__links a:hover { opacity: 1; color: #fff; }
.topbar__links .ic { width: 16px; height: 16px; }
.topbar__phone { font-family: var(--f-head); font-weight: 700; color: var(--gold) !important; font-size: 15px; }

/* ---------- الهيدر ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(29, 31, 22, .25); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__emblem { height: 58px; width: auto; }
.brand__text { height: 40px; width: auto; }
.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--blue); background: var(--blue-50); }
.nav__link--hot { color: var(--red); }
.nav__link--hot:hover { color: var(--red); background: rgba(217, 58, 43, .1); }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 12px); right: -40px; width: 720px; display: grid; grid-template-columns: 1fr 220px; gap: 16px; padding: 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); }
.mega::before { content: ""; position: absolute; top: -14px; inset-inline: 0; height: 14px; }
.has-mega:hover .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); transition: background .2s; }
.mega__item:hover { background: var(--bg-2); }
.mega__item b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.mega__item small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mega__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.mega__ic .ic { width: 20px; height: 20px; }
.mega__ic--blue { background: var(--blue-50); color: var(--blue); }
.mega__ic--gold { background: var(--gold-50); color: var(--gold-dark); }
.mega__ic--olive { background: var(--olive-50); color: var(--olive); }
.mega__promo { position: relative; border-radius: var(--r); overflow: hidden; display: flex; align-items: flex-end; }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.mega__promo span { position: relative; padding: 16px; color: #fff; background: linear-gradient(transparent, rgba(21, 95, 143, .9)); width: 100%; }
.mega__promo small { display: block; opacity: .8; }
.mega__promo b { font-family: var(--f-head); font-size: 18px; }
.header__actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.header__cta { margin-inline-start: 10px; }
.burger { display: none; }

/* ---------- الهيرو ---------- */
.hero { padding: 20px 0 0; position: relative; }
.hero__stage { position: relative; border-radius: var(--r-xl); overflow: hidden; height: clamp(440px, 46vw, 580px); background: var(--blue-800); isolation: isolate; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transform: scale(1.08); transition: transform 7s linear; }
.slide--flip .slide__bg { transform: scale(-1.08, 1.08); }
.slide.is-active .slide__bg { transform: scale(1); }
.slide--flip.is-active .slide__bg { transform: scale(-1, 1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, color-mix(in srgb, var(--tint) 88%, transparent) 0%, color-mix(in srgb, var(--tint) 55%, transparent) 38%, transparent 70%); }
.slide__content { position: relative; z-index: 2; max-width: 560px; padding-inline: clamp(24px, 6vw, 80px); color: #fff; }
.slide__content > * { opacity: 0; transform: translateY(24px); transition: .8s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .24s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .36s; }
.slide__title { font-size: clamp(36px, 5.2vw, 68px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 30px rgba(0, 0, 0, .15); }
.slide__text { font-size: 18px; opacity: .92; max-width: 440px; margin-bottom: 28px; }
.slide__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__controls { position: absolute; z-index: 5; bottom: 128px; left: clamp(24px, 4vw, 48px); display: flex; align-items: center; gap: 12px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 36px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.hero__dots button i { position: absolute; inset: 0; background: #fff; transform-origin: right; transform: scaleX(0); }
.hero__dots button.is-active i { animation: fill var(--dur, 6s) linear forwards; }
.hero__dots.is-paused button.is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__pause { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }

/* ودجت التبرع السريع */
.qd { position: relative; z-index: 6; margin: -96px auto 0; width: min(100% - 32px, 1080px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 22px 26px 16px; border: 1px solid var(--line); }
.qd__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.qd__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.qd__title { font-size: 20px; }
.qd__sub { color: var(--muted); font-size: 14px; }
.qd__row { display: grid; grid-template-columns: 220px 1fr auto; gap: 16px; align-items: end; }
.qd__submit b { font-weight: 900; }
.qd__pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.pay-pill { font-family: var(--f-body); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; padding: 3px 10px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); direction: ltr; }
.pay-pill--dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .15); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field__input { height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2); padding: 0 14px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; }
select.field__input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.field__input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.chips { display: flex; gap: 8px; }
.chip { height: 50px; min-width: 64px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-family: var(--f-head); font-weight: 600; font-size: 16px; transition: .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 18px -8px rgba(28, 121, 181, .8); }
.chip--input { flex: 1; min-width: 110px; text-align: center; font-weight: 500; font-size: 15px; -moz-appearance: textfield; }
.chip--input::-webkit-outer-spin-button, .chip--input::-webkit-inner-spin-button { -webkit-appearance: none; }
.chip--input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }

/* ---------- الأقسام ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--compact { padding: 40px 0; }
.section--tint { background: var(--bg-2); }
.section--blue { background: radial-gradient(1200px 500px at 90% 0%, var(--blue) 0%, transparent 60%), linear-gradient(135deg, var(--blue-800), var(--blue)); color: #fff; position: relative; overflow: hidden; }
.section--blue::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/emblem.png") no-repeat left -120px bottom -160px / 520px; opacity: .06; filter: grayscale(1) brightness(3); pointer-events: none; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head .muted { margin-top: 8px; max-width: 560px; }

/* ---------- الأثر ---------- */
.impact { padding: clamp(64px, 7vw, 96px) 0 0; }
.impact__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 20px; align-items: stretch; }
.impact__intro .muted { margin-top: 10px; }
.stat { background: var(--bg-2); border-radius: var(--r-lg); padding: 28px 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; top: -40px; left: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--blue-100); opacity: .6; }
.stat:nth-child(3)::before { background: var(--gold-50); }
.stat:nth-child(4)::before { background: var(--blue-100); }
.stat__n { position: relative; font-family: var(--f-head); font-weight: 900; font-size: clamp(30px, 3vw, 42px); color: var(--blue); line-height: 1.1; }
.stat:nth-child(3) .stat__n { color: var(--gold-dark); }
.stat:nth-child(4) .stat__n { color: var(--blue-deep); }
.stat span { position: relative; color: var(--ink-2); font-weight: 500; }

/* ---------- الكاروسيل ---------- */
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 24px) / 5); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 24px; margin: -8px -4px 0; scroll-behavior: smooth; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.carousel__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.carousel__bar i { display: block; height: 100%; width: 30%; background: var(--blue); border-radius: 2px; transition: width .3s, margin .3s; }

/* بطاقات الدوري */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px 18px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.pcard__media { position: relative; height: 170px; display: grid; place-items: end center; margin-bottom: 14px; }
.pcard__blob { position: absolute; bottom: 0; left: 50%; width: 150px; height: 120px; translate: -50% 0; background: var(--c); border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; transition: border-radius .6s var(--ease), transform .6s var(--ease); }
.pcard:hover .pcard__blob { border-radius: 42% 58% 55% 45% / 55% 45% 55% 45%; transform: scale(1.06) rotate(-4deg); }
.pcard__media img { position: relative; max-height: 170px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .15)); transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: translateY(-6px) scale(1.04); }
.pcard__title { font-size: 18px; margin-bottom: 2px; }
.pcard__meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pcard__meta b { color: var(--ink); font-family: var(--f-head); }
.freq { color: var(--blue); font-weight: 700; }

/* فلاتر */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 14.5px; transition: .2s; }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 500; transition: .25s var(--ease); }
.seg button.is-active { background: #fff; color: var(--blue); box-shadow: var(--sh-sm); font-weight: 700; }

/* بطاقة المشروع */
.prj { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, opacity .3s; }
.prj:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.prj__media { position: relative; height: 190px; background: linear-gradient(160deg, var(--blue-50), #fff 80%); display: grid; place-items: end center; overflow: hidden; }
.prj__media::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--blue-100); bottom: -50px; }
.prj__media img { position: relative; height: 178px; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.prj:hover .prj__media img { transform: scale(1.06); }
.prj__brand { position: absolute; top: 14px; right: 16px; font-family: var(--f-head); font-weight: 900; color: var(--blue); line-height: 1; font-size: 26px; text-align: right; z-index: 1; }
.prj__brand small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.prj__fav { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--muted); z-index: 1; transition: .2s; }
.prj__fav:hover, .prj__fav.is-on { color: var(--red); }
.prj__fav.is-on .ic { fill: var(--red); }
.prj__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prj__progress { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(to left, var(--blue), var(--blue-dark)); transition: width 1.4s var(--ease); }
.prj__pct { font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--blue); min-width: 40px; text-align: left; }
.prj__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; background: var(--bg-2); border-radius: 12px; padding: 8px 4px; }
.prj__stats div + div { border-inline-start: 1px solid var(--line); }
.prj__stats small { display: block; font-size: 11.5px; color: var(--muted); }
.prj__stats b { font-family: var(--f-head); font-size: 12.5px; font-weight: 700; direction: ltr; display: block; }
.prj__donate { display: flex; gap: 8px; margin-top: auto; }
.prj__amt { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 10px; text-align: center; font-size: 14px; background: #fff; -moz-appearance: textfield; }
.prj__amt::-webkit-outer-spin-button, .prj__amt::-webkit-inner-spin-button { -webkit-appearance: none; }
.prj__amt:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.prj__cart { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; transition: .2s; }
.prj__cart:hover { background: var(--blue); color: #fff; }
.prj__donate .btn { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.prj.is-hidden { display: none; }

/* ---------- الحملات ---------- */
.campaigns { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.camp { position: relative; display: flex; align-items: center; border-radius: var(--r-xl); overflow: hidden; min-height: 280px; transition: transform .4s var(--ease), box-shadow .4s; isolation: isolate; }
.camp:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.camp__text { position: relative; z-index: 2; padding: 32px; max-width: 58%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.camp__text h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; }
.camp__en { font-family: var(--f-head); font-weight: 600; color: var(--muted); direction: ltr; margin-top: -8px; }
.camp__text p:not(.camp__en) { color: var(--ink-2); font-size: 15px; margin-bottom: 6px; }
.camp img { position: absolute; z-index: 1; transition: transform .8s var(--ease); }
.camp:hover img { transform: scale(1.05); }
.camp--clothes { background: linear-gradient(120deg, var(--blue-light), #d1e4f2); }
.camp--clothes img { left: -20px; bottom: -10px; width: 52%; }
.camp--fathers { background: linear-gradient(120deg, #f3f8fc, var(--blue-light)); }
.camp--fathers img { left: 0; top: 0; height: 100%; width: 50%; object-fit: cover; mask-image: linear-gradient(to right, #000 55%, transparent); -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); }
.camp--fathers h3 { color: var(--blue-deep); }
.camp--clothes h3 { color: var(--blue-800); }
.camp--urgent { grid-column: 1 / -1; min-height: 240px; color: #fff; }
.camp--urgent img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camp--urgent::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, rgba(15, 68, 103, .92) 0%, rgba(15, 68, 103, .6) 45%, rgba(15, 68, 103, .1)); }
.camp--urgent .camp__text p { color: rgba(255, 255, 255, .85) !important; }
.camp--urgent .camp__text small { opacity: .8; }
.mini-progress { width: 280px; max-width: 100%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }

/* ---------- الزكاة ---------- */
.zakat { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; position: relative; }
.verse { margin: 24px 0; padding: 18px 22px; border-inline-start: 4px solid var(--gold); background: rgba(255, 255, 255, .08); border-radius: 0 var(--r) var(--r) 0; font-family: var(--f-serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.9; }
.verse cite { display: block; font-family: var(--f-body); font-style: normal; font-size: 14px; opacity: .75; margin-top: 4px; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks .ic { background: var(--gold); color: var(--ink); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
.zcalc { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zcalc__tabs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 14px; padding: 4px; }
.zcalc__tabs button { height: 42px; border-radius: 10px; font-weight: 600; transition: .2s; }
.zcalc__tabs button.is-active { background: var(--blue); color: #fff; }
.zcalc__result { grid-column: 1 / -1; background: var(--blue-50); border-radius: var(--r); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.zcalc__result > span { font-weight: 600; color: var(--blue-deep); }
.zcalc__result b { font-family: var(--f-head); font-size: 30px; color: var(--blue); font-weight: 900; }
.zcalc__result b small { font-size: 15px; font-weight: 600; }
.zcalc__note { width: 100%; font-size: 12.5px; color: var(--muted); }
.zcalc .btn { grid-column: 1 / -1; }
.zcalc .field__input { height: 46px; }

/* ---------- الإهداء ---------- */
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gift__preview { display: grid; place-items: center; padding: 40px; border-radius: var(--r-xl); background: radial-gradient(circle at 30% 20%, var(--gold-50), transparent 60%), radial-gradient(circle at 80% 90%, var(--blue-50), transparent 60%), var(--bg-2); }
.gcard { position: relative; width: min(100%, 420px); aspect-ratio: 1.55; border-radius: 22px; padding: 26px 28px; color: #fff; background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%); box-shadow: 0 30px 60px -20px rgba(15, 68, 103, .6); overflow: hidden; transform: rotate(-3deg); transition: transform .5s var(--ease); display: flex; flex-direction: column; }
.gcard:hover { transform: rotate(0) scale(1.02); }
.gcard::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(251, 192, 6, .18); left: -90px; bottom: -120px; }
.gcard__logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: auto; }
.gcard__label { position: absolute; top: 24px; left: 26px; font-size: 12px; font-weight: 700; color: var(--blue-deep); background: var(--gold); padding: 2px 10px; border-radius: 999px; }
.gcard__to { font-size: 15px; opacity: .9; }
.gcard__to b { font-family: var(--f-head); font-size: 22px; opacity: 1; }
.gcard__msg { font-size: 14px; opacity: .85; margin: 4px 0 8px; max-width: 85%; }
.gcard__msg b { color: var(--gold); }
.gcard__from { font-size: 14px; opacity: .9; }
.gcard__ic { position: absolute; left: 24px; bottom: 22px; width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.gift__form .muted { margin: 10px 0 24px; max-width: 480px; }
.gift__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.field--full { grid-column: 1 / -1; }

/* ---------- الأخبار ---------- */
#news .carousel__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
.ncard { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.ncard:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.ncard__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ncard:hover .ncard__img img { transform: scale(1.06); }
.ncard__date { position: absolute; bottom: 12px; right: 12px; display: inline-flex; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.ncard__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard__cat { font-size: 13px; font-weight: 700; color: var(--blue); }
.ncard h3 { font-family: var(--f-body); font-weight: 700; font-size: 16.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---------- طرق التبرع ---------- */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.way { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: .3s; }
.way:hover { border-color: var(--blue-100); box-shadow: var(--sh); }
.way__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; }
.way:nth-child(2) .way__ic { background: var(--gold-50); color: var(--gold-dark); }
.way:nth-child(3) .way__ic { background: var(--olive-50); color: var(--olive); }
.way b { display: block; font-family: var(--f-head); font-weight: 600; }
.way small { color: var(--muted); }

/* ---------- النشرة ---------- */
.newsletter { padding: 0 0 72px; }
.newsletter__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); color: #fff; position: relative; overflow: hidden; }
.newsletter__in::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(251, 192, 6, .14); left: -60px; top: -120px; }
.newsletter__in p { opacity: .85; margin-top: 4px; }
.newsletter__form { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; padding-inline-start: 18px; width: min(100%, 460px); color: var(--muted); }
.newsletter__form input { flex: 1; border: 0; outline: 0; background: none; height: 44px; color: var(--ink); min-width: 0; }

/* ---------- الفوتر ---------- */
.footer { background: var(--blue-deep); color: rgba(255, 255, 255, .75); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { margin-bottom: 18px; }
.footer__brand p { font-size: 14.5px; max-width: 360px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--gold); }
.contact li { display: flex; align-items: center; gap: 10px; }
.contact .ic { color: var(--gold); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: .2s; }
.socials a:hover { background: var(--blue); color: #fff; }
.socials .ic { width: 18px; height: 18px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer__pay { display: flex; gap: 6px; }

/* ---------- شريط الجوال ---------- */
.mbar { display: none; }

/* ---------- البحث / السلة ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 68, 103, .55); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 12vh; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.search-box { position: relative; width: min(100% - 32px, 720px); background: #fff; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-lg); animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.search-box__close { position: absolute; top: 12px; left: 12px; }
.search-box__field { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--blue); padding: 8px 4px 14px; color: var(--blue); margin-top: 16px; }
.search-box__field input { flex: 1; border: 0; outline: 0; font-size: 22px; font-family: var(--f-head); color: var(--ink); background: none; }
.search-box__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.search-box__tags a { padding: 4px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.search-box__tags a:hover { background: var(--blue-50); color: var(--blue); }

.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(15, 68, 103, .45); animation: fade .25s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, 420px); background: #fff; display: flex; flex-direction: column; animation: slideIn .35s var(--ease); }
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__list { flex: 1; overflow: auto; padding: 12px 22px; }
.drawer__list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer__list li b { flex: 1; font-weight: 600; }
.drawer__list li span { font-family: var(--f-head); font-weight: 700; color: var(--blue); }
.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.drawer__empty .ic { width: 48px; height: 48px; color: var(--blue-100); }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 18px; }
.drawer__total b { font-family: var(--f-head); }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 200; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; box-shadow: var(--sh-lg); transition: transform .4s var(--ease), opacity .3s, visibility .3s; display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .ic { color: var(--gold); }

/* ---------- حركات الظهور ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .brand__text { display: none; }
  .carousel__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
  .impact__grid { grid-template-columns: repeat(4, 1fr); }
  .impact__intro { grid-column: 1 / -1; max-width: 640px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .burger { display: inline-grid; }
  .brand__text { display: block; height: 36px; }
  .brand__emblem { height: 50px; }
  .nav { position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; background: #fff; padding: 16px; overflow: auto; transform: translateX(100%); transition: transform .4s var(--ease); z-index: 49; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 17px; border-radius: var(--r); }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 4px 0 8px; grid-template-columns: 1fr; }
  .has-mega.is-open .mega { display: grid; }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__promo { display: none; }
  .header__cta { display: none; }
  .qd__row { grid-template-columns: 1fr; }
  .carousel__track, #news .carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; }
  .zakat, .gift { grid-template-columns: 1fr; gap: 40px; }
  .campaigns { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .newsletter__in { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter__form { width: 100%; }
}
@media (max-width: 720px) {
  .topbar__ticker { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__links { gap: 16px; }
  .hero { padding-top: 12px; }
  .hero__stage { height: 520px; border-radius: var(--r-lg); }
  .slide { align-items: flex-end; padding-bottom: 150px; }
  .slide::after { background: linear-gradient(to top, color-mix(in srgb, var(--tint) 95%, transparent) 10%, color-mix(in srgb, var(--tint) 50%, transparent) 55%, transparent 85%); }
  .slide__bg { object-position: 15% center; }
  .slide--flip .slide__bg { object-position: 85% center; }
  .slide__text { font-size: 16px; margin-bottom: 18px; }
  .hero__controls { bottom: 120px; left: 24px; }
  .qd { padding: 18px; margin-top: -88px; }
  .chips { flex-wrap: wrap; }
  .chip { flex: 1; min-width: 0; }
  .chip--input { flex-basis: 100%; }
  .impact__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .carousel__track, #news .carousel__track { grid-auto-columns: 72%; gap: 16px; }
  .section__head { align-items: flex-start; }
  .camp { min-height: 0; flex-direction: column; align-items: stretch; }
  .camp__text { max-width: 100%; padding: 24px; }
  .camp img { position: relative; }
  .camp--clothes img { width: 80%; left: auto; margin: -10px auto -10px; }
  .camp--fathers img { width: 100%; height: 220px; mask-image: linear-gradient(to top, transparent, #000 40%); -webkit-mask-image: linear-gradient(to top, transparent, #000 40%); order: -1; }
  .camp--urgent img { position: absolute; }
  .zcalc { grid-template-columns: 1fr; padding: 20px; }
  .gift__preview { padding: 24px 16px; }
  .gift__fields { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; padding-bottom: 96px; }
  .newsletter__in { padding: 28px 20px; }
  .mbar { display: flex; position: fixed; z-index: 60; bottom: 0; inset-inline: 0; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; }
  .mbar__cart { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; }
  .mbar__cart span { background: var(--blue); color: #fff; border-radius: 9px; min-width: 20px; height: 20px; font-size: 12px; display: grid; place-items: center; }
  .toast { bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
