html, body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: #1f2937;
    background: #ffffff;
    scroll-behavior: smooth;
    color-scheme: light;
}

/* Global UI scale: make the whole site render at ~80% (acts like a browser zoom-out). */
body {
    zoom: var(--ui-scale);
}

/*
 * Hide the text caret on normal page chrome when clicks focus non-editable regions
 * (common with caret-browsing / accessibility modes). Inputs and editable regions
 * explicitly restore a visible caret below.
 */
html {
    caret-color: transparent;
}

input:not([type="hidden"]):not([disabled]),
textarea:not([disabled]),
select:not([disabled]),
[contenteditable]:not([contenteditable="false"]) {
    caret-color: auto;
}

* {
    box-sizing: border-box;
}

img {
    border-radius: 0;
    box-shadow: none;
    border: 0;
}

:root {
    --green-900: #0f2f2a;
    --green-700: #1f5a4f;
    --gold-500: #cfaa5c;
    --paper: #ffffff;
    --ink: #17202a;
    --muted: #5f6773;
    --site-header-offset: 78px;
    --border-subtle: #e0ddd4;
    --body-bg: #ffffff;
    /* Global UI scale applied via `body { zoom: var(--ui-scale); }`.
       Full-viewport elements (e.g. the hero banner) must divide 100vh by this
       value so they still fill the screen after the zoom is applied. */
    --ui-scale: 0.8;
}

/* Alternating strips (home): scoped tokens flow to cards, subtitles, and headings */
.section-band--light {
    --green-900: #0f2f2a;
    --green-700: #1f5a4f;
    --paper: #ffffff;
    --ink: #17202a;
    --muted: #5f6773;
    --border-subtle: #dddace;
    --body-bg: #ffffff;
    background: #ffffff;
    color: var(--muted);
}

.section-band--dark {
    --green-900: #ecfdf5;
    --green-700: #5eead4;
    --paper: #141414;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.78);
    --border-subtle: #333333;
    --body-bg: #000000;
    background: #000000;
    color: var(--muted);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    text-wrap: balance;
    line-height: 1.15;
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-soft {
    background: #f7f8f5;
}

.section-contrast {
    background: linear-gradient(120deg, #f6f5ef, #ece8dc);
}

/* Dark-green contrast band — overrides the default beige .section-contrast.
   Apply on top of `.section-contrast` (e.g. Our Values, Projects, Founder Message, Trustees heroes). */
.section.section-contrast.section-contrast--green {
    background: linear-gradient(120deg, var(--green-900), var(--green-700));
}

/* Whiten the hero copy only — not card-surface descendants, so inner cards remain readable. */
.section.section-contrast.section-contrast--green > .container > h1,
.section.section-contrast.section-contrast--green > .container > h2,
.section.section-contrast.section-contrast--green > .container > p,
.section.section-contrast.section-contrast--green > .container > .section-subtitle,
.section.section-contrast.section-contrast--green > .container > div > h1,
.section.section-contrast.section-contrast--green > .container > div > h2,
.section.section-contrast.section-contrast--green > .container > div > p,
.section.section-contrast.section-contrast--green > .container > div > .section-subtitle,
.section.section-contrast.section-contrast--green > .container > div > .founder-preview-hadith {
    color: #ffffff;
}

.section.section-contrast.section-contrast--green > .container > .eyebrow,
.section.section-contrast.section-contrast--green > .container > div > .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.section.section-band--light.section-soft,
.section.section-band--light.section-contrast {
    background: #ffffff;
}

.section.section-band--dark.section-soft,
.section.section-band--dark.section-contrast {
    background: #000000;
}
.eyebrow {
    color: var(--green-700);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
}

.section-subtitle {
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
    margin-bottom: 1.4rem;
}

#featured-projects .section-subtitle {
    max-width: 110ch;
}

/* Values intro copy — match featured-projects lead width */
#values .container h2 + .section-subtitle {
    max-width: 110ch;
}

/* Islamic quotes / teaching intro — same lead width */
#quotes .container h2 + .section-subtitle {
    max-width: 110ch;
}

.mission-wrap {
    max-width: 880px;
}

.narrative-wrap {
    max-width: 920px;
}

.transparency-commitment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
}

.transparency-commitment-copy {
    min-width: 0;
}

.transparency-commitment-visual {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.transparency-quote-image {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    object-position: center;
}

@media (max-width: 980px) {
    .transparency-commitment-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .transparency-commitment-visual {
        justify-self: stretch;
        max-width: 100%;
    }
}

.narrative-wrap h1 {
    margin: 0.3rem 0 0.9rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.muted {
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #ece8da;
    backdrop-filter: blur(8px);
}

.site-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    /* When logo + links + CTA barely fit, avoid clipping — horizontal scroll beats broken labels */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Logo (SVG mark + HTML wordmark — crisp at any DPI; avoid scaled PNG in nav). */
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1.15;
    isolation: isolate;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.logo--wordmark {
    min-width: 0;
}

.logo-mark {
    display: block;
    flex-shrink: 0;
    height: 48px;
    width: auto;
    max-width: 78px;
    object-fit: contain;
    object-position: left center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-wordmark {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.logo-wordmark__primary {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.88rem, 2.2vw, 1.08rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--green-900);
    white-space: nowrap;
}

.logo-wordmark__secondary {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.52rem, 1.25vw, 0.65rem);
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #5c4d72;
    white-space: nowrap;
}

.logo:focus-visible {
    outline: 2px solid var(--green-700);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo:hover .logo-wordmark__primary {
    color: var(--green-700);
}

.logo:hover .logo-wordmark__secondary {
    color: #433850;
}

.site-nav nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.2rem;
    font-weight: 600;
    color: #374151;
    flex: 1 1 auto;
    justify-content: center;
    min-width: min-content;
}

.site-nav nav a:hover {
    color: var(--green-700);
}

.site-nav nav a.active {
    color: var(--green-700);
}

.site-nav nav a {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-nav > a.btn-primary-solid {
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
}

.site-nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.25s ease;
}

.site-nav nav a:hover::after {
    width: 100%;
}

.site-nav nav a.active::after {
    width: 100%;
}

.btn {
    display: inline-block;
    border-radius: 0.7rem;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary-solid {
    background: linear-gradient(120deg, var(--green-700), #2b7a6a);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 90, 79, 0.28);
}

.btn-primary-solid:hover {
    box-shadow: 0 18px 30px rgba(31, 90, 79, 0.34);
}

.btn-outline-gold {
    border: 1px solid var(--gold-500);
    color: #7a5a22;
    background: #fffcf2;
}

.btn-outline-gold:hover {
    background: #fff7df;
    box-shadow: 0 12px 22px rgba(207, 170, 92, 0.22);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: #fff;
    padding: 0.65rem 1.65rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f6f8f3 0%, #f7f2e5 45%, #f2f6ef 100%);
    padding: 5.5rem 0 4.5rem;
}

.hero-section.hero-banner {
    padding: 0;
    background: #0f1110;
    /* Compensate for body `zoom: var(--ui-scale)` so the banner still fills the screen below the header. */
    height: calc(100vh / var(--ui-scale) - var(--site-header-offset));
    height: calc(100dvh / var(--ui-scale) - var(--site-header-offset));
    min-height: calc(100vh / var(--ui-scale) - var(--site-header-offset));
    min-height: calc(100dvh / var(--ui-scale) - var(--site-header-offset));
}

.hero-section.hero-banner::after {
    display: none;
}

.hero-banner-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.5rem 0 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 40%, transparent 100%);
}

.hero-banner-cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
}

.hero-banner-cta-inner .btn {
    border-radius: 999px;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 20% 20%, #d9c89a 0 2px, transparent 2px), radial-gradient(circle at 80% 70%, #98b5aa 0 2px, transparent 2px);
    background-size: 80px 80px;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -80px;
    top: 40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 170, 92, 0.2) 0%, rgba(207, 170, 92, 0.05) 50%, rgba(207, 170, 92, 0) 70%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy h1 {
    margin: 0.35rem 0 0.9rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    max-width: 12ch;
}

.hero-copy p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

.leave-legacy-grid {
    align-items: start;
}

.leave-legacy-media {
    position: sticky;
    top: calc(78px + 1rem);
    align-self: start;
}

/* Vertically center the copy next to the image (image stays top-anchored via .leave-legacy-media's align-self: start). */
.leave-legacy-copy {
    align-self: center;
}

.leave-legacy-image {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    object-position: center;
}

.leave-legacy-copy h2 {
    margin: 0.35rem 0 0.9rem;
    font-size: clamp(1.75rem, 3.8vw, 2.55rem);
    line-height: 1.15;
    max-width: 26ch;
}

.mission-preview-grid {
    align-items: start;
}

.mission-media {
    position: sticky;
    top: calc(78px + 1rem);
    align-self: start;
}

.mission-preview-image {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    object-position: center;
}

.mission-copy h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.45rem);
}

.our-story-preview-grid {
    align-items: start;
}

.our-story-media {
    position: sticky;
    top: calc(78px + 1rem);
    align-self: start;
}

/* Match the unified 4:3 frame used by other landing-page split sections. */
#our-story .our-story-media .cover {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    object-position: center;
}

.our-story-figure {
    margin: 0;
}

.our-story-caption {
    margin-top: 0.75rem;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-align: center;
}

/* Vertically center the copy next to the portrait (image stays top-anchored via .our-story-media's align-self: start). */
.our-story-copy {
    align-self: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.detail-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.9rem;
    padding: 1rem;
    box-shadow: none;
}

.detail-card p {
    color: var(--muted);
    line-height: 1.72;
}

.card-surface {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 0.55rem;
    box-shadow: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-surface:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.35);
    box-shadow: none;
}

/* Photo wrappers only — flat frames (story/contact cards keep .card-surface chrome) */
.home-intro-media.card-surface,
.leave-legacy-media.card-surface,
.mission-media.card-surface,
.home-impact-media.card-surface,
.our-story-media.card-surface,
.card-surface.founder-portrait-frame {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.home-intro-media.card-surface:hover,
.leave-legacy-media.card-surface:hover,
.mission-media.card-surface:hover,
.home-impact-media.card-surface:hover,
.our-story-media.card-surface:hover,
.card-surface.founder-portrait-frame:hover {
    transform: none;
    box-shadow: none;
}

.hero-media img,
.cover {
    width: 100%;
    object-fit: cover;
}

/* Founder hero / preview */
.founder-portrait {
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;
}

/* Trustee founder card — same passport crop as other board photos */
.founder-profile-card .image-card-media {
    background: var(--paper);
    aspect-ratio: 4 / 5;
}

.founder-profile-card .image-card-media img {
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;
}

/* Founder portrait beside copy — same passport-style frame as trustee ImageCards */
.card-surface.founder-portrait-frame {
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: min(100%, 320px);
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    align-self: center;
}

/* Landing-page founder preview — match the unified 4:3 frame used by other split sections. */
#founder-preview .card-surface.founder-portrait-frame {
    max-width: 100%;
    margin-inline: 0;
    aspect-ratio: 4 / 3;
    align-self: stretch;
}

.card-surface.founder-portrait-frame .founder-portrait {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;
}

/* About hero — landscape founders portrait beside intro copy. */
.about-hero-grid {
    align-items: center;
    gap: 2rem;
}

.card-surface.founders-hero-frame {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: min(100%, 560px);
    margin-inline: auto;
    align-self: center;
}

.card-surface.founders-hero-frame:hover {
    transform: none;
    box-shadow: none;
}

.founders-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    object-fit: contain;
    image-rendering: auto;
}

.founders-hero-caption {
    margin-top: 0.65rem;
    text-align: center;
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .card-surface.founders-hero-frame {
        max-width: 420px;
    }
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.timeline-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.9rem;
    padding: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 170, 92, 0.45);
}

.timeline-card .year {
    color: var(--green-700);
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-card h3 {
    margin: 0.45rem 0 0.55rem;
}

.timeline-card p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.94rem;
}

.timeline-teaser {
    font-style: italic;
    color: var(--muted);
}

.narrative-prose--lead {
    max-width: 68ch;
}

.narrative-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.narrative-chapter p + p {
    margin-top: 0.55rem;
}

.story-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.story-blocks--tight-top {
    margin-top: 0.75rem;
}

.story-block h3 {
    margin: 0 0 0.5rem;
}

.story-block p {
    margin: 0;
}

.islamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.islamic-grid--dense {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.islamic-verse-card {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 1.1rem 1.15rem;
    box-shadow: none;
}

.islamic-verse-card blockquote {
    margin: 0;
    font-style: italic;
    color: #000000;
    line-height: 1.75;
    max-width: 110ch;
}

.islamic-verse-card figcaption {
    display: block;
    margin-top: 0.65rem;
    font-style: normal;
    font-weight: 700;
    color: var(--green-700);
    font-size: 0.9rem;
}

.islamic-verse-note {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
}

.sadaqah-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.sadaqah-example-grid .detail-card p {
    margin: 0;
}

.content-panel {
    max-width: 920px;
}

.content-panel blockquote {
    max-width: none;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.founder-quote {
    margin: 1rem 0;
    border-left: 4px solid var(--gold-500);
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.7rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.75;
}

.quran-line {
    color: var(--green-700);
    font-weight: 600;
    line-height: 1.75;
}

.values-grid,
.trustee-grid,
.project-grid,
.trust-grid {
    display: grid;
    gap: 1rem;
}

.values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid article {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.9rem;
    padding: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.values-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, 0.35);
    box-shadow: none;
}

.values-grid span:not(.value-icon) {
    color: #c4983f;
    font-size: 1.15rem;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
    color: var(--green-700);
}

.value-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.value-icon img.value-icon-img {
    width: 2.65rem;
    height: 2.65rem;
    object-fit: contain;
    display: block;
}

.value-detail-card .value-icon {
    margin-bottom: 0.5rem;
}

.value-detail-card .value-icon svg {
    width: 2.85rem;
    height: 2.85rem;
}

.value-detail-card .value-icon img.value-icon-img {
    width: 3rem;
    height: 3rem;
}

.trustee-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.profile-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 0.75rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
    box-shadow: none;
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow: none;
}

.image-card {
    display: flex;
    flex-direction: column;
}

a.image-card,
.image-card--link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.image-card:hover,
.image-card--link:hover {
    transform: translateY(-4px);
}

a.image-card:hover .image-card-content h3,
.image-card--link:hover .image-card-content h3 {
    color: var(--green-700);
}

a.image-card:focus-visible,
.image-card--link:focus-visible {
    outline: 2px solid var(--green-700);
    outline-offset: 3px;
}

.image-card-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border-radius: 0;
    background: var(--paper);
    overflow: hidden;
}

.image-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.image-card-content {
    padding: 0.75rem 0.2rem 0.1rem;
    text-align: center;
}

.image-card-content h3 {
    margin: 0;
}

.image-card-content p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.4;
}

/* /trustees — full board profiles */
.trustee-profiles-section {
    scroll-margin-top: calc(var(--site-header-offset) + 0.75rem);
}

.trustee-profiles-lead {
    max-width: 62ch;
}

.trustee-profile-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-top: 1.75rem;
}

.trustee-profile-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    border-left: 4px solid var(--green-700);
    box-shadow: 0 12px 36px rgba(15, 47, 42, 0.06);
    overflow: hidden;
    scroll-margin-top: calc(var(--site-header-offset) + 1.25rem);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.trustee-profile-card:target {
    border-color: var(--gold-500);
    box-shadow: 0 18px 48px rgba(207, 170, 92, 0.22);
}

.trustee-profile-card-inner {
    display: grid;
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.35rem 1.4rem 1.45rem;
    align-items: start;
}

.trustee-profile-portrait {
    border-radius: 0.65rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border-subtle);
    background: #f4f6f3;
}

.trustee-profile-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.trustee-profile-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.trustee-profile-name {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.28rem, 2.4vw, 1.62rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.trustee-profile-role {
    margin: 0.35rem 0 0;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #9a7b3a;
    letter-spacing: 0.02em;
}

.trustee-profile-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.1rem 1.85rem;
    align-items: start;
}

.trustee-profile-label {
    margin: 0 0 0.45rem;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-700);
}

.trustee-profile-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* Project videos gallery */
.project-videos-section {
    scroll-margin-top: calc(var(--site-header-offset) + 0.75rem);
}

.project-videos-lead {
    max-width: 62ch;
}

.project-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.75rem;
}

.project-video-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 47, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.project-video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 90, 79, 0.35);
    box-shadow: 0 18px 42px rgba(15, 47, 42, 0.12);
}

.project-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f2f2a;
    overflow: hidden;
}

.project-video-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
    padding-left: 4px;
}

.project-video-play:hover,
.project-video-play:focus-visible {
    transform: scale(1.08);
    background: var(--gold-500);
    color: #ffffff;
    outline: none;
}

.project-video-play:focus-visible {
    box-shadow: 0 0 0 4px rgba(207, 170, 92, 0.45);
}

.project-video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.project-video-fallback {
    color: #fff;
    padding: 1rem;
    margin: 0;
}

.project-video-body {
    padding: 1rem 1.1rem 1.2rem;
}

.project-video-title {
    margin: 0 0 0.4rem;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.project-video-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
    box-shadow: none;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow: none;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.project-card h3,
.project-card p,
.project-card .btn {
    margin: 0.7rem 0.8rem;
}

.project-card p {
    color: var(--muted);
    flex: 1;
    line-height: 1.7;
}

.project-card .btn {
    align-self: flex-start;
}

.impact-section {
    background: var(--body-bg);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.impact-grid article {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.9rem;
    padding: 1rem;
    text-align: center;
    box-shadow: none;
}

.impact-grid strong {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: var(--green-700);
}

.impact-grid span {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quotes-grid blockquote {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--gold-500);
    border-radius: 0.8rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    font-style: italic;
}

.quotes-grid span {
    display: block;
    margin-top: 0.55rem;
    font-style: normal;
    color: var(--green-700);
    font-weight: 600;
    font-size: 0.88rem;
}

.donation-section {
    background: linear-gradient(130deg, #12251f, #21473f);
    overflow: hidden;
}

.donation-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image: linear-gradient(45deg, rgba(231, 214, 173, 0.85) 1px, transparent 1px), linear-gradient(-45deg, rgba(231, 214, 173, 0.85) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.donation-box {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(231, 214, 173, 0.28);
    border-radius: 1rem;
    padding: 2rem;
    color: #e9eef0;
    backdrop-filter: blur(3px);
}

.donation-box::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 214, 173, 0.32) 0%, rgba(231, 214, 173, 0.12) 45%, rgba(231, 214, 173, 0) 72%);
    pointer-events: none;
}

.donation-box h2,
.donation-box .eyebrow {
    color: #fff;
}

.donation-impact-heading {
    margin: 0.35rem 0 0.85rem;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    max-width: 22ch;
}

.donation-box .donation-impact-heading {
    color: #fff;
}

.donation-examples-intro {
    max-width: 48ch;
    line-height: 1.68;
    margin: 0 0 1.1rem;
}

.donation-box .donation-examples-intro {
    color: rgba(233, 238, 240, 0.92);
}

.donation-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.1rem 0 1.35rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 880px) {
    .donation-tier-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.donation-tier-card {
    margin: 0;
    padding: 1.05rem 1rem 1.1rem;
    border-radius: 0.9rem;
    min-width: 0;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.donation-box .donation-tier-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(231, 214, 173, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.donation-box .donation-tier-card:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 170, 92, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.donation-tier-amount {
    display: block;
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.45rem, 2.8vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.donation-box .donation-tier-amount {
    color: #f0deb8;
    text-shadow: 0 1px 12px rgba(207, 170, 92, 0.25);
}

.donation-tier-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.donation-box .donation-tier-text {
    color: rgba(233, 238, 240, 0.9);
}

.donation-examples-footnote {
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 62ch;
    margin: 0;
}

.donation-box .donation-examples-footnote {
    color: rgba(233, 238, 240, 0.78);
}

.donation-box .donation-types-line {
    color: #d4ebe4;
}

/* Donate page — giving examples band */
.donation-examples-section {
    background: var(--body-bg);
    border-block: 1px solid var(--border-subtle);
}

.donation-examples-inner {
    position: relative;
    padding-left: 1rem;
}

.donation-examples-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 4px;
    height: clamp(2.5rem, 8vw, 3.5rem);
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold-500), var(--green-700));
    opacity: 0.85;
}

.donation-examples-section .donation-tier-grid {
    margin-top: 1.25rem;
}

.donation-examples-section .donation-tier-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.donation-examples-section .donation-tier-card:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 170, 92, 0.45);
    box-shadow: none;
}

.donation-examples-section .donation-tier-amount {
    color: var(--green-900);
}

.donation-examples-section .donation-tier-text {
    color: var(--muted);
}

.donation-examples-section .donation-examples-footnote {
    color: var(--muted);
}

.amount-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.9rem;
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, 0.35);
}

.trust-grid ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.donate-memory-grid,
.contact-form {
    display: grid;
    gap: 0.8rem;
}

.donate-memory-grid {
    max-width: 740px;
}

.donate-memory-grid input,
.donate-memory-grid select,
.donate-memory-grid textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 0.7rem;
    padding: 0.8rem 0.85rem;
    font: inherit;
    background: var(--paper);
    color: var(--ink);
}

.donate-memory-grid select {
    appearance: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---------- Contact page (premium) ---------- */
.contact-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #12251f 0%, #1f4a40 55%, #243d30 100%);
    color: #e8f0ed;
    padding: 4rem 0 3.5rem;
}

.contact-hero .hero-pattern {
    opacity: 0.12;
}

.contact-hero-inner {
    position: relative;
    max-width: 720px;
}

.contact-hero-eyebrow {
    color: #e7d6ad;
}

.contact-hero-title {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: 1.08;
    margin: 0.35rem 0 1rem;
    color: #fffefb;
}

.contact-hero-lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 254, 251, 0.88);
    max-width: 58ch;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.contact-info-card {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.15rem;
    box-shadow: none;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, 0.35);
    box-shadow: none;
}

.contact-info-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.contact-info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.contact-info-card a {
    color: var(--green-700);
    font-weight: 600;
}

.contact-info-note {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--muted) !important;
}

.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(94, 234, 212, 0.15), rgba(207, 170, 92, 0.12));
    color: var(--green-700);
    margin-bottom: 0.85rem;
}

.contact-form-section .section-subtitle {
    margin-bottom: 2rem;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 1.75rem;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-form-card {
    padding: 2rem 1.75rem;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}

.contact-form-panel .form-field {
    margin-bottom: 1.1rem;
}

.contact-form-panel label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.contact-input {
    width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 0.7rem;
    padding: 0.85rem 0.95rem;
    font: inherit;
    background: var(--paper);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.contact-textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-submit {
    margin-top: 0.5rem;
    width: 100%;
}

.contact-field-error,
.contact-form-panel .validation-message {
    display: block;
    color: #fca5a5;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.contact-form-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.contact-form-panel .validation-errors {
    padding: 0.75rem 1rem;
    background: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 0.65rem;
    color: #fecaca;
    font-size: 0.9rem;
}

.contact-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}

.contact-map-panel {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    box-shadow: none;
}

.contact-map-frame {
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 4 / 3;
    min-height: 220px;
    background: var(--paper);
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-map-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.contact-map-address {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-map-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.contact-faq .section-subtitle {
    margin-bottom: 1.25rem;
}

.contact-faq-grid {
    display: grid;
    gap: 0.65rem;
    max-width: 900px;
}

.contact-faq-item {
    background: var(--paper);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 0.2rem 1rem 0.85rem;
}

.contact-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    padding: 0.75rem 0;
    list-style: none;
}

.contact-faq-item summary::-webkit-details-marker {
    display: none;
}

.contact-faq-item summary::after {
    content: "+";
    float: right;
    color: var(--green-700);
    font-weight: 800;
}

.contact-faq-item[open] summary::after {
    content: "−";
}

.contact-faq-item p {
    margin: 0 0 0.5rem;
    color: var(--muted);
    line-height: 1.72;
    font-size: 0.96rem;
}

.contact-donate-cta {
    background: linear-gradient(130deg, #1a3d35, #2b5e52);
}

.contact-donate-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    color: #eaf2ef;
}

.contact-donate-cta-inner h2 {
    color: #fff;
    margin: 0 0 0.35rem;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.contact-donate-cta-text {
    margin: 0;
    max-width: 54ch;
    line-height: 1.65;
    opacity: 0.95;
}

.btn-lg {
    padding: 0.9rem 1.65rem;
    font-size: 1.02rem;
}

/* --- Zakat quick calculator (Donate page) --- */
.zakat-calculator {
    margin: 1.75rem 0 1.5rem;
    padding: 1.35rem 1.4rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    background: var(--paper);
    box-shadow: none;
}

.zakat-calculator-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
}

.zakat-calculator-header {
    margin-bottom: 1.1rem;
}

.zakat-calculator-lead {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--muted);
}

.zakat-calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin-bottom: 1.15rem;
}

@media (max-width: 640px) {
    .zakat-calculator-grid {
        grid-template-columns: 1fr;
    }
}

.zakat-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink);
}

.zakat-field--full {
    grid-column: 1 / -1;
}

.zakat-field-label {
    font-weight: 600;
    line-height: 1.35;
}

.zakat-field-hint {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 400;
}

.zakat-input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid var(--border-subtle);
    font-size: 1rem;
    background: var(--body-bg);
    color: var(--ink);
}

.zakat-input:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.zakat-calculator-results {
    padding: 1rem 1rem 0.85rem;
    border-radius: 0.75rem;
    background: var(--body-bg);
    border: 1px solid var(--border-subtle);
}

.zakat-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border-subtle);
}

.zakat-result-row:last-of-type {
    border-bottom: none;
}

.zakat-result-row strong {
    color: var(--green-900);
    font-size: 1.05rem;
    white-space: nowrap;
}

.zakat-result-row--highlight {
    margin-top: 0.25rem;
    padding-top: 0.65rem;
    border-top: 2px solid rgba(207, 170, 92, 0.55);
    border-bottom: none;
    font-weight: 600;
    color: var(--ink);
}

.zakat-result-row--highlight strong {
    font-size: 1.15rem;
    color: var(--green-700);
}

.zakat-result-row--warn {
    border-bottom: none;
    color: rgba(255, 255, 255, 0.65);
}

.zakat-result-row--warn strong {
    color: var(--gold-500);
}

.zakat-result-note {
    margin: 0.65rem 0 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
}

.zakat-calculator-disclaimer {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.zakat-parse-warning {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #fecaca;
    background: rgba(185, 28, 28, 0.25);
    border: 1px solid rgba(248, 113, 113, 0.45);
}

/* Footer — calm editorial layout (no glass panels, minimal chrome) */
.site-footer {
    padding: 2.75rem 0 1.35rem;
    color: rgba(218, 228, 224, 0.92);
    background: #0c1513;
    border-top: 1px solid rgba(207, 170, 92, 0.2);
}

.footer-inner {
    position: relative;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(200px, 1fr) minmax(180px, 0.85fr);
    gap: 2.25rem 2.5rem;
    align-items: start;
}

.footer-col p {
    margin: 0.55rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-col .muted {
    color: rgba(190, 204, 198, 0.72);
}

.footer-section-title {
    margin: 0 0 1rem;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.88);
}

/* Center the entire brand column (logo, charity name, tagline, donate button, quick nav). */
.footer-col--brand {
    text-align: center;
}

.footer-col--brand .footer-tagline {
    margin-inline: auto;
}

.footer-col--brand .footer-quick-nav {
    justify-content: center;
}

/* Unboxed logo: no frame, sits naturally above the charity name. */
.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.footer-logo-img {
    display: block;
    width: auto;
    height: 3.5rem;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translateZ(0);
}

.footer-charity-name {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.footer-tagline {
    margin: 0 0 1.25rem;
    line-height: 1.65;
    font-size: 0.92rem;
    color: rgba(210, 220, 216, 0.88);
    max-width: 42ch;
}

.btn-footer-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
    padding: 0.62rem 1.35rem;
    border-radius: 0.45rem;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid rgba(207, 170, 92, 0.45);
    color: #fff;
    background: #1a5247;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer a.btn-footer-donate,
.site-footer a.btn-footer-donate:hover {
    color: #fff;
}

.btn-footer-donate:hover {
    background: #1f5a4f;
    border-color: rgba(207, 170, 92, 0.65);
}

.footer-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 1rem;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-quick-nav a {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(200, 232, 222, 0.95);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-quick-nav a:hover {
    color: var(--gold-500);
    border-bottom-color: rgba(207, 170, 92, 0.45);
}

.footer-plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-plain-list li {
    margin: 0.38rem 0;
}

.footer-plain-list a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(210, 232, 224, 0.95);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-plain-list a:hover {
    color: var(--gold-500);
}

.footer-connect {
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-wa-link {
    font-weight: 600;
    color: #9fe8d4;
    text-decoration: none;
}

.footer-wa-link:hover {
    color: var(--gold-500);
}

.site-footer .footer-col p a,
.site-footer .footer-col .muted a,
.site-footer .footer-contact-meta a {
    color: #b8e8d8;
    text-decoration: none;
}

.site-footer .footer-col p a:hover,
.site-footer .footer-col .muted a:hover,
.site-footer .footer-contact-meta a:hover {
    color: var(--gold-500);
}

.footer-base {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    margin: 0;
    padding: 0 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: rgba(185, 200, 194, 0.72);
}

@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2rem;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
        max-width: 42rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: #fff;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.home-impact-grid {
    align-items: start;
}

/* Vertically center the right-side copy next to the image (image stays top-aligned via the grid's align-items: start). */
.home-impact-copy {
    align-self: center;
}

.home-impact-image {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    object-position: center;
}

.home-impact-copy h2 {
    margin: 0.35rem 0 0.9rem;
    font-size: clamp(1.75rem, 3.8vw, 2.6rem);
    line-height: 1.15;
    max-width: 22ch;
}

/* minmax(0,1fr): columns can shrink below image intrinsic width — fixes horizontal overflow. */
.home-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.section-home-intro .home-intro-copy,
.section-home-intro .home-intro-media {
    min-width: 0;
}

.section-home-intro .home-intro-copy {
    text-align: left;
}

.section-home-intro .home-intro-header {
    margin-bottom: 1.15rem;
}

.section-home-intro .home-intro-media {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    justify-self: stretch;
    overflow: hidden;
    position: static;
    top: auto;
}

.home-intro-media {
    position: sticky;
    top: calc(78px + 1rem);
}

.home-intro-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center;
}

.draft-home-intro-title {
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    margin: 0.25rem 0 1rem;
    line-height: 1.18;
}

.draft-home-intro-para,
.draft-impact-para {
    margin-bottom: 0.75rem;
}

.draft-bullet-list {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
    color: var(--muted);
    line-height: 1.85;
}

.draft-bullet-list li {
    margin-bottom: 0.35rem;
}

.draft-bullet-list--mission {
    max-width: 62ch;
}

.story-subheading {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 1.35rem;
    margin: 1.25rem 0 0.35rem;
    color: var(--ink);
}

.project-grid--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-quote {
    margin: 0.5rem 1rem 0;
    padding: 0 0 0 0.9rem;
    border-left: 3px solid var(--gold-500);
    font-style: italic;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.project-card .project-quote {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.trustees-section-lead {
    margin-top: -0.2rem;
    margin-bottom: 1.35rem;
}

a.trustees-section-more {
    margin-left: 0.35rem;
    font-weight: 600;
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a.trustees-section-more:hover {
    color: var(--green-900);
}

.section-donate-types-label {
    margin-top: 2rem;
}

.donation-types-line {
    font-weight: 600;
    color: var(--green-700);
    margin-bottom: 1rem;
}

.founder-preview-hadith {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0.5rem 0 1rem;
}

.founder-message-body .founder-quote {
    margin-top: 2rem;
}

.founder-signature {
    margin-top: 2rem;
    font-size: 1.05rem;
}

.draft-future-note {
    font-size: 0.92rem;
    margin-top: 1.5rem;
}

.bank-details-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.5rem;
    max-width: 480px;
}

.bank-details-dl dt {
    font-weight: 700;
    margin: 0;
}

.bank-details-dl dd {
    margin: 0;
    color: var(--muted);
}

.bank-details-heading {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 1.2rem;
    margin: 2rem 0 0.65rem;
}

.bank-details-heading:first-of-type {
    margin-top: 0.75rem;
}

[lang="en-PK"] {
    font-variant-numeric: proportional-nums;
}

.value-detail-card h3 {
    font-size: 1.2rem;
}

.our-story-details {
    margin-top: 0.35rem;
}

.our-story-details > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.our-story-details > summary::-webkit-details-marker {
    display: none;
}

.our-story-details > summary::marker {
    content: "";
}

.our-story-see-more {
    margin-top: 0.65rem;
    user-select: none;
}

.our-story-expanded {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e2d0;
}


@media (max-width: 980px) {
    :root {
        --site-header-offset: 72px;
    }

    .site-nav nav {
        display: none;
    }

    .hero-grid,
    .founder-grid,
    .preview-grid,
    .timeline,
    .detail-grid,
    .values-grid,
    .trustee-grid,
    .project-grid,
    .amount-grid,
    .impact-grid,
    .trust-grid,
    .quotes-grid,
    .story-blocks,
    .narrative-columns,
    .contact-grid,
    .contact-info-grid,
    .contact-form-layout,
    .footer-main,
    .project-videos-grid {
        grid-template-columns: 1fr;
    }

    .trustee-profile-columns {
        grid-template-columns: 1fr;
    }

    .trustee-profile-card-inner {
        grid-template-columns: 1fr;
    }

    .trustee-profile-portrait {
        max-width: 220px;
        margin-inline: auto;
    }

    .contact-form-card {
        max-width: 100%;
        justify-self: stretch;
    }

    .contact-donate-cta-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .contact-donate-cta-inner .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-section:not(.hero-banner) {
        padding-top: 4rem;
    }

    .hero-banner-cta {
        padding: 1.1rem 0 1.35rem;
    }

    .hero-banner-cta-inner .btn {
        width: min(100%, 280px);
        text-align: center;
        justify-content: center;
    }

    .home-intro-media {
        position: static;
    }

    .section-home-intro .home-intro-media {
        max-width: 100%;
    }

    .our-story-media {
        position: static;
    }

    .leave-legacy-media {
        position: static;
    }

    .mission-media {
        position: static;
    }

    .hero-copy h1 {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .amount-grid .btn {
        width: 100%;
        text-align: center;
    }

    .site-nav {
        min-height: 72px;
    }

    .hero-section::after,
    .donation-box::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Foundation admin (video uploads) */
.admin-banner {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.admin-banner--ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #064e3b;
}

.admin-banner--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.admin-field {
    margin-bottom: 1rem;
}

.admin-video-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-video-list__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-video-list .small {
    font-size: 0.875rem;
}
