/* =============================================================================
   جمعية البر والخدمات بحداد بني مالك — ورقة الأنماط
   تصميم احترافي، متجاوب، يدعم RTL.
   الألوان معرّفة كمتغيرات لتسهيل تبديلها عند توفّر الهوية الرسمية.
   ========================================================================== */

:root {
  /* ألوان الهوية (مستوحاة من شعار الجمعية الأخضر) */
  --primary:        #357C40;   /* أخضر الشعار الأساسي */
  --primary-dark:   #235730;
  --primary-light:  #54A35F;
  --gold:           #95C24F;   /* الأخضر الفاتح (لون التمييز) */
  --gold-light:     #C2E08A;

  --ink:            #15241E;   /* نص داكن */
  --ink-soft:       #46564F;
  --muted:          #7B8A82;
  --line:           #E7E3D8;
  --paper:          #FAF8F3;   /* أبيض دافئ */
  --paper-2:        #F2EEE3;
  --surface:        #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(21,36,30,.06), 0 1px 2px rgba(21,36,30,.04);
  --shadow-md: 0 8px 24px rgba(21,36,30,.08), 0 2px 6px rgba(21,36,30,.05);
  --shadow-lg: 0 24px 60px rgba(21,36,30,.14);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --header-h:  78px;

  --display: "El Messiri", "Tajawal", system-ui, sans-serif;
  --body:    "Tajawal", system-ui, -apple-system, sans-serif;
}

/* ---------- أساسيات ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.35; font-weight: 700; color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--paper-2); }

/* عنوان قسم */
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; color: var(--primary);
  background: rgba(14,107,79,.08); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.section-head .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); display: inline-block; }
.section-head .eyebrow svg { width: 16px; height: 16px; flex: 0 0 auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--gold { background: var(--gold); color: #1c3d16; box-shadow: 0 8px 22px rgba(53,124,64,.28); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; max-width: 130px; object-fit: contain; }
.brand .brand-text strong { display: block; font-family: var(--display); font-size: 1.06rem; color: var(--primary-dark); line-height: 1.3; }
.brand .brand-text span { font-size: .76rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--primary); background: rgba(14,107,79,.07); }
.nav a.active { color: var(--primary-dark); background: rgba(14,107,79,.1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-donate { display: none; } /* يظهر فقط داخل قائمة الجوال */

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

/* ---------- البطل (Hero) ---------- */
.hero { position: relative; overflow: hidden; background: var(--primary-dark); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(200,162,75,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(24,147,108,.5), transparent 60%),
    linear-gradient(160deg, var(--primary-dark), #08402f);
}
.hero::after { /* زخرفة هندسية إسلامية خفيفة */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C8A24B' stroke-width='1'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 820px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .85rem;
  color: var(--gold-light); border: 1px solid rgba(224,200,135,.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; white-space: nowrap;
}
.hero .kicker svg { width: 16px; height: 16px; flex: 0 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.3; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin-top: 20px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 56px; }
.hero-stats .stat strong { font-family: var(--display); font-size: 2rem; color: var(--gold-light); display: block; }
.hero-stats .stat span { color: rgba(255,255,255,.75); font-size: .92rem; }

/* ---------- شريط الورقة المتموّج أسفل البطل ---------- */
.hero-wave { position: relative; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }
.hero-wave path { fill: var(--paper); }

/* ---------- بطاقات الوصول السريع ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.qcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.qcard::after { content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), var(--primary-light)); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.qcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.qcard:hover::after { transform: scaleX(1); }
.qcard .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(14,107,79,.09); color: var(--primary); margin-bottom: 18px; }
.qcard .ic svg { width: 26px; height: 26px; }
.qcard h3 { font-size: 1.25rem; margin-bottom: 8px; }
.qcard p { color: var(--ink-soft); font-size: .97rem; }
.qcard .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--primary); font-weight: 700; font-size: .92rem; }
.qcard .go svg { width: 16px; height: 16px; transition: transform .25s; }
.qcard:hover .go svg { transform: translateX(-4px); }

/* ---------- نبذة في الرئيسية ---------- */
.intro-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.intro-split .media {
  aspect-ratio: 4/3; border-radius: var(--radius); background:
    radial-gradient(circle at 30% 30%, rgba(200,162,75,.25), transparent 55%),
    linear-gradient(150deg, var(--primary), var(--primary-dark));
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.intro-split .media img { width: auto; max-width: 64%; background: #fff; padding: 22px 28px; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.intro-split .media::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 2 38 22 58 30 38 38 30 58 22 38 2 30 22 22Z' fill='none' stroke='%23E0C887'/%3E%3C/svg%3E"); background-size: 70px 70px; }

/* ---------- صفحات داخلية: ترويسة ---------- */
.page-hero { background: linear-gradient(150deg, var(--primary-dark), #08402f); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23C8A24B'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 90px 90px; }
.page-hero .inner { position: relative; z-index: 1; padding: 64px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-hero p { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { opacity: .5; }

/* ---------- بطاقات معلومات (رؤية/رسالة) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(200,162,75,.14); color: var(--gold); margin-bottom: 16px; }
.info-card .ic svg { width: 26px; height: 26px; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.info-card p { color: var(--ink-soft); }

.prose { max-width: 760px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose--center { max-width: 820px; margin-inline: auto; text-align: center; }
.section-head--center { margin-inline: auto; text-align: center; }

/* قائمة الأهداف */
.goal-list { display: grid; gap: 14px; }
.goal-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.goal-list .num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }

/* أعضاء مجلس الإدارة */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.member { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member .avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; color: var(--gold-light); font-family: var(--display); font-size: 2rem; }
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h4 { font-size: 1.1rem; }
.member span { color: var(--muted); font-size: .9rem; }

/* ---------- تبويبات السنوات ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.year-tab {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 10px 24px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: .25s;
}
.year-tab:hover { border-color: var(--primary); color: var(--primary); }
.year-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-md); }
.year-panel { display: none; animation: fade .4s ease; }
.year-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- قائمة الملفات ---------- */
.file-list { display: grid; gap: 12px; }
.file-row {
  display: flex; align-items: center; gap: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.file-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateX(-3px); }
.file-row .fic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: rgba(200,162,75,.15); color: var(--gold); display: grid; place-items: center; }
.file-row .fic svg { width: 24px; height: 24px; }
.file-row .meta { flex: 1; min-width: 0; }
.file-row .meta strong { display: block; font-weight: 700; font-size: 1.02rem; }
.file-row .meta span { color: var(--muted); font-size: .85rem; }
.file-row .dl { flex: 0 0 auto; }
.file-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- عارض الملفات (PDF) داخل الصفحة ---------- */
.viewer { position: fixed; inset: 0; z-index: 1000; display: none; }
.viewer.open { display: block; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(10,25,18,.65); backdrop-filter: blur(3px); }
.viewer-box {
  position: absolute; inset: 4vh 4vw; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: fade .3s ease;
}
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.viewer-title { font-family: var(--display); font-size: 1.05rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.viewer-close { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--ink-soft); transition: .2s; }
.viewer-close:hover { background: var(--paper-2); color: var(--ink); }
.viewer-frame { flex: 1; width: 100%; border: 0; background: #525659; }
@media (max-width: 560px) { .viewer-box { inset: 0; border-radius: 0; } .viewer-title { font-size: .9rem; } }

/* بطاقات الأنشطة */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.activity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.activity:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.activity .thumb { aspect-ratio: 16/10; background: linear-gradient(150deg, var(--primary-light), var(--primary-dark)); display: grid; place-items: center; }
.activity .thumb img { width: 100%; height: 100%; object-fit: cover; }
.activity .body { padding: 22px; }
.activity h4 { font-size: 1.15rem; margin-bottom: 8px; }
.activity p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- بطاقات أبواب التبرع ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.donate-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.donate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.donate-cat { margin-bottom: 44px; }
.donate-cat:last-child { margin-bottom: 0; }
.donate-cat-title {
  font-size: 1.3rem; margin-bottom: 20px; padding-right: 16px; position: relative;
}
.donate-cat-title::before {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 24px; border-radius: 3px; background: linear-gradient(var(--gold), var(--primary));
}
.donate-card .thumb { position: relative; aspect-ratio: 1/1; background: var(--paper-2); overflow: hidden; }
.season-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--gold); color: #1c3d16; font-weight: 700; font-size: .78rem;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.donate-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.donate-card:hover .thumb img { transform: scale(1.05); }
.donate-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.donate-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.donate-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; margin-bottom: 16px; }
.donate-card .btn { width: 100%; }

/* ---------- التواصل الاجتماعي ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.social-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.social-card .sic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.social-card .sic svg { width: 18px; height: 18px; }
.social-card strong { font-size: .95rem; }
.social-card span { display: block; color: var(--muted); font-size: .78rem; }

/* أيقونات تواصل صغيرة (هيدر/فوتر) */
.social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icons a { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: .25s; }
.social-icons a:hover { background: var(--gold); color: #1c3d16; transform: translateY(-3px); }
.social-icons a svg { width: 16px; height: 16px; }

/* ---------- معلومات التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.contact-item .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(53,124,64,.1); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.contact-item .ic svg { width: 18px; height: 18px; }
.contact-item .meta strong { display: block; }
.contact-item .meta span, .contact-item .meta a { color: var(--ink-soft); }
.contact-item .meta a:hover { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,107,79,.1); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-placeholder { height: 380px; display: grid; place-items: center; background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* موقع الجمعية أسفل صفحة التواصل (عرض كامل) */
.contact-map { margin-top: 56px; }
.contact-map .map-embed iframe { height: 460px; }

/* صورة الهيكل الإداري / الجمعية العمومية */
.org-figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); text-align: center; }
.org-figure img { max-width: 100%; border-radius: var(--radius-sm); margin-inline: auto; }

/* ---------- معرض الوسائط ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.media-item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.media-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.media-item figcaption { padding: 12px 16px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- شريط دعوة للتبرع ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff; padding: 56px clamp(28px, 6vw, 72px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z' fill='none' stroke='%23E0C887'/%3E%3C/svg%3E"); background-size: 90px 90px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 14px auto 28px; }

/* ---------- لا توجد بيانات ---------- */
.no-data {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; color: var(--muted); padding: 48px 24px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.no-data svg { width: 42px; height: 42px; opacity: .55; }
.no-data .label { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; color: var(--ink-soft); }
.no-data--inline { padding: 28px 20px; }

/* ---------- الفوتر ---------- */
.site-footer { background: #0c1f18; color: rgba(255,255,255,.78); padding: 64px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { height: 60px; width: auto; max-width: 150px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px 12px; flex: 0 0 auto; }
.footer-brand strong { font-family: var(--display); color: #fff; font-size: 1.15rem; display: block; }
.footer-brand p { font-size: .92rem; margin-top: 8px; color: rgba(255,255,255,.6); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { font-size: .92rem; color: rgba(255,255,255,.7); margin-bottom: 10px; display: flex; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- كشف عند التمرير ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- استجابة الشاشات ---------- */
@media (max-width: 980px) {
  .intro-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .28s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav .nav-donate { display: inline-flex; margin-top: 8px; }
  .header-actions .btn--donate { display: none; }
  .brand .brand-text strong { font-size: .95rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero-inner { padding: 70px 0 80px; }
  .hero-stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand .brand-text span { display: none; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
