/*
Theme Name: Huneyn Welfare Society Final CSS
Theme URI: https://huneyn.org
Author: Huneyn Welfare Society
Author URI: https://huneyn.org
Description: Bilingual (Arabic / English) static-style theme for Huneyn Welfare Society with documented field projects - water wells, orphan kafalah, qurbani, famine relief, Ramadan iftar, Eid clothing, sheep livelihood and mosque construction across south-central Somalia.
Version: 3.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huneyn
Tags: one-column, custom-logo, translation-ready
*/
/* ============================================================
   HUNEYN WELFARE SOCIETY — Premium Design System v3
   Arabic (RTL) default · English (LTR)
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #0c1713;
  --ink-soft: #43524b;
  --ink-mute: #6b7a72;

  --emerald-950: #04271d;
  --emerald-900: #06382b;
  --emerald-800: #0a4a36;
  --emerald-700: #0c5b43;
  --emerald-600: #0e6b50;
  --emerald-500: #12805f;
  --emerald-200: #a9d6c2;
  --emerald-100: #d9ede3;
  --emerald-50: #eff8f3;

  --gold-700: #8f6a10;
  --gold-600: #a97e15;
  --gold-500: #c9a227;
  --gold-400: #d9b45c;
  --gold-300: #e7cd85;
  --gold-200: #f2e2b5;
  --gold-100: #f7edd3;

  --cream: #fbf9f4;
  --sand: #f3ede1;
  --white: #ffffff;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-ar-display: "Amiri", "Georgia", serif;
  --font-ar-body: "Tajawal", "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(4, 39, 29, 0.06);
  --shadow-md: 0 10px 30px rgba(4, 39, 29, 0.1);
  --shadow-lg: 0 24px 60px rgba(4, 39, 29, 0.16);
  --shadow-gold: 0 12px 30px rgba(201, 162, 39, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

html[lang="ar"] body { font-family: var(--font-ar-body); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold-400); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--emerald-700); border-radius: 8px; border: 3px solid var(--cream); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, .display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .display-1, html[lang="ar"] .display-2, html[lang="ar"] .display-3 {
  font-family: var(--font-ar-display);
  font-weight: 700;
}

.display-1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); letter-spacing: -0.02em; }
.display-2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.015em; }
.display-3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-soft); line-height: 1.8; }
p { color: var(--ink-soft); }

.gold-text { color: var(--gold-500); font-style: italic; }

.text-center { text-align: center; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 34px; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(64px, 9vw, 108px); }
.section.bg-white { background: var(--white); }
.section.dark-band { background: var(--emerald-950); position: relative; overflow: hidden; }
.section.dark-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.08) 0, transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(18, 128, 95, 0.16) 0, transparent 48%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.section.dark-band > .container { position: relative; z-index: 1; }
.section.dark-band h1, .section.dark-band h2, .section.dark-band h3 { color: var(--white); }
.section.dark-band p, .section.dark-band .lead { color: rgba(239, 248, 243, 0.75); }
.section.dark-band .eyebrow { color: var(--gold-400); }
.section.dark-band .eyebrow::before { background: var(--gold-400); }

/* ---------- 5. Section heads & eyebrows ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

.section-head p { margin-top: 14px; color: var(--ink-mute); max-width: 640px; }
.section-head.center p { margin-inline: auto; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 16px 38px rgba(201, 162, 39, 0.45); }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }

.btn-outline {
  background: transparent; color: var(--emerald-700);
  border: 1.6px solid rgba(14, 107, 80, 0.35);
}
.btn-outline:hover { background: var(--emerald-50); border-color: var(--emerald-600); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

[dir="ltr"] .btn svg:last-child, [dir="ltr"] .program-link svg { transform: scaleX(-1); }

/* ---------- 7. Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  color: var(--emerald-700); font-size: 0.85rem; font-weight: 600;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.dark-band .chip { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: var(--gold-300); }

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(4, 39, 29, 0.07);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 12px 34px rgba(4, 39, 29, 0.1); }

.topbar { background: var(--emerald-950); color: rgba(239, 248, 243, 0.85); font-size: 0.83rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; }
.topbar-contact { display: flex; gap: 26px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.topbar-contact a:hover { color: var(--gold-400); }
.topbar-contact svg { width: 14px; height: 14px; color: var(--gold-400); }

.lang-switch { display: inline-flex; background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-pill); padding: 3px; }
.lang-btn {
  padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; color: rgba(239, 248, 243, 0.6);
  transition: all 0.25s;
}
.lang-btn.active { background: var(--gold-500); color: var(--ink); }

.site-header > .container:last-child { display: flex; align-items: center; gap: 26px; padding-block: 12px; }

.brand { flex: none; line-height: 0; }
.brand img {
  height: 44px;
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.1);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.brand:hover img { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  position: relative; padding: 9px 13px;
  font-size: 0.94rem; font-weight: 500; color: var(--ink-soft);
  border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--emerald-700); font-weight: 700; }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  align-items: center; justify-content: center; transition: background 0.2s;
}
.nav-toggle:hover { background: var(--emerald-100); }
.nav-toggle svg { width: 22px; height: 22px; color: var(--emerald-700); }

/* ---------- 9. Mobile nav (mobile only) ---------- */
.mobile-nav {
  position: fixed; top: 0; bottom: 0; right: 0;
  width: min(330px, 88vw); z-index: 300;
  background: linear-gradient(165deg, var(--emerald-950), var(--emerald-800));
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.open {
  transform: translateX(0); visibility: visible;
  transition: transform 0.4s var(--ease);
}
[dir="ltr"] .mobile-nav { right: auto; left: 0; transform: translateX(-100%); }
[dir="ltr"] .mobile-nav.open { transform: translateX(0); visibility: visible; }
@media (min-width: 769px) { .mobile-nav { display: none; } }

.mobile-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.mobile-close:hover { background: rgba(255, 255, 255, 0.16); }
.mobile-close svg { width: 20px; height: 20px; }

.mobile-brand { margin-block: 18px 8px; text-align: center; }
.mobile-brand img { max-width: 210px; background: var(--white); border-radius: 12px; padding: 7px 14px; box-shadow: var(--shadow-gold); }

.mobile-nav a {
  padding: 13px 16px; border-radius: 12px;
  color: rgba(239, 248, 243, 0.85); font-weight: 500; font-size: 1.02rem;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-300); }
.mobile-nav a.active { background: rgba(201, 162, 39, 0.16); color: var(--gold-300); }
.mobile-nav .btn { margin-top: 14px; justify-content: center; }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% -10%, rgba(18, 128, 95, 0.35) 0, transparent 55%),
    radial-gradient(ellipse at -10% 110%, rgba(201, 162, 39, 0.18) 0, transparent 45%),
    linear-gradient(160deg, var(--emerald-950) 0%, var(--emerald-900) 45%, var(--emerald-800) 100%);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 22%, rgba(201, 162, 39, 0.1) 0, transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 120px;
  background: linear-gradient(to top, rgba(4, 39, 29, 0.55), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 84px);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-300); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-400); box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.hero-inner h1 { color: var(--white); margin-block: 22px 20px; }
.hero-inner .lead { color: rgba(239, 248, 243, 0.82); max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* Hero visual composition */
.hero-visual { position: relative; min-height: clamp(360px, 40vw, 500px); }
.hero-frame {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-img-main { width: 100%; height: 100%; object-fit: cover; }
.hero-frame-badge {
  position: absolute; z-index: 2; bottom: 20px; inset-inline-end: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: var(--shadow-gold);
}
.hero-frame-badge b {
  font-family: var(--font-display); color: var(--emerald-950); font-size: 1.15rem; line-height: 1;
}
html[lang="ar"] .hero-frame-badge b { font-family: var(--font-ar-display); }
.hero-frame-badge span { font-size: 0.76rem; font-weight: 700; color: var(--emerald-900); line-height: 1.2; }

/* Hero stats bar */
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  margin-inline: auto; margin-bottom: clamp(30px, 5vw, 54px);
  max-width: 1050px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hero-stats .stat {
  padding: 24px 18px; text-align: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats .stat:first-child { border-inline-start: 0; }
.hero-stats b {
  display: block;
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gold-400); line-height: 1.1; margin-bottom: 4px;
}
html[lang="ar"] .hero-stats b { font-family: var(--font-ar-display); }
.hero-stats .stat span { font-size: 0.82rem; color: rgba(239, 248, 243, 0.72); }

/* ---------- 11. Marquee ---------- */
.marquee {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-500) 50%, var(--gold-600));
  overflow: hidden; padding-block: 13px;
  border-block: 1px solid rgba(255, 255, 255, 0.25);
}
.marquee-track {
  display: flex; gap: 42px; white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--emerald-950);
  display: inline-flex; align-items: center; gap: 42px;
}
.marquee-track span::after { content: "✦"; color: rgba(4, 39, 29, 0.55); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="ltr"] .marquee-track { animation-direction: reverse; }

/* ---------- 12. About / story ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(34px, 5vw, 70px);
  align-items: center;
}
.about-grid h2 { margin-bottom: 16px; }

.about-media { position: relative; padding-bottom: 26px; }
.photo-main {
  width: 88%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.photo-accent {
  position: absolute; bottom: 0; inset-inline-end: 0;
  width: 46%; aspect-ratio: 1/1.05; object-fit: cover;
  border-radius: 20px; border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}
.badge-float {
  position: absolute; top: 8%; inset-inline-start: 14px;
  padding: 16px 22px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: var(--shadow-gold);
  animation: float-y 6s ease-in-out infinite;
}
.badge-float b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--emerald-950); line-height: 1; }
html[lang="ar"] .badge-float b { font-family: var(--font-ar-display); }
.badge-float span { font-size: 0.76rem; font-weight: 700; color: var(--emerald-900); }

.check-list { display: grid; gap: 13px; margin-top: 22px; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; color: var(--ink-soft); }
.check-list .icon {
  flex: none; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--emerald-100); color: var(--emerald-700); margin-top: 2px;
}
.check-list .icon svg { width: 13px; height: 13px; }
.dark-band .check-list li { color: rgba(239, 248, 243, 0.8); }
.dark-band .check-list .icon { background: rgba(201, 162, 39, 0.18); color: var(--gold-300); }

/* ---------- 13. Mission / vision cards ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.mv-card {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.mv-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--emerald-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 39, 0.4); }
.mv-card:hover::before { transform: scaleX(1); }

.mv-icon {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-50));
  color: var(--emerald-700);
  margin-bottom: 20px;
  border: 1px solid var(--emerald-100);
  transition: transform 0.35s var(--ease);
}
.mv-icon svg { width: 28px; height: 28px; }
.mv-card:hover .mv-icon { transform: rotate(-6deg) scale(1.06); }
.dark-band .mv-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.dark-band .mv-icon { background: rgba(201, 162, 39, 0.15); color: var(--gold-300); border-color: rgba(201, 162, 39, 0.3); }

.mv-card h3 { margin-bottom: 12px; }
.mv-card p { font-size: 0.97rem; }

/* ---------- 14. Programs grid / cards ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }

.program-card {
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.program-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 39, 0.45); }

.program-card .photo { position: relative; height: 205px; overflow: hidden; }
.program-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.program-card:hover .photo img { transform: scale(1.07); }
.program-card .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 39, 29, 0.35), transparent 55%);
}
.program-card .num {
  position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); font-weight: 800; font-size: 1.02rem;
  box-shadow: var(--shadow-gold);
}

.program-body { padding: 28px 26px 30px; }
.program-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  color: var(--emerald-700); margin-bottom: 16px;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.program-icon svg { width: 25px; height: 25px; }
.program-card:hover .program-icon { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); transform: scale(1.08); }
.program-body h3 { margin-bottom: 10px; }
.program-body p { font-size: 0.96rem; }

.program-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-weight: 700; font-size: 0.92rem; color: var(--emerald-700);
  transition: color 0.2s, gap 0.3s var(--ease);
}
.program-link svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.program-link:hover { color: var(--gold-600); gap: 12px; }

/* body-only program card (objectives on About) */
.program-card > .program-body:first-child { padding-top: 34px; }

/* ---------- 15. Resources ---------- */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.resource-card {
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.resource-card .mv-icon { margin-inline: auto; }
.resource-card h3 { margin-bottom: 10px; }
.resource-card p { font-size: 0.94rem; }
.dark-band .resource-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }

/* ---------- 16. Governance & org chart ---------- */
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gov-card {
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gov-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gov-card h3 { margin-bottom: 12px; }
.gov-card .gov-num {
  display: inline-block; margin-bottom: 18px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-600);
  padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--gold-100); border: 1px solid var(--gold-200);
}

/* Org chart diagram */
.org-chart { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.org-chart .org-node {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  width: min(440px, 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-md);
}
.org-chart .org-node h3 { color: var(--gold-300); margin-bottom: 8px; }
.org-chart .org-node p { color: rgba(239, 248, 243, 0.72); font-size: 0.92rem; }
.org-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  padding: 5px 16px; border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.org-connector { width: 2px; height: 38px; background: linear-gradient(var(--gold-400), var(--gold-500)); }
.org-connector.wide {
  width: min(880px, 92%); height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 12%, var(--gold-500) 88%, transparent);
}
.org-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  width: 100%; margin-top: 22px;
}
.org-leaf {
  position: relative;
  text-align: center;
  padding: 15px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(239, 248, 243, 0.88);
  font-size: 0.86rem; font-weight: 600;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.org-leaf::before {
  content: ""; position: absolute; top: -22px; inset-inline-start: 50%;
  width: 2px; height: 22px; background: var(--gold-500);
}
.org-leaf:hover { background: rgba(201, 162, 39, 0.14); border-color: var(--gold-400); transform: translateY(-4px); }

/* ---------- 17. Stats band ---------- */
.stats-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    linear-gradient(160deg, var(--emerald-900), var(--emerald-950));
  border-block: 1px solid rgba(201, 162, 39, 0.25);
  padding-block: clamp(48px, 7vw, 76px);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stats-grid b {
  display: block;
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--gold-400); line-height: 1.05; margin-bottom: 8px;
}
html[lang="ar"] .stats-grid b { font-family: var(--font-ar-display); }
.stats-grid > div > span:last-child { color: rgba(239, 248, 243, 0.7); font-size: 0.9rem; font-weight: 600; }

/* ---------- 18. Achievements ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ach-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.ach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 39, 0.4); }
.ach-card .icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-50));
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
}
.ach-card .icon svg { width: 25px; height: 25px; }
.ach-card h3 { font-size: 1.12rem; margin-bottom: 7px; }
.ach-card p { font-size: 0.93rem; }

/* Achievement timeline (Achievements page) */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  inset-inline-start: 30px; width: 2px;
  background: linear-gradient(var(--gold-500), var(--emerald-500));
}
.timeline-item {
  position: relative; padding: 0 0 34px 0;
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
}
.timeline-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); box-shadow: var(--shadow-gold);
}
.timeline-icon svg { width: 26px; height: 26px; }
.timeline-body {
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.timeline-body:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.timeline-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.timeline-body p { font-size: 0.95rem; }
.timeline-close { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; display: block; }

/* ---------- 19. Projects preview ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.project-card {
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 39, 0.45); }
.pc-photo { position: relative; height: 215px; overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .pc-photo img { transform: scale(1.08); }
.pc-tag {
  position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px;
  padding: 6px 15px; border-radius: var(--radius-pill);
  background: rgba(4, 39, 29, 0.72); backdrop-filter: blur(6px);
  color: var(--gold-300); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em;
}
.pc-year {
  position: absolute; z-index: 2; bottom: 12px; inset-inline-end: 14px;
  padding: 5px 13px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); font-size: 0.76rem; font-weight: 800;
}
.pc-body { padding: 24px 24px 26px; }
.pc-body h3 { font-size: 1.14rem; margin-bottom: 9px; }
.pc-body p { font-size: 0.93rem; }
.pc-evidence { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(4, 39, 29, 0.12); }
.pc-count { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--emerald-700); }
.pc-count svg { width: 16px; height: 16px; color: var(--gold-600); }

/* ---------- 20. Project detail blocks (Projects page) ---------- */
.project-block {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 60px);
  align-items: center; padding-block: 28px;
}
.project-block.reverse .pb-media { order: 2; }
.pb-media { position: relative; }
.pb-media .main {
  width: 86%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 6px solid var(--white);
}
.pb-media .accent {
  position: absolute; bottom: -18px; inset-inline-end: 0;
  width: 44%; aspect-ratio: 1/1.05; object-fit: cover;
  border-radius: 18px; border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}
.pb-tag {
  position: absolute; z-index: 2; top: 16px; inset-inline-start: 0;
  padding: 8px 20px; border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  box-shadow: var(--shadow-gold);
}
.pb-content h2 { margin-bottom: 14px; }
.pb-content > p { margin-bottom: 14px; }
.pb-count {
  display: flex; flex-wrap: wrap; gap: 12px; margin-block: 22px;
}
.pb-count .pb-chip {
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  color: var(--emerald-700); font-size: 0.85rem; font-weight: 700;
}
.evidence-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px;
  margin-top: 22px;
}
.evidence-grid figure {
  position: relative; border-radius: 14px; overflow: hidden;
  cursor: zoom-in; aspect-ratio: 1/0.82;
  box-shadow: var(--shadow-sm);
}
.evidence-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.evidence-grid figure:hover img { transform: scale(1.09); }
.evidence-grid figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(4, 39, 29, 0.78), transparent);
  color: var(--gold-300); font-size: 0.76rem; font-weight: 600; text-align: center;
}
.pb-extra { margin-top: 18px; }
.pb-extra .check-list { margin-top: 0; }

/* ---------- 21. Filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 42px; }
.filter-btn {
  padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--white); border: 1.5px solid rgba(4, 39, 29, 0.14);
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 600;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--emerald-600); color: var(--emerald-700); transform: translateY(-2px); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: var(--white); border-color: transparent; box-shadow: var(--shadow-md);
}
[hidden] { display: none !important; }

/* ---------- 22. Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery figure {
  position: relative; border-radius: 16px; overflow: hidden;
  cursor: pointer; aspect-ratio: 1/0.78;
  box-shadow: var(--shadow-sm);
}
.gallery figure:nth-child(2n) { aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.gallery figure:hover img { transform: scale(1.09); }
.gallery figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 39, 29, 0.62), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0;
  padding: 26px 14px 12px; text-align: center;
  color: var(--white); font-size: 0.84rem; font-weight: 600;
  opacity: 0; transform: translateY(12px); transition: all 0.4s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Gallery groups */
.gallery-group { margin-bottom: clamp(46px, 6vw, 66px); }
.gg-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 2px solid rgba(201, 162, 39, 0.35);
}
.gg-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); box-shadow: var(--shadow-gold);
}
.gg-icon svg { width: 23px; height: 23px; }
.gg-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.gg-count {
  margin-inline-start: auto;
  padding: 7px 18px; border-radius: var(--radius-pill);
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  color: var(--emerald-700); font-size: 0.82rem; font-weight: 700;
}
.gallery-group .gallery { grid-template-columns: repeat(4, 1fr); }

/* ---------- 23. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(4, 20, 15, 0.92); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 28px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1050px, 92vw); max-height: 82vh;
  border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.lightbox-caption { color: var(--gold-300); margin-top: 14px; font-size: 0.95rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: var(--white);
  display: grid; place-items: center; transition: background 0.2s, transform 0.3s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- 24. Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(201, 162, 39, 0.16) 0, transparent 50%),
    linear-gradient(160deg, var(--emerald-950), var(--emerald-800));
  padding-block: clamp(58px, 8vw, 92px);
  text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 85%, rgba(18, 128, 95, 0.3) 0, transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.011) 0 2px, transparent 2px 80px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-block: 18px 14px; }
.page-hero .lead { color: rgba(239, 248, 243, 0.8); max-width: 720px; margin-inline: auto; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-300); font-size: 0.82rem; font-weight: 600;
}
.breadcrumb span { opacity: 0.65; }

/* Projects page hero uses a photo background */
.projects-hero {
  background:
    linear-gradient(160deg, rgba(4, 39, 29, 0.82), rgba(6, 56, 43, 0.92)),
    url("../img/projects/relief-1.jpg") center/cover no-repeat;
}

/* ---------- 25. Intro card (Projects page) ---------- */
.intro-card {
  max-width: 880px; margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.intro-card .lead { margin-top: 14px; }

/* ---------- 26. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% -20%, rgba(201, 162, 39, 0.2) 0, transparent 55%),
    linear-gradient(160deg, var(--emerald-800), var(--emerald-950));
  text-align: center;
  border-block: 1px solid rgba(201, 162, 39, 0.25);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(201, 162, 39, 0.1) 0, transparent 40%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); max-width: 760px; margin-inline: auto; }
.cta-band .lead { color: rgba(239, 248, 243, 0.8); max-width: 620px; margin: 18px auto 0; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---------- 27. Contact & donate ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.contact-grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }

.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-50));
  border: 1px solid var(--emerald-100); color: var(--emerald-700);
}
.contact-icon svg { width: 25px; height: 25px; }
.contact-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.93rem; }
.contact-link { color: var(--emerald-700); font-weight: 700; }
.contact-link:hover { color: var(--gold-600); }

.map-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(4, 39, 29, 0.1);
  min-height: 380px;
}
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.donate-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px; align-items: start; }
.donate-box {
  background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.donate-side {
  background: linear-gradient(160deg, var(--emerald-900), var(--emerald-950));
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky; top: 110px;
}
.donate-side h3 { color: var(--gold-300); margin-bottom: 12px; }
.donate-side p { color: rgba(239, 248, 243, 0.75); font-size: 0.95rem; }
.donate-side .bank-card {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
}
.bank-card { background: var(--white); border: 1px solid rgba(4, 39, 29, 0.08); border-radius: 14px; padding: 18px; }
.bank-card b { display: block; color: var(--emerald-700); margin-bottom: 4px; font-size: 0.98rem; }
.bank-card span { color: var(--ink-mute); font-size: 0.9rem; }
.bank-cta { margin-top: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 7px;
  font-size: 0.86rem; font-weight: 700; color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(4, 39, 29, 0.14); border-radius: 12px;
  background: var(--cream); color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold-500);
  background: var(--white); box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.14);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-status {
  margin-top: 16px; padding: 14px 18px; border-radius: 12px;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  color: var(--emerald-700); font-weight: 600; font-size: 0.94rem;
}
.form-status.error { background: #fdf0ef; border-color: #f3c1bb; color: #a44537; }

/* Donate cause & amount selectors */
.cause-btn, .amount-btn {
  padding: 12px 22px; border-radius: 12px;
  background: var(--cream); border: 1.5px solid rgba(4, 39, 29, 0.14);
  color: var(--ink-soft); font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s var(--ease);
}
.cause-btn:hover, .amount-btn:hover { border-color: var(--emerald-600); color: var(--emerald-700); transform: translateY(-2px); }
.cause-btn.active, .amount-btn.selected, .amount-btn.active {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  border-color: transparent; color: var(--white); box-shadow: var(--shadow-md);
}
.cause-row, .amount-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.info-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: 14px;
  background: var(--gold-100); border: 1px solid var(--gold-200);
  color: var(--gold-700); font-size: 0.9rem; font-weight: 600;
}
.info-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* ---------- 28. Footer ---------- */
.site-footer {
  background: linear-gradient(165deg, var(--emerald-950), #031f17);
  color: rgba(239, 248, 243, 0.78);
  padding-top: clamp(56px, 7vw, 84px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-about .brand img { background: var(--white); }
.footer-about p { margin-top: 18px; font-size: 0.95rem; color: rgba(239, 248, 243, 0.65); }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-300);
  transition: all 0.3s var(--ease);
}
.social-btn:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950); transform: translateY(-4px); box-shadow: var(--shadow-gold);
}
.social-btn svg { width: 18px; height: 18px; }

.site-footer h4 {
  color: var(--gold-300); font-size: 1rem; margin-bottom: 20px;
  padding-bottom: 10px; position: relative;
}
.site-footer h4::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 0.93rem; transition: color 0.2s, padding 0.3s var(--ease); }
.footer-links a:hover { color: var(--gold-300); padding-inline-start: 6px; }

.footer-contact { display: grid; gap: 15px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { flex: none; width: 18px; height: 18px; color: var(--gold-400); margin-top: 3px; }
.footer-contact a:hover { color: var(--gold-300); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-block: 22px;
  font-size: 0.84rem; color: rgba(239, 248, 243, 0.5);
}

/* ---------- 29. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- 30. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-inner { text-align: center; }
  .hero-inner .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 540px; margin-inline: auto; }
  .project-block, .project-block.reverse { grid-template-columns: 1fr; }
  .project-block.reverse .pb-media { order: 0; }
  .pb-media { max-width: 560px; margin-inline: auto; }
  .contact-grid, .contact-grid-2, .donate-grid { grid-template-columns: 1fr; }
  .donate-side { position: static; }
  .org-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(3) { border-inline-start: 0; }
  .hero-stats .stat { border-block-start: 1px solid rgba(255, 255, 255, 0.1); }
  .gallery, .gallery-group .gallery { grid-template-columns: repeat(2, 1fr); }
  .gov-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar .container { justify-content: center; }
  .topbar-contact { display: none; }
  .site-header > .container:last-child { flex-wrap: wrap; gap: 14px; }
  .header-actions { margin-inline-start: auto; }
  .display-1 { font-size: clamp(2.05rem, 8vw, 2.85rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 14px; }
  .timeline-icon { width: 48px; height: 48px; }
  .timeline::before { inset-inline-start: 24px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 54px; }
  .hero-visual { min-height: 260px; }
  .hero-frame-badge { padding: 9px 15px; bottom: 14px; inset-inline-end: 14px; }
  .hero-frame-badge b { font-size: 1rem; }
  .gallery, .gallery-group .gallery { grid-template-columns: 1fr; }
  .gallery figure, .gallery figure:nth-child(2n) { aspect-ratio: 1/0.72; }
  .org-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat { border-inline-start: 0; border-block-start: 1px solid rgba(255, 255, 255, 0.1); }
  .hero-stats .stat:first-child { border-block-start: 0; }
  .btn { width: 100%; }
  .cta-actions .btn, .hero-cta .btn { width: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}
/* ============================================================
   HUNEYN v3 — Photo-driven design
   ============================================================ */

/* ---------- 25. Photo hero ---------- */
.hero-photo { position: relative; min-height: 84vh; display: flex; align-items: center; overflow: hidden; }
.hero-photo .hp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 39, 29, 0.93) 0%, rgba(4, 39, 29, 0.72) 45%, rgba(4, 39, 29, 0.28) 100%),
    linear-gradient(to top, rgba(4, 39, 29, 0.9) 0%, transparent 40%);
}
html[lang="ar"] .hero-photo::after { background: linear-gradient(260deg, rgba(4,39,29,0.93) 0%, rgba(4,39,29,0.72) 45%, rgba(4,39,29,0.28) 100%), linear-gradient(to top, rgba(4,39,29,0.9) 0%, transparent 40%); }
.hero-photo .container { position: relative; z-index: 2; padding-block: 90px; }
.hero-photo .hp-inner { max-width: 640px; }
  .hero-photo h1 { color: var(--white); }
  .hero-photo .lead { color: rgba(239, 248, 243, 0.82); }
.hero-photo h1 em { font-style: normal; color: var(--gold-400); }

/* ---------- 26. Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(4, 39, 29, 0.06);
  background: var(--emerald-950);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover img { transform: scale(1.07); }
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 39, 29, 0.92) 0%, rgba(4, 39, 29, 0.25) 55%, rgba(4, 39, 29, 0.05) 100%);
}
.pc-count {
  position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); padding: 6px 13px; border-radius: var(--radius-pill);
  background: rgba(4, 39, 29, 0.55); border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.pc-body { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 20px 22px; }
.pc-body h3 { color: var(--white); font-size: 1.16rem; margin-bottom: 5px; }
.pc-body p { color: rgba(239, 248, 243, 0.72); font-size: 0.84rem; line-height: 1.55; }
.pc-arrow {
  position: absolute; z-index: 2; bottom: 18px; inset-inline-end: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white); opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.project-card:hover .pc-arrow { opacity: 1; transform: translateY(0); }
.project-card .pc-arrow svg { width: 15px; height: 15px; }

/* ---------- 27. Category filter + gallery grid ---------- */
.gallery-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.g-filter {
  font-family: inherit; cursor: pointer;
  font-size: 0.82rem; font-weight: 700;
  color: var(--ink-soft); background: var(--white);
  border: 1px solid rgba(4, 39, 29, 0.12); border-radius: var(--radius-pill);
  padding: 9px 20px; transition: all 0.25s;
}
.g-filter:hover { border-color: var(--gold-500); color: var(--emerald-800); }
.g-filter.active { background: var(--emerald-950); border-color: var(--emerald-950); color: var(--gold-400); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item {
  position: relative; display: block; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--emerald-950); border: 1px solid rgba(4, 39, 29, 0.05);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.g-item:hover img { transform: scale(1.09); }
.g-item .g-cap {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 0.74rem; font-weight: 700; color: var(--white); text-align: center;
  background: linear-gradient(to top, rgba(4, 39, 29, 0.85), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.g-item:hover .g-cap { opacity: 1; }

/* ---------- 28. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(3, 18, 14, 0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 80vh;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white); cursor: pointer; transition: background 0.25s;
}
.lb-btn:hover { background: rgba(201, 162, 39, 0.85); color: var(--emerald-950); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { inset-inline-start: 22px; }
.lb-next { inset-inline-end: 22px; }
.lb-close { top: 24px; transform: none; inset-inline-end: 24px; width: 44px; height: 44px; }
.lb-cap {
  position: absolute; bottom: 30px; inset-inline: 0; text-align: center;
  color: var(--gold-300); font-weight: 700; font-size: 0.95rem;
  padding-inline: 100px;
}
.lb-count {
  position: absolute; top: 26px; inset-inline-start: 26px;
  color: rgba(239, 248, 243, 0.6); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- 29. Program rows ---------- */
.prog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding-block: 34px; }
.prog-row + .prog-row { border-block-start: 1px solid rgba(4, 39, 29, 0.07); }
.prog-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.prog-media img { width: 100%; height: 100%; object-fit: cover; }
.prog-tag {
  position: absolute; top: 16px; inset-inline-start: 16px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--emerald-950); background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  padding: 6px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-gold);
}
.prog-body h3 { margin-bottom: 12px; }
.prog-body p { color: var(--ink-soft); margin-bottom: 16px; }
  .prog-row:nth-child(even) .prog-media { order: 2; }
.prog-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.prog-meta span {
  font-size: 0.76rem; font-weight: 700; color: var(--emerald-800);
  background: var(--emerald-50); border: 1px solid rgba(14, 107, 80, 0.18);
  padding: 6px 14px; border-radius: var(--radius-pill);
}

/* ---------- 30. Grouped gallery ---------- */
.gal-group { margin-bottom: 52px; }
.gal-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.gal-group-head .gg-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-content: center;
  background: var(--emerald-950); color: var(--gold-400);
}
.gal-group-head .gg-icon svg { width: 22px; height: 22px; }
.gal-group-head h3 { margin-bottom: 0; }
.gal-group-head small { color: var(--ink-mute); font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .prog-row { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-photo { min-height: 92vh; }
  .lb-cap { padding-inline: 50px; font-size: 0.82rem; }
  .lb-prev { inset-inline-start: 10px; }
  .lb-next { inset-inline-end: 10px; }
}

/* ---------- 28. v3 responsive refinements (hero) ---------- */
@media (max-width: 768px) {
  .hero-photo { min-height: 74vh; }
  .hero-photo .container { padding-block: 56px 44px; }
  .hero-photo .hp-inner { max-width: 100%; }
  .hero-stats { margin-bottom: 0; }
}
@media (max-width: 520px) {
  .hero-photo { min-height: 68vh; }
  .hero-badge { padding: 6px 14px; font-size: 0.76rem; gap: 8px; }
  .hero-photo h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero-photo .lead { font-size: 0.98rem; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { border-radius: var(--radius); }
  .hero-stats .stat { padding: 16px 10px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero-photo { min-height: 100vh; }
  .hero-photo .container { padding-block: 44px 30px; }
}
