/* ==========================================================================
   Matonyok design system (website review, section 9)
   Forest green + mango, two typefaces, 22px cards, pill buttons.
   No blur, no sliders, no animated gradients.
   New components are prefixed m-. The last part of the file restyles the
   older template pages so they match.
   ========================================================================== */

:root {
    --m-forest: #234D35;
    --m-deep: #163423;
    --m-mango: #E9A23B;
    --m-mango-dark: #D08A22;
    --m-mango-light: #F2C26B;
    --m-bg: #FAFAF6;
    --m-soft: #E8EFE6;
    --m-ink: #1B1F1C;
    --m-muted: #4E5A52;
    --m-border: #DCE1DA;
    --m-white: #FFFFFF;
    --m-radius: 22px;
    --m-radius-sm: 12px;
    --m-font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --m-font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --m-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--m-header-h) + 16px); }

body {
    margin: 0;
    background: var(--m-bg);
    color: var(--m-ink);
    font-family: var(--m-font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--m-font-head);
    font-weight: 700;
    color: var(--m-forest);
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

a { color: var(--m-forest); text-underline-offset: 3px; }
a:hover { color: var(--m-deep); }

:focus-visible {
    outline: 3px solid var(--m-mango);
    outline-offset: 3px;
    border-radius: 4px;
}

.m-skip {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--m-deep); color: #fff; padding: 12px 18px; border-radius: 999px;
    text-decoration: none; font-weight: 600;
}
.m-skip:focus { top: 12px; color: #fff; }

.m-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.m-container--narrow { max-width: 780px; }

.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 24px;
    border: 2px solid transparent; border-radius: 999px;
    font-family: var(--m-font-body); font-size: 17px; font-weight: 700; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.m-btn--donate { background: var(--m-mango); color: var(--m-deep); }
.m-btn--donate:hover { background: var(--m-mango-dark); color: var(--m-deep); }
.m-btn--primary { background: var(--m-forest); color: #fff; }
.m-btn--primary:hover { background: var(--m-deep); color: #fff; }
.m-btn--ghost { background: transparent; border-color: var(--m-forest); color: var(--m-forest); }
.m-btn--ghost:hover { background: var(--m-soft); color: var(--m-deep); }
.m-btn--light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.m-btn--light:hover { background: rgba(255,255,255,.12); color: #fff; }
.m-btn--block { width: 100%; }
.m-btn--lg { min-height: 54px; font-size: 19px; padding: 14px 30px; }

.m-link { font-weight: 700; text-decoration: none; }
.m-link::after { content: " \2192"; }
.m-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.m-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--m-white);
    border-bottom: 1px solid var(--m-border);
}
.m-header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--m-header-h); }
.m-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.m-brand img { height: 54px; width: auto; display: block; }
.m-brand span { font-family: var(--m-font-head); font-weight: 700; font-size: 20px; color: var(--m-forest); line-height: 1.05; }
.m-brand small { display: block; font-family: var(--m-font-body); font-weight: 400; font-size: 13px; color: var(--m-muted); letter-spacing: 0; }

.m-nav { margin-left: auto; }
.m-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.m-nav__item { position: relative; }
.m-nav__link {
    display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
    border-radius: 999px; background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--m-ink); text-decoration: none;
}
.m-nav__link:hover, .m-nav__item.is-active > .m-nav__link { background: var(--m-soft); color: var(--m-forest); }
.m-nav__caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.m-nav__sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--m-white); border: 1px solid var(--m-border); border-radius: 16px;
    box-shadow: 0 12px 28px rgba(22,52,35,.12);
}
.m-nav__item.is-open > .m-nav__sub { display: block; }
/* Hover and keyboard focus open the submenu on desktop only; on phones the button toggles it. */
@media (min-width: 992px) {
    .m-nav__item:focus-within > .m-nav__sub { display: block; }
}
@media (hover: hover) and (min-width: 992px) { .m-nav__item:hover > .m-nav__sub { display: block; } }
.m-nav__sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--m-ink); text-decoration: none; font-weight: 500; }
.m-nav__sub a:hover { background: var(--m-soft); color: var(--m-forest); }

.m-header__donate { flex: 0 0 auto; }
.m-burger {
    display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--m-border); border-radius: 12px;
    background: var(--m-white); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.m-burger span { display: block; width: 20px; height: 2px; background: var(--m-forest); border-radius: 2px; }

@media (max-width: 991px) {
    :root { --m-header-h: 60px; }
    .m-brand img { height: 40px; }
    .m-brand span { font-size: 17px; }
    .m-brand small { display: none; }
    .m-burger { display: flex; }
    .m-header__donate { margin-left: auto; min-height: 42px; padding: 8px 18px; font-size: 16px; }
    .m-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--m-white); border-bottom: 1px solid var(--m-border);
        max-height: calc(100vh - var(--m-header-h)); overflow-y: auto; padding: 8px 20px 20px;
    }
    .m-nav.is-open { display: block; }
    .m-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .m-nav__link { width: 100%; justify-content: space-between; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--m-border); font-size: 18px; }
    .m-nav__sub { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 12px; }
    .m-nav__sub a { padding: 12px 8px; }
}
@media (max-width: 400px) { .m-brand span { display: none; } }

/* ---------- Sections ---------- */
.m-section { padding: 72px 0; }
.m-section--tint { background: var(--m-soft); }
.m-section--white { background: var(--m-white); }
.m-section--dark { background: var(--m-deep); color: #E6ECE7; }
.m-section--dark h2, .m-section--dark h3 { color: #fff; }
.m-section--dark a:not(.m-btn) { color: var(--m-mango-light); }
@media (max-width: 767px) { .m-section { padding: 48px 0; } }

.m-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--m-forest); }
.m-section--dark .m-eyebrow { color: var(--m-mango-light); }
.m-h1 { margin: 0 0 18px; font-size: clamp(34px, 5.2vw, 58px); }
.m-h2 { margin: 0 0 14px; font-size: clamp(27px, 3.4vw, 40px); }
.m-h3 { margin: 0 0 8px; font-size: 22px; }
.m-lead { margin: 0 0 22px; font-size: clamp(18px, 2vw, 21px); color: var(--m-muted); max-width: 62ch; }
.m-section--dark .m-lead { color: #C9D6CD; }
.m-head { margin-bottom: 36px; max-width: 760px; }
.m-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.m-muted { color: var(--m-muted); }
.m-center { text-align: center; }
.m-center .m-head, .m-center .m-lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.m-hero { padding: 56px 0 64px; background: var(--m-bg); }
.m-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.m-hero__media { position: relative; }
.m-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--m-radius); }
.m-caption { margin: 10px 2px 0; font-size: 14px; color: var(--m-muted); }
@media (max-width: 900px) {
    .m-hero { padding: 28px 0 40px; }
    .m-hero__grid { grid-template-columns: 1fr; gap: 24px; }
    .m-hero__media { order: -1; }
    .m-hero__media img { aspect-ratio: 16 / 10; }
}

/* ---------- Impact band ---------- */
.m-band { background: var(--m-forest); color: #fff; padding: 36px 0; }
.m-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; }
.m-band__item { display: flex; flex-direction: column-reverse; }
.m-band dd { margin: 0; font-family: var(--m-font-head); font-weight: 700; font-size: clamp(34px, 4.4vw, 50px); line-height: 1; color: var(--m-mango-light); }
.m-band dt { margin-top: 8px; font-size: 16px; font-weight: 500; color: #E3EBE5; }
@media (max-width: 600px) { .m-band__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }

/* ---------- Grids and cards ---------- */
.m-grid { display: grid; gap: 24px; }
.m-grid--2 { grid-template-columns: repeat(2, 1fr); }
.m-grid--3 { grid-template-columns: repeat(3, 1fr); }
.m-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1050px) { .m-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .m-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .m-grid--2, .m-grid--3, .m-grid--4 { grid-template-columns: 1fr; } }

.m-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--m-white); border: 1px solid var(--m-border); border-radius: var(--m-radius);
}
.m-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--m-soft); }
.m-card__img--tall { aspect-ratio: 4 / 5; }
.m-card__placeholder {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2;
    background: var(--m-soft); color: var(--m-forest); font-family: var(--m-font-head); font-weight: 700; font-size: 44px;
}
.m-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.m-card__body p { margin: 0 0 14px; color: var(--m-muted); }
.m-card__title { margin: 0 0 8px; font-size: 21px; }
.m-card__title a { color: inherit; text-decoration: none; }
.m-card__title a:hover { text-decoration: underline; }
.m-card__foot { margin-top: auto; }
.m-card--link { position: relative; transition: border-color .15s ease; }
.m-card--link:hover { border-color: var(--m-forest); }
.m-card--link .m-card__title a::after { content: ""; position: absolute; inset: 0; }
.m-card--pad { padding: 28px; }
.m-card--soft { background: var(--m-soft); border-color: transparent; }

.m-tag { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--m-soft); color: var(--m-forest); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.m-meta { margin: 0 0 8px; font-size: 14px; color: var(--m-muted); }

/* ---------- Split (image + text) ---------- */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.m-split img { width: 100%; border-radius: var(--m-radius); display: block; object-fit: cover; }
@media (max-width: 860px) { .m-split { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Quote ---------- */
.m-quote { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.m-quote__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--m-radius); display: block; }
.m-quote blockquote { margin: 0; }
.m-quote blockquote p { margin: 0 0 20px; font-family: var(--m-font-head); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.22; color: var(--m-forest); }
.m-quote__more { font-size: 18px; color: var(--m-ink); max-width: 60ch; }
.m-quote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; }
.m-quote cite span { display: block; font-weight: 400; color: var(--m-muted); }
@media (max-width: 800px) { .m-quote { grid-template-columns: 1fr; gap: 24px; } .m-quote__photo { max-width: 220px; } }

/* ---------- Giving tiers ---------- */
.m-tier { text-align: left; text-decoration: none; padding: 26px; background: var(--m-white); border: 1px solid var(--m-border); border-radius: var(--m-radius); display: flex; flex-direction: column; gap: 8px; color: var(--m-ink); }
.m-tier:hover { border-color: var(--m-mango-dark); color: var(--m-ink); }
.m-tier__amount { font-family: var(--m-font-head); font-weight: 700; font-size: 38px; line-height: 1; color: var(--m-forest); }
.m-tier__text { color: var(--m-muted); flex: 1; }
.m-tier__cta { font-weight: 700; color: var(--m-forest); }
.m-tier__cta::after { content: " \2192"; }

/* ---------- Proof / facts ---------- */
.m-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.m-facts > div { padding: 18px 20px; background: var(--m-white); border: 1px solid var(--m-border); border-radius: 16px; }
.m-facts dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); }
.m-facts dd { margin: 4px 0 0; font-weight: 600; }
.m-partners { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; list-style: none; padding: 0; margin: 0; }
.m-partners li { background: var(--m-white); border: 1px solid var(--m-border); border-radius: 16px; padding: 14px 20px; }
.m-partners img { display: block; max-height: 56px; width: auto; }

.m-list { margin: 0; padding: 0; list-style: none; }
.m-list li { position: relative; padding: 8px 0 8px 30px; }
.m-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--m-forest); border-bottom: 3px solid var(--m-forest); transform: rotate(-45deg); }

/* ---------- Page header (inner pages) ---------- */
.m-pagehead { background: var(--m-soft); padding: 52px 0 44px; }
.m-pagehead .m-h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 12px; }
.m-pagehead .m-lead { margin-bottom: 0; }
.m-crumbs { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--m-muted); }
.m-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--m-border); }
.m-crumbs a { color: var(--m-muted); }

/* ---------- Prose (rich text from the admin editor) ---------- */
.m-prose { font-size: 18px; max-width: 72ch; overflow-wrap: break-word; }
.m-prose > *:first-child { margin-top: 0; }
.m-prose p, .m-prose div { margin: 0 0 16px; }
.m-prose h2, .m-prose h3, .m-prose h4 { margin: 32px 0 12px; }
.m-prose ul, .m-prose ol { padding-left: 24px; margin: 0 0 16px; }
.m-prose li { margin-bottom: 6px; }
.m-prose img { border-radius: var(--m-radius-sm); }
.m-prose iframe { max-width: 100%; }

/* ---------- Forms ---------- */
.m-field { margin-bottom: 18px; }
.m-label { display: block; margin-bottom: 6px; font-weight: 700; }
.m-hint { display: block; font-weight: 400; font-size: 15px; color: var(--m-muted); }
.m-input, .m-select, .m-textarea {
    width: 100%; min-height: 48px; padding: 11px 14px;
    font: inherit; color: var(--m-ink); background: var(--m-white);
    border: 1.5px solid #B9C2BB; border-radius: var(--m-radius-sm);
}
.m-textarea { min-height: 130px; resize: vertical; }
.m-input:focus, .m-select:focus, .m-textarea:focus { outline: 3px solid var(--m-mango); outline-offset: 1px; border-color: var(--m-forest); }
.m-hp { position: absolute !important; left: -9999px !important; }

.m-inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.m-inline-form .m-input { flex: 1 1 220px; }

/* Choice pills (radio buttons) */
.m-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 0; padding: 0; margin: 0 0 22px; }
.m-choices legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 18px; color: var(--m-ink); }
.m-choice { position: relative; }
.m-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.m-choice span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 10px 12px; text-align: center;
    background: var(--m-white); border: 2px solid var(--m-border); border-radius: 14px; font-weight: 700; line-height: 1.2;
}
.m-choice small { font-weight: 400; font-size: 13px; color: var(--m-muted); }
.m-choice input:checked + span { border-color: var(--m-forest); background: var(--m-soft); color: var(--m-forest); }
.m-choice input:focus-visible + span { outline: 3px solid var(--m-mango); outline-offset: 2px; }

/* ---------- Donate page ---------- */
.m-donate { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.m-donate__panel { background: var(--m-white); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 30px; }
.m-donate__impact { margin: 0 0 22px; padding: 16px 18px; background: var(--m-soft); border-radius: 14px; font-weight: 600; color: var(--m-forest); }
.m-donate__aside { position: sticky; top: calc(var(--m-header-h) + 20px); }
.m-amount-custom { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.m-amount-custom span { font-weight: 700; min-width: 44px; }
.m-pay-panel { display: none; margin-bottom: 20px; }
.m-pay-panel.is-active { display: block; }
.m-steps { margin: 0; padding-left: 22px; }
.m-steps li { margin-bottom: 8px; }
.m-note { padding: 14px 16px; border-left: 4px solid var(--m-mango); background: #FFF7E8; border-radius: 0 12px 12px 0; }
@media (max-width: 900px) { .m-donate { grid-template-columns: 1fr; } .m-donate__aside { position: static; } .m-donate__panel { padding: 22px 18px; } }

/* ---------- Filters ---------- */
.m-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }
.m-toolbar .m-input { max-width: 340px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--m-border); background: var(--m-white); font: inherit; font-weight: 600; color: var(--m-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.m-chip:hover { border-color: var(--m-forest); color: var(--m-forest); }
.m-chip.is-active, .m-chip[aria-pressed="true"] { background: var(--m-forest); border-color: var(--m-forest); color: #fff; }
.m-count { margin-left: auto; color: var(--m-muted); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- Gallery + lightbox ---------- */
.m-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.m-gallery a { display: block; border-radius: 14px; overflow: hidden; }
.m-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.m-lightbox { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(10,20,14,.94); padding: 20px; }
.m-lightbox.is-open { display: flex; }
.m-lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.m-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--m-deep); font-size: 24px; line-height: 1; cursor: pointer; }
.m-lightbox__close { top: 16px; right: 16px; }
.m-lightbox__prev { left: 16px; top: 50%; margin-top: -24px; }
.m-lightbox__next { right: 16px; top: 50%; margin-top: -24px; }

.m-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--m-radius); overflow: hidden; background: #000; }
.m-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Accordion (FAQ) ---------- */
.m-faq { border: 1px solid var(--m-border); border-radius: 16px; background: var(--m-white); margin-bottom: 12px; }
.m-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--m-forest); }
.m-faq[open] summary::after { content: "\2212"; }
.m-faq__body { padding: 0 22px 20px; color: var(--m-muted); }

/* ---------- Flash messages ---------- */
.m-flash { padding: 14px 0; font-weight: 600; }
.m-flash--success { background: #DDEFE1; color: #14432A; }
.m-flash--error { background: #FBE3DD; color: #7A1F0E; }
.m-flash ul { margin: 0; padding-left: 20px; }

/* ---------- Timeline / values ---------- */
.m-values { counter-reset: v; }
.m-values .m-card { counter-increment: v; }
.m-values .m-card__title::before { content: counter(v, decimal-leading-zero); display: block; font-size: 14px; color: var(--m-mango-dark); letter-spacing: .08em; margin-bottom: 6px; }

.m-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.m-team a { text-decoration: none; color: inherit; }
.m-team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--m-radius); display: block; margin-bottom: 10px; background: var(--m-soft); }
.m-team strong { display: block; font-family: var(--m-font-head); color: var(--m-forest); }
.m-team span { color: var(--m-muted); font-size: 15px; }

/* ---------- Newsletter ---------- */
.m-news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 800px) { .m-news { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Footer ---------- */
.m-footer { background: var(--m-deep); color: #C9D6CD; padding: 60px 0 0; font-size: 16px; }
.m-footer a { color: #E6ECE7; text-decoration: none; }
.m-footer a:hover { color: var(--m-mango-light); text-decoration: underline; }
.m-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.m-footer h2 { margin: 0 0 14px; font-size: 17px; color: #fff; letter-spacing: 0; }
.m-footer ul { list-style: none; margin: 0; padding: 0; }
.m-footer li { margin-bottom: 4px; }
.m-footer li a { display: inline-block; padding: 5px 0; }
.m-footer__logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; }
.m-footer__logo img { display: block; height: 58px; width: auto; }
.m-footer address { font-style: normal; line-height: 1.7; }
.m-social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px !important; }
.m-footer__bottom { margin-top: 44px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 15px; }
.m-footer .m-input { border-color: transparent; }
@media (max-width: 900px) { .m-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .m-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Fixed donate bar (mobile) ---------- */
.m-donatebar { display: none; }
@media (max-width: 767px) {
    .m-donatebar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--m-deep); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.25;
    }
    .m-donatebar .m-btn { min-height: 44px; padding: 8px 22px; flex: 0 0 auto; }
    body.has-donatebar { padding-bottom: 68px; }
}

.m-empty { padding: 36px 28px; border: 2px dashed var(--m-border); border-radius: var(--m-radius); background: var(--m-white); text-align: center; }
.m-empty h3 { margin-top: 0; }

.m-pagination { margin-top: 32px; }

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

/* ==========================================================================
   Older template pages (blog post, events, contact, team, gallery ...)
   These still use Bootstrap markup. Bring them onto the same palette and
   switch off the heavy effects.
   ========================================================================== */

/* Blur is expensive on budget phones, so it is switched off on small screens.
   Larger screens get the glass effect defined at the end of this file. */
@media (max-width: 767px) {
    *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

.legacy-page p { line-height: 1.6; }
.legacy-page .wow { visibility: visible !important; animation: none !important; }

.page-top {
    position: relative; padding: 48px 0 40px !important; overflow: visible;
    background: var(--m-soft) !important; background-image: none !important; text-align: left;
}
.page-top::before, .page-top::after, .page-top .bg { display: none !important; }
.page-top h1, .page-top h2, .page-top h3 {
    display: block; margin: 0 0 8px; max-width: none; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
    font-size: clamp(30px, 4.4vw, 46px); text-align: left;
    color: var(--m-forest) !important; -webkit-text-fill-color: var(--m-forest) !important;
}
.page-top .breadcrumb-container { text-align: left; }
.page-top .breadcrumb { display: flex; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.page-top .breadcrumb, .page-top .breadcrumb a, .page-top .breadcrumb-item,
.page-top p, .page-top span, .page-top small {
    color: var(--m-muted) !important; -webkit-text-fill-color: var(--m-muted) !important;
}
.page-top .page-badge { background: var(--m-white); border: 1px solid var(--m-border); color: var(--m-forest) !important; -webkit-text-fill-color: var(--m-forest) !important; font-size: .4em; }

.legacy-page .button-style-1 a, .legacy-page .button-style-2 a,
.legacy-page .btn-primary, .legacy-page .btn-success, .legacy-page .readmore-toggle,
.legacy-page input[type="submit"].btn, .legacy-page button[type="submit"].btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    background: var(--m-forest) !important; background-image: none !important; border: 2px solid var(--m-forest) !important;
    color: #fff !important; border-radius: 999px !important; padding: 9px 22px !important;
    font-weight: 700; text-decoration: none; box-shadow: none !important; transform: none !important;
}
.legacy-page .button-style-1 a:hover, .legacy-page .button-style-2 a:hover,
.legacy-page .btn-primary:hover, .legacy-page .btn-success:hover, .legacy-page .readmore-toggle:hover {
    background: var(--m-deep) !important; border-color: var(--m-deep) !important; color: #fff !important;
}

.legacy-page .form-control { min-height: 46px; border: 1.5px solid #B9C2BB; border-radius: var(--m-radius-sm); font-size: 17px; }
.legacy-page .form-control:focus { border-color: var(--m-forest); box-shadow: 0 0 0 3px rgba(233,162,59,.55); }

.legacy-page .glassy-card, .legacy-page .content-gallery, .legacy-page .widget,
.legacy-page .blog-card-wrapper, .legacy-page .card {
    background: var(--m-white) !important; border: 1px solid var(--m-border) !important;
    border-radius: var(--m-radius) !important; box-shadow: none !important;
}
.legacy-page .glassy-card::before, .legacy-page .blog-card-wrapper::before { display: none !important; }
.legacy-page .glassy-card:hover, .legacy-page .blog-card-wrapper:hover, .legacy-page .gallery-item:hover { transform: none !important; }

.legacy-page .progress { height: 10px; border-radius: 999px; background: var(--m-soft); }
.legacy-page .progress-bar { background: var(--m-forest) !important; }

/* Only inside the page content: the header and footer have their own link colours. */
.legacy-page main a:not(.m-btn):not(.btn):not(.page-link) { color: var(--m-forest); }
.legacy-page .pagination .page-link { color: var(--m-forest); border-radius: 10px; margin: 0 3px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.legacy-page .pagination .active .page-link { background: var(--m-forest); border-color: var(--m-forest); color: #fff; }

/* Gallery/lightbox pieces shared by older pages */
.readmore-hidden { display: none !important; }
.readmore-hidden.is-open { display: block !important; }
.content-gallery { margin-top: 30px; padding: 25px; }
.content-gallery h4 { margin-bottom: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; }
.video-item { cursor: default; }
.gallery-image { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(22,52,35,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.gallery-item:not(.video-item):hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.6rem; }
.lightbox-modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(10,20,14,.94); }
.lightbox-close { position: absolute; top: 15px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 10000; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 20px; z-index: 10001; pointer-events: none; }
.lightbox-btn { background: #fff; border: 0; color: var(--m-deep); padding: 14px 19px; font-size: 18px; cursor: pointer; border-radius: 50%; pointer-events: auto; }
.lightbox-content { position: relative; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; max-width: 90%; }
.lightbox-content img, #lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; padding: 10px 24px; border-radius: 25px; text-align: center; max-width: 80%; }
#lightbox-caption-text { display: block; font-weight: 500; }
#lightbox-counter { display: block; font-size: .85em; opacity: .8; }
.sidebar-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 12px 16px; background: var(--m-soft); border-radius: 12px; }
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .gallery-image { height: 150px; }
}

/* Older pages were spaced for the previous fixed header. */
.page-top { margin-top: 0 !important; }
.page-top .breadcrumb { justify-content: flex-start; }
.legacy-page .page-top + * { margin-top: 0; }

.page-top .breadcrumb-container { display: block; text-align: left; }
.page-top .breadcrumb-container .breadcrumb, .page-top ol.breadcrumb { justify-content: flex-start; padding-left: 0; margin: 0; }
.page-top .row { text-align: left; }

/* Giving call to action above the footer */
.m-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.m-cta > div { max-width: 720px; }
.m-cta p { margin: 0; }

/* Appeal page donate box, on the site palette */
.legacy-page .donate-section, .legacy-page .donation-form, .legacy-page .cause-detail .right-item .donate-box { background: var(--m-deep) !important; border-radius: var(--m-radius); }
.legacy-page .alert-info { background: var(--m-soft); border-color: var(--m-border); color: var(--m-ink); }
.legacy-page .donate-sec { background: var(--m-deep) !important; border-radius: var(--m-radius); }
.legacy-page .donate-sec .btn { background: var(--m-mango) !important; border-color: var(--m-mango) !important; color: var(--m-deep) !important; }
.legacy-page .donate-sec .donate-select, .legacy-page .donate-sec .donate-select ul { display: flex; flex-wrap: wrap; gap: 8px; }
.legacy-page .donate-sec button.donate-now { background: var(--m-mango) !important; border-color: var(--m-mango) !important; color: var(--m-deep) !important; justify-content: center; width: 100%; }


/* ==========================================================================
   Glass cards and depth
   Cards are translucent with a soft shadow and sit on gentle colour washes.
   The blur itself is applied from tablet width up; phones get the same
   translucent look without blur, so scrolling stays smooth on budget devices.
   ========================================================================== */

:root {
    --m-glass: rgba(255, 255, 255, .66);
    --m-glass-strong: rgba(255, 255, 255, .84);
    --m-glass-border: rgba(255, 255, 255, .85);
    --m-shadow: 0 10px 30px rgba(22, 52, 35, .10), 0 2px 6px rgba(22, 52, 35, .05);
    --m-shadow-lift: 0 22px 48px rgba(22, 52, 35, .17), 0 4px 10px rgba(22, 52, 35, .07);
}

/* Colour washes behind the cards (static: nothing animates) */
.m-section, .m-hero, .m-pagehead { position: relative; isolation: isolate; }
.m-section::before, .m-hero::before, .m-pagehead::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38rem 26rem at 8% 12%, rgba(47, 163, 107, .20), transparent 68%),
        radial-gradient(34rem 24rem at 94% 88%, rgba(233, 162, 59, .18), transparent 68%);
}
main > .m-section:nth-of-type(even)::before {
    background:
        radial-gradient(36rem 24rem at 92% 10%, rgba(24, 150, 143, .18), transparent 68%),
        radial-gradient(34rem 24rem at 6% 90%, rgba(47, 163, 107, .18), transparent 68%);
}
.m-section--white { background: rgba(255, 255, 255, .6); }
.m-pagehead { background: linear-gradient(135deg, #e8efe6, #dcebe0); }
.m-section--dark::before {
    background:
        radial-gradient(34rem 22rem at 10% 0%, rgba(47, 163, 107, .38), transparent 68%),
        radial-gradient(30rem 22rem at 95% 100%, rgba(233, 162, 59, .22), transparent 68%) !important;
}

/* The glass surface */
.m-card, .m-tier, .m-donate__panel, .m-facts > div, .m-faq, .m-empty, .m-partners li,
.legacy-page .glassy-card, .legacy-page .content-gallery, .legacy-page .widget,
.legacy-page .blog-card-wrapper, .legacy-page .card {
    background: var(--m-glass) !important;
    border: 1px solid var(--m-glass-border) !important;
    box-shadow: var(--m-shadow), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}
.m-card--soft { background: rgba(232, 239, 230, .62) !important; }
.m-empty { border-style: dashed !important; border-color: rgba(35, 77, 53, .25) !important; }

@media (min-width: 768px) {
    .m-card, .m-tier, .m-donate__panel, .m-facts > div, .m-faq, .m-empty, .m-partners li,
    .legacy-page .glassy-card, .legacy-page .content-gallery, .legacy-page .widget,
    .legacy-page .blog-card-wrapper, .legacy-page .card {
        -webkit-backdrop-filter: blur(14px) saturate(145%);
                backdrop-filter: blur(14px) saturate(145%);
    }
    .m-header {
        background: rgba(255, 255, 255, .78);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
                backdrop-filter: blur(16px) saturate(150%);
        border-bottom-color: rgba(255, 255, 255, .7);
        box-shadow: 0 6px 24px rgba(22, 52, 35, .08);
    }
    .m-nav__sub {
        background: rgba(255, 255, 255, .9);
        -webkit-backdrop-filter: blur(16px);
                backdrop-filter: blur(16px);
        border-color: var(--m-glass-border);
        box-shadow: var(--m-shadow-lift);
    }
}
/* Phones and browsers without blur: a more solid panel keeps text easy to read */
@media (max-width: 767px) {
    .m-card, .m-tier, .m-donate__panel, .m-facts > div, .m-faq, .m-empty, .m-partners li { background: var(--m-glass-strong) !important; }
    .m-header { box-shadow: 0 4px 16px rgba(22, 52, 35, .08); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .m-card, .m-tier, .m-donate__panel, .m-facts > div, .m-faq, .m-empty, .m-partners li { background: var(--m-glass-strong) !important; }
}

/* Lift on hover for cards that are links */
.m-card, .m-tier { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.m-card--link:hover, .m-tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--m-shadow-lift), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    border-color: rgba(35, 77, 53, .28) !important;
}
.m-card__img { transition: transform .45s ease; }
.m-card--link:hover .m-card__img { transform: scale(1.04); }

/* Photos, hero and quote get the same depth */
.m-hero__media img, .m-split img, .m-quote__photo, .m-video, .m-gallery a, .m-team img {
    box-shadow: 0 18px 44px rgba(22, 52, 35, .20);
}
.m-hero__media img { border: 6px solid rgba(255, 255, 255, .8); }

/* Impact band: glass tiles on the green */
.m-band { background: linear-gradient(135deg, #1d5a3a, #234D35 45%, #17635a); position: relative; overflow: hidden; }
.m-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(30rem 16rem at 12% 0%, rgba(242, 194, 107, .22), transparent 70%), radial-gradient(28rem 16rem at 90% 100%, rgba(47, 163, 107, .35), transparent 70%);
}
.m-band .m-container { position: relative; }
.m-band__item {
    padding: 20px 22px; border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 10px 26px rgba(8, 30, 18, .22), inset 0 1px 0 rgba(255, 255, 255, .22);
}
@media (min-width: 768px) { .m-band__item { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }
@media (max-width: 600px) { .m-band__item { padding: 14px; } }

/* Dark call-to-action band and footer details */
.m-section--dark .m-cta { padding: 30px 32px; border-radius: var(--m-radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 44px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .16); }
@media (max-width: 600px) { .m-section--dark .m-cta { padding: 22px 18px; } }
.m-footer__logo { box-shadow: 0 10px 24px rgba(0, 0, 0, .28); }

/* Buttons, chips and fields pick up a soft shadow */
.m-btn--donate { box-shadow: 0 8px 20px rgba(233, 162, 59, .34); }
.m-btn--primary { box-shadow: 0 8px 20px rgba(35, 77, 53, .26); }
.m-btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.m-btn:hover { transform: translateY(-1px); }
.m-chip { background: var(--m-glass-strong); box-shadow: 0 4px 12px rgba(22, 52, 35, .07); }
.m-chip.is-active, .m-chip[aria-pressed="true"] { background: var(--m-forest); box-shadow: 0 8px 18px rgba(35, 77, 53, .28); }
.m-choice span { background: var(--m-glass-strong); box-shadow: 0 4px 12px rgba(22, 52, 35, .06); }
.m-choice input:checked + span { box-shadow: 0 8px 20px rgba(35, 77, 53, .18); }
.m-input, .m-select, .m-textarea { background: rgba(255, 255, 255, .92); }
.m-tag { background: rgba(35, 77, 53, .10); }
.m-donate__impact { background: rgba(35, 77, 53, .09); border: 1px solid rgba(35, 77, 53, .12); }
.m-donatebar { box-shadow: 0 -8px 24px rgba(0, 0, 0, .22); }

/* Older template pages */
.page-top { background: linear-gradient(135deg, #e8efe6, #dcebe0) !important; }
.legacy-page .glassy-card:hover, .legacy-page .blog-card-wrapper:hover { box-shadow: var(--m-shadow-lift) !important; }

@media (prefers-reduced-motion: reduce) {
    .m-card--link:hover, .m-tier:hover, .m-btn:hover { transform: none; }
    .m-card--link:hover .m-card__img { transform: none; }
}
