:root{--olive:#77782f;--olive-dark:#55571f;--gold:#c58d25;--gold-soft:#e7c36b;--ink:#25271f;--muted:#6d7065;--paper:#fbfaf5;--white:#fff;--line:#e9e6d9;--radius:22px;--shadow:0 20px 50px rgba(54,56,35,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:system-ui,sans-serif;line-height:1.75}a{color:var(--olive-dark);text-decoration:none}img{max-width:100%;height:auto}.container{width:min(1180px,calc(100% - 40px));margin:auto}.narrow{width:min(820px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-inner{min-height:84px;display:flex;align-items:center;gap:28px}.brand-wrap{margin-inline-end:auto}.mahabba-brand img,.custom-logo{width:150px;max-height:66px;object-fit:contain}.primary-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}.primary-nav a{font-weight:700;color:var(--ink)}.menu-toggle{display:none;border:0;background:none;font-size:26px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 24px;border-radius:999px;font-weight:800;transition:.2s}.btn-primary{background:var(--olive);color:#fff}.btn-primary:hover{background:var(--olive-dark)}.btn-outline{border:1px solid var(--olive);color:var(--olive-dark)}.btn-light{background:#fff;color:var(--olive-dark)}.hero{padding:78px 0;background:radial-gradient(circle at 85% 30%,rgba(197,141,37,.13),transparent 32%),linear-gradient(135deg,#fff 0%,#fbfaf4 100%)}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:70px}.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.18;margin:16px 0 20px;letter-spacing:-1px}.hero p{font-size:19px;color:var(--muted);max-width:760px}.eyebrow{font-size:14px;font-weight:900;color:var(--gold);letter-spacing:.4px}.hero-actions{display:flex;gap:12px;margin:30px 0}.trust-row{display:flex;flex-wrap:wrap;gap:20px;color:var(--muted);font-size:14px}.hero-mark{display:flex;justify-content:center}.hero-mark img{width:min(420px,100%);filter:drop-shadow(0 28px 28px rgba(80,80,40,.10))}.section{padding:82px 0}.section-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:34px}.section h2{font-size:clamp(30px,4vw,48px);line-height:1.25;margin:8px 0}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.project-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.project-card img{width:100%;aspect-ratio:16/10;object-fit:cover}.project-card-body{padding:24px}.project-card h3{font-size:23px;margin:0 0 8px}.project-card p{color:var(--muted)}.project-icon{height:180px;display:grid;place-items:center;font-size:68px;color:var(--gold);background:linear-gradient(135deg,#f8f4e8,#fff)}.impact-section{background:var(--paper)}.impact-box{display:grid;grid-template-columns:1fr 1.2fr;gap:55px;align-items:center}.impact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.impact-grid div{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px}.impact-grid strong{display:block;font-size:40px;color:var(--olive)}.impact-grid span{color:var(--muted)}.values-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:18px;align-items:stretch}.value-card{padding:28px;border:1px solid var(--line);border-radius:20px;background:#fff}.value-card h3{color:var(--olive-dark)}.cta-section{padding-top:20px}.cta-box{background:linear-gradient(135deg,var(--olive-dark),var(--olive));color:#fff;border-radius:30px;padding:44px 48px;display:flex;justify-content:space-between;align-items:center;gap:30px}.site-footer{margin-top:70px;padding:65px 0 20px;background:#202217;color:#ececdd}.site-footer a{color:#fff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:60px}.footer-grid img{filter:brightness(0) invert(1);opacity:.95}.footer-grid ul{list-style:none;padding:0}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:35px;padding-top:18px;font-size:13px;color:#aaa}.content-card{padding:24px 0;border-bottom:1px solid var(--line)}.campaign-hero{padding:70px 0 25px;text-align:center}.campaign-hero img{margin-top:28px;border-radius:26px}.campaign-content{font-size:18px}.mahabba-donate-box{margin-top:35px;padding:28px;border-radius:22px;background:var(--paper);border:1px solid var(--line)}
@media(max-width:900px){.primary-nav,.donate-header{display:none}.menu-toggle{display:block}.primary-nav.is-open{display:block;position:absolute;inset-block-start:100%;inset-inline:20px;background:#fff;padding:20px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.primary-nav.is-open ul{flex-direction:column}.hero-grid,.impact-box,.values-grid{grid-template-columns:1fr}.hero-mark{order:-1}.hero-mark img{width:260px}.cards-grid{grid-template-columns:repeat(2,1fr)}.values-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.cta-box{align-items:start;flex-direction:column}}
@media(max-width:620px){.container{width:min(100% - 28px,1180px)}.hero{padding:48px 0}.hero h1{font-size:42px}.hero-actions{flex-direction:column;align-items:stretch}.cards-grid,.values-grid,.impact-grid,.footer-grid{grid-template-columns:1fr}.section{padding:60px 0}.section-head{align-items:start;flex-direction:column}.cta-box{padding:32px 25px}}

body { text-align: start; overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
html[dir="rtl"] body { font-family: "Cairo", Tahoma, Arial, sans-serif; }
html[dir="rtl"] :is(h1, h2, h3, .eyebrow) { letter-spacing: normal; }
html[dir="rtl"] :is(.hero h1, .section h2) { line-height: 1.45; }
html[dir="rtl"] .hero {
  background: radial-gradient(circle at 15% 30%, rgba(197,141,37,.13), transparent 32%),
    linear-gradient(225deg, #fff, #fbfaf4);
}
.hero-actions, .primary-nav ul { flex-wrap: wrap; }
.mahabba-arrow { display: inline-block; }
html[dir="rtl"] .mahabba-arrow { transform: scaleX(-1); }
.mahabba-languages { position: relative; flex: none; }
.mahabba-languages summary {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}
.mahabba-languages ul {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  z-index: 2;
  min-inline-size: 10rem;
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.mahabba-languages a { display: block; padding: 6px 9px; border-radius: 6px; }
.mahabba-languages a[aria-current] { background: var(--olive-dark); color: #fff; }
.mahabba-languages :is(a, summary):focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
#projects, #contact, #media { scroll-margin-block-start: 105px; }
.media-section { background: var(--paper); }
.media-section :is(video, iframe) { max-inline-size: 100%; }
.media-section .wp-block-embed iframe { inline-size: 100%; aspect-ratio: 16 / 9; block-size: auto; }
@media (max-width: 620px) { .header-inner { gap: 12px; } }
.entry-content :is(input[type="email"], input[type="tel"], input[type="url"]) { direction: ltr; text-align: start; }
@media (max-width: 620px) {
  html[dir="rtl"] .hero h1 { font-size: clamp(30px, 8vw, 42px); }
}


.archive-section { background: var(--paper); }
.archive-photo { margin: 0; }
.archive-photo img { display: block; aspect-ratio: 16 / 10; object-fit: contain; background: var(--paper); }
.archive-photo a { display: block; }
.archive-photo a:focus-visible { outline: 3px solid var(--olive); outline-offset: -3px; }

.giving-hero { padding-block: clamp(28px, 5vw, 76px); background: #f7f5ec; }
.giving-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 64px); align-items: stretch; }
.giving-copy { align-self: center; min-inline-size: 0; }
.giving-copy .eyebrow { color: #605125; }
.giving-copy h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.25; margin-block: 8px 12px; }
.giving-copy p { margin-block: 0 12px; }
.giving-lead { color: var(--olive-dark); font-weight: 800; font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
.giving-pay { margin-block: 22px 14px; padding: clamp(14px, 2.5vw, 25px); background: #fffaf0; border: 1px solid #c69a45; border-block-start: 4px solid var(--gold); border-radius: 22px; }
.giving-pay h2 { margin-block: 0 4px; font-size: 1.3rem; }
.giving-currencies { display: grid; gap: 8px; }
.giving-currencies a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; min-block-size: 50px; border-radius: 12px; background: var(--olive-dark); color: #fff; font-weight: 700; }
.giving-currencies a:hover { background: #393d22; }
.giving-currencies bdi { min-inline-size: 3em; font-family: system-ui, sans-serif; color: #f8df9d; }
.giving-currencies .mahabba-arrow { margin-inline-start: auto; }
.giving-projects { text-decoration: underline; text-underline-offset: .22em; }
.giving-hero a:focus-visible { outline: 3px solid #9c6717; outline-offset: 3px; }
.giving-photo { margin: 0; border-radius: 26px; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #333922; color: #fff; }
.giving-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.giving-photo figcaption { padding: 13px 20px; font-weight: 700; }
.giving-photo figcaption span { display: block; color: #f8df9d; font-size: .85rem; }
@media (max-width: 760px) {
  .giving-grid { grid-template-columns: 1fr; }
  .giving-photo img { aspect-ratio: 16 / 9; height: auto; }
}

.giving-pay h2 { color: var(--olive-dark); }
.giving-currencies a + a { background: #f5e7c4; color: #393d22; }
.giving-currencies a + a:hover { background: #edd8a5; }
.giving-currencies a + a bdi { color: #674914; }

/* v0.4.0 field photography: intentionally preserves v0.3.3 font families. */
.mahabba-hero-photo{position:relative;margin:0;inline-size:100%;border-radius:26px;overflow:hidden;border:8px solid #fff;box-shadow:0 25px 65px rgba(35,45,20,.14);background:#f2f0e4}
.hero .hero-mark img.mahabba-hero-image{display:block;inline-size:100%;block-size:auto;aspect-ratio:4/4.1;object-fit:cover;object-position:center;filter:none}
.mahabba-hero-photo figcaption{position:absolute;inset-inline:12px;inset-block-end:12px;background:rgba(32,34,23,.82);color:#fff;border-radius:12px;padding:9px 15px;font-size:.85rem;line-height:1.55;max-inline-size:calc(100% - 24px)}
.mahabba-field-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.mahabba-field-card{margin:0}
.mahabba-field-card img.mahabba-field-img{display:block;inline-size:100%;aspect-ratio:4/3;object-fit:cover;background:#eee}
.mahabba-field-card .project-card-body{padding:18px}
.mahabba-field-card h3{font-size:1rem;line-height:1.7;margin:0}
.mahabba-field-card a:focus-visible{outline:3px solid var(--olive);outline-offset:-3px}
@media(max-width:900px){.mahabba-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero .hero-mark img.mahabba-hero-image{width:100%;aspect-ratio:16/10}}
@media(max-width:620px){.mahabba-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mahabba-field-card .project-card-body{padding:12px}.mahabba-field-card h3{font-size:.88rem}.mahabba-hero-photo figcaption{font-size:.78rem}}
@media(max-width:380px){.mahabba-field-grid{grid-template-columns:1fr}}

/* Mahabba v0.4.1: images in all programme cards and Media Hub gallery. No font override. */
.project-card .mahabba-project-image {display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--paper);}
.project-card.placeholder .project-card-body {min-height:205px;}
.mahabba-media-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.mahabba-media-card {margin:0;background:#fff;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);}
.mahabba-media-card img {display:block;width:100%;aspect-ratio:16/10;object-fit:cover;}
.mahabba-media-card-content {padding:18px 22px;}
.mahabba-media-card-content h3 {margin:0 0 6px;font-size:19px;}
.mahabba-media-card-content p {margin:0;color:var(--muted);font-size:14px;}
.mahabba-media-single img {max-width:100%;height:auto;}
.mahabba-media-single .entry-content :is(video,iframe){max-width:100%;}
.mahabba-media-single .entry-content iframe {aspect-ratio:16/9;width:100%;height:auto;}
.mahabba-languages summary bdi {min-width:1.2em;display:inline-block;text-align:center;}
@media(max-width:900px){.mahabba-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.mahabba-media-grid{grid-template-columns:1fr}.project-card.placeholder .project-card-body{min-height:0}}

/* v0.5.0 campaign media and project details. Existing font families preserved. */
.mhp-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:36px 0}
.mhp-gallery a{display:block;overflow:hidden;border-radius:16px;background:var(--paper);border:1px solid var(--line)}
.mhp-gallery img{display:block;aspect-ratio:4/3;object-fit:cover;width:100%;height:100%}
.mhp-video{margin:28px 0;position:relative}.mhp-video iframe{max-width:100%;aspect-ratio:16/9;width:100%;height:auto;border:0;border-radius:16px}
.mhp-status{display:inline-block;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:4px 16px;color:var(--olive-dark)}
@media(max-width:640px){.mhp-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}


/* v0.5.1 Smart Hero Slider */
.hero-slider-section{padding-block:42px 72px}.mahabba-hero-slider{position:relative}.mahabba-hero-viewport{position:relative}.mahabba-hero-slide{display:block}.mahabba-hero-slide[hidden]{display:none!important}.mahabba-hero-slide .hero-grid{min-height:580px}.mahabba-hero-slide .hero-copy{padding-block:18px}.mahabba-hero-slide .hero-mark{align-self:stretch}.mahabba-hero-slide .mahabba-hero-photo{height:100%}.mahabba-hero-slide .mahabba-hero-image,.mahabba-hero-slide .hero-mark img.mahabba-hero-image{display:block;width:100%;height:100%;min-height:420px;aspect-ratio:16/12;object-fit:cover;object-position:center}.mahabba-hero-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px}.mahabba-hero-arrow{width:48px;height:48px;border:1px solid var(--line);background:#fff;border-radius:999px;color:var(--olive-dark);font-size:24px;line-height:1;cursor:pointer;box-shadow:var(--shadow)}.mahabba-hero-arrow:hover{background:var(--paper)}.mahabba-hero-dots{display:flex;gap:10px;align-items:center;justify-content:center;flex:1}.mahabba-hero-dot{width:12px;height:12px;border-radius:999px;border:0;background:#d6d1be;cursor:pointer}.mahabba-hero-dot.is-active{width:34px;background:var(--olive-dark)}.mahabba-hero-dot:focus-visible,.mahabba-hero-arrow:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.mahabba-hero-slide .eyebrow{display:inline-flex;align-items:center;gap:8px}.mahabba-hero-slide .eyebrow::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--gold);display:inline-block}.mahabba-hero-slide p{max-width:58ch}@media(max-width:900px){.hero-slider-section{padding-top:24px}.mahabba-hero-slide .hero-grid{min-height:0;gap:24px}.mahabba-hero-slide .hero-mark{order:-1}.mahabba-hero-slide .mahabba-hero-photo{max-width:720px;width:100%}.mahabba-hero-controls{margin-top:8px}}@media(max-width:620px){.mahabba-hero-slide .mahabba-hero-image,.mahabba-hero-slide .hero-mark img.mahabba-hero-image{min-height:260px;aspect-ratio:16/10}.mahabba-hero-arrow{width:42px;height:42px;font-size:20px}.mahabba-hero-dot.is-active{width:24px}}

/* Mahabba v0.5.2 — editorial full-bleed hero; preserve the existing Cairo typography. */
.mahabba-showcase{padding:30px 0 52px;background:linear-gradient(180deg,#f9f7ef 0,#fff 90%)}
.mahabba-showcase-container{width:min(1440px,calc(100% - 50px))}
.mahabba-hero-slider{position:relative}.mahabba-hero-viewport{position:relative;overflow:hidden;border-radius:30px;background:#15291e;box-shadow:0 20px 70px rgba(28,46,33,.18)}
.mahabba-hero-slide{position:relative;isolation:isolate;height:clamp(510px,48vw,650px);display:flex;align-items:center;overflow:hidden}
.mahabba-hero-slide[hidden]{display:none!important}.mahabba-hero-background,.mahabba-hero-shade{position:absolute;inset:0}
.mahabba-hero-background{z-index:-3}.mahabba-hero-background img,.mahabba-hero-background .mahabba-hero-image{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;max-width:none;filter:none!important}
.mahabba-hero-shade{z-index:-2;background:linear-gradient(90deg,rgba(13,31,21,.16),rgba(11,28,20,.46) 40%,rgba(9,25,17,.90) 100%)}
html[dir="ltr"] .mahabba-hero-shade{background:linear-gradient(90deg,rgba(9,25,17,.90),rgba(11,28,20,.46) 60%,rgba(13,31,21,.16))}
.mahabba-hero-content{width:min(690px,86%);padding:clamp(30px,5vw,78px);margin-inline-end:auto;color:#fff;text-align:start}
.mahabba-hero-eyebrow{display:inline-flex;align-items:center;gap:10px;color:#f6dea7;font-size:clamp(.78rem,1.1vw,.98rem);font-weight:800;letter-spacing:0;border:1px solid rgba(255,255,255,.30);background:rgba(10,37,22,.34);padding:6px 15px;border-radius:999px;backdrop-filter:blur(6px)}
.mahabba-hero-spark{width:7px;height:7px;border-radius:100%;background:#eec57d;box-shadow:0 0 0 5px rgba(255,224,166,.14)}
.mahabba-hero-content h1{color:#fff;font-size:clamp(2.25rem,4.2vw,4.6rem);line-height:1.45;font-weight:850;margin:18px 0 12px;max-width:14ch;letter-spacing:normal;text-shadow:0 2px 12px rgba(0,0,0,.12)}
.mahabba-hero-content p{color:#f7f6ef;font-size:clamp(.98rem,1.3vw,1.22rem);line-height:1.9;max-width:44ch;margin:0 0 26px}
.mahabba-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.mahabba-hero-main-cta,.mahabba-hero-side-cta{display:inline-flex;align-items:center;gap:16px;justify-content:center;padding:12px 24px;border-radius:999px;font-weight:800;min-height:52px;transition:transform .18s,background .18s}
.mahabba-hero-main-cta{background:#e5b95f;color:#233b27}.mahabba-hero-main-cta:hover{background:#f1ce83;color:#1c3322;transform:translateY(-2px)}
.mahabba-hero-side-cta{border:1px solid rgba(255,255,255,.72);color:#fff;backdrop-filter:blur(4px);background:rgba(255,255,255,.06)}.mahabba-hero-side-cta:hover{background:rgba(255,255,255,.20);color:#fff}
.mahabba-showcase-navigation{display:flex;gap:25px;justify-content:space-between;align-items:stretch;margin-top:18px}
.mahabba-showcase-arrows{display:flex;gap:9px;align-items:center;flex:none}.mahabba-hero-arrow,.mahabba-hero-toggle{border:1px solid #e7e3d6;background:white;border-radius:50%;width:43px;height:43px;color:#485a3a;box-shadow:none;font-size:23px;display:grid;place-items:center;cursor:pointer}.mahabba-hero-toggle{font-size:15px}.mahabba-hero-arrow:hover,.mahabba-hero-toggle:hover{background:#f5f2e9}
.mahabba-hero-count{font-size:13px;font-family:system-ui,sans-serif;direction:ltr;color:#6e765f;margin-inline-start:6px;display:flex;gap:6px}.mahabba-current-slide{color:#3e5535}.mahabba-count-divider{color:#b6baa9}
.mahabba-hero-previews{display:flex;justify-content:stretch;gap:9px;flex:1;max-width:800px}.mahabba-hero-preview{min-width:0;flex:1;display:flex;align-items:center;gap:12px;text-align:start;padding:10px 14px;border:1px solid #e9e6dc;border-radius:15px;background:#fff;cursor:pointer;color:#4a5042;transition:background .2s,border .2s}.mahabba-hero-preview:hover{background:#f9f7f0}.mahabba-hero-preview.is-active{background:#eff1e6;border-color:#969b6b}
.mahabba-preview-index{font-family:system-ui,sans-serif;color:#a88a42;font-size:13px}.mahabba-preview-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.mahabba-preview-copy strong{color:#818a65;font-size:.72rem}.mahabba-preview-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.87rem;color:#243522;font-weight:750}.mahabba-preview-arrow{margin-inline-start:auto;color:#9ca48b}
.mahabba-hero-preview:focus-visible,.mahabba-hero-arrow:focus-visible,.mahabba-hero-toggle:focus-visible{outline:3px solid #c19435;outline-offset:2px}
@media(max-width:970px){.mahabba-showcase-navigation{flex-direction:column-reverse;gap:13px}.mahabba-hero-previews{max-width:none}.mahabba-hero-slide{height:550px}.mahabba-hero-content{width:min(680px,94%)}.mahabba-hero-content h1{font-size:clamp(2.15rem,5vw,3.6rem)}}
@media(max-width:650px){.mahabba-showcase{padding:14px 0 35px}.mahabba-showcase-container{width:calc(100% - 24px)}.mahabba-hero-viewport{border-radius:19px}.mahabba-hero-slide{height:580px;align-items:end}.mahabba-hero-background img{object-position:center!important}.mahabba-hero-shade,html[dir="ltr"] .mahabba-hero-shade{background:linear-gradient(0deg,rgba(8,28,17,.97) 0%,rgba(8,28,17,.80) 37%,rgba(8,28,17,.1) 89%)}.mahabba-hero-content{width:100%;padding:30px 23px 40px}.mahabba-hero-content h1{font-size:clamp(2rem,7vw,2.9rem);max-width:17ch}.mahabba-hero-content p{font-size:.96rem;line-height:1.8}.mahabba-hero-actions{gap:9px}.mahabba-hero-main-cta,.mahabba-hero-side-cta{font-size:.86rem;padding:11px 16px;min-height:46px}.mahabba-hero-previews{overflow:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:4px}.mahabba-hero-preview{flex:0 0 70%;scroll-snap-align:start}.mahabba-hero-count{margin-inline-start:auto}}
@media(prefers-reduced-motion:reduce){.mahabba-hero-main-cta,.mahabba-hero-preview{transition:none}}

/* Mahabba v0.5.3 — smoothly animated automatic slideshow with clickable project names.
   No font family overrides; Cairo and donation layout remain untouched. */
.mahabba-hero-slider.is-animated .mahabba-hero-viewport {
  display: grid;
  overflow: hidden;
}
.mahabba-hero-slider.is-animated .mahabba-hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.014);
  transition: opacity 750ms ease, transform 1100ms ease, visibility 0s linear 750ms;
}
.mahabba-hero-slider.is-animated .mahabba-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
  transition: opacity 750ms ease, transform 1100ms ease, visibility 0s;
}
.mahabba-hero-slider.is-animated .mahabba-hero-slide .mahabba-hero-content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 750ms ease;
}
.mahabba-hero-slider.is-animated .mahabba-hero-slide.is-active .mahabba-hero-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}
.mahabba-hero-preview {position: relative; overflow: hidden;}
.mahabba-hero-preview.is-active {border-color: var(--olive);}
.mahabba-hero-preview::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  pointer-events: none;
}
.mahabba-hero-preview.is-active.is-progressing::after {
  animation: mahabba-hero-progress var(--mahabba-duration,6500ms) linear both;
}
@keyframes mahabba-hero-progress {from {width: 0;} to {width: 100%;}}
@media (prefers-reduced-motion: reduce) {
  .mahabba-hero-slider.is-animated .mahabba-hero-slide,
  .mahabba-hero-slider.is-animated .mahabba-hero-slide.is-active,
  .mahabba-hero-slider.is-animated .mahabba-hero-slide .mahabba-hero-content,
  .mahabba-hero-slider.is-animated .mahabba-hero-slide.is-active .mahabba-hero-content {
    transition: none !important;
    transform: none !important;
  }
  .mahabba-hero-preview.is-active.is-progressing::after {animation: none;}
}

/* Mahabba v0.6.0: Optional public project-facts section. No font overrides. */
.msm-project-facts{margin:32px 0;padding:24px 28px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.msm-project-facts h2{font-size:clamp(20px,2.5vw,26px);margin:0 0 18px}.msm-project-facts dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0}.msm-project-facts dl div{padding:10px 15px;border-radius:12px;background:#fff}.msm-project-facts dt{font-size:.85rem;color:var(--muted)}.msm-project-facts dd{font-weight:700;margin:3px 0 0}.msm-project-facts p{margin:18px 0 0;white-space:pre-line}


/* Mahabba public project experience (theme v0.6.1). Scope strictly to campaign pages. */
.mh-public-project,.mh-public-archive{--mh-ui-olive:#616d35;--mh-ui-ink:#253024;--mh-ui-muted:#707467;--mh-ui-line:#e7e7d9;--mh-ui-paper:#fafaf5;color:var(--mh-ui-ink)}
.mh-public-breadcrumb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-block:25px;color:var(--mh-ui-muted);font-size:.9rem}.mh-public-breadcrumb a{text-decoration:none}.mh-public-breadcrumb [aria-current]{font-weight:700}
.mh-public-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:center;gap:clamp(20px,4vw,55px);padding:20px 0 48px}
.mh-public-hero-copy{min-width:0;padding-block:16px}.mh-public-eyebrow{display:inline-block;color:#9a762a;font-weight:800;font-size:.9rem;margin-bottom:10px}
.mh-public-status{display:inline-flex;margin-inline-start:9px;border:1px solid #dcdcc6;background:#f5f6eb;color:#566536;font-size:.8rem;font-weight:750;border-radius:999px;padding:4px 13px}.mh-public-status.is-completed{background:#f4f2eb;color:#777260;border-color:#e5dfce}
.mh-public-hero h1{font-size:clamp(2.1rem,4.5vw,3.65rem);line-height:1.35;margin:15px 0 18px;overflow-wrap:anywhere}.mh-public-intro{font-size:clamp(1rem,1.5vw,1.19rem);color:var(--mh-ui-muted);line-height:1.9;margin:0 0 28px}
.mh-public-hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.mh-public-hero-actions .btn{min-height:48px}.mh-public-closed-hint{font-weight:650;color:#60685e}
.mh-public-hero-photo{border-radius:28px;overflow:hidden;aspect-ratio:5/4;box-shadow:0 24px 60px rgba(35,42,25,.12);background:#f0f0e8}.mh-public-hero-photo img{height:100%;width:100%;display:block;object-fit:cover}
.mh-public-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,340px);align-items:start;gap:28px}.mh-public-main{display:grid;gap:24px;min-width:0}
.mh-public-panel{border:1px solid var(--mh-ui-line);border-radius:23px;background:#fff;padding:clamp(20px,2.8vw,33px);box-shadow:0 8px 30px rgba(36,42,25,.035)}
.mh-public-panel h2,.mh-public-facts-wrap h2{font-size:clamp(1.35rem,2.5vw,1.85rem);line-height:1.45;margin:0 0 16px}.mh-public-richtext{line-height:2;font-size:1.04rem;overflow-wrap:anywhere}.mh-public-richtext :first-child{margin-top:0}.mh-public-richtext img,.mh-public-richtext iframe{max-width:100%;height:auto}.mh-public-richtext a{text-decoration:underline;text-underline-offset:3px}
.mh-public-facts-wrap .msm-project-facts{margin:0;padding:clamp(20px,2.8vw,33px);border-radius:23px}
.mh-public-gallery .mhp-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mh-public-gallery .mhp-gallery a{display:block;border-radius:14px;overflow:hidden;background:#f4f3ed}.mh-public-gallery .mhp-gallery img{width:100%;height:220px;object-fit:cover;display:block;transition:transform .2s}.mh-public-gallery .mhp-gallery a:hover img{transform:scale(1.03)}
.mh-public-video .mhp-video{width:100%;aspect-ratio:16/9}.mh-public-video .mhp-video iframe{width:100%;height:100%;border:0;border-radius:14px}
.mh-public-side{position:sticky;top:110px;display:grid;gap:14px}.mh-public-contribution{padding:24px;border:1px solid var(--mh-ui-line);background:var(--mh-ui-paper);border-radius:22px}.mh-public-contribution .mahabba-donate-box{margin:0;padding:0;border:0;background:transparent}.mh-public-contribution h2{font-size:1.3rem;margin:0 0 15px;line-height:1.5}.mh-public-contribution p{font-size:.96rem;color:var(--mh-ui-muted);margin:10px 0}.mh-public-contribution .mahabba-amounts{display:grid;gap:10px}.mh-public-contribution .mahabba-amounts .btn{border-radius:14px;width:100%;min-height:48px;font-size:.92rem;padding:12px 14px}
.mh-public-assurance{background:#fff;border-radius:20px;border:1px solid var(--mh-ui-line);padding:22px}.mh-public-assurance h3{font-size:1rem;margin:0 0 8px}.mh-public-assurance p{margin:0;color:var(--mh-ui-muted);font-size:.9rem;line-height:1.8}
.mh-public-subtle-link{font-weight:800;color:#566536;text-decoration:underline;text-underline-offset:5px}.mh-public-back{padding-block:38px 64px}
.mh-public-archive-heading{background:linear-gradient(135deg,#f5f4e9,#fff);padding:75px 0 60px}.mh-public-archive-heading h1{font-size:clamp(2.3rem,4vw,3.4rem);margin:0 0 14px;line-height:1.35}.mh-public-archive-heading p{font-size:1.1rem;color:var(--mh-ui-muted);max-width:66ch;line-height:1.9;margin:0}.mh-public-archive-body{padding-block:48px 75px}.mh-public-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.mh-public-project-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--mh-ui-line);border-radius:22px;background:#fff;box-shadow:0 14px 30px rgba(33,46,24,.07)}.mh-public-project-cover-link{display:block;aspect-ratio:16/10;background:#f5f2eb}.mh-public-project-card-image{display:block;width:100%;height:100%;object-fit:cover}.mh-public-project-no-image{width:100%;height:100%;display:grid;place-items:center;font-size:3rem;color:#b9a36d}.mh-public-project-card-body{display:flex;flex-direction:column;gap:11px;padding:22px;flex:1}.mh-public-project-card-body .mh-public-status{align-self:start;margin:0}.mh-public-project-card-body h2{font-size:1.35rem;line-height:1.5;margin:0}.mh-public-project-card-body h2 a{color:var(--mh-ui-ink)}.mh-public-project-card-body p{color:var(--mh-ui-muted);line-height:1.8;margin:0 0 8px}.mh-public-project-card-body .mh-public-subtle-link{margin-top:auto}.mh-public-pagination{padding:36px 0}.mh-public-empty{padding:55px 30px;text-align:center;background:var(--mh-ui-paper);border-radius:20px}
@media(max-width:1000px){.mh-public-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mh-public-layout{grid-template-columns:minmax(0,1fr) 290px;gap:18px}}
@media(max-width:760px){.mh-public-hero,.mh-public-layout{grid-template-columns:1fr}.mh-public-hero-photo{grid-row:1;aspect-ratio:16/10}.mh-public-hero{padding:8px 0 28px}.mh-public-side{position:static;grid-row:1}.mh-public-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.mh-public-project-grid{grid-template-columns:1fr}.mh-public-hero-photo{border-radius:18px}.mh-public-gallery .mhp-gallery{gap:8px}.mh-public-gallery .mhp-gallery img{height:145px}.mh-public-hero-actions .btn{width:100%}.mh-public-archive-heading{padding:48px 0 38px}}
@media(prefers-reduced-motion:reduce){.mh-public-gallery .mhp-gallery img{transition:none}}

/* v0.6.2 — monthly donations and sponsorships below existing one-off options */
.mh-donation-extra{margin:32px 0 22px}.giving-pay .mh-donation-extra{margin-inline:0}.mh-donation-extra .mh-donation-portal{width:100%}.mh-donation-extra .mh-donation-choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
