@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ─── CSS Variables: Dark (default) ─── */
:root {
  --navy:       #013366;
  --teal:       #219386;
  --teal-light: #27ab9a;
  --teal-dim:   rgba(33,147,134,0.12);
  --teal-glow:  rgba(33,147,134,0.22);

  --bg:         #07101c;
  --bg-2:       #0c1828;
  --bg-3:       #112033;
  --bg-4:       #162840;
  --bg-card:    #0f1e30;

  --border:     rgba(33,147,134,0.14);
  --border-h:   rgba(33,147,134,0.38);

  --text:       #ddeaf6;
  --text-2:     #8aaec8;
  --text-3:     #4d7a9a;

  --shadow:     0 24px 64px rgba(1,51,102,0.45);

  --fd: 'Montserrat', sans-serif;
  --fb: 'Roboto', sans-serif;
  --fa: 'Noto Naskh Arabic', 'Roboto', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --ease: 0.26s cubic-bezier(.4,0,.2,1);
  --sp:   110px;
  --mw:   1200px;
}

/* ─── Light Theme ─── */
body.light {
  --bg:     #eef4fa;
  --bg-2:   #e2edf5;
  --bg-3:   #d4e5f0;
  --bg-4:   #c6dcea;
  --bg-card:#dceaf5;
  --border: rgba(1,51,102,0.12);
  --border-h:rgba(1,51,102,0.32);
  --text:   #010f1e;
  --text-2: #1a3a5c;
  --text-3: #3d7a9a;
  --shadow: 0 24px 64px rgba(1,51,102,0.12);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; overflow-x:hidden; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
[dir="rtl"] body,
[dir="rtl"] * { font-family: var(--fa); }
a  { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
img { display:block; max-width:100%; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5 { font-family:var(--fd); line-height:1.1; letter-spacing:-.02em; color:var(--text); }
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4 { font-family:var(--fa); letter-spacing:0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight:800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight:700; }
h3 { font-size: clamp(1rem,  1.8vw, 1.2rem); font-weight:600; }
h4 { font-size:.95rem; font-weight:600; }
p  { color:var(--text-2); line-height:1.75; }

.container { max-width:var(--mw); margin:0 auto; padding:0 2rem; }
section { padding:var(--sp) 0; }

/* ─── Section tag ─── */
.stag {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--fd); font-size:.66rem; font-weight:700;
  letter-spacing:.15em; text-transform:uppercase; color:var(--teal);
  margin-bottom:.9rem;
}
[dir="rtl"] .stag { flex-direction:row-reverse; }

/* ─── Buttons ─── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--fd); font-size:.875rem; font-weight:700; letter-spacing:.02em;
  padding:.85rem 1.8rem; border-radius:var(--r-sm);
  transition:var(--ease); cursor:pointer; white-space:nowrap;
}
.btn-primary { background:var(--teal); color:#fff; }
.btn-primary:hover { background:var(--teal-light); transform:translateY(-2px); box-shadow:0 8px 28px var(--teal-glow); }
.btn-outline { background:transparent; color:var(--text); border:1.5px solid var(--border-h); }
.btn-outline:hover { border-color:var(--teal); color:var(--teal); background:var(--teal-dim); transform:translateY(-2px); }
.btn-sm { padding:.58rem 1.2rem; font-size:.78rem; }

/* ─── Icon style — all SVG icons use stroke, no fill ─── */
.tf-icon {
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.tf-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Card icon wrapper ─── */
.card-icon {
  width:44px; height:44px;
  background:var(--teal-dim);
  border-radius:var(--r-sm);
  color:var(--teal);
  margin-bottom:1.1rem;
}
.card-icon.tf-icon svg { width:22px; height:22px; }

/* ─── Cards ─── */
.card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:1.8rem; transition:var(--ease);
}
.card:hover { border-color:var(--teal); transform:translateY(-4px); box-shadow:var(--shadow); }
.card:hover .card-icon { background:var(--teal); color:#fff; }

/* ─── Badge ─── */
.badge {
  display:inline-block; font-family:var(--fd); font-size:.66rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase;
  padding:3px 10px; border-radius:100px;
  background:var(--teal-dim); color:var(--teal); border:1px solid rgba(33,147,134,.22);
}

/* ─── Scroll reveal ─── */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.rd1 { transition-delay:.1s; }
.rd2 { transition-delay:.2s; }
.rd3 { transition-delay:.3s; }
.rd4 { transition-delay:.4s; }

/* ══════════════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════════════ */
#tf-loader {
  position:fixed; inset:0; z-index:9999;
  background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.6rem;
  transition:opacity .55s ease, visibility .55s ease;
}
#tf-loader.hidden { opacity:0; visibility:hidden; pointer-events:none; }

.ldr-logo {
  display:flex; align-items:center; gap:10px;
  font-family:var(--fd); font-size:1.8rem; font-weight:800;
  color:var(--text); animation:ldrPulse 1.6s ease infinite;
}
.ldr-bar-wrap { width:180px; height:3px; background:var(--bg-4); border-radius:6px; overflow:hidden; }
.ldr-bar {
  height:100%;
  background:linear-gradient(90deg, var(--navy), var(--teal));
  border-radius:6px;
  animation:ldrFill 1.3s ease forwards;
}
.ldr-sub {
  font-family:var(--fd); font-size:.68rem; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase; color:var(--text-3);
  animation:ldrFade 1.3s ease infinite;
}

@keyframes ldrFill  { from{width:0} to{width:100%} }
@keyframes ldrPulse { 0%,100%{opacity:1} 50%{opacity:.55} }
@keyframes ldrFade  { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
#navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:1.1rem 0; transition:var(--ease);
}
#navbar.scrolled {
  background:rgba(7,16,28,.95);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  padding:.75rem 0; border-bottom:1px solid var(--border);
}
body.light #navbar.scrolled { background:rgba(238,244,250,.96); }

.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }

/* Logo */
.nav-logo {
  font-family:var(--fd); font-size:1.15rem; font-weight:800;
  letter-spacing:-.03em; display:flex; align-items:center; gap:8px;
  flex-shrink:0; color:var(--text);
}
.nav-logo-dot { width:8px; height:8px; border-radius:50%; background:var(--teal); }

/* Links */
.nav-links { display:flex; align-items:center; }
.nav-link {
  font-family:var(--fd); font-size:.78rem; font-weight:600;
  color:var(--text-3); padding:.45rem .8rem; border-radius:var(--r-sm);
  transition:var(--ease); display:flex; align-items:center; gap:3px;
}
.nav-link:hover, .nav-link.active { color:var(--teal); background:var(--teal-dim); }
.nav-arr { font-size:.5rem; transition:var(--ease); }

/* Dropdown */
.nav-item { position:relative; }
.nav-item:hover .nav-drop { opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
.nav-item:hover .nav-arr { transform:rotate(180deg); }
.nav-drop {
  position:absolute; top:calc(100% + 6px); left:0;
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--r-md); padding:.35rem;
  min-width:160px; z-index:200;
  opacity:0; visibility:hidden; transform:translateY(-6px); pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow:var(--shadow);
}
[dir="rtl"] .nav-drop { left:auto; right:0; }
.nav-drop a {
  display:flex; align-items:center; gap:8px;
  padding:.55rem .85rem; border-radius:var(--r-sm);
  font-family:var(--fd); font-size:.78rem; font-weight:600;
  color:var(--text-2); transition:var(--ease);
}
.nav-drop a:hover { background:var(--teal-dim); color:var(--teal); }
.nav-drop a .tf-icon { width:14px; height:14px; color:var(--text-3); }
.nav-drop a:hover .tf-icon { color:var(--teal); }
.nav-drop a .tf-icon svg { width:14px; height:14px; }

/* Nav right */
.nav-right { display:flex; align-items:center; gap:.55rem; }

/* Theme toggle */
.theme-toggle {
  width:34px; height:34px; border-radius:var(--r-sm);
  background:var(--bg-3); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-2); transition:var(--ease);
}
.theme-toggle:hover { border-color:var(--teal); color:var(--teal); }
.theme-toggle svg {
  width:15px; height:15px;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round;
}

/* Language dropdown */
.lang-dropdown-wrapper { position:relative; }

.lang-trigger {
  display:flex; align-items:center; gap:5px;
  font-family:var(--fd); font-size:.75rem; font-weight:700;
  color:var(--text-2); padding:.42rem .82rem;
  background:var(--bg-3); border:1px solid var(--border);
  border-radius:var(--r-sm); cursor:pointer; transition:var(--ease);
  white-space:nowrap;
}
.lang-trigger:hover { border-color:var(--teal); color:var(--teal); }
.lang-chevron { font-size:.48rem; transition:transform .2s ease; line-height:1; }
.lang-dropdown-wrapper.open .lang-chevron { transform:rotate(180deg); }
.lang-dropdown-wrapper.open .lang-trigger { border-color:var(--teal); color:var(--teal); }

.lang-menu {
  position:absolute; top:calc(100% + 5px); right:0;
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:var(--r-md); padding:.35rem;
  min-width:170px; z-index:300;
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow:var(--shadow);
}
.lang-dropdown-wrapper.open .lang-menu { opacity:1; visibility:visible; transform:translateY(0); }
[dir="rtl"] .lang-menu { right:auto; left:0; }

.lang-option {
  display:flex; align-items:center; gap:8px;
  padding:.58rem .85rem; border-radius:var(--r-sm);
  font-family:var(--fd); font-size:.8rem; font-weight:600;
  color:var(--text-2); cursor:pointer; transition:var(--ease);
  width:100%; text-align:left;
}
.lang-option:hover { background:var(--teal-dim); color:var(--teal); }
.lang-option.active { color:var(--teal); background:var(--teal-dim); }
.lang-native-sm { margin-left:auto; font-size:.72rem; color:var(--text-3); opacity:.8; }
.lang-option.active .lang-native-sm { opacity:1; color:var(--teal); }
.lang-check { opacity:0; font-size:.7rem; color:var(--teal); transition:opacity .15s; }
.lang-option.active .lang-check { opacity:1; }

/* Mobile toggle */
#menu-toggle {
  display:none; align-items:center; justify-content:center;
  width:36px; height:36px; color:var(--text);
  border-radius:var(--r-sm); background:var(--bg-3); border:1px solid var(--border);
}
#menu-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; }
#menu-icon { display:flex; }

/* Mobile menu */
#mobile-menu {
  display:none; position:fixed; inset:0;
  background:var(--bg); z-index:998;
  flex-direction:column; justify-content:center; align-items:center;
  gap:.9rem; opacity:0; transition:opacity var(--ease);
  padding:2rem;
}
#mobile-menu.open { display:flex; opacity:1; }
#mobile-menu .nav-link {
  font-size:1.4rem; font-weight:800;
  color:var(--text); padding:.5rem 1.2rem;
}
#mobile-menu .nav-link:hover { color:var(--teal); background:none; }
#mobile-menu .nav-link-sub { font-size:1rem !important; font-weight:600 !important; color:var(--text-3) !important; }
#mobile-menu .mob-donate-btn {
  margin-top:.6rem;
  width:100%; max-width:240px;
  justify-content:center;
  font-size:1rem;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height:100vh; display:flex; align-items:center;
  position:relative; overflow:hidden; padding-top:90px;
}
.hero-bg {
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 55% 50% at 65% 40%, rgba(33,147,134,.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 10% 75%, rgba(1,51,102,.18) 0%, transparent 55%);
}
body.light .hero-bg {
  background: radial-gradient(ellipse 55% 50% at 65% 40%, rgba(33,147,134,.06) 0%, transparent 60%);
}
.hero-grid {
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(33,147,134,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,147,134,.04) 1px, transparent 1px);
  background-size:60px 60px;
}
.hero-layout {
  position:relative; z-index:1; width:100%;
  display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center;
}
.hero-content { text-align:left; }
[dir="rtl"] .hero-content { text-align:right; }

.hero-tag {
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--fd); font-size:.68rem; font-weight:700;
  letter-spacing:.13em; text-transform:uppercase; color:var(--teal);
  border:1px solid rgba(33,147,134,.28); background:var(--teal-dim);
  padding:6px 13px; border-radius:100px; margin-bottom:1.4rem;
  animation:fadeUp .7s ease both;
}
.hero h1 { animation:fadeUp .7s .1s ease both; }
.hero h1 .hl { color:var(--teal); display:block; }
.hero-sub {
  font-size:1rem; max-width:480px; margin-top:1.1rem; margin-bottom:1.9rem;
  animation:fadeUp .7s .2s ease both;
}
[dir="rtl"] .hero-sub { max-width:100%; }
.hero-actions { display:flex; gap:.9rem; flex-wrap:wrap; animation:fadeUp .7s .3s ease both; }
[dir="rtl"] .hero-actions { justify-content:flex-start; }

.hero-illo {
  display:flex; align-items:center; justify-content:center;
  animation:fadeUp .8s .15s ease both;
}
.hero-illo img, .hero-illo svg {
  width:100%; max-width:460px; height:auto;
  filter:drop-shadow(0 16px 40px rgba(33,147,134,.14));
}

/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.stats-bar {
  padding:2.2rem 0;
  background:var(--bg-2);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.stat-item { text-align:center; padding:.9rem; }
.stat-num  { font-family:var(--fd); font-size:2.7rem; font-weight:800; color:var(--teal); line-height:1; display:block; }
.stat-lbl  { font-family:var(--fd); font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--text-3); margin-top:.35rem; display:block; }

/* ══════════════════════════════════════════════
   ABOUT (home preview)
══════════════════════════════════════════════ */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }

.about-box {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:2.2rem; position:relative; overflow:hidden;
}
.about-box::before {
  content:''; position:absolute; top:-50px; right:-50px;
  width:150px; height:150px;
  background:radial-gradient(circle,var(--teal-glow),transparent 70%);
  pointer-events:none;
}
.about-box-lbl {
  font-family:var(--fd); font-size:.64rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); margin-bottom:1.2rem;
}
.about-row {
  display:flex; align-items:center; gap:.9rem;
  padding:.95rem; background:var(--bg-3); border:1px solid var(--border);
  border-radius:var(--r-md); margin-bottom:.7rem; transition:var(--ease);
}
.about-row:hover { border-color:var(--teal); }
.about-row:last-child { margin-bottom:0; }
.about-row-icon {
  width:34px; height:34px; border-radius:8px;
  background:var(--teal-dim); color:var(--teal);
  flex-shrink:0;
}
.about-row-icon.tf-icon svg { width:17px; height:17px; }
.about-row-title { font-family:var(--fd); font-weight:700; font-size:.85rem; color:var(--text); }
.about-row-sub   { font-size:.74rem; color:var(--text-3); margin-top:.1rem; }

.mv-stack { display:flex; flex-direction:column; gap:.9rem; margin-top:1.8rem; }
.mv-item {
  padding:1.2rem; background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); transition:var(--ease);
}
.mv-item:hover { border-color:var(--teal); }
.mv-item h4 { color:var(--teal); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.3rem; }
.mv-item p  { font-size:.86rem; }

/* ══════════════════════════════════════════════
   PROGRAMS PREVIEW
══════════════════════════════════════════════ */
.prog-section { background:var(--bg-2); }
.prog-header  { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:2.2rem; flex-wrap:wrap; gap:1rem; }
.prog-grid    { display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
.prog-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:1.7rem; transition:var(--ease);
}
.prog-card:hover { border-color:var(--teal); transform:translateY(-5px); box-shadow:var(--shadow); }
.prog-card:hover .card-icon { background:var(--teal); color:#fff; }
.prog-card h3 { font-size:.98rem; margin-bottom:.5rem; }
.prog-card p  { font-size:.84rem; }

/* ══════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════ */
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }

.team-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); overflow:hidden; transition:var(--ease);
  display:flex; flex-direction:column;
}
.team-card:hover { border-color:var(--teal); transform:translateY(-4px); box-shadow:var(--shadow); }

/* Passport-size photo area */
.team-photo {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  margin: 1.6rem auto 0.4rem;
  background: linear-gradient(145deg, var(--bg-3) 0%, var(--teal-dim) 100%);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 3px solid var(--teal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.team-photo-ph {
  width:64px; height:64px; border-radius:50%;
  background:var(--teal-dim); border:2px solid var(--teal);
  display:flex; align-items:center; justify-content:center;
  color:var(--teal);
}
.team-photo-ph.tf-icon svg { width:30px; height:30px; }

.team-info { padding:1rem 1.1rem 1.1rem; flex:1; display:flex; flex-direction:column; }
.team-name { font-family:var(--fd); font-weight:700; font-size:.92rem; color:var(--text); }
.team-role {
  font-size:.68rem; color:var(--teal); font-family:var(--fd);
  font-weight:700; letter-spacing:.06em; text-transform:uppercase; margin-top:.18rem;
}
.team-bio { font-size:.8rem; color:var(--text-2); margin-top:.55rem; line-height:1.55; flex:1; }

.team-links { display:flex; gap:.5rem; margin-top:.85rem; }
.team-social {
  width:30px; height:30px; border-radius:var(--r-sm);
  background:var(--bg-3); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-3); transition:var(--ease);
}
.team-social:hover { background:var(--teal); border-color:var(--teal); color:#fff; }
/* All social icons: filled style */
.team-social svg { width:14px; height:14px; fill:currentColor; stroke:none; }

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  padding:148px 0 68px;
  background:radial-gradient(ellipse 60% 50% at 50% 0%, rgba(33,147,134,.07), transparent 60%);
  border-bottom:1px solid var(--border);
  text-align:center;
}
.page-hero h1 { font-size:clamp(2rem,4.5vw,3.4rem); }
.page-hero p  { font-size:.98rem; max-width:500px; margin:.8rem auto 0; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  background:var(--bg-2);
  border-top:1px solid var(--border);
  padding:4rem 0 2rem;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr;
  gap:3rem; padding-bottom:2.8rem;
  border-bottom:1px solid var(--border); margin-bottom:1.8rem;
}

/* Logo in footer */
body.light .footer-tagline { font-size:.875rem; max-width:230px; }

/* Social icons in footer — filled style, same class as team */
.footer-socials { display:flex; gap:.5rem; margin-top:.85rem; }
.soc-icon {
  width:32px; height:32px; border-radius:var(--r-sm);
  background:var(--bg-4); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-3); transition:var(--ease);
}
.soc-icon:hover { background:var(--teal); border-color:var(--teal); color:#fff; }
.soc-icon svg { width:15px; height:15px; fill:currentColor; stroke:none; }

.footer-col h5 {
  font-family:var(--fd); font-size:.68rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--text-3);
  margin-bottom:.95rem;
}
.footer-col ul li + li { margin-top:.5rem; }
.footer-col ul li a { font-size:.875rem; color:var(--text-2); transition:var(--ease); }
.footer-col ul li a:hover { color:var(--teal); }

.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  font-size:.76rem; color:var(--text-3); flex-wrap:wrap; gap:.5rem;
}
[dir="rtl"] .footer-bottom { flex-direction:row-reverse; }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width:1024px) {
  :root { --sp:80px; }
  .hero-layout { grid-template-columns:1fr; text-align:center; }
  .hero-content { text-align:center; order:1; }
  [dir="rtl"] .hero-content { text-align:center; }
  .hero-actions { justify-content:center; }
  [dir="rtl"] .hero-actions { justify-content:center; }
  .hero-illo { order:0; }
  .hero-illo img { max-width:340px; }
  .about-grid { grid-template-columns:1fr; gap:3rem; }
  .prog-grid   { grid-template-columns:repeat(2,1fr); }
  .stats-grid  { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-tagline { max-width:100%; }
}
@media (max-width:768px) {
  :root { --sp:60px; }
  .nav-links, .nav-right .btn-primary { display:none; }
  #menu-toggle { display:flex; }
  .prog-grid  { grid-template-columns:1fr; }
  .hero h1    { font-size:2.1rem; }
  .hero-illo  { display:none; }
  .footer-grid { grid-template-columns:1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .team-grid  { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:560px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .team-grid  { grid-template-columns:1fr 1fr; }
  .lang-label { display:none; }
}

/* ══════════════════════════════════════════════
   ADDITIONAL FIXES
══════════════════════════════════════════════ */

/* Fix 1: Hero h1 — scale down and left-align text on laptop, no overflow */
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  word-break: break-word;
}
.hero h1 .hl { display: block; color: var(--teal); }

/* Fix 2: Footer — new 2-col layout: brand + collage (no quick links) */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-tagline { font-size: .875rem; max-width: 230px; }
.footer-contact-row {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 1rem;
}
.footer-contact-row .fci { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.footer-contact-row .fci svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  width: 16px; height: 16px;
}

/* Fix 3: Footer collage grid */
.footer-collage { display: flex; flex-direction: column; gap: .6rem; }
.collage-label {
  font-family: var(--fd); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: .2rem;
}
.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: .5rem;
  border-radius: var(--r-md);
  overflow: hidden;
}
.collage-cell {
  border-radius: var(--r-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  transition: var(--ease);
}
.collage-cell:hover { transform: scale(1.02); filter: brightness(1.1); }
.collage-cell--lg {
  grid-column: span 2;
}
.collage-cell--wide {
  grid-column: span 3;
  min-height: 56px;
}
.collage-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.collage-content--wide {
  flex-direction: row;
  gap: .7rem;
}
.collage-icon { width: 24px; height: 24px; color: rgba(255,255,255,.8); }
.collage-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  width: 24px; height: 24px;
}
.collage-content span {
  font-family: var(--fd);
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  line-height: 1.2;
}

/* Fix 4: CTA banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  pointer-events: none;
}

/* Fix 5: Support banner on community page */
.support-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--teal-dim));
  border: 1px solid rgba(33,147,134,.22);
  border-radius: var(--r-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.paypal-btn { background: #0070ba; color: #fff; gap: 8px; }
.paypal-btn:hover { background: #005ea6; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,112,186,.3); }

/* Fix 6: Form inputs */
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--fb);
  font-size: .95rem;
  padding: .78rem 1rem;
  outline: none;
  transition: border-color var(--ease);
}
.form-input:focus { border-color: var(--teal); }

/* ══════════════════════════════════════════════
   RESPONSIVE — COMPLETE MOBILE/TABLET OVERHAUL
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sp: 80px; }

  /* Hero */
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-content { text-align: center; order: 1; }
  [dir="rtl"] .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  [dir="rtl"] .hero-actions { justify-content: center; }
  .hero-illo { order: 0; }
  .hero-illo img { max-width: 340px; }
  .hero-sub { margin: 1rem auto 1.9rem; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Programs preview */
  .prog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline { max-width: 100%; }
  .collage-grid { grid-template-columns: repeat(3, 1fr); }

  /* Inner page grids */
  .about-story-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .mv-grid { grid-template-columns: 1fr !important; }
  .svc-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
}

@media (max-width: 768px) {
  :root { --sp: 55px; }

  /* Navbar */
  .nav-links, .nav-right .btn-primary { display: none; }
  #menu-toggle { display: flex; }

  /* Hero */
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-illo { display: none; }
  .hero { padding-top: 80px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 2.2rem; }

  /* Programs */
  .prog-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  /* Service cards */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.4fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.5fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }

  /* About page specific */
  .page-hero { padding: 120px 0 50px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .4rem; }
  .collage-grid { grid-template-columns: repeat(2, 1fr); }
  .collage-cell--lg { grid-column: span 2; }
  .collage-cell--wide { grid-column: span 2; }

  /* CTA banner */
  .cta-banner { padding: 2rem; flex-direction: column; align-items: flex-start; }

  /* Support banner */
  .support-banner { padding: 2.5rem 1.5rem; }

  /* Process steps */
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Contact */
  .contact-info-grid { flex-direction: column; }

  /* Form */
  [style*="grid-template-columns:1fr 1fr"][data-form] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  :root { --sp: 48px; }
  .container { padding: 0 1.2rem; }

  /* Hero */
  .hero h1 { font-size: 1.85rem; }
  .hero-tag { font-size: .62rem; padding: 5px 10px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .stat-item { padding: .7rem .5rem; }
  .stat-num { font-size: 1.9rem; }

  /* Team */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Nav right — hide language label */
  .lang-label { display: none; }

  /* Footer collage */
  .collage-grid { grid-template-columns: 1fr 1fr; }

  /* Programs preview grid */
  .prog-grid { grid-template-columns: 1fr; }

  /* Section tag centering */
  .stag { font-size: .62rem; }

  /* Cards */
  .card { padding: 1.4rem; }
}

/* Force all inline-style grids to be responsive on mobile */
@media (max-width: 768px) {
  section > .container > div[style*="grid-template-columns"],
  .container > div[style*="grid-template-columns"],
  main > section > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Layout helpers ── */
.rg-2col  { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.rg-3col  { display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.rg-4col  { display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
.contact-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:5rem; align-items:start; }
.contact-row { display:flex; align-items:center; gap:1rem; padding:1.2rem; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-md); }

/* Stat boxes on about page */
.stat-box { padding:1.8rem; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-md); text-align:center; }
.stat-num-sm { font-family:var(--fd); font-size:2.4rem; font-weight:800; color:var(--teal); }
.stat-lbl-sm { font-size:.7rem; color:var(--text-3); margin-top:.25rem; font-family:var(--fd); font-weight:700; text-transform:uppercase; letter-spacing:.08em; }

/* Process steps */
.proc-num { font-family:var(--fd); font-size:2.2rem; font-weight:800; color:var(--teal); opacity:.3; line-height:1; margin-bottom:.7rem; }

/* Service list */
.svc-ul { margin-top:1.1rem; display:flex; flex-direction:column; gap:.55rem; list-style:none; }
.svc-li { display:flex; align-items:flex-start; gap:.6rem; font-size:.875rem; color:var(--text-2); }
.svc-chk { width:14px; height:14px; color:var(--teal); margin-top:.15rem; flex-shrink:0; }
.svc-chk svg { fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; }

/* Form label */
.form-lbl { display:block; font-family:var(--fd); font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); margin-bottom:.4rem; }

/* Footer collage photos */
.footer-collage { display:flex; flex-direction:column; gap:.6rem; }
.collage-label { font-family:var(--fd); font-size:.64rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); margin-bottom:.2rem; }
.collage-grid { display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:100px; gap:.4rem; border-radius:var(--r-md); overflow:hidden; }
.collage-cell { overflow:hidden; border-radius:var(--r-sm); background:var(--bg-4); }
.collage-cell img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.collage-cell:hover img { transform:scale(1.06); }
.collage-cell--lg { grid-column:span 2; }
.collage-cell--wide { grid-column:span 3; }

/* ── Mobile/Tablet overrides for layout helpers ── */
@media (max-width:1024px) {
  .rg-2col  { grid-template-columns:1fr; gap:3rem; }
  .rg-3col  { grid-template-columns:1fr 1fr; }
  .contact-grid { grid-template-columns:1fr; gap:3rem; }
  .collage-grid { grid-auto-rows:80px; }
}
@media (max-width:768px) {
  .rg-3col  { grid-template-columns:1fr; }
  .rg-4col  { grid-template-columns:1fr 1fr; }
  .collage-grid { grid-template-columns:1fr 1fr; grid-auto-rows:90px; }
  .collage-cell--wide { grid-column:span 2; }
  .collage-cell--lg { grid-column:span 2; }
  .contact-row { align-items:flex-start; }
}
@media (max-width:480px) {
  .rg-4col  { grid-template-columns:1fr; }
  .collage-grid { grid-template-columns:1fr 1fr; grid-auto-rows:75px; }
}

/* ══════════════════════════════════════════════
   FOOTER QUOTE SECTION
══════════════════════════════════════════════ */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
  align-items: center;
}

.footer-quote-section { position: relative; }

.fq-inner {
  padding: 2.4rem 2.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fq-inner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(33,147,134,.1), transparent 70%);
  pointer-events: none;
}
.fq-inner::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(1,51,102,.15), transparent 70%);
  pointer-events: none;
}

.fq-deco-line {
  width: 40px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 1.4rem;
}
.fq-deco-line--bottom {
  margin-top: 1.4rem;
  margin-bottom: 0;
  width: 20px;
  opacity: .45;
}

.fq-quotes-wrap { position: relative; flex: 1; }

.fq-item {
  display: none;
  flex-direction: column;
  gap: .6rem;
  animation: fqFadeIn .5s ease;
}
.fq-item.fq-active { display: flex; }

@keyframes fqFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fq-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: .6;
  color: var(--teal);
  opacity: .45;
  font-weight: 700;
  margin-bottom: -.3rem;
}

.fq-text {
  font-family: var(--fd);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -.01em;
  font-style: italic;
  quotes: none;
  margin: 0;
}

.fq-source {
  font-family: var(--fd);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.fq-source::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1.5px;
  background: var(--teal);
  border-radius: 2px;
}

.fq-dots {
  display: flex;
  gap: .5rem;
  margin-top: 1.2rem;
}
.fq-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-h);
  cursor: pointer;
  transition: var(--ease);
  padding: 0;
}
.fq-dot--active {
  background: var(--teal);
  border-color: var(--teal);
  width: 20px;
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .fq-inner { padding: 1.6rem; }
  .fq-text  { font-size: .88rem; }
  .fq-mark  { font-size: 3rem; }
}

/* ── Footer logo ── */
.footer-logo-wrap {
  margin-bottom: 1rem;
}
.footer-logo-wrap img {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(1.05) contrast(1.1);
}
body.light .footer-logo-wrap img {
  mix-blend-mode: multiply;
  filter: none;
}

/* ── Developer credit ── */
.dev-credit {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: var(--ease);
}
.dev-credit:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

/* ── Navbar: no dot ── */
.nav-logo-dot { display: none; }

/* ── Language flag SVG ── */
.lang-flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.15);
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Mobile nav: hide Get Started button completely ── */
@media (max-width: 768px) {
  .nav-right .btn-primary,
  .nav-right a.btn-primary {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════
   HOMEPAGE DONATION CTA
══════════════════════════════════════════════ */
.dcta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 768px) { .dcta-wrap { grid-template-columns: 1fr; gap: 2.5rem; } }

.dcta-copy .stag { margin-bottom: .6rem; }
.dcta-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.dcta-tiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dcta-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--ease);
}
.dcta-tile:hover { border-color: var(--teal); transform: translateX(6px); }
.dcta-tile--mid {
  border-color: rgba(33,147,134,.4);
  background: linear-gradient(135deg, rgba(33,147,134,.08), var(--bg-card));
}
.dcta-tile-val {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--teal);
  min-width: 62px;
  line-height: 1;
}
.dcta-tile-label {
  font-family: var(--fd);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.dcta-tile-desc {
  font-size: .75rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   SEO & ACCESSIBILITY ADDITIONS (2025 Optimization)
═══════════════════════════════════════════════ */

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: .6rem 1.2rem;
  background: var(--teal, #219386);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  outline: 3px solid #fff;
}

/* Focus-visible outline for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--teal, #219386);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
  .nav-link, .btn, .team-social, .lang-option {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ldr-bar { transition: none !important; }
}

/* Print styles */
@media print {
  #tf-loader, #navbar, #mobile-menu, .theme-toggle,
  .lang-dropdown-wrapper, .skip-link, footer { display: none !important; }
  main { padding-top: 0 !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
  body { font-size: 12pt; color: #000; background: #fff; }
}

/* ══════════════════════════════════════════════
   RTL MOBILE FIXES — Dari & Pashto (all breakpoints)
══════════════════════════════════════════════ */

/* ── 1. Scope Arabic font to text only, not layout containers ── */
[dir="rtl"] * { font-family: inherit; }
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] span:not(.lang-flag-svg):not(.nav-logo-dot),
[dir="rtl"] li,
[dir="rtl"] label,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn,
[dir="rtl"] .badge,
[dir="rtl"] .stag,
[dir="rtl"] .lang-trigger,
[dir="rtl"] .lang-option,
[dir="rtl"] .team-name,
[dir="rtl"] .team-role,
[dir="rtl"] .team-bio,
[dir="rtl"] .stat-lbl,
[dir="rtl"] .stat-lbl-sm,
[dir="rtl"] .badge,
[dir="rtl"] .footer-col ul li a,
[dir="rtl"] .form-lbl,
[dir="rtl"] .form-input { font-family: var(--fa); }
[dir="rtl"] .stat-lbl,
[dir="rtl"] .stat-lbl-sm,
[dir="rtl"] .badge { letter-spacing: 0; text-transform: none; }

/* ── 2. Prevent horizontal scroll in RTL ── */
html[dir="rtl"],
html[dir="rtl"] body { overflow-x: hidden; }

/* ── 3. RTL hero text alignment on tablet/mobile ── */
@media (max-width: 1024px) {
  [dir="rtl"] .hero-content { text-align: center; }
  [dir="rtl"] .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  [dir="rtl"] .hero-actions { justify-content: center; }
}

/* ── 4. Fix RTL hero on mobile ── */
@media (max-width: 768px) {
  [dir="rtl"] .hero h1 { text-align: center; }
  [dir="rtl"] .hero-tag { margin-left: auto; margin-right: auto; }
}

/* ── 5. Fix footer-bottom: remove row-reverse on mobile (column layout wins) ── */
@media (max-width: 768px) {
  [dir="rtl"] .footer-bottom {
    flex-direction: column !important;
    text-align: center;
  }
}

/* ── 6. Fix mobile menu: apply RTL direction and center text ── */
[dir="rtl"] #mobile-menu {
  direction: rtl;
  text-align: center;
  align-items: center;
}
[dir="rtl"] #mobile-menu .nav-link {
  text-align: center;
  width: 100%;
  direction: rtl;
}

/* ── 7. Fix language dropdown: prevent off-screen on small mobile ── */
@media (max-width: 600px) {
  .lang-menu {
    position: fixed;
    top: 64px;
    right: .8rem;
    left: auto;
    min-width: 180px;
    max-width: calc(100vw - 1.6rem);
    width: auto;
  }
  [dir="rtl"] .lang-menu {
    right: auto;
    left: .8rem;
  }
}

/* ── 8. Fix RTL touch targets: remove min-width so buttons don't stretch ── */
@media (max-width: 768px) {
  [dir="rtl"] .nav-link,
  [dir="rtl"] .lang-option,
  [dir="rtl"] .btn { min-width: unset; }
}

/* ── 9. RTL navbar on mobile: keep logo left, hamburger right ──
   Flex row in RTL auto-reverses, so we lock it back to row */
@media (max-width: 768px) {
  [dir="rtl"] .nav-inner { flex-direction: row; }
  [dir="rtl"] .nav-right { flex-direction: row; }
}

/* ── 10. Fix RTL section tags and headings centering on mobile ── */
@media (max-width: 768px) {
  [dir="rtl"] .stag { justify-content: center; }
  [dir="rtl"] .prog-header { flex-direction: column; align-items: flex-end; }
}

/* ── 11. Fix RTL about-grid stacking ── */
@media (max-width: 1024px) {
  [dir="rtl"] .about-box { text-align: right; }
}

/* ── 12. Fix RTL about-row items ── */
[dir="rtl"] .about-row { text-align: right; }
[dir="rtl"] .about-row-icon { margin-left: 0; margin-right: 0; }

/* ── 13. Fix RTL donation CTA wrap ── */
@media (max-width: 768px) {
  [dir="rtl"] .dcta-wrap { direction: rtl; text-align: right; }
  [dir="rtl"] .dcta-btns { justify-content: flex-start; }
}

/* ── 14. Fix RTL card icon alignment ── */
[dir="rtl"] .card-icon { margin-right: 0; }
[dir="rtl"] .prog-card,
[dir="rtl"] .card { text-align: right; }

/* ── 15. Fix RTL team grid text alignment ── */
[dir="rtl"] .team-info { text-align: right; }
[dir="rtl"] .team-links { justify-content: flex-end; }

/* ── 16. Fix RTL contact row ── */
[dir="rtl"] .contact-row { text-align: right; }
[dir="rtl"] .contact-row > div { text-align: right; }

/* ── 16b. Fix RTL contact info column (heading, paragraph) ── */
[dir="rtl"] .contact-grid > div { text-align: right; }

/* ── 16c. Fix RTL contact form ── */
[dir="rtl"] .form-lbl { text-align: right; display: block; }
[dir="rtl"] .form-input {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] #contact-form > div,
[dir="rtl"] #contact-form h3,
[dir="rtl"] #contact-form p { text-align: right; }
[dir="rtl"] #contact-form .btn { gap: 8px; }


/* ── 17. Fix RTL footer ── */
[dir="rtl"] .footer-socials { justify-content: flex-start; }
[dir="rtl"] .footer-contact-row { text-align: right; }
[dir="rtl"] .footer-brand { text-align: right; }
[dir="rtl"] .footer-tagline { text-align: right; }

@media (max-width: 768px) {
  [dir="rtl"] .footer-brand { text-align: right; }
  [dir="rtl"] .footer-socials { justify-content: flex-start; }
  [dir="rtl"] .footer-col h5 { text-align: right; }
  [dir="rtl"] .footer-col ul { text-align: right; }
}

/* ── 19. Fix RTL service list items ── */
[dir="rtl"] .svc-li { text-align: right; }
[dir="rtl"] .svc-chk { margin-left: 0; margin-right: 0; }

/* ── 20. Fix RTL hero tag centering ── */
@media (max-width: 480px) {
  [dir="rtl"] .hero-tag {
    flex-direction: row-reverse;
    text-align: center;
    justify-content: center;
  }
  [dir="rtl"] .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  [dir="rtl"] .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   ── 22. RTL Arrow & Icon Direction Fixes ─────────────────
   All right-pointing arrows flip to left-pointing in RTL.
   Row order reverses so arrow stays at the reading end.
   ══════════════════════════════════════════════════════════ */

/* 1. All standard .btn elements that contain an SVG arrow:
      In RTL, flex-direction:row naturally puts last item (svg) on the LEFT.
      Just flip it horizontally so it points left. */
[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* 2. Community donate CTA button (.donate-cta-btn) */
[dir="rtl"] .cta-arrow { transform: scaleX(-1); }
[dir="rtl"] .donate-cta-btn:hover .cta-arrow {
  transform: scaleX(-1) translateX(-4px);
}

/* 3. Contact form send button icon */
[dir="rtl"] #contact-form .tf-icon svg { transform: scaleX(-1); }

/* 4. Donate page back/change links: svg (left arrow) flips to right in RTL */
[dir="rtl"] .donate-back-row svg { transform: scaleX(-1); }

/* 5. Payoneer submit button arrow */
[dir="rtl"] .pn-pay-btn svg { transform: scaleX(-1); }



/* ══════════════════════════════════════════════════════════════
   ── 21. Donate Page ──────────────────────────────────────────
   ══════════════════════════════════════════════════════════════ */

/* Page wrapper */
.donate-page-wrap {
  padding: 100px 0 80px;
  min-height: calc(100vh - 64px);
}

/* Breadcrumb */
.donate-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.donate-breadcrumb a { color: var(--text-3); transition: color var(--ease); }
.donate-breadcrumb a:hover { color: var(--teal); }
.donate-breadcrumb svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}

/* Page header */
.donate-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.donate-page-title h1 {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}
.donate-page-title p { font-size: .9rem; color: var(--text-3); }

.donate-secure-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .45rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
}
.donate-secure-badge svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}
.step.active .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.step.done .step-num {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}
.step.active { color: var(--teal); }
.step.done   { color: var(--teal); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 24px;
  max-width: 80px;
  margin-bottom: 18px;
}

/* Two-column layout */
.donate-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .donate-cols { grid-template-columns: 1fr; }
}

/* ── Invoice Card ── */
.invoice-wrap { position: relative; }

.invoice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Invoice header band */
.inv-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2545 100%);
  padding: 1.4rem 1.6rem 1.2rem;
  border-bottom: 1px solid rgba(33,147,134,0.25);
}
.inv-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.inv-logo-block {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.inv-logo-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(33,147,134,0.4);
  flex-shrink: 0;
}
.inv-logo-mark img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.inv-logo-text {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .03em;
  line-height: 1.2;
}
.inv-logo-sub {
  font-size: .68rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.inv-title-block { text-align: right; }
.inv-title {
  font-family: var(--fd);
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.inv-number {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.inv-date { font-size: .75rem; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* Org row */
.inv-org-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.6rem;
  background: rgba(1,51,102,0.25);
  border-bottom: 1px solid var(--border);
}
.inv-org-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .25rem;
}
.inv-org-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.inv-org-detail { font-size: .75rem; color: var(--text-3); margin-top: 2px; line-height: 1.5; }

/* Invoice body */
.inv-body { padding: 1.2rem 1.6rem 1.4rem; }

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  margin-bottom: 1rem;
}
.inv-table th {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.inv-table td {
  padding: .75rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.55;
}
.inv-item-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: .85rem;
  margin-bottom: .2rem;
}
.inv-item-desc { display: block; font-size: .75rem; color: var(--text-3); }

.inv-freq-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--teal-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--teal);
}
.inv-freq-badge svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 2;
}

/* Totals */
.inv-totals { margin-top: .8rem; }
.inv-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  font-size: .82rem;
  color: var(--text-3);
}
.inv-totals-row.total {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  border-top: 2px solid var(--border);
  padding-top: .7rem;
  margin-top: .3rem;
}
.inv-total-val { color: var(--teal); font-family: var(--fd); font-size: 1.1rem; }

/* Footer note */

/* Download PDF button */
.btn-download-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1rem;
  padding: .7rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.btn-download-pdf:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}
.btn-download-pdf svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}

/* Back link */
.donate-back-row {
  margin-top: .9rem;
  text-align: center;
}
.donate-back-row a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-3);
  transition: color var(--ease);
}
.donate-back-row a:hover { color: var(--teal); }
.donate-back-row svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}

/* ── Payment Wrap ── */
.payment-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Amount pill */
.pp-amount-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, var(--navy), #0a2545);
  border: 1px solid rgba(33,147,134,0.3);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
}
.pp-amount-pill-left { display: flex; flex-direction: column; gap: .2rem; }
.pp-amount-pill-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.pp-amount-pill-val { font-family: var(--fd); font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.pp-amount-pill-freq { font-size: .73rem; color: rgba(255,255,255,0.5); margin-top: 1px; }
.pp-change-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal-light);
  white-space: nowrap;
  transition: opacity var(--ease);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pp-change-link:hover { opacity: .7; }

/* Payment method selector */
.payment-method-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .6rem;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.pm-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .8rem .5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--ease);
  text-align: center;
}
.pm-btn:hover { border-color: var(--teal); background: var(--teal-dim); }
.pm-btn.selected { border-color: var(--teal); background: var(--teal-dim); }
.pm-btn-name { font-size: .68rem; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.pp-wordmark { font-family: var(--fd); font-size: 1rem; font-weight: 800; line-height: 1; }
.pp-blue     { color: #009cde; }
.pp-darkblue { color: #003087; }
body.light .pp-darkblue { color: #003087; }

/* Payoneer logo: invert(1) makes black text → white,
   hue-rotate(180deg) brings the orange brand color back to orange.
   Net result: white text + original orange icon in dark mode. */
.pm-btn[data-method="payoneer"] img {
  filter: invert(1) hue-rotate(180deg);
}
body.light .pm-btn[data-method="payoneer"] img {
  filter: none;
}

/* PayPal & Payoneer panels */
.paypal-panel,
.payoneer-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Panel visibility toggling:
   paypal-panel  → toggled via .hidden class
   payoneer-panel → toggled via .hidden class
   card-panel    → toggled via .visible class (default hidden) */
.paypal-panel.hidden,
.payoneer-panel.hidden { display: none; }

.pp-header {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.pp-header-logo { flex-shrink: 0; }
.pp-header-text { display: flex; flex-direction: column; gap: .35rem; }
.pp-header-text strong { font-size: .9rem; color: var(--text); font-weight: 700; }
.pp-header-text span  { font-size: .78rem; color: var(--text-3); line-height: 1.55; }

/* Form elements */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--fb);
  font-size: .88rem;
  padding: .6rem .85rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.form-input::placeholder { color: var(--text-3); }
.form-input option { background: var(--bg-2); }
.form-hint { font-size: .72rem; color: var(--text-3); line-height: 1.5; }

.field-error-msg {
  font-size: .72rem;
  color: #e05c5c;
  display: none;
}
.field-error-msg.visible { display: block; }

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
@media (max-width: 480px) { .form-2col { grid-template-columns: 1fr; } }

/* Phone input */
.phone-input-wrap { display: flex; gap: .5rem; }
.phone-code-select { flex: 0 0 110px; min-width: 0; }
.phone-number-input { flex: 1; min-width: 0; }

/* Terms / checkbox rows */
.pp-terms {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.55;
}
.pp-terms input[type="checkbox"] {
  width: 15px; height: 15px;
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--teal);
}

/* Pay buttons */
.pp-pay-btn,
.pn-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .9rem 1rem;
  background: var(--teal);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  font-family: var(--fd);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 16px rgba(33,147,134,0.35);
}
.pp-pay-btn:hover,
.pn-pay-btn:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(33,147,134,0.45);
}
.pp-pay-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Security row */
.pp-security-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  justify-content: center;
}
.pp-security-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  color: var(--text-3);
  font-weight: 500;
}
.pp-security-item svg {
  width: 13px; height: 13px;
  fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}

/* Card disabled panel — hidden by default, shown via .visible */

/* Payoneer instructions */
.pn-instructions {
  display: none;
  flex-direction: column;
  gap: .9rem;
  margin-top: .5rem;
  padding: 1rem;
  background: var(--bg-3);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.pn-instructions.visible { display: flex; }

.pn-instr-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal);
}
.pn-instr-title svg { flex-shrink: 0; }

.pn-step {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.pn-step-num {
  min-width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pn-step-text { font-size: .82rem; color: var(--text-2); line-height: 1.6; }
.pn-step-text strong { color: var(--text); font-weight: 700; display: block; margin-bottom: .1rem; }
.pn-step-text em { font-style: normal; font-weight: 600; color: var(--text); }

.pn-email-box {
  background: var(--bg-2);
  border: 1px dashed var(--teal);
  border-radius: var(--r-sm);
  padding: .65rem 1rem;
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  letter-spacing: .02em;
  cursor: text;
  user-select: all;
}
.pn-note {
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.6;
}
