@import url("https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;600;700&display=swap");

:root {
    --color-ink: #061757;
    --color-muted: #536089;
    --color-bg: #f7f8ff;
    --color-surface: #ffffff;
    --color-line: #dce2ff;
    --color-green: #000080;
    --color-green-deep: #061757;
    --color-gold: #ffd22e;
    --color-red: #ff5257;
    --color-blue: #170fcf;
    --color-purple: #7c1bc4;
    --color-mint: #51ebbf;
    --shadow: 0 18px 45px rgba(6, 23, 87, 0.13);
    --radius: 8px;
    --container: min(1120px, calc(100vw - 32px));
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-fa: "BBC Reith Qalam", "Noto Naskh Arabic", Vazirmatn, Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.hc-lang-fa,
body.rtl {
    font-family: var(--font-fa);
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 3px;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 100;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 10px 14px;
    background: var(--color-ink);
    color: #fff;
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 128, 0.14);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    width: var(--container);
    min-height: 76px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.site-brand,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
    text-decoration: none;
}

.custom-logo {
    width: auto;
    max-width: 250px;
    max-height: 58px;
}

.site-brand img,
.site-brand--logo img {
    width: auto;
    max-width: 310px;
    max-height: 64px;
}

.site-brand__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-green);
    color: #fff;
    font-weight: 800;
}

.site-brand strong {
    display: block;
    line-height: 1.1;
}

.site-brand small {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.primary-menu {
    display: flex;
    justify-content: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-muted);
    font-weight: 700;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--color-blue);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #fff;
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.language-switcher ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-switcher li {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher li::marker {
    content: "";
}

.language-switcher a,
.language-switcher span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 10px;
    border-radius: 999px;
    text-decoration: none;
}

.language-switcher .current-lang > a,
.language-switcher .current-lang > span,
.language-switcher .is-active,
.language-switcher--static .is-active {
    background: var(--color-green) !important;
    color: #fff !important;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--color-blue);
    color: #fff;
}

.button--primary:hover {
    background: var(--color-green);
}

.button--secondary {
    border-color: rgba(23, 15, 207, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ink);
}

.button--light {
    background: #fff;
    color: var(--color-green-deep);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-ink);
}

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--color-green-deep);
    color: #fff;
}

.hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 23, 87, 0.94), rgba(0, 0, 128, 0.64) 48%, rgba(23, 15, 207, 0.32)),
        linear-gradient(135deg, rgba(255, 82, 87, 0.26), transparent 32%),
        linear-gradient(28deg, transparent 58%, rgba(81, 235, 191, 0.16)),
        url("../images/home/hero-community-event.jpg");
    background-size: cover;
    background-position: center 42%;
}

.hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, 0.12) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.12) 87.5%, rgba(255, 255, 255, 0.12)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.12) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.12) 87.5%, rgba(255, 255, 255, 0.12));
    background-size: 72px 126px;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-block: 118px 132px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3.1rem, 10vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero__lead {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.25rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-start: 34px;
}

.hero__quick-actions {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-block-end: 28px;
    background: #fff;
    color: var(--color-ink);
    box-shadow: var(--shadow);
}

.hero__quick-actions a {
    min-height: 118px;
    padding: 24px;
    border-inline-end: 1px solid var(--color-line);
    text-decoration: none;
}

.hero__quick-actions a:last-child {
    border-inline-end: 0;
}

.hero__quick-actions span {
    display: block;
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero__quick-actions strong {
    display: block;
    margin-block-start: 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.intro-band,
.event-band,
.cta-band {
    padding-block: 72px;
}

.intro-band {
    background: #fff;
}

.intro-band__grid,
.event-band__grid,
.split-section,
.cta-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.7rem);
}

h3 {
    margin: 0;
    font-size: 1.45rem;
}

.prose {
    color: var(--color-muted);
    font-size: 1.08rem;
}

.prose > *:first-child {
    margin-block-start: 0;
}

.prose > *:last-child {
    margin-block-end: 0;
}

.content-section {
    padding-block: 86px;
}

.resources-hero {
    padding-block: 88px 70px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.resources-hero__inner {
    max-width: 980px;
}

.resources-hero h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.98;
}

.resources-hero h2 {
    max-width: 820px;
    margin-block: 20px 0;
    color: var(--color-blue);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.resources-hero p {
    max-width: 820px;
    color: var(--color-muted);
    font-size: 1.14rem;
}

.resources-pathways {
    padding-block: 0 70px;
    background: var(--color-bg);
}

.resources-notice {
    background: var(--color-bg);
}

.resources-notice__inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px 22px;
    border: 1px solid var(--color-line);
    border-inline-start: 6px solid var(--color-gold);
    background: #fff;
    box-shadow: 0 14px 36px rgba(8, 21, 66, 0.05);
}

.resources-notice strong {
    color: var(--color-blue);
    font-size: 1.05rem;
    font-weight: 900;
}

.resources-notice p {
    margin: 0;
    color: var(--color-muted);
}

.resources-pathways__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pathway-card {
    display: grid;
    gap: 14px;
    min-height: 260px;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-blue);
    background: #fff;
    color: var(--color-ink);
    text-decoration: none;
    box-shadow: 0 18px 46px rgba(8, 21, 66, 0.06);
}

.pathway-card:nth-child(2) {
    border-top-color: var(--color-gold);
}

.pathway-card:nth-child(3) {
    border-top-color: var(--color-mint);
}

.pathway-card:hover,
.resource-card:hover,
.document-card:hover {
    transform: translateY(-2px);
}

.pathway-card span,
.resource-card__icon {
    color: var(--color-red);
    font-weight: 900;
}

.pathway-card h2 {
    font-size: 1.6rem;
}

.pathway-card p {
    color: var(--color-muted);
}

.pathway-card strong {
    align-self: end;
    color: var(--color-blue);
}

.resources-featured {
    background: #fff;
}

.resources-featured__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    padding: 34px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: #fff;
}

.resources-featured__card .eyebrow {
    color: var(--color-gold);
}

.resources-featured__card p:not(.eyebrow) {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.78);
}

.resources-section,
.latest-resources {
    background: var(--color-bg);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-card {
    display: grid;
    gap: 14px;
    min-height: 520px;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-blue);
    background: #fff;
    transition: transform 180ms ease;
}

.resource-card:nth-child(3n + 2) {
    border-top-color: var(--color-gold);
}

.resource-card:nth-child(3n + 3) {
    border-top-color: var(--color-mint);
}

.resource-card h3 {
    font-size: 1.55rem;
}

.resource-card p,
.document-card p {
    color: var(--color-muted);
}

.resource-card ul {
    display: grid;
    gap: 8px;
    padding-inline-start: 18px;
    margin: 0;
    color: var(--color-muted);
}

.resource-card__links {
    display: grid;
    gap: 8px;
    padding-block-start: 8px;
}

.resource-card__links a,
.resource-card__action,
.directory-list a {
    color: var(--color-blue);
    font-weight: 800;
}

.resource-card__action {
    align-self: end;
}

.documents-section {
    background: #fff;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.document-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--color-line);
    background:
        linear-gradient(90deg, var(--color-blue) 0 6px, transparent 6px),
        var(--color-bg);
    transition: transform 180ms ease;
}

.document-card span {
    display: inline-flex;
    margin-block-end: 24px;
    padding: 6px 9px;
    background: var(--color-gold);
    color: var(--color-ink);
    font-size: 0.75rem;
    font-weight: 900;
}

.directory-section {
    background: var(--color-green);
    color: #fff;
}

.directory-section__grid,
.latest-resources__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
}

.directory-section .eyebrow {
    color: var(--color-gold);
}

.directory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-end: 22px;
}

.directory-filters button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-weight: 800;
}

.directory-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.directory-list a {
    min-height: 72px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
}

.latest-resources ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.latest-resources li {
    padding: 16px 18px;
    border-inline-start: 5px solid var(--color-blue);
    background: #fff;
    color: var(--color-muted);
    font-weight: 800;
}

.faq-section {
    background: #fff;
}

.faq-list {
    display: grid;
    gap: 10px;
    max-width: 920px;
}

.faq-list details {
    border: 1px solid var(--color-line);
    background: var(--color-bg);
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 22px;
    color: var(--color-ink);
    font-weight: 900;
}

.faq-list summary:focus-visible,
.directory-filters button:focus-visible,
.pathway-card:focus-visible,
.resource-card__action:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.faq-list details[open] summary {
    color: var(--color-blue);
}

.faq-list p {
    padding: 0 22px 20px;
    margin: 0;
    color: var(--color-muted);
}

.resources-cta {
    padding-block: 44px;
}

.resources-cta .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
}

.resources-cta h2 {
    max-width: 820px;
    font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.resources-cta .button {
    min-width: min(100%, 360px);
}

.volunteer-hero {
    padding-block: 82px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.volunteer-hero__grid,
.volunteer-feature__grid,
.volunteer-process__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
}

.volunteer-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.volunteer-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-block: 24px 0;
    color: var(--color-muted);
    font-size: 1.14rem;
}

.volunteer-hero__image {
    margin: 0;
    border-top: 6px solid var(--color-blue);
    box-shadow: var(--shadow);
}

.volunteer-hero__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.volunteer-feature {
    background: #fff;
}

.volunteer-feature__label h2 {
    color: var(--color-ink);
}

.volunteer-spotlight {
    padding: 34px;
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-mint);
    background: var(--color-bg);
    color: var(--color-muted);
    font-size: 1.08rem;
}

.volunteer-spotlight p:first-child {
    margin-block-start: 0;
}

.volunteer-spotlight p:last-child {
    margin-block-end: 0;
}

.volunteer-ways {
    background: var(--color-bg);
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-line);
    background: #fff;
}

.volunteer-card {
    min-height: 300px;
    padding: 28px;
    border-inline-end: 1px solid var(--color-line);
    border-top: 5px solid var(--color-blue);
}

.volunteer-card:last-child {
    border-inline-end: 0;
}

.volunteer-card:nth-child(2) {
    border-top-color: var(--color-red);
}

.volunteer-card:nth-child(3) {
    border-top-color: var(--color-gold);
}

.volunteer-card:nth-child(4) {
    border-top-color: var(--color-mint);
}

.volunteer-card span {
    display: inline-flex;
    margin-block-end: 56px;
    color: var(--color-red);
    font-weight: 900;
}

.volunteer-card p {
    color: var(--color-muted);
}

.volunteer-process {
    padding-block: 82px;
    background: var(--color-green);
    color: #fff;
}

.volunteer-process .eyebrow {
    color: var(--color-gold);
}

.volunteer-steps {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: volunteer-step;
}

.volunteer-steps li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    counter-increment: volunteer-step;
}

.volunteer-steps li::before {
    content: counter(volunteer-step, decimal-leading-zero);
    color: var(--color-gold);
    font-weight: 900;
}

.volunteer-steps strong,
.volunteer-steps span {
    grid-column: 2;
}

.volunteer-steps span {
    color: rgba(255, 255, 255, 0.78);
}

.events-hero,
.report-hero {
    padding-block: 82px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.events-hero__grid,
.report-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: end;
}

.events-hero h1,
.report-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.03;
}

.events-hero p:not(.eyebrow),
.report-hero p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 1.16rem;
}

.report-hero img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: center;
    border-top: 6px solid var(--color-blue);
    box-shadow: var(--shadow);
}

.report-hero img.report-hero__poster {
    object-fit: contain;
    background: #d8dcc9;
}

.events-section {
    background: #fff;
}

.events-section .section-heading h2 {
    max-width: 680px;
    font-size: clamp(1.9rem, 3.1vw, 3rem);
}

.events-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.upcoming-card {
    position: sticky;
    top: 112px;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-gold);
    background: var(--color-bg);
}

.upcoming-card h2 {
    font-size: 1.75rem;
}

.upcoming-card p {
    color: var(--color-muted);
}

.event-report-card {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) 132px minmax(0, 1.08fr);
    background: #fff;
    border: 1px solid var(--color-line);
}

.event-report-card__image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.event-report-card__image--poster {
    display: grid;
    place-items: center;
    background: #d8dcc9;
}

.event-report-card__image--poster img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.event-report-card__date {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 20px 14px;
    color: #fff;
    background: var(--color-blue);
    text-align: center;
}

.event-report-card__date span {
    color: var(--color-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-report-card__date strong {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.event-report-card__date small {
    font-size: 0.88rem;
    font-weight: 800;
}

.event-report-card__body {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 32px;
}

.event-report-card__meta {
    margin: 0;
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-report-card h3 {
    font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.event-report-card h3 a {
    text-decoration: none;
}

.event-report-card p {
    color: var(--color-muted);
}

.report-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 760px);
    gap: 56px;
    align-items: start;
}

.report-summary {
    position: sticky;
    top: 112px;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-mint);
}

.report-summary ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--color-muted);
}

.report-content {
    font-size: 1.12rem;
}

.media-section {
    background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.media-section--report {
    padding-block-start: 0;
}

.media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
}

.media-item {
    position: relative;
    min-height: 280px;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-line);
}

.media-item--large {
    grid-row: span 2;
    min-height: 580px;
}

.media-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.media-item figcaption {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 9px 12px;
    color: #fff;
    background: rgba(0, 31, 122, 0.86);
    font-size: 0.88rem;
    font-weight: 800;
}

.media-item--video {
    display: grid;
    place-items: center;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 31, 122, 0.94), rgba(2, 106, 91, 0.9)),
        url("../images/about/community-gathering.jpg") center / cover;
}

.media-item--video video {
    display: block;
    width: 100%;
    max-height: 520px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #07110e;
}

.media-item--video div {
    display: grid;
    gap: 10px;
}

.media-item--video span {
    width: fit-content;
    padding: 6px 10px;
    color: var(--color-ink);
    background: var(--color-gold);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.media-item--video strong {
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.08;
}

.media-item--video p {
    max-width: 38ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.home-photo-feature {
    padding-block: 82px;
    background: #fff;
}

.home-photo-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
    gap: 44px;
    align-items: center;
}

.home-photo-feature figure {
    margin: 0;
    border-top: 6px solid var(--color-blue);
    box-shadow: var(--shadow);
}

.home-photo-feature img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-photo-feature h2 {
    margin-block: 0 18px;
    color: var(--color-ink);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.03;
}

.home-photo-feature p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 1.08rem;
}

.contact-hero {
    padding-block: 82px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.contact-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: end;
}

.contact-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.contact-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-block: 24px 0;
    color: var(--color-muted);
    font-size: 1.14rem;
}

.contact-panel {
    display: grid;
    background: #fff;
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-blue);
    box-shadow: var(--shadow);
}

.contact-panel a {
    display: grid;
    gap: 8px;
    padding: 24px;
    text-decoration: none;
    border-bottom: 1px solid var(--color-line);
}

.contact-panel a:last-child {
    border-bottom: 0;
}

.contact-panel span {
    color: var(--color-red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-panel strong {
    color: var(--color-ink);
    direction: ltr;
    unicode-bidi: isolate;
    overflow-wrap: anywhere;
}

a[href^="mailto:"],
a[href*="instagram.com"] {
    direction: ltr;
    unicode-bidi: isolate;
}

.contact-section {
    background: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 56px;
    align-items: start;
}

.contact-intro {
    position: sticky;
    top: 112px;
}

.contact-intro h2 {
    font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.contact-intro p {
    color: var(--color-muted);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-mint);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--color-ink);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-ink);
    padding: 13px 14px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form__trap {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-notice {
    padding: 14px 16px;
    border: 1px solid rgba(255, 82, 87, 0.35);
    border-inline-start: 5px solid var(--color-red);
    background: #fff;
    color: var(--color-ink);
    font-weight: 800;
}

.form-notice--success {
    border-color: rgba(81, 235, 191, 0.5);
    border-inline-start-color: var(--color-mint);
}

.about-hero {
    padding-block: 72px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.about-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: center;
}

.about-hero__copy h1 {
    max-width: 680px;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.35rem, 4.2vw, 4.05rem);
    line-height: 1.05;
}

.about-hero__copy p:not(.eyebrow) {
    max-width: 640px;
    margin-block: 24px 0;
    color: var(--color-muted);
    font-size: 1.16rem;
}

.about-hero__image {
    margin: 0;
    border: 1px solid var(--color-line);
    border-top: 6px solid var(--color-blue);
    background: #fff;
    box-shadow: var(--shadow);
}

.about-hero__image img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center 62%;
}

.about-statement {
    padding-block: 78px;
    background: #fff;
}

.about-statement__grid,
.about-work-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.about-card {
    min-height: 300px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-top: 5px solid var(--color-blue);
}

.about-card:nth-child(2) {
    border-top-color: var(--color-red);
}

.about-card:nth-child(3) {
    border-top-color: var(--color-mint);
}

.about-card span {
    display: inline-flex;
    margin-block-end: 52px;
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-card h2 {
    font-size: 1.65rem;
}

.about-card p {
    color: var(--color-muted);
}

.about-work-band {
    padding-block: 78px;
    background: var(--color-green);
    color: #fff;
}

.about-work-band .eyebrow {
    color: var(--color-gold);
}

.about-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.about-list li {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-inline-start: 5px solid var(--color-gold);
}

.section-heading {
    margin-block-end: 34px;
}

.section-heading h2 {
    max-width: 850px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-line);
    background: #fff;
}

.service-card {
    min-height: 310px;
    padding: 28px;
    border-inline-end: 1px solid var(--color-line);
    border-top: 5px solid var(--color-blue);
}

.service-card:last-child {
    border-inline-end: 0;
}

.service-card:nth-child(2) {
    border-top-color: var(--color-red);
}

.service-card:nth-child(3) {
    border-top-color: var(--color-gold);
}

.service-card:nth-child(4) {
    border-top-color: var(--color-mint);
}

.service-card__number {
    display: inline-flex;
    margin-block-end: 64px;
    color: var(--color-red);
    font-weight: 900;
}

.service-card p {
    color: var(--color-muted);
}

.event-band {
    background: var(--color-green);
    color: #fff;
}

.event-band p {
    color: rgba(255, 255, 255, 0.76);
}

.event-panel {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 220px;
    background: #fff;
    color: var(--color-ink);
}

.event-panel__date {
    display: grid;
    place-content: center;
    padding: 24px;
    background: var(--color-gold);
    color: var(--color-ink);
    text-align: center;
}

.event-panel__date span {
    font-weight: 900;
    text-transform: uppercase;
}

.event-panel__date strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.event-panel__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px;
}

.involvement-list {
    display: grid;
    gap: 12px;
}

.involvement-list a {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    min-height: 84px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--color-line);
    background: #fff;
    text-decoration: none;
}

.involvement-list strong {
    color: var(--color-blue);
    font-size: 1.18rem;
}

.involvement-list span {
    color: var(--color-muted);
}

.cta-band {
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: #fff;
}

.cta-band .eyebrow {
    color: var(--color-gold);
}

.page-hero {
    background: var(--color-green-deep);
    color: #fff;
}

.page-hero--compact {
    padding-block: 96px 84px;
}

.featured-image {
    margin-block-start: 40px;
}

.featured-image img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--color-line);
}

.post-card__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.post-card__body {
    padding: 22px;
}

.post-card__meta {
    color: var(--color-blue);
    font-size: 0.84rem;
    font-weight: 900;
}

.post-card h2 {
    font-size: 1.45rem;
}

.pagination {
    grid-column: 1 / -1;
}

.join-hero,
.support-hero,
.construction-hero {
    padding-block: 76px;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.join-hero__grid,
.support-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 48px;
    align-items: center;
}

.support-hero__grid--solo {
    grid-template-columns: minmax(0, 820px);
}

.join-hero h1,
.support-hero h1,
.construction-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.35rem, 4vw, 4.1rem);
    line-height: 1.05;
}

.join-hero p:not(.eyebrow),
.support-hero p:not(.eyebrow),
.construction-hero p:not(.eyebrow) {
    max-width: 700px;
    color: var(--color-muted);
    font-size: 1.12rem;
}

.join-hero__panel {
    padding: 30px;
    border: 1px solid var(--color-line);
    border-top: 6px solid var(--color-gold);
    background: #fff;
    box-shadow: var(--shadow);
}

.join-hero__panel span,
.join-card span {
    display: inline-flex;
    margin-block-end: 18px;
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.join-hero__panel strong {
    display: block;
    color: var(--color-ink);
    font-size: 1.55rem;
    line-height: 1.2;
}

.join-hero__panel p {
    margin-block-end: 0;
}

.join-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.join-card,
.support-card {
    min-height: 240px;
    padding: 26px;
    border: 1px solid var(--color-line);
    background: #fff;
}

.join-card {
    border-top: 5px solid var(--color-blue);
}

.join-card:nth-child(2n) {
    border-top-color: var(--color-red);
}

.join-card:nth-child(3n) {
    border-top-color: var(--color-mint);
}

.join-card h3,
.support-card h3 {
    margin-block-start: 0;
    font-size: 1.35rem;
}

.join-card p,
.support-card p {
    color: var(--color-muted);
}

.support-card {
    border-inline-start: 5px solid var(--color-blue);
}

.support-card:nth-child(2n) {
    border-inline-start-color: var(--color-gold);
}

.support-card:nth-child(3n) {
    border-inline-start-color: var(--color-mint);
}

.join-process,
.support-process {
    padding-block: 76px;
    background: var(--color-green);
    color: #fff;
}

.join-process .eyebrow,
.support-process .eyebrow {
    color: var(--color-gold);
}

.join-process__grid,
.support-process__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: start;
}

.join-process p,
.support-process p,
.support-steps span {
    color: rgba(255, 255, 255, 0.78);
}

.support-steps {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.support-steps li {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.support-steps strong {
    color: #fff;
}

.construction-hero {
    min-height: 56vh;
    display: grid;
    align-items: center;
}

.construction-hero__inner {
    max-width: 860px;
}

.site-footer {
    background: #ffffff;
    color: var(--color-ink);
    border-top: 6px solid var(--color-blue);
}

.site-footer__inner {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.95fr) minmax(220px, 0.75fr);
    gap: 38px;
    padding-block: 60px;
}

.site-footer .site-brand,
.site-footer a {
    color: var(--color-ink);
}

.site-footer .site-brand small,
.site-footer p,
.footer-list {
    color: var(--color-muted);
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-blue);
}

.site-footer__brand p {
    max-width: 410px;
}

.site-footer__charity-number {
    font-weight: 900;
    color: var(--color-ink) !important;
}

.footer-list {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
}

.site-footer__bottom {
    width: var(--container);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-block: 20px;
    border-top: 1px solid var(--color-line);
}

.site-footer__bottom p {
    margin: 0;
}

body.rtl .primary-menu,
body.hc-lang-fa .primary-menu {
    direction: rtl;
}

body.rtl .eyebrow,
body.hc-lang-fa .eyebrow {
    text-transform: none;
}

@media (max-width: 980px) {
    .site-header__inner {
        grid-template-columns: minmax(0, auto) 44px;
        justify-content: stretch;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        inset-inline: 16px;
        inset-block-start: calc(100% + 8px);
        display: none;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--color-line);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-menu {
        display: grid;
        gap: 4px;
        justify-content: stretch;
    }

    .primary-menu a {
        min-height: 42px;
    }

    .site-header__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-block-end: 12px;
    }

    .hero {
        min-height: 620px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.55rem, 12vw, 4.8rem);
    }

    .hero__quick-actions,
    .intro-band__grid,
    .about-hero__grid,
    .about-statement__grid,
    .about-work-band__grid,
    .volunteer-hero__grid,
    .volunteer-feature__grid,
    .volunteer-process__grid,
    .events-hero__grid,
    .events-layout,
    .event-report-card,
    .report-hero__grid,
    .report-layout,
    .join-hero__grid,
    .support-hero__grid,
    .join-process__grid,
    .support-process__grid,
    .media-grid,
    .home-photo-feature__grid,
    .contact-hero__grid,
    .contact-layout,
    .event-band__grid,
    .split-section,
    .cta-band__inner,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .about-card-grid,
    .volunteer-grid,
    .join-grid,
    .support-grid,
    .resources-pathways__grid,
    .resources-grid,
    .document-grid,
    .directory-list,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-featured__card,
    .resources-notice__inner,
    .directory-section__grid,
    .latest-resources__grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(2) {
        border-inline-end: 0;
    }

    .volunteer-card:nth-child(2) {
        border-inline-end: 0;
    }

    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .volunteer-card:nth-child(1),
    .volunteer-card:nth-child(2) {
        border-bottom: 1px solid var(--color-line);
    }
}

@media (max-width: 680px) {
    :root {
        --container: min(100vw - 24px, 1120px);
    }

    body {
        font-size: 15px;
    }

    .site-header__inner {
        min-height: 66px;
        gap: 12px;
    }

    .site-brand {
        min-width: 0;
    }

    .site-brand strong,
    .site-brand small {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .custom-logo {
        max-width: 168px;
    }

    .site-brand--logo img {
        max-width: 230px;
        max-height: 54px;
    }

    .site-header__actions {
        align-items: center;
        gap: 10px;
    }

    .language-switcher {
        width: auto;
        justify-content: center;
    }

    .site-header__actions .language-switcher {
        flex: 0 1 280px;
        min-width: 0;
    }

    .hero {
        min-height: 720px;
    }

    .hero__content {
        padding-block: 76px 68px;
    }

    .hero__lead {
        font-size: 1.08rem;
    }

    .hero__quick-actions,
    .service-grid,
    .about-card-grid,
    .volunteer-grid,
    .join-grid,
    .support-grid,
    .resources-pathways__grid,
    .resources-grid,
    .document-grid,
    .directory-list,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero__quick-actions a,
    .service-card,
    .volunteer-card {
        border-inline-end: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .hero__quick-actions a:last-child,
    .service-card:last-child,
    .volunteer-card:last-child {
        border-bottom: 0;
    }

    .intro-band,
    .about-hero,
    .about-statement,
    .about-work-band,
    .join-hero,
    .support-hero,
    .construction-hero,
    .join-process,
    .support-process,
    .resources-hero,
    .resources-pathways,
    .volunteer-hero,
    .volunteer-process,
    .contact-hero,
    .event-band,
    .cta-band,
    .content-section {
        padding-block: 56px;
    }

    .about-hero__copy h1 {
        font-size: clamp(2.15rem, 9.5vw, 3.6rem);
    }

    .contact-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.8rem);
    }

    .volunteer-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.8rem);
    }

    .resources-hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.8rem);
    }

    .resources-hero h2 {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .pathway-card,
    .resource-card {
        min-height: auto;
    }

    .resources-featured__card {
        padding: 24px;
    }

    .resources-notice__inner {
        gap: 8px;
        padding: 16px 18px;
    }

    .resources-cta {
        padding-block: 36px;
    }

    .resources-cta .cta-band__inner {
        grid-template-columns: 1fr;
    }

    .resources-cta h2 {
        font-size: clamp(1.35rem, 7vw, 1.85rem);
    }

    .document-card {
        min-height: 160px;
    }

    .contact-intro {
        position: static;
    }

    .upcoming-card,
    .report-summary {
        position: static;
    }

    .contact-form {
        padding: 20px;
    }

    .events-hero h1,
    .report-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.7rem);
    }

    .event-report-card__image img {
        min-height: 230px;
    }

    .event-report-card__date {
        justify-items: start;
        padding: 18px 24px;
        text-align: start;
    }

    .event-report-card__date strong {
        font-size: 3rem;
    }

    .event-report-card__body {
        padding: 24px;
    }

    .media-item,
    .media-item--large {
        min-height: 260px;
    }

    .home-photo-feature {
        padding-block: 56px;
    }

    .about-card {
        min-height: 250px;
    }

    .about-card span {
        margin-block-end: 34px;
    }

    .service-card {
        min-height: 240px;
    }

    .volunteer-card {
        min-height: 240px;
    }

    .service-card__number {
        margin-block-end: 34px;
    }

    .volunteer-card span {
        margin-block-end: 34px;
    }

    .volunteer-spotlight {
        padding: 24px;
    }

    .volunteer-steps li {
        grid-template-columns: 1fr;
    }

    .volunteer-steps strong,
    .volunteer-steps span {
        grid-column: 1;
    }

    .event-panel,
    .involvement-list a,
    .support-steps li {
        grid-template-columns: 1fr;
    }

    .event-panel__date {
        min-height: 130px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
