/* Dar Al-Ataa â€” design system. Colors are estimates from the logo; verify against original brand files. */
:root {
  --green: #103F30; --green-2: #1b5a45; --gold: #C59C43; --gold-2: #85651c;
  --ivory: #F6F4E9; --white: #fff; --ink: #1d2b25; --muted: #566259; --line: #e6dfc8;
  --radius: 20px; --shadow: 0 8px 28px rgba(16, 63, 48, .10);
  --font: "Cairo", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ivory); line-height: 1.75; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.topbar { background: var(--green); color: #e9e6d2; font-size: 14px; }
.topbar .container { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding-block: 6px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar .info { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.pill { background: rgba(197, 156, 67, .2); color: #f3dc9e; border-radius: 99px; padding: 0 10px; font-size: 12.5px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #f6f3e8; border-bottom: 1px solid transparent; transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); border-color: var(--line); }
.header .container { display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--green); font-size: 15.5px; }
.nav a:hover { background: var(--ivory); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 99px; padding: 10px 22px; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1d1606; }
.btn-gold:hover { background: #d3ab55; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: #fff; }
.lang { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font: inherit; font-weight: 700; color: var(--green); cursor: pointer; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--green); }
.menu-btn svg { width: 24px; height: 24px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, var(--ivory) 70%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 48px 40px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.25; color: var(--green); font-weight: 800; }
.hero h1 span { color: var(--gold-2); display: block; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-media { position: relative; }
.hero-media .photo { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 7/4; }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-tag { position: absolute; inset-inline-start: -10px; bottom: 24px; background: var(--green); color: #fff; padding: 10px 20px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow); max-width: 70%; }
.hero-tag small { display: block; font-weight: 500; opacity: .75; font-size: 12px; }
.hero-banner { height: 150px; background: url(../img/hero-children.jpg) center/cover; opacity: .0; }

/* Stats */
.stats { margin-top: -6px; }
.stats-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 12px; text-align: center; }
.stats-box div + div { border-inline-start: 1px solid var(--line); }
.stats-box strong { display: block; font-size: 2rem; color: var(--green); line-height: 1.2; }
.stats-box span { color: var(--muted); font-size: 14.5px; }
.stats-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

/* Sections */
section { padding-block: 64px; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { margin: 0; color: var(--green); font-size: clamp(1.7rem, 3.4vw, 2.3rem); position: relative; display: inline-block; }
.sec-head h2::after { content: ""; display: block; height: 3px; width: 56%; margin: 6px auto 0; background: var(--gold); border-radius: 3px; }
.sec-head p { margin: 10px 0 0; color: var(--muted); }

/* Services */
.services { background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.svc { text-align: center; padding: 18px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ivory); transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc .ic { width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 1.5px solid #ead9a8; display: grid; place-items: center; color: var(--green); }
.svc .ic svg { width: 34px; height: 34px; }
.svc h3 { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--green); font-weight: 700; }
.note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 24px; }

/* Centers */
.ctr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, #efe9d2, #efe9d2 14px, #f6f1de 14px, #f6f1de 28px); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; color: var(--green); font-size: 1.12rem; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .soon { margin-top: auto; padding-top: 10px; color: var(--gold-2); font-size: 13px; font-weight: 700; }

/* Why */
.why { background: linear-gradient(180deg, var(--ivory), #efe9d2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.why-item h3 { margin: 0 0 6px; color: var(--green); }
.why-item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* About */
.about .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.about figure { margin: 0; }
.about .circle { border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 6px solid #fff; box-shadow: var(--shadow); max-width: 360px; margin-inline: auto; }
.about .circle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.about h2 { color: var(--green); font-size: 2rem; margin: 0 0 10px; }
.motto { margin-top: 14px; color: var(--gold-2); font-weight: 800; font-size: 1.15rem; }

/* Projects / Reports / Partners */
.empty { border: 2px dashed #d8cfae; border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); background: #fff; }
.reports { background: #fff; }
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); font-weight: 600; color: var(--green); }
.doc .pill { background: #f1e5bf; color: #6d531a; white-space: nowrap; }
.par-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.par { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.par h3 { margin: 0 0 6px; color: var(--green); }
.par p { margin: 0; color: var(--muted); font-size: 15.5px; }
.center-cta { text-align: center; margin-top: 28px; }

/* CTA band */
.cta { background: var(--green); color: #fff; text-align: center; padding-block: 52px; }
.cta h2 { margin: 0 0 6px; font-size: 1.9rem; }
.cta p { margin: 0 0 18px; opacity: .85; }

/* Footer */
.footer { background: #0b2c21; color: #d8d6c4; padding: 44px 0 20px; font-size: 15px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4, .footer .footer-h { font-size: 1rem; color: var(--gold); margin: 0 0 10px; }
.footer a { text-decoration: none; display: block; padding: 2px 0; }
.footer a:hover { color: #fff; }
.footer .logo { background: #f6f3e8; border-radius: 12px; padding: 6px 10px; display: inline-block; margin-bottom: 10px; }
.footer .logo img { height: 56px; width: auto; }
.footer .small { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: 13px; opacity: .8; display: grid; gap: 4px; }
bdi { unicode-bidi: isolate; }

@media (max-width: 900px) {
  .hero .container, .about .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 380px; margin-inline: auto; }
  .footer .grid { grid-template-columns: 1fr; }
  .menu-btn { display: grid; place-items: center; margin-inline-start: auto; }
  .header .container { flex-wrap: wrap; }
  .nav { display: none; flex-direction: column; align-items: stretch; width: 100%; margin: 0; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding-block: 44px; }
  .stats-box { grid-template-columns: 1fr; gap: 10px; }
  .stats-box div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }



/* ===== v2: layout aligned with the approved reference ===== */
.topbar { background: var(--green); }
.header { background: #fff; box-shadow: 0 2px 14px rgba(16,63,48,.06); }
.header .brand img { height: 62px; }
.nav a { font-size: 15px; }
.nav a[href="#top"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.hero { background: #fff; min-height: 460px; display: flex; }
.hero-bg { position: absolute; inset-block: 0; inset-inline-end: 0; width: 68%; height: 100%; object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%); mask-image: linear-gradient(to left, #000 55%, transparent 100%); }
[dir="rtl"] .hero-bg { -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%); mask-image: linear-gradient(to right, #000 55%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 95%, rgba(197,156,67,.18), transparent 28%); }
.hero-inner { position: relative; z-index: 1; display: flex !important; align-items: center; min-height: 460px; padding-block: 40px !important; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.hero h1 .l1 { color: var(--green); display: block; }
.hero .hero-tag { position: static; display: inline-block; background: transparent; color: var(--gold-2); box-shadow: none; padding: 18px 0 0; font-weight: 800; font-size: 1.15rem; }
.stats { position: relative; z-index: 2; margin-top: -34px; }
.stats-box { grid-template-columns: repeat(4, 1fr); text-align: start; padding: 16px 18px; gap: 6px; }
.stats-box > div { display: flex; align-items: center; gap: 14px; padding: 6px 14px; }
.stats-box i { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #f6ecd0; color: var(--gold-2); display: grid; place-items: center; }
.stats-box i svg { width: 28px; height: 28px; }
.stats-box p { margin: 0; line-height: 1.3; }
.stats-box strong { font-size: 1.7rem; display: inline; margin-inline-end: 6px; }
.stats-box span { font-size: 14.5px; }
#centers { padding-top: 56px; background: var(--ivory); }
.card { border-radius: 18px; }
.card .ph { position: relative; }
.card .badge { position: absolute; inset-inline-end: 14px; bottom: -22px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--gold-2); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.card .badge svg { width: 24px; height: 24px; }
.card .body { padding-top: 26px; }
.services { background: var(--ivory); padding-top: 24px; }
.svc-grid { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.svc { background: transparent; border: 0; }
.svc .ic { background: #f6ecd0; border: 0; color: var(--green); }
@media (max-width: 900px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero-bg { position: relative; width: 100%; height: 230px; inset: auto; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  [dir="rtl"] .hero-bg { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .hero-inner { min-height: 0; padding-block: 0 36px !important; margin-top: -30px; }
  .stats-box { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .stats-box { grid-template-columns: 1fr; } .stats-box > div { border: 0 !important; } }
.hero-bg { width: 58%; object-position: 50% 45%; }
[dir="rtl"] .hero-bg { -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 98%); mask-image: linear-gradient(to right, #000 40%, transparent 98%); }
[dir="ltr"] .hero-bg { -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 98%); mask-image: linear-gradient(to left, #000 40%, transparent 98%); }
@media (max-width: 900px) { .hero-bg { width: 100%; } }
.card .ph { padding: 0; overflow: visible; }
.card .ph img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px 18px 0 0; }
.preview-bar { background: #fff3cf; color: #6d531a; text-align: center; font-size: 13.5px; padding: 5px 12px; font-weight: 600; }


/* ===== v2b: closer match to approved reference ===== */
.hero-bg { width: 64%; object-position: 40% 40%; }
.hero { background: radial-gradient(700px 360px at 80% 20%, #fffdf2, transparent 70%), #f8f5ea; }
.card .ph img { aspect-ratio: 3.1/1; border-radius: 0; }
.card .ph { aspect-ratio: auto; }
.services { background: var(--ivory); padding-block: 40px 24px; }
.svc-grid { border-radius: 26px; background: rgba(255,255,255,.85); }
#centers { background: var(--ivory); padding-top: 36px; }
.svc .ic { background: #f6ecd0; border: 0; }
.stats-box { border-radius: 28px; }
.header .brand img { height: 64px; width: auto; }
.footer .logo { background: #f6f3e8; border-radius: 14px; padding: 8px 14px; }
.footer .logo img { height: 56px; }

/* hero tagline: soft swoosh melting into the page (as in reference) */
.hero-badge { position: absolute; z-index: 2; inset-inline-end: 0; bottom: 0; width: min(38vw, 440px); aspect-ratio: 380/230; pointer-events: none; }
.hero-badge .hb-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
[dir="ltr"] .hero-badge .hb-shape { transform: scaleX(-1); }
.hb-text { position: absolute; inset-inline-start: 7%; width: 58%; bottom: 17%; transform: rotate(-5deg); text-align: center; font-family: "Aref Ruqaa", "Cairo", serif; font-weight: 700; font-size: clamp(1.3rem, 2.15vw, 2rem); line-height: 1.35; color: var(--green); text-wrap: balance; }
[dir="ltr"] .hb-text { transform: rotate(5deg); }
.hb-text span { display: block; }
.hb-line { display: block; width: 70%; height: 10px; margin: 2px auto 0; }
.hb-heart { display: block; width: 16px; height: 16px; margin: 3px auto 0; }
@media (max-width: 900px) { .hero-badge { width: 230px; bottom: auto; top: 80px; } .hb-text { font-size: 1.1rem; } }
/* tagline: no backing shape, moved toward the page edge, legible straight on the photo */
.hero-badge .hb-shape { display: none; }
.hb-text { inset-inline-start: auto; inset-inline-end: 5%; width: 62%; bottom: 20%; color: #fff; text-shadow: 0 2px 10px rgba(16,40,30,.65), 0 0 2px rgba(16,40,30,.5); }
.hb-heart path { fill: #f3cf7a; }
.hb-line path { stroke: #f3cf7a; }
.hb-text { color: #0b2a20; text-shadow: 0 0 10px rgba(255,255,255,.75), 0 0 3px rgba(255,255,255,.9); }
.hb-heart path { fill: #a9812c; }
.hb-line path { stroke: #a9812c; }
.hb-text { color: #fff; text-shadow: 0 2px 10px rgba(16,40,30,.7), 0 0 2px rgba(16,40,30,.55); }
.hb-heart path { fill: #f3cf7a; }
.hb-line path { stroke: #f3cf7a; }

/* center pages */
.card { position: relative; }
.card .soon { text-decoration: none; }
.card .soon::after { content: ""; position: absolute; inset: 0; }
.c-hero { position: relative; color: #fff; background: var(--green); overflow: hidden; }
.c-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,63,48,.88), rgba(16,63,48,.35)); }
[dir="rtl"] .c-hero::after { background: linear-gradient(270deg, rgba(16,63,48,.88), rgba(16,63,48,.35)); }
.c-hero-in { position: relative; z-index: 1; padding-block: 56px; }
.c-hero h1 { margin: 10px 0 6px; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.c-hero p { margin: 0; font-size: 1.15rem; opacity: .92; }
.c-back { color: #f3dc9e; text-decoration: none; font-weight: 700; }
.c-sec { padding-block: 48px; }
.c-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.c-grid h2 { color: var(--green); margin: 28px 0 10px; font-size: 1.5rem; }
.c-grid h2:first-child { margin-top: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid #ead9a8; border-radius: 99px; padding: 6px 16px; font-weight: 600; color: var(--green); }
.c-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 96px; }
.c-info h3, .c-info h2 { font-size: 1.15rem; margin: 0 0 12px; color: var(--green); }
.c-info dt { color: var(--muted); font-size: 14px; margin-top: 12px; }
.c-info dd { margin: 2px 0 0; font-weight: 600; }
.pill-d { background: #f1e5bf; color: #6d531a; border-radius: 99px; padding: 2px 12px; font-size: 13px; }
.c-info .btn { margin-top: 20px; }
@media (max-width: 900px) { .c-grid { grid-template-columns: 1fr; } .c-info { position: static; } }

/* about + contact */
.about-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 36px; align-items: center; }
.about-fig .circle { border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 6px solid #fff; box-shadow: var(--shadow); max-width: 300px; margin-inline: auto; }
.about-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.progs { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 14px; }
.progs li { display: flex; gap: 16px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
.progs b { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #f6ecd0; color: var(--gold-2); display: grid; place-items: center; }
.progs h3 { margin: 0 0 2px; color: var(--green); font-size: 1.05rem; } .progs p { margin: 0; color: var(--muted); font-size: 15px; }
.cform { display: grid; gap: 16px; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cform label { display: grid; gap: 6px; font-weight: 600; color: var(--green); }
.cform input, .cform select, .cform textarea { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--ivory); color: var(--ink); }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(197,156,67,.25); }
.cform .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.cform .chk input { width: 20px; height: 20px; margin-top: 4px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform .btn { justify-self: start; }
.warn { margin: 0; background: #fff3cf; color: #6d531a; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.fmsg { margin: 0; font-weight: 600; } .fmsg.err { color: #a33; } .fmsg.ok { color: var(--green); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* bilingual dynamic content (theme) */
html[lang="ar"] .bi-en { display: none; }
html[lang="en"] .bi-ar { display: none; }
.admin-bar .header { top: 32px; }
.wp-block-image img { max-width: 100%; height: auto; }
.entry-content { max-width: 760px; }
.entry-content img { border-radius: 14px; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.meta { color: var(--muted); font-size: 14px; }
.doc-wrap h2 { color: var(--green); margin: 28px 0 8px; } .doc-wrap p.warn { margin-bottom: 8px; }


/* ===== navigation + motion ===== */
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list > li { position: relative; }
.nav a { position: relative; transition: color .2s, background .2s; }
.nav-list > li > a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2.5px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-list > li > a:hover::after, .nav-list > li > a:focus-visible::after, .nav-list > .current-menu-item > a::after { transform: scaleX(1); }
.nav a[href="#top"] { box-shadow: none; }
.nav-list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; inset-inline-start: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(16,63,48,.16); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, transform .22s, visibility .22s; z-index: 60; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { display: block; padding: 9px 14px; border-radius: 9px; }
.nav-list .sub-menu a::after { display: none; }
.nav-list .menu-item-has-children > a { padding-inline-end: 22px; }
.nav-list .menu-item-has-children > a::before { content: ""; position: absolute; inset-inline-end: 9px; top: 50%; width: 6px; height: 6px; border-inline-end: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.nav-list .menu-item-has-children:hover > a::before { transform: translateY(-30%) rotate(225deg); }
.header { transition: box-shadow .25s, background .25s; }
.header .brand img { transition: height .25s; }
.header.scrolled .brand img { height: 52px; }
.menu-btn svg { transition: transform .3s; } .menu-btn[aria-expanded="true"] svg { transform: rotate(90deg); }

/* buttons: lift on hover, press on click, ripple */
.btn, .lang { position: relative; overflow: hidden; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s, color .2s; }
.btn:hover { box-shadow: 0 8px 20px rgba(16,63,48,.18); }
.btn:active, .lang:active { transform: scale(.95); box-shadow: none; }
.btn .rip { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: rip .6s ease-out forwards; pointer-events: none; }
.btn-ghost .rip { background: rgba(197,156,67,.35); }
@keyframes rip { to { transform: scale(4); opacity: 0; } }
.svc, .why-item, .par, .doc { transition: transform .25s, box-shadow .25s; }
.why-item:hover, .par:hover, .doc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,63,48,.12); }
.card .badge { transition: transform .3s; } .card:hover .badge { transform: scale(1.1) rotate(-6deg); }
.card .ph img { transition: transform .5s; } .card:hover .ph img { transform: scale(1.04); }
.card .ph { overflow: hidden; }

/* page load + section reveal */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body { animation: pageIn .5s ease-out both; }
.sec-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.sec-reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav { display: block !important; max-height: 0; overflow: hidden; padding: 0 !important; opacity: 0; transition: max-height .4s ease, opacity .3s ease; }
  .nav.open { max-height: 80vh; opacity: 1; overflow-y: auto; padding-bottom: 10px !important; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 14px; min-width: 0; }
  .nav-list > li > a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { body { animation: none; } .sec-reveal { opacity: 1; transform: none; } .btn .rip { display: none; } * { transition-duration: .01ms !important; } }

/* QA fixes: mobile header order, skip link hidden until focus */
.skip { top: 0; inset-inline-start: 8px; transform: translateY(-250%); transition: transform .2s; }
.skip:focus { transform: none; top: 8px; z-index: 1000; }
@media (max-width: 900px) {
  .header .container { display: flex; flex-wrap: wrap; align-items: center; }
  .header .brand { order: 1; }
  .header .header-actions { order: 2; margin-inline-start: auto; }
  .header .menu-btn { order: 3; margin-inline-start: 0; }
  .header .nav { order: 4; width: 100%; flex-basis: 100%; }
  .header .brand img { height: 52px; }
  .hero-bg { object-position: 55% 30%; }
}

/* sample image label + services grid without an orphan row */
.card .ph .sample-tag { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(16,63,48,.82); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.card .ph img { display: block; width: 100%; }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(7, 1fr); } }

/* active indicator: real current page, or the section currently in view (scroll-spy) */
.nav-list > li.is-active > a::after { transform: scaleX(1); }
.nav-list > li.is-active > a { color: var(--green-2); }
.nav-list.spy-on > li.current-menu-item:not(.is-active) > a::after { transform: scaleX(0); }


/* donation page */
.don { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.don h2 { color: var(--green); margin: 0 0 16px; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
.steps b { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #f6ecd0; color: var(--gold-2); display: grid; place-items: center; }
.steps h3 { margin: 0 0 2px; color: var(--green); font-size: 1.05rem; } .steps p { margin: 0; color: var(--muted); font-size: 15px; }
.don-cta { margin: 8px 0 0; } .btn-wa { font-size: 1.1rem; padding: 14px 30px; gap: 10px; }
.safe { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 15px; } .safe li { margin-bottom: 8px; }
html[lang="ar"] .btn-wa.bi-en, html[lang="en"] .btn-wa.bi-ar { display: none; }
@media (max-width: 900px) { .don { grid-template-columns: 1fr; } }

/* donate band */
.donate-band { background: linear-gradient(135deg, #f6ecd0, #fff7e0); padding-block: 36px; border-block: 1px solid #ead9a8; }
.donate-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.donate-band h2 { margin: 0; color: var(--green); font-size: 1.6rem; } .donate-band p { margin: 4px 0 0; color: var(--muted); }

/* real center photos (4:3) + service descriptions */
.card .ph { aspect-ratio: 4/3; }
.card .ph img { aspect-ratio: 4/3 !important; object-fit: cover; width: 100%; height: 100%; }
.svc-desc { text-align: start; padding: 20px; }
.svc-desc .ic { margin: 0 0 10px; }
.svc-desc h3 { margin-bottom: 6px; }
.svc-desc p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.archive .svc-grid, .post-type-archive-da_service .svc-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vision { margin-top: 36px; background: linear-gradient(135deg, #f6ecd0, #fff7e0); border: 1px solid #ead9a8; border-radius: 20px; padding: 28px 32px; } .vision h2 { margin: 0 0 8px; } .vision p { margin: 0; font-size: 1.15rem; color: var(--ink); }

.social { display: flex; gap: 10px; } .social .soc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #f3dc9e; transition: transform .2s, background .2s; padding: 0; } .social .soc:hover { background: var(--gold); color: #1d1606; transform: translateY(-2px); }


/* fix: location badge must not collide with long center titles -> keep it inside the photo */
.card .badge { bottom: 12px; inset-inline-end: 12px; width: 40px; height: 40px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.card .badge svg { width: 20px; height: 20px; }
.card .body { padding-top: 18px; }

/* ===== responsive fixes: all phones (320-900px) ===== */
@media (max-width: 900px) {
  .hero-bg, [dir="rtl"] .hero-bg, [dir="ltr"] .hero-bg {
    position: relative; inset: auto; width: 100%; height: 250px; object-fit: cover; object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent); mask-image: linear-gradient(to bottom, #000 74%, transparent);
  }
  .hero { display: block; min-height: 0; }
  .hero-inner { margin-top: 0; padding-block: 8px 30px !important; min-height: 0; }
  .hero-text { max-width: none; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); margin-top: 8px; }
  .hero-badge { top: 178px; bottom: auto; width: 190px; inset-inline-end: 6px; inset-inline-start: auto; }
  .hb-text { font-size: 1.05rem; inset-inline-end: 8%; width: 74%; bottom: 10%; }
  .stats { margin-top: -18px; }
}
@media (max-width: 420px) {
  .container { width: min(var(--max), 100% - 24px); }
  .stats-box { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .stats-box > div { padding: 6px 8px; }
  .stats-box strong { font-size: 1.5rem; }
  .btn { padding: 10px 18px; }
  .hero .actions { gap: 8px; }
  .ctr-grid, .list-grid, .why-grid, .par-grid { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 1.55rem; }
  .donate-band .container { flex-direction: column; align-items: flex-start; }
  .footer .grid { grid-template-columns: 1fr; }
}

/* services on phones: compact two-column rows (icon beside the name), last odd item spans the full row */
@media (max-width: 640px) {
  .services { padding-block: 32px 20px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-radius: 20px; }
  .svc:not(.svc-desc) { display: flex; flex-direction: row; align-items: center; gap: 10px; text-align: start; padding: 8px 10px; background: #fbf8ee; border: 1px solid #efe6c8; border-radius: 14px; min-height: 58px; }
  .svc:not(.svc-desc) .ic { width: 38px; height: 38px; margin: 0; flex: none; box-shadow: none; }
  .svc:not(.svc-desc) .ic svg { width: 20px; height: 20px; }
  .svc:not(.svc-desc) h3 { font-size: 13px; line-height: 1.45; margin: 0; }
  .svc:not(.svc-desc):last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc:hover { transform: none; }
}
@media (max-width: 340px) { .svc-grid { grid-template-columns: 1fr; } }

/* anti-spam honeypot: hide it without pushing the page wider (the old off-screen offset caused horizontal scroll) */
.cform { position: relative; }
.cform .hp { position: absolute; inset-inline-start: 0; top: 0; left: auto; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

/* phones only: collapsed services (first 4 + arrow); desktop untouched */
.svc-more { display: none; }
@media (max-width: 640px) {
  #svc-grid:not(.expanded) .svc:nth-child(n+5) { display: none; }
  .svc-more { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin: 14px 0 0; padding: 10px 8px 6px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--gold-2); }
  .svc-more svg { width: 34px; height: 34px; padding: 4px; border-radius: 50%; background: #f6ecd0; color: var(--green); transition: transform .3s; animation: nudge 1.6s ease-in-out infinite; }
  .svc-more[aria-expanded="true"] svg { transform: rotate(180deg); animation: none; }
  .svc-more .svc-more-close { display: none; }
  .svc-more[aria-expanded="true"] .svc-more-open { display: none; }
  .svc-more[aria-expanded="true"] .svc-more-close { display: inline; }
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .svc-more svg { animation: none; } }

/* ===== phone polish: comfortable tap targets (>=44px) and tighter inner-page headers ===== */
@media (max-width: 900px) {
  .topbar .info { gap: 0 14px; }
  .topbar a { display: inline-flex; align-items: center; min-height: 44px; }
  .lang { min-height: 44px; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .footer a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .footer .social a.soc { min-height: 44px; }
  .card .body h3 a { display: inline-block; padding-block: 8px; }
  .card .soon { display: inline-flex; align-items: center; min-height: 44px; }
  .cform .chk { padding: 6px 0; }
  .cform .chk input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
  .center-cta .btn, .doc .btn { min-height: 44px; }
}
@media (max-width: 640px) {
  .c-hero-in { padding-block: 20px 24px; }
  .c-hero h1 { font-size: clamp(1.55rem, 7vw, 2rem); margin: 4px 0 4px; line-height: 1.3; }
  .c-hero p { font-size: 1rem; }
  .c-back { display: inline-flex; align-items: center; min-height: 36px; }
  .c-sec { padding-block: 26px; }
  section { padding-block: 38px; }
  .sec-head { margin-bottom: 20px; }
  .why-item { padding: 14px 16px; }
  .why-item h3 { font-size: 1.05rem; }
  .why-item p { font-size: 14.5px; }
}

.c-info dd a { display: inline-block; padding-block: 8px; }


.note a, .par a:not(.btn) { display: inline-block; padding-block: 10px; }


/* ===== narrow phones (<=420px): scale the hero typography to the screen width ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(1.4rem, 7.2vw, 2.4rem); line-height: 1.28; }
  .hero p { font-size: clamp(.92rem, 3.9vw, 1.06rem); line-height: 1.75; }
}
@media (max-width: 420px) {
  .hero-bg, [dir="rtl"] .hero-bg, [dir="ltr"] .hero-bg { height: 220px; }
  .hero-badge { top: 150px; width: 160px; }
  .hb-text { font-size: .95rem; }
  .hero .btn { padding: 10px 16px; font-size: .95rem; }
  .hero .actions { gap: 8px; margin-top: 16px; }
}

@media (max-width: 900px) { .hero p { font-size: clamp(.95rem, 4vw, 1.06rem); } }


/* ===== phone top bar: one balanced line (phone + email), location label hidden, compact preview banner ===== */
@media (max-width: 640px) {
  .topbar .container { justify-content: center; padding-block: 0; }
  .topbar .info { flex-wrap: nowrap; justify-content: center; gap: 0 16px; font-size: 13px; width: 100%; }
  .topbar .info > span { display: none; }
  .topbar a { min-height: 40px; white-space: nowrap; }
  .preview-bar { font-size: 12px; padding: 5px 12px; line-height: 1.5; }
}
@media (max-width: 330px) {
  .topbar .info { gap: 0 10px; font-size: 12px; }
}

/* project status badge */
.status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 99px; margin-bottom: 8px; background: #e3f0e8; color: var(--green); }
.status.st-implementing { background: #fff0cf; color: #7a5a14; }
.status.st-completed { background: #e8e8e8; color: #444; }
.status.st-planned { background: #e5ecfa; color: #2c4a7a; }

/* center "what it offers" list + donation-use paragraph */
.check { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.check li { position: relative; padding-inline-start: 30px; line-height: 1.7; }
.check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 18px; height: 18px; border-radius: 50%; background: #f3e6bf; box-shadow: inset 0 0 0 5px #fff0, inset 0 0 0 1px #e5d49c; }
.check li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.55em + 4px); width: 6px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.don-use { color: var(--ink); line-height: 1.9; max-width: 62ch; }

/* center page: tidy cards for About / What it offers / Services, WhatsApp contact */
.center-about, .offer { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.center-about h2, .offer h2 { position: relative; margin: 0 0 16px; padding-bottom: 10px; }
.center-about h2::after, .offer h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--gold); }
.center-intro { margin: 0; font-size: 1.08rem; line-height: 1.9; }
.offer .check { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: 0; }
.offer .check li { background: #fbf8ee; border: 1px solid #efe6c8; border-radius: 14px; padding: 12px 14px; padding-inline-start: 50px; display: flex; align-items: center; min-height: 52px; }
.offer .check li::before { inset-inline-start: 14px; top: 50%; margin-top: -9px; }
.offer .check li::after { inset-inline-start: 20px; top: 50%; margin-top: -6px; }
.offer .chips { margin-bottom: 4px; }
.c-info .wa-row { display: grid; gap: 10px; margin-top: 18px; }
.c-info .wa-row .btn { justify-content: center; gap: 8px; width: 100%; }
.c-info .alt-link { text-align: center; font-size: 14px; color: var(--muted); text-decoration: underline; padding: 8px 0; }
html[lang="ar"] .c-info .wa-row .btn.bi-en, html[lang="en"] .c-info .wa-row .btn.bi-ar { display: none; }
@media (max-width: 640px) { .center-about, .offer { padding: 18px 16px; } .offer .check { grid-template-columns: 1fr; } }

/* projects: whole-card links, icons, equal heights, details page */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.proj { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); text-decoration: none; color: inherit; border: 1.5px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.proj::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #e8cf8a); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
[dir="ltr"] .proj::before { transform-origin: left; }
.proj:hover, .proj:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16,63,48,.16); border-color: #ead9a8; }
.proj:hover::before, .proj:focus-visible::before { transform: scaleX(1); }
.proj-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; background: #f6ecd0; color: var(--green); display: grid; place-items: center; transition: background .25s, color .25s; }
.proj-ic svg { width: 28px; height: 28px; }
.proj:hover .proj-ic { background: var(--green); color: #fff; }
.proj-ic-lg { width: 64px; height: 64px; margin-bottom: 10px; } .proj-ic-lg svg { width: 32px; height: 32px; }
.proj-body { display: flex; flex-direction: column; flex: 1; }
.proj-body .status { align-self: flex-start; margin-bottom: 10px; }
.proj h3 { margin: 0 0 6px; color: var(--green); font-size: 1.12rem; line-height: 1.5; text-decoration: none; }
.proj p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 700; font-size: 14px; }
.proj-more i { font-style: normal; transition: transform .25s; }
.proj:hover .proj-more i { transform: translateX(-5px); }
[dir="ltr"] .proj-more i { display: inline-block; transform: scaleX(-1); } [dir="ltr"] .proj:hover .proj-more i { transform: scaleX(-1) translateX(-5px); }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } .proj { padding: 18px; } }

.social .soc svg { width: 22px; height: 22px; }
.social .soc-channel { position: relative; }


/* projects layout v2: balanced rows (incomplete last row is centered), home block = 3 per row */
.proj-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.proj { flex: 0 1 calc((100% - 60px) / 4); min-width: 0; }
@media (max-width: 1100px) { .proj { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 820px)  { .proj { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px)  { .proj { flex-basis: 100%; } }
.proj-grid.proj-3 .proj { flex-basis: calc((100% - 40px) / 3); }
@media (max-width: 820px)  { .proj-grid.proj-3 .proj { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px)  { .proj-grid.proj-3 .proj { flex-basis: 100%; } }

/* audit fixes: hidden headings for outline, phone donate shortcut */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-donate-icon { display: none; align-items: center; gap: 6px; background: var(--gold); color: #1d1606; border-radius: 99px; padding: 8px 12px; font-weight: 800; font-size: 13px; min-height: 40px; }
.btn-donate-icon svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 899px) { .btn-donate-icon { display: inline-flex; } }

/* legal status card + board of trustees */
.legal-card { margin-top: 40px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.legal-card h2 { margin: 0 0 12px; color: var(--green); }
.legal-card dl { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 10px 18px; margin: 0; }
.legal-card dt { color: #566259; font-weight: 600; } .legal-card dd { margin: 0; font-weight: 700; }
.board { margin-top: 48px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.member { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; border-inline-start: 4px solid var(--gold); }
.member strong { color: var(--green); } .member span { color: #566259; font-size: .95rem; }
@media (max-width: 560px) { .legal-card dl { grid-template-columns: 1fr; gap: 2px; } .legal-card dd { margin-bottom: 10px; } }

/* report rows: one per line, compact non-wrapping action button */
.doc-list { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.doc .btn { flex: none; white-space: nowrap; padding: 6px 18px; font-size: 14px; min-height: 40px; }
.doc > span:first-child { flex: 1 1 auto; min-width: 0; }

/* link hub (QR landing page): clean, one column, big tap targets */
body.da-links .topbar, body.da-links .nav, body.da-links .menu-btn, body.da-links .header-actions .btn, body.da-links .btn-donate-icon, body.da-links .footer { display: none; }
body.da-links .header .container { justify-content: space-between; } body.da-links .header .brand { visibility: hidden; }
body.da-links .header-actions { margin-inline-start: auto; }
.lk { padding: 18px 0 56px; background: linear-gradient(180deg, #f6f3e8 0%, #efe9d4 100%); min-height: 70vh; }
.lk-in { max-width: 480px; text-align: center; }
.lk-logo { width: 180px; height: auto; margin: 6px auto 8px; display: block; }
.lk h1 { margin: 0 0 4px; font-size: 1.5rem; color: var(--green); }
.lk-sub { margin: 0 0 22px; color: #566259; }
.lk-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.lk-btn, .lk-btn:hover { text-decoration: none; }
.lk-btn { display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; min-height: 58px; padding: 10px 16px; background: #fff; color: var(--green); border: 1.5px solid #e6dfc8; border-radius: 16px; font-weight: 700; font-size: 1.05rem; box-shadow: 0 4px 14px rgba(16,63,48,.08); transition: transform .15s, box-shadow .15s, border-color .15s; }
.lk-btn:hover, .lk-btn:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(16,63,48,.14); }
.lk-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #f6ecd0; color: var(--green); display: grid; place-items: center; }
.lk-ic svg { width: 22px; height: 22px; }
.lk-t { flex: 1; text-align: start; }
.lk-go { flex: none; color: var(--gold-2); font-size: 1.6rem; line-height: 1; }
html[dir="rtl"] .lk-go { transform: scaleX(-1); }
.lk-wa, .lk-mgr { background: #103F30; color: #fff; border-color: #103F30; }
.lk-wa .lk-ic, .lk-mgr .lk-ic { background: rgba(255,255,255,.14); color: #fff; }
.lk-wa .lk-go, .lk-mgr .lk-go { color: #f3dc9e; }
.lk-don { margin-top: 6px; background: var(--gold); color: #1d1606; border-color: var(--gold); }
.lk-don .lk-ic { background: rgba(255,255,255,.45); color: #1d1606; } .lk-don .lk-go { color: #1d1606; }
.lk-foot { margin: 22px 0 0; color: #6c7a70; font-size: .9rem; }

/* About page: the picture must stay inside its grid column (it was spilling past the left edge) */
.about-grid > * { min-width: 0; }
.about-fig { margin: 0; }
.about-fig .circle { width: 100%; max-width: 300px; }
.about-fig .circle img { display: block; }
