/* ===========================================================
   جمعية روافد السقيا والتنمية
   الهوية البصرية: تدرّج أزرق (#1e6ba8) → أخضر (#1a7a5e / #4caf50)
   =========================================================== */

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

:root {
  /* الهوية البصرية: أزرق + أخضر (تم تحسين التباين والواقعية) */
  --blue-dark:   #0f4876;
  --blue:        #185c96;
  --blue-light:  #3a81bd;
  --blue-pale:   #e6f0f9;

  --green-dark:  #0e523c;
  --green:       #146c50;
  --green-light: #359868;
  --green-soft:  #65b28d;
  --green-pale:  #e4f3eb;

  --brand-grad:  linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  --brand-grad-soft: linear-gradient(135deg, var(--blue-light) 0%, var(--green-light) 100%);
  --brand-grad-deep: linear-gradient(135deg, #0a2f4d 0%, var(--blue) 45%, var(--green) 100%);

  --bg:          #f2f7f5;
  --bg-alt:      #e9f2ee;
  --white:       #ffffff;
  --text:        #0c1924;
  --text-muted:  #4a5b69;
  --card-bg:     #ffffff;
  --border:      #cce0d6;

  --radius:      1.25rem;
  --shadow-sm:   0 2px 12px rgba(24,92,150,.06);
  --shadow:      0 8px 32px rgba(24,92,150,.12);
  --shadow-lg:   0 16px 48px rgba(24,92,150,.18);
  --shadow-green:0 12px 36px rgba(20,108,80,.22);

  /* الخطوط متطابقة مع الهوية */
  --font-arabic: '29LT Azer', '29LT Azer Regular', '29LT Azer Medium', '29LT Azer Bold', 'Cairo', 'Tajawal', system-ui, sans-serif;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg:          #0a1922;
  --bg-alt:      #0e2230;
  --white:       #142634;
  --text:        #e8f1ef;
  --text-muted:  #8aa1ad;
  --card-bg:     #142634;
  --border:      #1f3a4d;
  --shadow:      0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:   0 14px 40px rgba(0,0,0,.55);
}
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .about,
[data-theme="dark"] .donate,
[data-theme="dark"] .faq,
[data-theme="dark"] .howit,
[data-theme="dark"] .contact,
[data-theme="dark"] .transparency,
[data-theme="dark"] .vision,
[data-theme="dark"] .initiatives,
[data-theme="dark"] .partners { background: var(--bg-alt); }
[data-theme="dark"] .project-card,
[data-theme="dark"] .donate-form-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .volunteer-form,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .howit-card,
[data-theme="dark"] .trans-item,
[data-theme="dark"] .partner-logo,
[data-theme="dark"] .vision-card,
[data-theme="dark"] .goal-card,
[data-theme="dark"] .initiative-card,
[data-theme="dark"] .team-card { background: var(--white); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .feature,
[data-theme="dark"] .info-item,
[data-theme="dark"] .apple-pay-info,
[data-theme="dark"] .bank-info { background: var(--white); }
[data-theme="dark"] .feature:hover { background: #1a3346; }
[data-theme="dark"] .navbar.scrolled { background: rgba(10,25,34,.96); }
[data-theme="dark"] .mobile-nav-panel { background: var(--white); }
[data-theme="dark"] .mobile-nav-links a { color: var(--text); }
[data-theme="dark"] .footer { background: #061119; }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: var(--white) !important; color: var(--text) !important; border-color: var(--border) !important; }
[data-theme="dark"] .amount-btn { background: var(--white); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .amount-btn.active { background: var(--brand-grad); border-color: transparent; color: #fff; }
[data-theme="dark"] .faq-q:hover { background: var(--white); }
[data-theme="dark"] .faq-item.open .faq-q { background: rgba(26,122,94,.12); }
[data-theme="dark"] .pay-tab { background: var(--white); border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .pay-tab.active { background: rgba(30,107,168,.15); color: var(--blue-light); border-color: var(--blue); }
[data-theme="dark"] .trans-badge { background: var(--white); border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .filter-btn { color: var(--blue-light); border-color: var(--blue); }
[data-theme="dark"] .filter-btn:hover { background: var(--blue-light); color: #fff; }
[data-theme="dark"] .filter-btn.active { color: #fff; border-color: transparent; }
[data-theme="dark"] .toast { background: var(--white); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-arabic);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* Visually hidden helper for screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute; top: -40px; right: 1rem;
  background: var(--brand-grad); color: #fff;
  padding: .6rem 1rem; border-radius: .5rem;
  font-weight: 700; text-decoration: none;
  z-index: 10000; transition: top .2s;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--green-light); outline-offset: 2px; }

/* Global focus styles */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; margin-bottom: .75rem; line-height: 1.3; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,.85); }

.section-tag {
  display: inline-block;
  background: var(--brand-grad);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.section-tag.light {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
}

/* ===== BRAND LOGO SVG ===== */
.brand-svg { width: 100%; height: 100%; display: block; }
.logo-mark { display: inline-flex; width: 44px; height: 56px; flex-shrink: 0; }
.logo-mark-img {
  width: 52px; height: 52px;
  object-fit: contain; flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.06));
}
.navbar:not(.scrolled) .logo-mark-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)) brightness(1.05);
}
.logo-text-wrap { display: inline-flex; flex-direction: column; line-height: 1.1; }
.logo-text {
  font-size: 1.15rem; font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-sub {
  font-size: .68rem; font-weight: 600;
  color: var(--text-muted); margin-top: .15rem;
}
.navbar:not(.scrolled) .logo-text {
  background: linear-gradient(135deg, #fff 0%, #d4f0e0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar:not(.scrolled) .logo-sub { color: rgba(255,255,255,.75); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  transition: all .3s ease;
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(24,92,150,.08);
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding: .65rem 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-links {
  display: flex; list-style: none; gap: .25rem; margin-inline-start: auto;
}
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem;
  padding: .5rem .9rem; border-radius: .5rem; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active-link { color: var(--green); background: var(--green-pale); }
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.92); }
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active-link { color: #fff; background: rgba(255,255,255,.15); }

.btn-donate {
  background: var(--brand-grad);
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .75rem 1.8rem; border-radius: 2rem;
  box-shadow: var(--shadow-green);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap; border: 1px solid rgba(255,255,255,.1);
}
.btn-donate:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,108,80,.35); filter: brightness(1.05); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.navbar:not(.scrolled) .hamburger span { background: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0e3f63 0%, var(--blue) 50%, var(--green) 100%);
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .28;
  mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(14,63,99,.82) 0%, rgba(30,107,168,.7) 45%, rgba(26,122,94,.78) 100%),
    radial-gradient(circle at 20% 30%, rgba(76,175,80,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(125,211,252,.12), transparent 60%);
}
.leaf-bg {
  position: absolute; opacity: .08; pointer-events: none;
  width: 280px; height: 280px;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, #fff 0%, transparent 70%);
  filter: blur(2px);
}
.leaf-bg-1 { top: 10%; right: 5%; }
.leaf-bg-2 { bottom: 18%; left: 8%; transform: rotate(160deg); }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 8rem 1.5rem 6rem;
  color: #fff;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(10px);
  padding: .5rem 1.2rem; border-radius: 2rem;
  font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem;
  animation: fadeSlideDown .8s ease both;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.35);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 3px rgba(76,175,80,.35); } 50% { box-shadow: 0 0 0 7px rgba(76,175,80,.15); } }

.hero-content h1 { animation: fadeSlideDown .8s ease .15s both; }
.hero-content > p { animation: fadeSlideDown .8s ease .3s both; }
.hero-btns { animation: fadeSlideDown .8s ease .45s both; }
.hero-stats { animation: fadeSlideDown .8s ease .6s both; }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.hero-content h1 span {
  background: linear-gradient(135deg, #c8f7d3 0%, #7dd3fc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.9);
  max-width: 620px; margin-bottom: 2rem; line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; margin-bottom: 3.5rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--brand-grad);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 1rem 2.5rem; border-radius: 2rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(26,122,94,.45);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(255,255,255,.2); cursor: pointer; display: inline-block;
  font-family: var(--font-arabic);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(26,122,94,.55); filter: brightness(1.1); }

.btn-secondary {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 1rem 2.5rem; border-radius: 2rem; text-decoration: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,.2); transform: translateY(-4px); border-color: rgba(255,255,255,.8); }

.hero-stats {
  align-items: center; gap: 2.5rem;
  background: rgba(255,255,255,.05); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  padding: 1.5rem 2.5rem; border-radius: 1.25rem;
  display: inline-flex;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.78); font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.3); }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2;
}
.hero-wave svg { display: block; width: 100%; }
.hero-wave path { fill: var(--bg); }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-image { position: relative; height: 460px; }
.img-card {
  position: absolute; border-radius: 1.25rem;
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--white);
  border: 4px solid var(--white);
}
.img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.img-card-1 { width: 65%; aspect-ratio: 4/3; top: 0; right: 0; z-index: 1; }
.img-card-2 { width: 58%; aspect-ratio: 4/3; bottom: 0; left: 0; z-index: 2; }
.img-card-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,63,99,.92), rgba(14,63,99,0));
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: 1.5rem 1rem .85rem; text-align: center;
}
.floating-badge {
  position: absolute; top: 50%; left: -1rem; transform: translateY(-50%);
  background: var(--brand-grad);
  color: #fff; font-weight: 700; font-size: .85rem;
  padding: .65rem 1.3rem; border-radius: 2rem;
  box-shadow: var(--shadow-green);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
  z-index: 3;
}
@keyframes float { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(-60%)} }

.about-text .section-tag { margin-bottom: .75rem; }
.about-text h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 900; margin-bottom: 1rem; line-height: 1.3; }
.about-text > p { color: var(--text-muted); line-height: 1.85; margin-bottom: .9rem; }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.feature {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: .85rem;
  background: var(--bg); transition: all .3s;
  border-right: 3px solid transparent;
}
.feature:hover { background: var(--green-pale); border-right-color: var(--green); transform: translateX(-4px); }
.feature-icon {
  flex-shrink: 0; margin-top: .1rem;
  width: 42px; height: 42px; border-radius: .65rem;
  background: var(--green-pale);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
[data-theme="dark"] .feature-icon { background: rgba(26,122,94,.18); color: var(--green-light); }
.feature h4 { font-size: .98rem; font-weight: 800; margin-bottom: .25rem; }
.feature p { font-size: .87rem; color: var(--text-muted); }

/* ===== VISION / MISSION / VALUES ===== */
.vision { background: var(--bg); position: relative; overflow: hidden; }
.vision::before {
  content: ''; position: absolute;
  top: -50%; left: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,122,94,.08) 0%, transparent 60%);
  pointer-events: none;
}
.vision-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  position: relative;
}
.vision-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem 2rem; box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  border-image: var(--brand-grad) 1;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
.vision-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); z-index: 2; }
.vision-icon {
  width: 56px; height: 56px; border-radius: .85rem;
  background: var(--brand-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-green);
}
.vision-icon svg { width: 28px; height: 28px; }
.vision-card h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: .65rem; color: var(--text); }
.vision-card p { color: var(--text-muted); line-height: 1.85; font-size: .94rem; }

.values-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.values-list li { display: flex; flex-direction: column; gap: .2rem; padding: .65rem .9rem; border-radius: .65rem; background: var(--green-pale); border-right: 3px solid var(--green); }
.values-list strong { color: var(--green-dark); font-size: .98rem; font-weight: 800; }
.values-list span { color: var(--text-muted); font-size: .87rem; }
[data-theme="dark"] .values-list li { background: rgba(26,122,94,.12); }

/* ===== STRATEGIC GOALS ===== */
.goals { background: var(--white); }
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.goal-card {
  background: var(--bg); border-radius: 1.1rem;
  padding: 1.85rem 1.5rem;
  position: relative;
  transition: all .35s;
  border: 1px solid var(--border);
  overflow: hidden;
}
.goal-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 6px; height: 0; background: var(--brand-grad);
  transition: height .4s ease;
}
.goal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--white); }
.goal-card:hover::before { height: 100%; }
.goal-num {
  font-size: 2.2rem; font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .5rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.goal-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .5rem; color: var(--text); }
.goal-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

/* ===== HOW IT WORKS / WORK AREAS ===== */
.howit { background: var(--white); }
.howit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.howit-card {
  text-align: center; padding: 2.25rem 1.5rem 1.75rem;
  background: var(--bg); border-radius: 1.1rem;
  position: relative; transition: all .35s;
  border: 2px solid transparent;
}
.howit-card:hover {
  border-color: var(--green);
  background: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.howit-num {
  position: absolute; top: -16px; right: 50%; transform: translateX(50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff; font-size: .9rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-green);
}
.howit-icon {
  width: 54px; height: 54px; border-radius: .75rem;
  background: var(--green-pale); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .85rem;
}
.howit-icon svg { width: 26px; height: 26px; }
[data-theme="dark"] .howit-icon { background: rgba(26,122,94,.18); color: var(--green-light); }
.howit-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .55rem; }
.howit-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* ===== INITIATIVES ===== */
.initiatives { background: var(--bg); }
.initiatives-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.initiative-card {
  background: var(--white); border-radius: 1.1rem;
  padding: 1.85rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all .35s; position: relative; overflow: hidden;
}
.initiative-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0;
  height: 4px; background: var(--brand-grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s ease;
}
.initiative-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.initiative-card:hover::after { transform: scaleX(1); }
.initiative-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.initiative-icon {
  width: 52px; height: 52px; border-radius: .85rem;
  background: var(--green-pale); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.initiative-icon svg { width: 26px; height: 26px; }
[data-theme="dark"] .initiative-icon { background: rgba(26,122,94,.18); }
.initiative-card h3 { font-size: 1.15rem; font-weight: 900; color: var(--text); }
.initiative-card p { color: var(--text-muted); line-height: 1.85; font-size: .92rem; margin-bottom: 1rem; }
.initiative-link {
  font-weight: 700; color: var(--green); text-decoration: none;
  font-size: .92rem;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .2s, color .2s;
}
.initiative-link:hover { color: var(--green-dark); gap: .6rem; }

/* ===== PROJECTS ===== */
.projects { background: var(--white); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  border: 1px solid rgba(204,224,214,.6);
}
.project-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 5px; height: 100%;
  background: var(--brand-grad);
  transition: width .3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-card:hover::before { width: 8px; }
.project-card.featured {
  background: var(--brand-grad-deep);
  color: #fff; border-color: transparent;
}
.project-card.featured::before { display: none; }
.project-icon {
  width: 56px; height: 56px; border-radius: .85rem;
  background: rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .85rem;
}
.project-icon svg { width: 28px; height: 28px; }
.project-card:not(.featured) .project-icon {
  background: var(--green-pale); color: var(--green-dark);
}
[data-theme="dark"] .project-card:not(.featured) .project-icon {
  background: rgba(26,122,94,.18); color: var(--green-light);
}
.project-tag {
  display: inline-block; background: rgba(255,255,255,.2);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .85rem; border-radius: 2rem; margin-bottom: .75rem;
}
.project-card h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: .65rem; line-height: 1.4; }
.project-card p { font-size: .93rem; line-height: 1.75; opacity: .85; margin-bottom: 1.25rem; }
.project-card.featured p { opacity: .9; }
.project-progress { margin-bottom: 1.25rem; }
.progress-info { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; margin-bottom: .45rem; }
.project-card.featured .progress-info { color: rgba(255,255,255,.95); }
.progress-bar { background: rgba(0,0,0,.08); border-radius: 2rem; height: 7px; overflow: hidden; }
.project-card.featured .progress-bar { background: rgba(255,255,255,.2); }
.progress-fill {
  height: 100%; border-radius: 2rem;
  background: linear-gradient(90deg, var(--blue), var(--green-light));
  transition: width 1.5s ease;
}
.project-card.featured .progress-fill { background: rgba(255,255,255,.85); }
.btn-project {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .88rem;
  padding: .6rem 1.5rem; border-radius: 2rem; transition: all .3s;
  background: var(--green-pale); color: var(--green-dark);
}
.project-card.featured .btn-project {
  background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4);
}
.btn-project:hover { transform: translateY(-2px); background: var(--green); color: #fff; }
.project-card.featured .btn-project:hover { background: rgba(255,255,255,.32); }

/* Filter Tabs */
.filter-tabs {
  display: flex; gap: .55rem; flex-wrap: wrap;
  margin-bottom: 2.5rem; justify-content: center;
}
.filter-btn {
  padding: .55rem 1.35rem;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green-dark);
  border-radius: 2rem;
  font-family: var(--font-arabic);
  font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: all .25s;
}
.filter-btn:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.filter-btn.active {
  background: var(--brand-grad); color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-green);
}

/* ===== TRANSPARENCY ===== */
.transparency { background: var(--bg); }
.transparency-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.transparency-text .section-tag { margin-bottom: .75rem; }
.transparency-text h2 {
  font-size: clamp(1.6rem,2.5vw,2.2rem); font-weight: 900;
  margin-bottom: 1rem; line-height: 1.3;
}
.transparency-text > p {
  color: var(--text-muted); line-height: 1.85; margin-bottom: 1.5rem;
}
.transparency-items { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.5rem; }
.trans-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: .85rem; padding: .85rem 1.2rem;
  box-shadow: 0 2px 8px rgba(30,107,168,.06);
  border: 1px solid var(--border);
}
.trans-bar-wrap { display: flex; align-items: center; gap: .75rem; }
.trans-color { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.trans-label { font-size: .93rem; font-weight: 600; }
.trans-pct {
  font-size: 1.15rem; font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.trans-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.trans-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 2rem; padding: .45rem 1.1rem;
  font-size: .82rem; font-weight: 700; color: var(--text-muted);
  transition: all .3s;
}
.trans-badge svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.trans-badge:hover { border-color: var(--green); color: var(--green-dark); }

.transparency-chart { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.donut-wrapper { width: 240px; height: 240px; position: relative; }
.donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-seg { transition: stroke-dasharray 1.5s ease; }
.donut-center-num {
  fill: var(--text); font-family: var(--font-arabic);
  font-size: 30px; font-weight: 900;
  transform: rotate(90deg) translate(0, -200px);
  transform-origin: center;
}
.donut-center-lbl {
  fill: var(--text-muted); font-family: var(--font-arabic);
  font-size: 13px; font-weight: 600;
  transform: rotate(90deg) translate(0, -200px);
  transform-origin: center;
}
.chart-note {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--text-muted);
}

/* ===== DONATE ===== */
.donate { background: var(--white); }
.donate-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.donate-text .section-tag { margin-bottom: .75rem; }
.donate-text h2 { font-size: clamp(1.6rem,2.5vw,2.2rem); font-weight: 900; margin-bottom: 1rem; line-height: 1.3; }
.donate-text > p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.5rem; }
.donate-info { display: flex; flex-direction: column; gap: .75rem; }
.info-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .85rem 1.1rem; background: var(--bg); border-radius: .85rem;
  border-right: 3px solid var(--green);
}
.info-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: .55rem;
  background: var(--brand-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-item p { font-size: .92rem; color: var(--text-muted); line-height: 1.6; }
.info-item strong { color: var(--text); font-weight: 800; }

.donate-form-card {
  background: var(--bg); border-radius: 1.5rem;
  padding: 2rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.donate-form-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.25rem; }
.amount-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.amount-btn {
  padding: .75rem; border-radius: .75rem; border: 2px solid var(--border);
  background: var(--white); font-family: var(--font-arabic); font-weight: 700; font-size: .92rem;
  cursor: pointer; transition: all .2s; color: var(--text);
}
.amount-btn:hover { border-color: var(--green); color: var(--green-dark); }
.amount-btn.active {
  border-color: transparent; background: var(--brand-grad); color: #fff;
  box-shadow: var(--shadow-green);
}
.custom-amount { margin-bottom: 1rem; }
.custom-amount label { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .45rem; display: block; }
.input-wrapper { position: relative; }
.input-wrapper input { width: 100%; }
.currency {
  position: absolute; top: 50%; left: .85rem; transform: translateY(-50%);
  font-weight: 700; color: var(--text-muted); font-size: .85rem;
}
.form-row { margin-bottom: .85rem; }
.form-row input, .form-row textarea, .custom-amount input, .vform-row input, .vform-row select, .vform-row textarea {
  width: 100%; padding: .8rem 1rem; border: 2px solid var(--border);
  border-radius: .75rem; font-family: var(--font-arabic); font-size: .92rem;
  background: var(--white); transition: border-color .2s, box-shadow .2s; outline: none; color: var(--text);
  direction: rtl;
}
.form-row input:focus, .form-row textarea:focus, .custom-amount input:focus,
.vform-row input:focus, .vform-row select:focus, .vform-row textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,94,.12);
}
.form-row textarea, .vform-row textarea { resize: vertical; min-height: 80px; }
.btn-donate-submit {
  width: 100%; padding: .95rem; border-radius: 2rem; border: none;
  background: var(--brand-grad);
  color: #fff; font-family: var(--font-arabic); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .3s; margin-bottom: .75rem;
  box-shadow: var(--shadow-green);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-donate-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26,122,94,.4); }
.secure-note {
  text-align: center; font-size: .82rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 1rem;
}
.secure-note svg { width: 14px; height: 14px; color: var(--green); }

/* ===== MOYASAR PAYMENT FORM ===== */
.moyasar-payment-container {
  position: relative;
  min-height: 180px;
}
.moyasar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: .95rem;
}
.moyasar-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(26,122,94,.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Moyasar form style overrides to match site design */
.mysr-form .mysr-form-group input,
.mysr-form .mysr-form-group select {
  border-radius: .75rem !important;
  font-family: var(--font-arabic) !important;
}
.mysr-form button[type="submit"] {
  background: var(--brand-grad) !important;
  border-radius: 2rem !important;
  font-family: var(--font-arabic) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: .85rem 2rem !important;
  box-shadow: var(--shadow-green) !important;
  transition: all .3s ease !important;
}
.mysr-form button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(26,122,94,.4) !important;
}

/* Bank transfer panel */
.bank-info {
  background: var(--white); border-radius: 1rem;
  padding: 1.25rem 1.4rem; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
  border: 1px solid var(--border);
}
.bank-row {
  display: flex; flex-direction: column; gap: .15rem;
  padding-bottom: .65rem; border-bottom: 1px dashed var(--border);
}
.bank-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.bank-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.bank-row strong { font-size: .98rem; font-weight: 800; color: var(--text); }
.bank-link { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.bank-link:hover { text-decoration: underline; }
.bank-note { font-size: .85rem; color: var(--text-muted); line-height: 1.7; margin-top: .35rem; }

/* Payment Tabs */
.payment-method-label {
  font-size: .85rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: .65rem; margin-top: .25rem;
}
.payment-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .55rem; margin-bottom: 1.1rem;
}
.pay-tab {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .7rem .4rem; border-radius: .75rem;
  border: 2px solid var(--border); background: var(--white);
  font-family: var(--font-arabic); font-size: .8rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer; transition: all .25s;
}
.pay-tab svg { width: 22px; height: 22px; }
.pay-tab:hover { border-color: var(--green-soft); color: var(--text); }
.pay-tab.active {
  border-color: var(--green); background: var(--green-pale); color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(26,122,94,.12);
}

.pay-panel { animation: fadeIn .3s ease; }
.hidden-panel { display: none; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.two-col-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.card-number-row { position: relative; }
.card-brands {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  display: flex; gap: .3rem; pointer-events: none;
}
.card-brand {
  font-size: .58rem; font-weight: 900; padding: .15rem .35rem;
  border-radius: .25rem; letter-spacing: .03em;
}
.card-brand.visa  { background: #1a1f71; color: #fff; }
.card-brand.mc    { background: #eb001b; color: #fff; }
.card-brand.mada  { background: #00a651; color: #fff; }
#cardNumber { padding-left: 6rem; }

/* Apple Pay panel */
.apple-pay-info {
  background: var(--white); border-radius: 1rem;
  padding: 1.25rem; margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.apple-pay-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; font-weight: 900; margin-bottom: .6rem;
}
.apple-pay-info p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .75rem; }
.pay-features { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.pay-features li {
  font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .55rem;
}
.pay-features li::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-pale) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

.btn-apple-pay {
  width: 100%; padding: .9rem; border-radius: 2rem; border: none;
  background: #000; color: #fff;
  font-family: -apple-system, var(--font-arabic);
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all .3s; letter-spacing: .02em;
}
.btn-apple-pay:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ===== TEAM / BOARD ===== */
.team { background: var(--bg); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.5rem 1.8rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.team-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: var(--brand-grad);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 900; color: #fff;
  margin: 0 auto 1rem;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(30,107,168,.22);
  overflow: hidden;
  background: var(--brand-grad);
  position: relative;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team-avatar-initial { line-height: 1; }
.grad-1 { background: linear-gradient(135deg, #155a8f, #1a7a5e); }
.grad-2 { background: linear-gradient(135deg, #1e6ba8, #4caf50); }
.grad-3 { background: linear-gradient(135deg, #4a92cc, #7cc09c); }
.grad-4 { background: linear-gradient(135deg, #14624b, #1e6ba8); }
.grad-5 { background: linear-gradient(135deg, #1a7a5e, #4a92cc); }

.team-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: .3rem; }
.team-role { font-size: .87rem; color: var(--green-dark); font-weight: 700; }

/* ===== VOLUNTEER ===== */
.volunteer { position: relative; padding: 5rem 0; overflow: hidden; }
.volunteer-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0e3f63 0%, var(--blue) 50%, var(--green) 100%);
}
.volunteer-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(76,175,80,.2), transparent 50%);
}
.volunteer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; z-index: 1;
}
.volunteer-text h2 {
  font-size: clamp(1.6rem,2.5vw,2.2rem); font-weight: 900;
  color: #fff; margin-bottom: 1rem; line-height: 1.3;
}
.volunteer-text > p {
  color: rgba(255,255,255,.88); line-height: 1.85;
  margin-bottom: 1.5rem; font-size: .98rem;
}
.volunteer-perks { display: flex; flex-direction: column; gap: .75rem; }
.perk {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.95); font-size: .95rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: .75rem 1.1rem; border-radius: .85rem;
  transition: all .3s;
}
.perk:hover { background: rgba(255,255,255,.18); transform: translateX(-4px); }
.perk-bullet {
  width: 8px; height: 8px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #86efac);
  box-shadow: 0 0 0 3px rgba(125,211,252,.18);
}

.volunteer-form {
  background: var(--white); border-radius: 1.5rem; padding: 2rem;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  border: 1px solid var(--border);
}
.volunteer-form h3 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 1.25rem; color: var(--text);
}
.vform-row { margin-bottom: .85rem; }
.vform-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.btn-volunteer {
  width: 100%; padding: .95rem; border-radius: 2rem; border: none;
  background: linear-gradient(135deg, var(--green), var(--blue-dark));
  color: #fff; font-family: var(--font-arabic);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all .3s; box-shadow: var(--shadow-green);
}
.btn-volunteer:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26,122,94,.45); }

/* ===== NEWS ===== */
.news { background: var(--white); }
.news-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem;
}
.news-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all .35s; border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-img {
  position: relative; padding-bottom: 55%;
  background: var(--bg);
  overflow: hidden;
}
.news-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.news-card:hover .news-img img { transform: scale(1.06); }
.news-date-badge {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(0,0,0,.35); color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: .3rem .85rem; border-radius: 2rem;
  backdrop-filter: blur(8px);
}
.news-body { padding: 1.5rem; }
.news-cat {
  display: inline-block;
  background: var(--brand-grad);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .22rem .85rem; border-radius: 2rem; margin-bottom: .75rem;
}
.news-body h3 {
  font-size: 1.08rem; font-weight: 800;
  margin-bottom: .6rem; line-height: 1.45;
}
.news-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.news-link {
  font-size: .9rem; font-weight: 700;
  color: var(--green-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .2s, color .2s;
}
.news-link:hover { color: var(--blue-dark); gap: .55rem; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq-item.open { border-color: var(--green); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 1.5rem; background: none; border: none;
  font-family: var(--font-arabic); font-size: 1rem; font-weight: 700;
  color: var(--text); cursor: pointer; text-align: right; gap: 1rem;
  transition: background .2s;
}
.faq-q:hover { background: var(--bg); }
.faq-item.open .faq-q { background: var(--green-pale); color: var(--green-dark); }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff; font-size: 1.15rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a p {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-muted); line-height: 1.85; font-size: .94rem;
}
.faq-a p a { color: var(--green-dark); font-weight: 700; }
.faq-item.open .faq-a { max-height: 260px; }

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 50px; height: 50px; border-radius: .85rem; flex-shrink: 0;
  background: var(--brand-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: .98rem; font-weight: 800; margin-bottom: .3rem; }
.contact-item p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.contact-item a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.social-links { display: flex; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; }
.social-link {
  width: 42px; height: 42px; border-radius: .65rem;
  background: var(--white); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: var(--text);
  text-decoration: none; transition: all .3s;
}
.social-link:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-3px); background: var(--green-pale); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; background: var(--white); padding: 2rem; border-radius: 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-form .btn-primary {
  border: none; cursor: pointer; font-family: var(--font-arabic);
  align-self: flex-start;
  background: var(--brand-grad);
  box-shadow: var(--shadow-green);
}
.form-note { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #0a2d47 0%, #062b22 100%);
  color: rgba(255,255,255,.85); position: relative;
}
.footer-wave { margin-bottom: -1px; }
.footer-wave svg { display: block; width: 100%; }
.footer-wave path { fill: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem;
  padding: 3.5rem 0 2rem;
}
.footer-logo-img {
  width: 100%; max-width: 280px;
  height: auto; object-fit: contain;
  margin-bottom: .85rem;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer-license {
  font-size: .8rem; color: rgba(255,255,255,.55);
  font-weight: 600; margin-bottom: 1rem;
  letter-spacing: .02em;
}
.footer-brand p { font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.7); max-width: 360px; }
.footer-links h4, .footer-newsletter h4 { color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: 1.02rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-newsletter p { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: .85rem; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input {
  flex: 1; padding: .7rem .9rem; border-radius: .65rem; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-arabic); font-size: .88rem;
  outline: none; direction: rtl;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: var(--green-light); }
.newsletter-form button {
  padding: .7rem 1.1rem; border-radius: .65rem; border: none;
  background: var(--brand-grad);
  color: #fff; font-family: var(--font-arabic); font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: all .3s; white-space: nowrap;
}
.newsletter-form button:hover { transform: translateY(-2px); }
.footer-social { display: flex; gap: .55rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  text-decoration: none; transition: all .3s;
}
.footer-social a:hover { background: var(--green); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: rgba(255,255,255,.55);
  flex-wrap: wrap; gap: .5rem;
}

/* ===== DARK MODE TOGGLE ===== */
.dark-toggle {
  position: fixed; top: 50%; left: 1.5rem; transform: translateY(-50%);
  z-index: 600; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all .3s;
}
.dark-toggle:hover { transform: translateY(-50%) scale(1.1); box-shadow: var(--shadow-lg); }

/* ===== STICKY DONATE BAR ===== */
.sticky-donate-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 990;
  background: var(--brand-grad);
  padding: .65rem 1.5rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(-100%); transition: transform .4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.sticky-donate-bar.show { transform: translateY(0); }
.sticky-donate-bar p {
  color: rgba(255,255,255,.95); font-size: .92rem; font-weight: 600;
  margin: 0;
}
.sticky-donate-bar strong { color: #fff; }
.sticky-bar-actions { display: flex; gap: .75rem; align-items: center; }
.sticky-bar-btn {
  background: rgba(255,255,255,.22); color: #fff;
  border: 2px solid rgba(255,255,255,.55);
  padding: .4rem 1.25rem; border-radius: 2rem;
  font-family: var(--font-arabic); font-weight: 700;
  font-size: .88rem; cursor: pointer; transition: all .3s;
  white-space: nowrap;
}
.sticky-bar-btn:hover { background: rgba(255,255,255,.38); }
.sticky-close {
  background: none; border: none; color: rgba(255,255,255,.78);
  font-size: 1.2rem; cursor: pointer; padding: .2rem .55rem;
  transition: color .2s;
}
.sticky-close:hover { color: #fff; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed; top: 5rem; left: 1.5rem; z-index: 9000;
  display: flex; flex-direction: column; gap: .6rem; pointer-events: none;
}
.toast {
  background: var(--white); border-radius: .85rem; padding: .9rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: .85rem;
  min-width: 260px; max-width: 340px;
  pointer-events: all; cursor: pointer;
  transform: translateX(-120%); transition: transform .35s cubic-bezier(.175,.885,.32,1.2);
  border-right: 4px solid var(--green);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: #22c55e; }
.toast.error   { border-color: #ef4444; }
.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast-body strong { display: block; font-size: .92rem; font-weight: 800; color: var(--text); margin-bottom: .15rem; }
.toast-body span   { font-size: .82rem; color: var(--text-muted); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner {
  max-width: 700px; width: 90%; text-align: center;
  transform: scale(.9); transition: transform .3s ease;
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-emoji { font-size: 7rem; display: block; margin-bottom: 1.5rem; }
.lightbox-title { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.lightbox-desc  { color: rgba(255,255,255,.75); font-size: 1rem; }
.lightbox-close {
  position: absolute; top: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; transition: all .3s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

/* ===== READING PROGRESS ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 3px; background: rgba(30,107,168,.12);
}
.reading-progress-fill {
  height: 100%; width: 0%;
  background: var(--brand-grad);
  transition: width .1s linear;
}

/* ===== COOKIE BAR ===== */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: #0a2d47; color: rgba(255,255,255,.9);
  padding: 1rem 2rem; display: flex;
  align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
  font-size: .9rem; font-family: var(--font-arabic);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-link { color: var(--green-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: .55rem; flex-shrink: 0; }
.cookie-accept {
  background: var(--brand-grad);
  color: #fff; border: none; padding: .5rem 1.3rem;
  border-radius: 2rem; font-family: var(--font-arabic);
  font-weight: 700; font-size: .87rem; cursor: pointer;
  transition: all .3s;
}
.cookie-accept:hover { transform: translateY(-2px); }
.cookie-decline {
  background: transparent; color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.2); padding: .5rem 1rem;
  border-radius: 2rem; font-family: var(--font-arabic);
  font-size: .87rem; cursor: pointer; transition: all .3s;
}
.cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* ===== SCROLL REVEAL ===== */
.reveal-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-hidden.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0e3f63 0%, var(--blue) 50%, var(--green) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo {
  width: 110px; height: 110px; margin: 0 auto 1rem;
  animation: dropBounce 1.4s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.loader-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.3));
}
@keyframes dropBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}
.loader-text {
  font-family: var(--font-arabic); font-size: 1.6rem; font-weight: 900;
  color: #fff; margin-bottom: 1.5rem; letter-spacing: .02em;
}
.loader-bar {
  width: 220px; height: 4px; background: rgba(255,255,255,.2);
  border-radius: 2rem; overflow: hidden; margin: 0 auto;
}
.loader-fill {
  height: 100%; border-radius: 2rem; width: 0%;
  background: linear-gradient(90deg, #c8f7d3, #7dd3fc);
  animation: loadFill 1.8s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ===== FLOATING BUTTONS ===== */
.whatsapp-btn {
  position: fixed; bottom: 5rem; left: 1.5rem; z-index: 500;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(26,122,94,.4);
  transition: all .3s; text-decoration: none;
}
.whatsapp-btn svg { width: 26px; height: 26px; }
.whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 12px 32px rgba(26,122,94,.55); }

.back-to-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff; border: none; cursor: pointer;
  font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(26,122,94,.4);
  transition: all .3s;
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,122,94,.55); }

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: var(--white); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transform: translateX(100%); transition: transform .35s ease;
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-start; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 0;
}
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-links a {
  display: block; text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.02rem;
  padding: .75rem 1rem; border-radius: .65rem; transition: all .2s;
}
.mobile-nav-links a:hover { background: var(--green-pale); color: var(--green-dark); }
.mobile-nav-donate {
  background: var(--brand-grad);
  color: #fff; text-decoration: none; font-weight: 800;
  padding: .95rem; border-radius: 2rem; text-align: center;
  box-shadow: var(--shadow-green); margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: .5rem .65rem; font-size: .85rem; }
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .vision-grid .values-card { grid-column: span 2; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .howit-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .initiatives-grid { grid-template-columns: 1fr; }
  .transparency-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured-news { grid-column: span 2; }
}

@media (max-width: 960px) {
  .nav-links, .btn-donate { display: none; }
  .hamburger { display: flex; }
  .vision-grid { grid-template-columns: 1fr; }
  .vision-grid .values-card { grid-column: span 1; }
  .logo-sub { display: none; }
  .logo-text { font-size: 1.05rem; white-space: nowrap; }
  .logo-mark { width: 38px; height: 48px; }
  .logo-mark-img { width: 44px; height: 44px; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .hero-content { padding: 7rem 1.25rem 5rem; }
  .hero-stats { flex-direction: column; gap: 1rem; padding: 1.1rem 2rem; }
  .stat-divider { width: 80px; height: 1px; }

  .about-grid, .donate-wrapper, .contact-grid, .volunteer-grid {
    grid-template-columns: 1fr; gap: 2.5rem;
  }
  .about-image { height: 280px; }
  .floating-badge { left: 50%; transform: translateX(-50%); top: auto; bottom: -1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary { text-align: center; }

  .howit-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured-news { grid-column: span 1; }

  .whatsapp-btn { bottom: 5rem; left: 1rem; width: 48px; height: 48px; }
  .back-to-top  { bottom: 1rem; left: 1rem; }
  .dark-toggle  { top: auto; bottom: 9rem; transform: none; }

  .vform-row.two-col { grid-template-columns: 1fr; }

  .sticky-donate-bar { padding: .55rem 1rem; flex-wrap: wrap; }
  .sticky-donate-bar p { font-size: .82rem; flex: 1 1 100%; }
  .sticky-bar-actions { flex: 0 0 100%; justify-content: flex-end; }
}

@media (max-width: 540px) {
  .amount-options { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .howit-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .payment-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .team-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
}
