:root {
    --h4h-orange: #f59a18;
    --h4h-orange-deep: #ea8610;
    --h4h-ink: #171717;
    --h4h-body: #767676;
    --h4h-line: #ece8e1;
    --h4h-warm: #f6f3ed;
    --h4h-cream: #fff5e8;
    --h4h-footer: #171717;
    --h4h-footer-bottom: #0f0f0f;
    --h4h-shell: 1440px;
    --h4h-font: "Cairo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #fff; }
body {
    margin: 0;
    color: var(--h4h-ink);
    background: #fff;
    font-family: var(--h4h-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 17px;
    line-height: 1.78;
}
body, button, input, textarea, select, h1, h2, h3, h4, h5, h6, a, p, span, strong, small, blockquote { font-family: var(--h4h-font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.h4h-shell { width: min(calc(100% - 64px), var(--h4h-shell)); margin-inline: auto; }

/* -------------------------------------------------------------
   Header — compact white bar like the approved reference.
------------------------------------------------------------- */
.h4h-header { height: 76px; background: #fff; border-bottom: 1px solid #f4f4f4; position: relative; z-index: 50; }
.h4h-header-inner { height: 100%; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 24px; }
.h4h-brand { display: inline-flex; align-items: center; width: fit-content; color: var(--h4h-orange); font-size: 23px; font-weight: 800; }
.h4h-brand img { max-width: 180px; max-height: 52px; object-fit: contain; }
.h4h-nav { display: flex; align-items: center; justify-content: center; gap: 30px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.h4h-nav a { transition: color .2s ease; }
.h4h-nav a:hover, .h4h-nav a.active { color: var(--h4h-orange); }
.h4h-header-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; }
.h4h-language { border-inline-end: 1px solid #e8e8e8; padding-inline-end: 11px; }
.h4h-search-icon { width: 22px; height: 22px; padding: 2px; border: 0; background: transparent; cursor: pointer; }
.h4h-search-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.h4h-donate-link { color: var(--h4h-orange); font-size: 15px; }
.h4h-mobile-toggle { display: none; border: 0; background: transparent; padding: 5px; }
.h4h-mobile-toggle span { display: block; width: 22px; height: 2px; margin: 4px; background: #111; }

/* -------------------------------------------------------------
   Hero — reference fidelity: one photograph, a SOLID orange side
   panel, no gradient wash. Arabic mirrors the composition.
------------------------------------------------------------- */
.h4h-hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    min-height: 520px;
    max-height: 630px;
    background: #ddd;
}
.h4h-hero-track, .h4h-hero-slide { height: 100%; }
.h4h-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility .7s; will-change: opacity; }
.h4h-hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.h4h-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.h4h-hero-shade { position: absolute; inset: 0; pointer-events: none; background: none !important; }
.h4h-hero-shade::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 38%;
    background: rgba(247, 161, 30, .88);
}
.h4h-hero-main-copy {
    position: absolute;
    inset-inline-start: 68px;
    top: 50%;
    transform: translateY(-50%);
    width: 43%;
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.h4h-hero-main-copy h1 { margin: 0 0 16px; font-size: clamp(38px, 4vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.h4h-hero-main-copy p { max-width: 390px; margin: 0; font-size: 14px; line-height: 1.9; opacity: .96; }
.h4h-hero-panel {
    position: absolute;
    inset-inline-end: 42px;
    top: 50%;
    transform: translateY(-50%);
    width: 29%;
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.h4h-hero-eyebrow { display: block; margin-bottom: 15px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.h4h-hero-panel p { font-size: 12px; line-height: 1.85; margin: 0 0 16px; }
.h4h-hero-progress { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.62); margin: 14px 0 27px; }
.h4h-hero-progress i { display: block; width: 58%; height: 2px; transform: translateY(-.5px); background: #fff; }
.h4h-outline-button { display: inline-flex; min-width: 126px; height: 41px; padding: 0 24px; align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 24px; font-size: 10px; font-weight: 700; letter-spacing: .02em; transition: .2s; }
.h4h-outline-button:hover { background: #fff; color: var(--h4h-orange-deep); }
.h4h-slider-dots { position: absolute; z-index: 3; inset-inline-start: 50%; bottom: 15px; transform: translateX(-50%); display: flex; gap: 10px; direction: ltr; }
.h4h-slider-dots button, .h4h-testimonial-dots button { width: 7px; height: 7px; border: 0; border-radius: 50%; padding: 0; background: #fff; opacity: .78; cursor: pointer; }
.h4h-slider-dots button.is-active { background: var(--h4h-orange); opacity: 1; }

/* -------------------------------------------------------------
   Shared section system — compact reference spacing.
------------------------------------------------------------- */
.h4h-section { padding: 72px 0; }
.h4h-section-heading { text-align: center; max-width: 710px; margin: 0 auto 48px; }
.h4h-section-heading h2 { margin: 0 0 12px; font-size: 38px; line-height: 1.35; font-weight: 700; }
.h4h-section-heading p { margin: 0; color: #7f7f7f; font-size: 16px; line-height: 1.9; }

/* -------------------------------------------------------------
   Featured Causes — four open items, circular pale icons, no cards.
------------------------------------------------------------- */
.h4h-causes { padding-top: 70px; padding-bottom: 82px; }
.h4h-causes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px; align-items: start; }
.h4h-cause-item { text-align: center; display: block; }
.h4h-cause-icon { width: 102px; height: 102px; margin: 0 auto 24px; border-radius: 50%; background: #f5f3ee; display: grid; place-items: center; transition: transform .25s ease, background .25s; }
.h4h-cause-icon-svg { width: 58px; height: 58px; fill: none; stroke: #686868; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.h4h-cause-item h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.45; font-weight: 700; }
.h4h-cause-item p { color: #848484; font-size: 15px; line-height: 1.95; margin: 0 auto; max-width: 205px; }
.h4h-cause-item:hover .h4h-cause-icon { transform: translateY(-3px); background: #f1ede5; }

/* replacement for the six-image gallery: approved Mission + Impact section */
/* -------------------------------------------------------------
   Mission + impact — RI-style repeated SVG texture edge.
   The reference uses an ~800 x 66 SVG texture strip. We mirror
   that behavior locally: a dense irregular paint/grunge edge is
   repeated horizontally at both the top and bottom of the cream
   section. No smooth wave path is used.
------------------------------------------------------------- */
.h4h-mission {
    position: relative;
    overflow: hidden;
    background: #fcf8f3;
    padding: 92px 0 86px;
    min-height: 840px;
}
.h4h-mission::before,
.h4h-mission::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    width: 100%;
    height: 66px;
    z-index: 3;
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 800px 66px;
    pointer-events: none;
}
.h4h-mission::before {
    top: -1px;
    background-image: url('/images/mission-edge-top.svg');
}
.h4h-mission::after {
    bottom: -1px;
    background-image: url('/images/mission-edge-bottom.svg');
}
.h4h-mission > .h4h-shell { width: min(calc(100% - 100px), 1500px); }
.h4h-mission-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); gap: 72px; align-items: stretch; }
.h4h-mission-copy { padding-top: 4px; }
.h4h-kicker { display: block; margin-bottom: 5px; color: var(--h4h-orange); font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.h4h-mission-copy h2 { margin: 0 0 22px; max-width: 700px; font-size: clamp(46px, 5vw, 72px); line-height: 1.13; font-weight: 800; letter-spacing: -.025em; }
.h4h-mission-summary { color: #4f4f4f; max-width: 620px; line-height: 1.95; font-size: 15px; margin: 0; }
.h4h-mission-button { display: inline-flex; height: 51px; min-width: 170px; margin-top: 22px; padding: 0 29px; border: 2px solid var(--h4h-orange); align-items: center; justify-content: center; color: #111; font-size: 11px; font-weight: 800; }
.h4h-mission-rule { display: block; width: 58px; height: 4px; background: var(--h4h-orange); margin: 48px 0 35px; }
.h4h-impact-list { display: grid; gap: 36px; max-width: 650px; }
.h4h-impact-row { display: grid; grid-template-columns: 230px 1fr; gap: 45px; align-items: center; }
html[dir="rtl"] .h4h-impact-row { grid-template-columns: 1fr 230px; }
.h4h-impact-row strong { font-size: clamp(48px, 5vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.h4h-impact-row span { font-size: 17px; line-height: 1.75; font-weight: 500; }
.h4h-mission-image-wrap { margin: 50px 0 0; min-height: 680px; align-self: stretch; }
.h4h-mission-image-wrap img { width: 100%; height: 100%; min-height: 680px; max-height: 760px; object-fit: cover; object-position: center; }

/* -------------------------------------------------------------
   Reference three-card blocks.
------------------------------------------------------------- */
.h4h-feature-cards { padding-top: 76px; }
.h4h-card-grid, .h4h-event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.h4h-cause-card { display: flex; flex-direction: column; height: 100%; background: #f6f3ed; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
.h4h-cause-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,.06); }
.h4h-card-image { height: 230px; overflow: hidden; background: #ece8e1; }
.h4h-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h4h-cause-card:hover .h4h-card-image img { transform: scale(1.025); }
.h4h-card-body { padding: 23px 24px 21px; display: flex; flex: 1; flex-direction: column; }
.h4h-card-category { color: var(--h4h-orange); font-size: 12px; font-weight: 700; }
.h4h-card-body h3 { margin: 7px 0 10px; font-size: 22px; line-height: 1.45; font-weight: 700; }
.h4h-card-body p { margin: 0; color: #7d7d7d; font-size: 15px; line-height: 1.9; flex: 1 1 auto; }
.h4h-card-progress { height: 3px; margin: 20px 0 11px; margin-top: auto; background: #dfddd7; overflow: hidden; }
.h4h-card-progress i { display: block; height: 100%; width: 100%; background: var(--h4h-orange); }
.h4h-card-read { font-size: 13px; font-weight: 800; }

/* Volunteers */
.h4h-volunteers { padding-top: 70px; }
.h4h-volunteer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.h4h-volunteer-photo { height: 250px; overflow: hidden; background: #eee; }
.h4h-volunteer-photo img { width: 100%; height: 100%; object-fit: cover; }
.h4h-volunteer-grid h3 { margin: 12px 0 2px; font-size: 16px; font-weight: 700; }
.h4h-volunteer-grid span { color: var(--h4h-orange); font-size: 12px; }

/* Quote / testimonial — reference composition: lowered portrait, centered quote, no caption. */
.h4h-testimonial-section { padding: 54px 0 88px; }
.h4h-testimonial-card { position: relative; min-height: 410px; background: #f7f4ee; overflow: hidden; }
.h4h-testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/testimonial-world-map.svg') center center / cover no-repeat;
    opacity: .58;
    pointer-events: none;
}
.h4h-testimonial {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 62px 10% 72px;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: opacity .35s, visibility .35s;
}
.h4h-testimonial.is-active { opacity: 1; visibility: visible; }
.h4h-testimonial img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 38px; border: 5px solid rgba(255,255,255,.96); }
.h4h-testimonial p { max-width: 1040px; margin: 0 auto; font-size: 22px; line-height: 1.85; font-style: italic; font-weight: 500; }
.h4h-testimonial-dots { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; direction: ltr; }
.h4h-testimonial-dots button { width: 9px; height: 9px; background: #1a1a1a; opacity: 1; }
.h4h-testimonial-dots button.is-active { background: var(--h4h-orange); }

/* Latest events/news */
.h4h-events { padding-top: 63px; padding-bottom: 78px; }
.h4h-event-card { display: flex; flex-direction: column; height: 100%; background: #f6f3ed; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.h4h-event-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,.06); }
.h4h-event-image { position: relative; height: 220px; overflow: hidden; background: #ece8e1; }
.h4h-event-image img { width: 100%; height: 100%; object-fit: cover; }
.h4h-date-badge { position: absolute; inset-inline-start: 0; top: 0; width: 45px; min-height: 48px; background: var(--h4h-orange); color: #fff; display: grid; place-items: center; padding: 5px 3px; line-height: 1; text-align: center; }
.h4h-date-badge strong { font-size: 17px; }
.h4h-date-badge small { font-size: 9px; }
.h4h-event-body { padding: 22px 23px 21px; display: flex; flex: 1; flex-direction: column; }
.h4h-event-body h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.5; font-weight: 700; }
.h4h-event-body p { margin: 0 0 13px; color: #7d7d7d; font-size: 14px; line-height: 1.85; flex: 1 1 auto; }
.h4h-event-body > span { font-size: 13px; font-weight: 800; margin-top: auto; }

/* -------------------------------------------------------------
   Footer — black / charcoal reference and clear world map.
------------------------------------------------------------- */
.h4h-footer { color: #d3d3d3; }
.h4h-footer-main { background: var(--h4h-footer); padding: 68px 0 58px; }
.h4h-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .75fr 1.1fr; gap: 58px; align-items: start; }
.h4h-footer h3 { margin: 0 0 22px; color: #fff; font-size: 18px; font-weight: 700; }
.h4h-footer p, .h4h-footer li, .h4h-footer a { font-size: 14px; line-height: 1.95; }
.h4h-footer-about p { margin: 0 0 8px; color: #9b9b9b; }
.h4h-footer-about strong { color: var(--h4h-orange); }
.h4h-footer-news, .h4h-footer-links { list-style: none; margin: 0; padding: 0; }
.h4h-footer-news li { border-bottom: 1px solid #2d2d2d; padding: 7px 0; display: grid; gap: 2px; }
.h4h-footer-news small { color: var(--h4h-orange); font-size: 11px; }
.h4h-footer-links li { position: relative; padding-inline-start: 10px; }
.h4h-footer-links li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--h4h-orange); }
.h4h-world-map { width: 100%; max-width: 350px; margin-top: 3px; }
.h4h-world-map-image { width: 100%; height: auto; display: block; object-fit: contain; opacity: .96; }
.h4h-footer-bottom { background: var(--h4h-footer-bottom); }
.h4h-footer-bottom-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: #858585; }
.h4h-socials { display: flex; gap: 8px; }
.h4h-socials a { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #232323; color: #aaa; font-size: 9px; }
.h4h-back-top { position: fixed; inset-inline-end: 15px; bottom: 15px; width: 29px; height: 29px; border: 0; border-radius: 2px; background: var(--h4h-orange); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; z-index: 80; }
.h4h-back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* -------------------------------------------------------------
   Temporary functional content-detail shell. Internal pages will be
   art-directed later, but homepage Read More links work now.
------------------------------------------------------------- */
.h4h-detail-main { min-height: 70vh; }
.h4h-detail-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; background: #171717; color: #fff; overflow: hidden; }
.h4h-detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.h4h-detail-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.h4h-detail-hero-inner { position: relative; z-index: 2; padding-top: 95px; padding-bottom: 55px; }
.h4h-detail-kicker { color: var(--h4h-orange); font-size: 11px; font-weight: 800; }
.h4h-detail-hero h1 { max-width: 900px; margin: 8px 0 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.2; font-weight: 800; }
.h4h-detail-content { padding: 70px 0 85px; }
.h4h-detail-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 65px; align-items: start; }
.h4h-detail-copy { font-size: 15px; line-height: 2; color: #4d4d4d; }
.h4h-detail-copy h2, .h4h-detail-copy h3 { color: #171717; line-height: 1.4; margin-top: 1.7em; }
.h4h-detail-meta { background: #f6f3ed; padding: 25px; }
.h4h-detail-meta dl { margin: 0; display: grid; gap: 15px; }
.h4h-detail-meta dt { color: #999; font-size: 10px; }
.h4h-detail-meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.h4h-detail-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; margin-top: 35px; }
.h4h-detail-gallery img { width: 100%; height: 260px; object-fit: cover; }
.h4h-detail-back { display: inline-flex; margin-bottom: 22px; color: var(--h4h-orange); font-size: 11px; font-weight: 800; }

/* -------------------------------------------------------------
   Responsive
------------------------------------------------------------- */
@media (max-width: 1050px) {
    .h4h-header-inner { grid-template-columns: 150px 1fr auto; }
    .h4h-nav { gap: 16px; }
    .h4h-hero { min-height: 440px; }
    .h4h-hero-main-copy { inset-inline-start: 42px; width: 45%; }
    .h4h-hero-panel { inset-inline-end: 28px; width: 31%; }
    .h4h-mission-layout { grid-template-columns: 1.1fr .9fr; gap: 48px; }
    .h4h-mission-image-wrap { min-height: 600px; }
    .h4h-mission-image-wrap img { min-height: 600px; }
    .h4h-footer-grid { gap: 32px; }
}

@media (max-width: 850px) {
    .h4h-mission > .h4h-shell { width: min(calc(100% - 42px), var(--h4h-shell)); }
    .h4h-header-inner { grid-template-columns: 1fr auto auto; }
    .h4h-mobile-toggle { display: block; order: 2; }
    .h4h-nav { display: none; position: absolute; top: 70px; inset-inline: 0; background: #fff; padding: 22px 28px 27px; box-shadow: 0 10px 30px rgba(0,0,0,.08); flex-direction: column; align-items: flex-start; gap: 13px; }
    .h4h-nav.is-open { display: flex; }
    .h4h-header-actions { order: 3; }
    .h4h-search-icon { display: none; }
    .h4h-hero { width: 100%; aspect-ratio: auto; height: 560px; max-height: none; }
    .h4h-hero-shade::after { width: 48%; }
    .h4h-hero-main-copy { inset-inline: 31px; top: 33%; transform: none; width: auto; }
    .h4h-hero-panel { inset-inline: 31px; top: auto; bottom: 38px; transform: none; width: auto; }
    .h4h-causes-grid { grid-template-columns: repeat(2,1fr); row-gap: 50px; }
    .h4h-mission { min-height: 0; }
    .h4h-mission-layout { grid-template-columns: 1fr; }
    .h4h-mission-image-wrap { margin-top: 0; min-height: 480px; order: -1; }
    .h4h-mission-image-wrap img { min-height: 480px; max-height: 590px; }
    .h4h-card-grid, .h4h-event-grid { grid-template-columns: 1fr 1fr; }
    .h4h-volunteer-grid { grid-template-columns: 1fr 1fr; }
    .h4h-footer-grid { grid-template-columns: 1fr 1fr; }
    .h4h-detail-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .h4h-shell { width: min(calc(100% - 28px), var(--h4h-shell)); }
    .h4h-header-actions .h4h-donate-link { display: none; }
    .h4h-brand img { max-width: 115px; }
    .h4h-hero { height: 610px; }
    .h4h-hero-shade::after { width: 100%; top: 56%; background: rgba(247,161,30,.90); }
    .h4h-hero-main-copy { top: 24%; inset-inline: 22px; }
    .h4h-hero-main-copy h1 { font-size: 36px; }
    .h4h-hero-panel { inset-inline: 22px; bottom: 34px; }
    .h4h-section { padding: 60px 0; }
    .h4h-section-heading { margin-bottom: 38px; }
    .h4h-section-heading h2 { font-size: 26px; }
    .h4h-causes-grid { grid-template-columns: 1fr; gap: 39px; }
    .h4h-cause-item p { max-width: 290px; }
    .h4h-mission { padding-top: 35px; }
    .h4h-mission-copy h2 { font-size: 42px; }
    .h4h-impact-row, html[dir="rtl"] .h4h-impact-row { grid-template-columns: 125px 1fr; gap: 18px; }
    .h4h-impact-row strong { font-size: 43px; }
    .h4h-impact-row span { font-size: 14px; }
    .h4h-card-grid, .h4h-event-grid, .h4h-volunteer-grid { grid-template-columns: 1fr; }
    .h4h-card-image, .h4h-event-image { height: 235px; }
    .h4h-testimonial-card { min-height: 345px; }
    .h4h-testimonial { padding: 48px 24px 64px; }
    .h4h-testimonial img { width: 76px; height: 76px; margin-bottom: 28px; }
    .h4h-testimonial p { font-size: 16px; line-height: 1.85; }
    .h4h-testimonial-dots { bottom: 30px; }
    .h4h-footer-grid { grid-template-columns: 1fr; }
    .h4h-footer-bottom-inner { flex-direction: column; padding: 18px 0; }
    .h4h-detail-hero { min-height: 300px; }
    .h4h-detail-content { padding: 48px 0 65px; }
    .h4h-detail-gallery { grid-template-columns: 1fr; }
}
