/* ============================================================
   DRISHYAA LIGHT OF HUMANITY COUNCIL
   Design system — Deep Forest & Brass
   ------------------------------------------------------------
   Typography : Fraunces (display serif) + Manrope (UI sans)
   Palette    : pine green, brass gold, bone, ink
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
    /* surfaces */
    --bg: #faf7f2;
    --bg-alt: #f3eee5;
    --surface: #ffffff;

    /* ink */
    --ink: #12211b;
    --ink-soft: #1b2e26;
    --text: #24312b;
    --muted: #5c6660;
    --muted-lt: #8b938d;

    /* brand */
    --primary: #14563c;
    --primary-dk: #0d3b29;
    --primary-lt: #e8f0eb;
    --accent: #c9a227;
    --accent-dk: #a8871b;
    --accent-lt: #f7f0da;

    /* lines */
    --line: #e4ded3;
    --line-soft: #efeae1;
    --line-dark: rgba(255, 255, 255, .14);

    /* shape */
    --r-sm: 3px;
    --r: 6px;
    --r-lg: 10px;

    /* elevation — soft and warm, never grey */
    --sh-sm: 0 1px 2px rgba(18, 33, 27, .05);
    --sh: 0 14px 34px -16px rgba(18, 33, 27, .18);
    --sh-lg: 0 28px 60px -24px rgba(18, 33, 27, .26);

    /* rhythm */
    --gutter: 24px;
    --max: 1200px;
    --sec-y: clamp(4.5rem, 8vw, 7.5rem);

    /* legacy aliases so any older markup keeps working */
    --primary-dark: var(--primary-dk);
    --orange: var(--accent);
    --gold: var(--accent);
    --dark: var(--ink);
    --dark-blue: var(--ink-soft);
    --border: var(--line);
    --light-bg: var(--bg-alt);
    --white: #fff;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .22s ease;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent-lt);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.015em;
    font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

p {
    text-wrap: pretty;
}

.lead {
    font-size: 1.075rem;
    line-height: 1.8;
    color: var(--muted);
}

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.wrapper {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-title {
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
    text-align: center;
}

/* eyebrow — hairline + small caps label, replaces the old pink pill */
.section-title .sub-tag,
.sub-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Manrope', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-dk);
    background: none;
    padding: 0;
    margin-bottom: 1.1rem;
    border-radius: 0;
}

.sub-tag::before,
.sub-tag::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent);
    opacity: .55;
    flex: none;
}

.section-title .sub-tag .fa {
    color: var(--accent);
    font-size: .8rem;
}

/* left-aligned eyebrows get one rule only */
.about-content .sub-tag::before,
.sector-hero-content .sub-tag::before {
    display: none;
}

.section-title h2 {
    font-size: clamp(1.95rem, 3.6vw, 2.9rem);
    margin-bottom: .9rem;
}

.section-title h2 span {
    color: var(--primary);
    font-style: italic;
}

.section-title p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 62ch;
    margin-inline: auto;
}

/* the old centred green dash — now a fine brass rule */
.section-divider {
    width: 44px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    opacity: .85;
}

/* dark sections invert the type colours */
.on-dark h2,
.on-dark h3,
.on-dark h4 {
    color: #fff;
}

.on-dark .section-title p {
    color: rgba(255, 255, 255, .66);
}

.on-dark .sub-tag {
    color: var(--accent);
}

.on-dark .sub-tag::before,
.on-dark .sub-tag::after {
    background: var(--accent);
    opacity: .5;
}

.on-dark .section-title h2 span {
    color: var(--accent);
}

/* ---------- 5. BUTTONS ---------- */
.btn-red,
.btn-outline-red,
.btn-white,
.btn-white-outline,
.btn-donate-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: 'Manrope', sans-serif;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
    padding: .8rem 1.75rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, border-color .22s ease,
        transform .22s ease, box-shadow .22s ease;
    white-space: nowrap;
}

.btn-red .fa,
.btn-outline-red .fa,
.btn-white .fa,
.btn-white-outline .fa {
    font-size: .95em;
}

/* primary — deep pine */
.btn-red {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 0 0 var(--primary-dk);
}

.btn-red:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 #072019, var(--sh);
}

.btn-red:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 0 var(--primary-dk);
}

/* secondary — hairline ghost */
.btn-outline-red {
    background: transparent;
    color: var(--primary);
    border-color: var(--line);
}

.btn-outline-red:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* on dark / photographic backgrounds */
.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-white-outline {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(4px);
}

.btn-white-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ---------- 6. TOP UTILITY BAR ---------- */
.top-header {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    min-height: 42px;
}

.top-header-inner>ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-header-inner ul li {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .25rem .95rem;
    position: relative;
    color: rgba(255, 255, 255, .72);
    letter-spacing: .01em;
}

.top-header-inner ul li:first-child {
    padding-left: 0;
}

.top-header-inner ul li+li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, .16);
}

.top-header-inner ul li a {
    color: rgba(255, 255, 255, .72);
}

.top-header-inner ul li a:hover {
    color: var(--accent);
}

.top-header-inner .fa {
    color: var(--accent);
    font-size: .85rem;
}

/* search */
.top-search {
    display: flex;
    align-items: center;
}

.top-search input {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-right: none;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    padding: .3rem .7rem;
    font-size: .76rem;
    color: #fff;
    width: 150px;
    transition: background .2s, border-color .2s, width .2s;
}

.top-search input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.top-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, .12);
    border-color: var(--accent);
    width: 185px;
}

.top-search button {
    background: var(--accent);
    color: var(--ink);
    border: 1px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: .3rem .65rem;
    font-size: .76rem;
    transition: background .2s;
}

.top-search button:hover {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
}

.top-search button .fa {
    color: var(--ink);
}

/* language select */
.lang-select {
    background-color: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .82);
    border-radius: var(--r-sm);
    padding: .28rem 1.6rem .28rem .6rem;
    font-size: .76rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%23c9a227' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .45rem center;
    background-size: 11px;
}

.lang-select:hover {
    border-color: rgba(201, 162, 39, .5);
}

.lang-select option {
    background: var(--ink);
    color: #fff;
}

/* social icon row — shared by top bar and footer */
.footer-social {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
    transition: all .25s ease;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    transform: translateY(-2px);
}

/* ---------- 7. MAIN HEADER ---------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}

.main-header.is-stuck {
    box-shadow: 0 8px 28px -18px rgba(18, 33, 27, .45);
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
    transition: min-height .3s ease;
}

.main-header.is-stuck .main-header-inner {
    min-height: 68px;
}

/* logo lockup */
.logo {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    overflow: hidden;
    transition: border-color .25s ease;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo:hover .logo-icon {
    border-color: var(--accent);
}

.logo-text h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.05;
    color: var(--ink);
}

.logo-text span {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .22rem;
    padding-top: .22rem;
    border-top: 1px solid var(--line);
}

/* ---------- 8. NAVIGATION ---------- */
.main-menu>ul {
    display: flex;
    align-items: center;
    gap: .1rem;
}

.main-menu>ul>li {
    position: relative;
}

.main-menu>ul>li>a {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .72rem;
    font-size: .865rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r-sm);
    position: relative;
}

/* brass underline grows from the centre */
.main-menu>ul>li>a::after {
    content: "";
    position: absolute;
    left: .72rem;
    right: .72rem;
    bottom: .28rem;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.main-menu>ul>li:hover>a,
.main-menu>ul>li:focus-within>a {
    color: var(--primary);
}

.main-menu>ul>li:hover>a::after,
.main-menu>ul>li:focus-within>a::after {
    transform: scaleX(1);
}

.main-menu>ul>li.nav-donate>a::after {
    display: none;
}

/* dropdown caret */
.main-menu .has-children>a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .45;
    order: 2;
    margin-left: .18rem;
    flex: none;
    transition: transform .25s ease, opacity .25s ease;
}

.main-menu>ul>li.has-children:hover>a::before {
    opacity: 1;
    transform: rotate(225deg) translateY(-3px);
}

/* nested (level 2+) caret points right instead */
.main-menu .sub-menu .has-children>a::before {
    transform: rotate(-45deg);
    margin-left: auto;
}

.main-menu .sub-menu .has-children:hover>a::before {
    transform: rotate(-45deg);
    opacity: 1;
}

/* the donate pill — brass, so it reads as *the* action */
.main-menu .nav-donate>a {
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
    padding: .68rem 1.3rem;
    border-radius: var(--r-sm);
    box-shadow: 0 2px 0 0 var(--accent-dk);
    margin-left: .55rem;
    transition: all .22s ease;
}

.main-menu .nav-donate>a:hover {
    background: var(--ink);
    color: var(--accent);
    box-shadow: 0 4px 0 0 #000;
    transform: translateY(-2px);
}

/* ---------- 9. DROPDOWN PANELS ---------- */
.main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 248px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--sh-lg);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 950;
}

.main-menu li:hover>.sub-menu,
.main-menu li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    position: relative;
}

.main-menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .62rem .85rem;
    font-size: .845rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-sm);
    position: relative;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

/* gold tick that slides in on hover */
.main-menu .sub-menu a::after {
    content: "";
    position: absolute;
    left: .3rem;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--accent);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height .22s ease;
}

.main-menu .sub-menu a:hover {
    background: var(--primary-lt);
    color: var(--primary);
    padding-left: 1.1rem;
}

.main-menu .sub-menu a:hover::after {
    height: 16px;
}

/* third level flies out to the right */
.main-menu .sub-menu .sub-menu {
    top: -.5rem;
    left: calc(100% + 4px);
    border-top: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: var(--r);
    transform: translateX(8px);
}

.main-menu .sub-menu li:hover>.sub-menu {
    transform: translateX(0);
}

/* keep the right-hand menus inside the viewport */
.main-menu>ul>li:nth-last-child(-n+3) .sub-menu {
    left: auto;
    right: 0;
}

.main-menu>ul>li:nth-last-child(-n+3) .sub-menu .sub-menu {
    left: auto;
    right: calc(100% + 4px);
}

/* ---------- 10. MOBILE TOGGLE + DRAWER SHELL ---------- */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 1.1rem;
    background: #fff;
    transition: all .2s ease;
}

.drawer-close,
.drawer-title {
    display: none;
}

.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 33, 27, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    z-index: 980;
}

body.nav-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* ---------- 11. MOBILE DRAWER (nav under 992px) ---------- */
@media (max-width: 991px) {

    .nav-toggle {
        display: grid;
    }

    /* backdrop-filter on the header would make it the containing block for
       the fixed drawer inside it — drop it so the drawer anchors to the
       viewport instead. */
    .main-header {
        backdrop-filter: none;
        background: #fff;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 88vw);
        background: #fff;
        border-left: 1px solid var(--line);
        box-shadow: -20px 0 60px -30px rgba(18, 33, 27, .5);
        transform: translateX(102%);
        transition: transform .34s cubic-bezier(.4, 0, .2, 1);
        z-index: 990;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 5.25rem 1.15rem 2.5rem;
    }

    body.nav-open .main-menu {
        transform: translateX(0);
    }

    /* close button inside mobile drawer */
    .drawer-close {
        display: grid;
        position: absolute;
        top: 1.15rem;
        right: 1.15rem;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        font-size: 1.05rem;
        color: var(--ink);
        transition: all .2s ease;
    }

    .drawer-close:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .drawer-title {
        display: block;
        position: absolute;
        top: 1.6rem;
        left: 1.35rem;
        font-family: 'Manrope', sans-serif;
        font-size: .66rem;
        font-weight: 700;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--muted-lt);
    }

    .main-menu>ul {
        display: block;
    }

    .main-menu>ul>li {
        border-bottom: 1px solid var(--line-soft);
    }

    .main-menu>ul>li>a {
        padding: .95rem .35rem;
        font-size: .95rem;
        justify-content: flex-start;
    }

    .main-menu>ul>li>a::after {
        display: none;
    }

    .main-menu .has-children>a::before {
        margin-left: auto;
        transform: rotate(45deg) translateY(-2px);
    }

    .main-menu li.open>a::before {
        transform: rotate(225deg) translateY(-3px);
        opacity: 1;
    }

    .main-menu li.open>a {
        color: var(--primary);
    }

    /* submenus become accordions */
    .main-menu .sub-menu,
    .main-menu .sub-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-lt);
        border-radius: 0;
        min-width: 0;
        padding: 0 0 .5rem .85rem;
        margin-left: .35rem;
        display: none;
    }

    .main-menu li.open>.sub-menu {
        display: block;
        animation: drawerSlide .28s ease both;
    }

    @keyframes drawerSlide {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    .main-menu .sub-menu a {
        padding: .55rem .5rem;
        font-size: .875rem;
    }

    .main-menu .sub-menu a:hover {
        padding-left: .75rem;
    }

    .main-menu .nav-donate>a {
        margin: 1.25rem 0 0;
        justify-content: center;
        padding: .95rem 1rem;
    }
}

/* ---------- 12. HERO ---------- */
.hero-section {
    position: relative;
    background: var(--ink);
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 78vh, 780px);
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12);
    }
}

/* directional scrim — keeps text legible without flattening the photo */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(10, 22, 17, .93) 0%, rgba(10, 22, 17, .78) 34%,
            rgba(10, 22, 17, .38) 62%, rgba(10, 22, 17, .55) 100%);
}

/* fine grain so the flat colour never looks synthetic */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(201, 162, 39, .45);
    background: rgba(201, 162, 39, .1);
    border-radius: 999px;
    padding: .45rem 1.05rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(4px);
}

.hero-badge .fa {
    font-size: .8rem;
}

.hero-content h2 {
    font-size: clamp(2.35rem, 5.4vw, 4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.025em;
    color: #fff;
    margin-bottom: 1.4rem;
    text-wrap: balance;
}

.hero-content h2 em,
.hero-content h2 span {
    font-style: italic;
    color: var(--accent);
}

.hero-content>p {
    font-size: clamp(.98rem, 1.5vw, 1.08rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, .8);
    max-width: 54ch;
    margin-bottom: 2.25rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

/* hero trust strip under the buttons */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.6rem;
    margin-top: 2.5rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: .76rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .62);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.hero-trust .fa {
    color: var(--accent);
}

/* ---------- 13. HERO DONATE CARD ---------- */
.hero-donate-card {
    position: absolute;
    /* centred with auto margins rather than a transform, so the AOS reveal
       (which writes its own transform) cannot knock it off centre.
       % — not vw — keeps it clear of the scrollbar. */
    top: 0;
    bottom: 0;
    height: fit-content;
    margin-block: auto;
    right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    z-index: 3;
    width: min(370px, 92vw);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    padding: 1.85rem 1.6rem 1.5rem;
}

.donate-card-title {
    font-size: 1.32rem;
    text-align: center;
    margin-bottom: .35rem;
}

.donate-card-sub {
    font-size: .82rem;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--line-soft);
}

.amount-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: .85rem;
}

.amt-btn {
    padding: .62rem .35rem;
    font-size: .85rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: all .2s ease;
}

.amt-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lt);
}

.amt-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}

.custom-input {
    width: 100%;
    padding: .78rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    margin-bottom: 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.custom-input::placeholder {
    font-weight: 500;
    color: var(--muted-lt);
}

.custom-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 86, 60, .1);
}

.btn-donate-now {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    padding: .95rem 1rem;
    font-size: .95rem;
    box-shadow: 0 2px 0 0 var(--primary-dk);
}

.btn-donate-now:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 #072019, var(--sh);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    font-size: .7rem;
    letter-spacing: .04em;
    color: var(--muted);
    margin-top: 1rem;
    padding-top: .95rem;
    border-top: 1px solid var(--line-soft);
    text-align: center;
}

.secure-note .fa {
    color: var(--primary);
}

/* ---------- 14. STATS BAND ---------- */
.stats-ticker {
    background: var(--ink);
    padding: clamp(2.75rem, 5vw, 3.75rem) 0;
    position: relative;
    overflow: hidden;
}

/* brass hairline top and bottom */
.stats-ticker::before,
.stats-ticker::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55), transparent);
}

.stats-ticker::before {
    top: 0;
}

.stats-ticker::after {
    bottom: 0;
}

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

.stat-box {
    text-align: center;
    padding: .5rem 1rem;
    position: relative;
}

.stat-box+.stat-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: rgba(255, 255, 255, .13);
}

.stat-box .num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--accent);
    margin-bottom: .5rem;
    font-variant-numeric: lining-nums tabular-nums;
}

.stat-box .lbl {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    line-height: 1.4;
}

.stat-box .lbl .fa {
    color: rgba(201, 162, 39, .75);
    font-size: .82rem;
}

/* ---------- 15. SECTION SHELLS ---------- */
.causes-section,
.sectors-section,
.about-section,
.how-section,
.testimonials-section,
.blog-section,
.partners-section,
.focus-section,
.sector-intro,
.sector-nav-list,
.about-page-section {
    padding: var(--sec-y) 0;
}

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

.sectors-section {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

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

.how-section {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.testimonials-section {
    background: var(--bg-alt);
}

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

.partners-section {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-block: clamp(3rem, 5vw, 4.5rem);
}

/* ---------- 16. CAUSE CARDS ---------- */
.causes-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.75rem;
}

.cause-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cause-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 86, 60, .4);
    box-shadow: var(--sh);
}

.cause-img {
    position: relative;
    height: 218px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}

.cause-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 17, .55), transparent 55%);
    transition: opacity .3s ease;
}

.cause-card:hover .cause-img {
    transform: scale(1.03);
}

.cause-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--accent);
    padding: .38rem .8rem;
    border-radius: 2px;
}

.cause-body {
    padding: 1.6rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cause-body h3 {
    font-size: 1.22rem;
    line-height: 1.3;
    margin-bottom: .7rem;
}

.cause-body>p {
    font-size: .89rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.4rem;
    flex: 1;
}

/* progress */
.progress-wrap {
    height: 6px;
    background: var(--line-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .7rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #1d7a54);
    border-radius: 999px;
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1.35rem;
}

.progress-meta strong {
    color: var(--primary);
    font-weight: 700;
}

.cause-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-soft);
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
}

.share-link:hover {
    color: var(--accent-dk);
}

/* ---------- 17. SECTOR CARDS ---------- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 1.25rem;
}

.sector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.35rem 1.4rem 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* brass rule that draws in on hover */
.sector-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.sector-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 86, 60, .35);
    box-shadow: var(--sh);
}

.sector-card:hover::after {
    transform: scaleX(1);
}

.sector-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-lt);
    border: 1px solid rgba(20, 86, 60, .14);
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 1.35rem;
    transition: all .3s ease;
}

.sector-card:hover .sector-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--accent);
    transform: rotate(-6deg);
}

.sector-card h4 {
    font-size: 1.08rem;
    line-height: 1.3;
    margin-bottom: .55rem;
}

.sector-card p {
    font-size: .83rem;
    line-height: 1.65;
    color: var(--muted);
}

/* ---------- 18. ABOUT SECTION ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    width: 100%;
    border-radius: var(--r);
    border: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

/* offset brass frame behind the photo — z-index 0 (not -1, which would
   drop it behind the section background and vanish) */
.about-img-wrap::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--r);
    opacity: .5;
    z-index: 0;
}

.exp-badge {
    position: absolute;
    right: -14px;
    bottom: -22px;
    width: 132px;
    height: 132px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--sh);
    border: 4px solid var(--bg);
}

.exp-badge .years {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.exp-badge .since {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.4;
    margin-top: .35rem;
    color: rgba(255, 255, 255, .82);
}

.about-content .sub-tag {
    margin-bottom: .9rem;
}

.about-content h2 {
    font-size: clamp(1.85rem, 3.3vw, 2.65rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.about-content h2 span {
    color: var(--primary);
    font-style: italic;
}

.about-content>p {
    font-size: .96rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* pillar list */
.pillar-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .9rem;
    margin: 2rem 0;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem .9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .25s ease, transform .25s ease;
}

.pillar-item:hover {
    border-color: rgba(20, 86, 60, .35);
    transform: translateX(3px);
}

.pillar-icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--accent-lt);
    color: var(--accent-dk);
    font-size: 1rem;
}

.pillar-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.pillar-text strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
}

.pillar-text span {
    font-size: .78rem;
    color: var(--muted);
}

/* ---------- 19. PROGRAMS (dark band) ---------- */
.programs-section {
    background: var(--ink);
    padding: var(--sec-y) 0;
    position: relative;
    overflow: hidden;
}

/* soft radial so the dark band is not a flat slab */
.programs-section::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(20, 86, 60, .5), transparent 62%);
    pointer-events: none;
}

.programs-section .wrapper {
    position: relative;
    z-index: 1;
}

.programs-section .section-title h2 {
    color: #fff;
}

.programs-section .section-title h2 span {
    color: var(--accent);
    font-style: italic;
}

.programs-section .section-title p {
    color: rgba(255, 255, 255, .62);
}

.programs-section .sub-tag {
    color: var(--accent);
}

.programs-section .sub-tag::before,
.programs-section .sub-tag::after {
    background: var(--accent);
    opacity: .5;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 1.35rem;
}

.program-card {
    padding: 2.15rem 1.6rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r);
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.program-card:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(201, 162, 39, .5);
    transform: translateY(-5px);
}

.prog-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: rgba(201, 162, 39, .12);
    border: 1px solid rgba(201, 162, 39, .3);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.35rem;
    transition: all .3s ease;
}

.program-card:hover .prog-icon {
    background: var(--accent);
    color: var(--ink);
}

.program-card h4 {
    font-size: 1.12rem;
    color: #fff;
    margin-bottom: .65rem;
}

.program-card p {
    font-size: .865rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .62);
}

/* ---------- 20. HOW IT WORKS ---------- */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.75rem;
    position: relative;
}

.how-card {
    position: relative;
    padding: 2.5rem 1.75rem 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.how-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 86, 60, .35);
    box-shadow: var(--sh);
}

/* oversized outlined numeral, watermark style */
.how-num {
    position: absolute;
    top: .5rem;
    right: 1.1rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201, 162, 39, .45);
    pointer-events: none;
    user-select: none;
}

.how-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-lt);
    border: 1px solid rgba(20, 86, 60, .14);
    color: var(--primary);
    font-size: 1.4rem;
    transition: all .3s ease;
}

.how-card:hover .how-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--accent);
}

.how-card h4 {
    font-size: 1.15rem;
    margin-bottom: .7rem;
}

.how-card p {
    font-size: .875rem;
    line-height: 1.75;
    color: var(--muted);
}

/* ---------- 21. DONATE CTA BANNER ---------- */
.donate-cta {
    background: var(--primary);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

/* depth without a rainbow gradient */
.donate-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 22% 18%, rgba(201, 162, 39, .22), transparent 55%),
        radial-gradient(ellipse at 82% 92%, rgba(0, 0, 0, .3), transparent 58%);
    pointer-events: none;
}

.donate-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .7;
}

.donate-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.donate-cta-inner h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    color: #fff;
    line-height: 1.18;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.donate-cta-inner p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 2.15rem;
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
}

/* ---------- 22. TESTIMONIALS ---------- */
.testi-viewport {
    position: relative;
}

.testi-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(330px, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .5rem .25rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testi-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .testi-track {
        grid-auto-columns: minmax(0, calc(50% - .75rem));
    }
}

@media (min-width: 1024px) {
    .testi-track {
        grid-auto-columns: minmax(0, calc(33.333% - 1rem));
    }
}

.testimonial-card {
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 2.4rem 1.75rem 1.75rem;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.testimonial-card:hover {
    border-color: rgba(201, 162, 39, .55);
    box-shadow: var(--sh);
    transform: translateY(-4px);
}

.quote-icon {
    position: absolute;
    top: .35rem;
    left: 1.5rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: .28;
    pointer-events: none;
    user-select: none;
}

.stars {
    color: var(--accent);
    font-size: .95rem;
    letter-spacing: .18em;
    margin-bottom: 1rem;
}

.testimonial-card>p {
    font-size: .93rem;
    line-height: 1.85;
    color: var(--text);
    font-style: italic;
    flex: 1;
    margin-bottom: 1.6rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-soft);
}

.author-av {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.author-info strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.author-info span {
    font-size: .78rem;
    color: var(--muted);
}

/* carousel controls */
.testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: .75rem;
}

.testi-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    transition: all .25s ease;
}

.testi-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.testi-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.testi-btn:disabled:hover {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

/* ---------- 23. BLOG CARDS ---------- */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 86, 60, .35);
    box-shadow: var(--sh);
}

.blog-img {
    height: 205px;
    background-size: cover;
    background-position: center;
    transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}

.blog-card:hover .blog-img {
    transform: scale(1.04);
}

.blog-body {
    padding: 1.5rem 1.45rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-cat {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin-bottom: .7rem;
}

.blog-body h4 {
    font-size: 1.13rem;
    line-height: 1.35;
    margin-bottom: .65rem;
    transition: color .25s ease;
}

.blog-card:hover .blog-body h4 {
    color: var(--primary);
}

.blog-body p {
    font-size: .86rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .76rem;
    color: var(--muted-lt);
    padding-top: 1.05rem;
    border-top: 1px solid var(--line-soft);
}

.blog-meta .fa {
    color: var(--accent);
    margin-right: .15rem;
}

/* ---------- 24. PARTNERS ---------- */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
}

.partner-logo {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 96px;
    padding: 1.25rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--muted-lt);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    transition: color .25s ease, background .25s ease;
}

.partner-logo:hover {
    color: var(--primary);
    background: var(--bg);
}

/* ---------- 25. INNER PAGE HERO ---------- */
.sector-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(320px, 46vh, 440px);
    padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 3.75rem);
    background: var(--ink);
    overflow: hidden;
}

.sector-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sector-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 22, 17, .72) 0%, rgba(10, 22, 17, .82) 55%, rgba(10, 22, 17, .94) 100%);
}

.sector-hero .wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sector-hero-content {
    max-width: 760px;
    color: #fff;
}

.sector-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .58);
    margin-bottom: 1.35rem;
}

.sector-breadcrumb a {
    color: rgba(255, 255, 255, .8);
}

.sector-breadcrumb a:hover {
    color: var(--accent);
}

.sector-breadcrumb .fa {
    font-size: .7rem;
    opacity: .5;
}

.sector-breadcrumb span {
    color: var(--accent);
}

.sector-hero-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 162, 39, .14);
    border: 1px solid rgba(201, 162, 39, .45);
    color: var(--accent);
    font-size: 1.45rem;
    margin-bottom: 1.15rem;
}

.sector-hero-content h1 {
    font-size: clamp(2.05rem, 4.6vw, 3.4rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: .85rem;
    text-wrap: balance;
}

.sector-hero-content>p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .74);
    max-width: 60ch;
}

.sector-hero-content>p .fa {
    color: var(--accent);
}

/* ---------- 26. INNER PAGE BODY ---------- */
.sector-intro {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.sector-intro .wrapper {
    max-width: 800px;
}

.sector-intro p,
.about-story p {
    font-size: 1.03rem;
    line-height: 1.95;
    color: var(--text);
    margin-bottom: 1.35rem;
}

/* editorial lead-in on the first paragraph */
.sector-intro p:first-of-type,
.about-story p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ink);
    font-weight: 500;
    padding-left: 1.35rem;
    border-left: 2px solid var(--accent);
}

.about-page-section {
    background: var(--bg);
}

.about-page-section.alt-bg {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

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

.focus-grid,
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.35rem;
}

.focus-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.85rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 86, 60, .35);
    box-shadow: var(--sh);
}

.focus-icon {
    width: 50px;
    height: 50px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--primary-lt);
    border: 1px solid rgba(20, 86, 60, .14);
    color: var(--primary);
    font-size: 1.2rem;
    transition: all .3s ease;
}

.focus-card:hover .focus-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--accent);
}

.focus-card h4 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: .5rem;
}

.focus-card p {
    font-size: .885rem;
    line-height: 1.75;
    color: var(--muted);
}

/* other sectors nav */
.sector-nav-list {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.sector-nav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.sector-nav-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .78rem 1.4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all .25s ease;
}

.sector-nav-item .fa {
    color: var(--accent-dk);
    transition: color .25s ease;
}

.sector-nav-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.sector-nav-item:hover .fa {
    color: var(--accent);
}

.sector-nav-item.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.sector-nav-item.active .fa {
    color: var(--accent);
}

/* ---------- 27. LEADERSHIP + REPORTS ---------- */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 1.5rem;
}

.leader-card {
    text-align: center;
    padding: 2.25rem 1.5rem 1.85rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.about-page-section.alt-bg .leader-card {
    background: var(--bg);
}

.leader-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, .5);
    box-shadow: var(--sh);
}

.leader-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--accent);
    font-size: 1.8rem;
}

.leader-card h4 {
    font-size: 1.12rem;
    margin-bottom: .3rem;
}

.leader-role {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin-bottom: .9rem;
}

.leader-card p {
    font-size: .85rem;
    line-height: 1.75;
    color: var(--muted);
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .25s ease, transform .25s ease;
}

.report-item:hover {
    border-color: rgba(20, 86, 60, .35);
    transform: translateX(3px);
}

.report-title {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.report-title .fa {
    color: var(--accent-dk);
    font-size: 1.15rem;
}

/* ---------- 28. FOOTER ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .68);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .8;
}

.footer-top {
    padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.25rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
    gap: clamp(2rem, 4vw, 3.25rem);
}

.footer-col>p {
    font-size: .875rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, .58);
    margin-bottom: 1.5rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.15rem;
}

.footer-logo-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: rgba(201, 162, 39, .12);
    border: 1px solid rgba(201, 162, 39, .35);
    color: var(--accent);
    font-size: 1.25rem;
    overflow: hidden;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.footer-col h4 {
    font-size: 1.02rem;
    color: #fff;
    margin-bottom: 1.4rem;
    padding-bottom: .7rem;
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .3rem 0;
    font-size: .865rem;
    color: rgba(255, 255, 255, .62);
    transition: color .22s ease, gap .22s ease;
}

.footer-col ul li a .fa {
    font-size: .72rem;
    color: var(--accent);
    opacity: .7;
    transition: opacity .22s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    gap: .8rem;
}

.footer-col ul li a:hover .fa {
    opacity: 1;
}

/* newsletter */
.newsletter-form {
    display: flex;
    margin-bottom: 1.6rem;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-right: none;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    padding: .72rem .9rem;
    font-size: .84rem;
    color: #fff;
    transition: background .2s, border-color .2s;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, .38);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, .1);
    border-color: var(--accent);
}

.newsletter-form button {
    display: grid;
    place-items: center;
    width: 50px;
    background: var(--accent);
    color: var(--ink);
    border: 1px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: .95rem;
    transition: background .2s ease;
}

.newsletter-form button:hover {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .62);
    padding: .4rem 0;
}

.contact-item .fa {
    color: var(--accent);
    font-size: .9rem;
    margin-top: .3rem;
    flex: none;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .85rem 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
    color: rgba(255, 255, 255, .48);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .58);
    position: relative;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ---------- 29. STICKY MOBILE DONATE ---------- */
.sticky-donate-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 940;
    background: var(--accent);
    box-shadow: 0 -6px 24px -10px rgba(18, 33, 27, .55);
}

.sticky-donate-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .01em;
}

/* ---------- 30. SCROLL TO TOP ---------- */
#scrollTop {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 930;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    border: 1px solid rgba(201, 162, 39, .4);
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
}

#scrollTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTop:hover {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ---------- 31. RESPONSIVE ---------- */
@media (max-width: 1180px) {
    .hero-donate-card {
        right: var(--gutter);
        width: min(340px, 44vw);
        padding: 1.5rem 1.3rem 1.25rem;
    }

    .hero-content {
        max-width: 52%;
    }
}

@media (max-width: 991px) {
    .hero-slide {
        min-height: 0;
        padding-bottom: 0;
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
    }

    /* card drops below the copy instead of overlapping it */
    .hero-donate-card {
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        height: auto;
        transform: none;
        width: 100%;
        max-width: 460px;
        margin: 2.75rem auto -3.5rem;
    }

    .hero-section {
        padding-bottom: 3.5rem;
        background: var(--bg);
    }

    .hero-slide::before {
        background: linear-gradient(180deg, rgba(10, 22, 17, .84), rgba(10, 22, 17, .9));
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-wrap {
        max-width: 540px;
        margin: 0 auto 2rem;
    }

    .about-img-wrap::before {
        inset: 14px -14px -14px 14px;
    }

    .exp-badge {
        width: 108px;
        height: 108px;
        right: 4px;
        bottom: -18px;
    }

    .exp-badge .years {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1rem;
    }

    .stat-box:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 18px;
    }

    body {
        padding-bottom: 58px;
        /* room for the sticky donate bar */
    }

    .sticky-donate-bar {
        display: block;
    }

    #scrollTop {
        bottom: 72px;
        right: 14px;
    }

    /* trim the utility bar to what matters on a phone */
    .top-header-inner {
        justify-content: center;
    }

    .top-header-inner ul li:nth-child(2),
    .top-header-inner ul li:nth-child(4) {
        display: none;
    }

    .top-header-inner ul li+li::before {
        display: none;
    }

    .top-header-inner>.footer-social {
        display: none;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text h1 {
        font-size: 1.18rem;
    }

    .logo-text span {
        font-size: .55rem;
        letter-spacing: .13em;
    }

    .main-header-inner {
        min-height: 70px;
    }

    .hero-content h2 {
        font-size: clamp(1.95rem, 8vw, 2.6rem);
    }

    .hero-btns .btn-red,
    .hero-btns .btn-outline-red {
        flex: 1 1 auto;
        justify-content: center;
    }

    .amount-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: .4rem;
    }

    .amt-btn {
        font-size: .78rem;
        padding: .55rem .25rem;
    }

    .cause-footer {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .cause-footer .btn-red {
        justify-content: center;
    }

    .share-link {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1.15rem;
    }

    .sector-intro p:first-of-type,
    .about-story p:first-of-type {
        font-size: 1.08rem;
        padding-left: 1rem;
    }

    .report-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .partner-logo {
        min-height: 82px;
        font-size: .76rem;
    }
}

@media (max-width: 479px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-box+.stat-box::before {
        display: none;
    }

    .stat-box+.stat-box {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .cta-btns .btn-white,
    .cta-btns .btn-white-outline {
        width: 100%;
    }
}

/* ---------- 32. MOTION PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slide-bg {
        animation: none;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- 33. PRINT ---------- */
@media print {

    .top-header,
    .main-header,
    .sticky-donate-bar,
    #scrollTop,
    .hero-donate-card,
    .donate-cta,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
        padding: 0;
    }
}

/* ---------- 34. UTILITIES ---------- */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   35. AUTH PAGES (login / register)
   Standalone split-panel screens. Everything is scoped under
   .auth-page so none of these generic names leak into the site.
   ============================================================ */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---- Left: brand panel ---- */
.auth-page .auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2.5rem, 4vw, 3.5rem);
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
}

.auth-page .auth-aside-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}

.auth-page .auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(10, 22, 17, .9) 0%, rgba(10, 22, 17, .8) 45%, rgba(13, 59, 41, .92) 100%);
}

/* fine grain, same treatment as the site hero */
.auth-page .auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.auth-page .auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.auth-page .auth-brand-lockup img {
    width: 50px;
    height: 50px;
    border-radius: var(--r);
    border: 1px solid rgba(201, 162, 39, .4);
    object-fit: cover;
}

.auth-page .auth-brand-lockup .name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.auth-page .auth-brand-lockup .sub {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-top: .25rem;
    padding-top: .25rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.auth-page .auth-quote {
    max-width: 30ch;
    margin: 2.5rem 0;
}

.auth-page .auth-quote .mark {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4rem;
    line-height: .8;
    color: var(--accent);
    opacity: .45;
    margin-bottom: .5rem;
}

.auth-page .auth-quote h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    line-height: 1.22;
    color: #fff;
    margin-bottom: 1rem;
}

.auth-page .auth-quote h2 em {
    font-style: italic;
    color: var(--accent);
}

.auth-page .auth-quote p {
    font-size: .92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .65);
}

.auth-page .auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.auth-page .auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.auth-page .auth-trust .fa {
    color: var(--accent);
}

/* ---- Right: form panel ---- */
.auth-page .auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.15rem, 4vw, 3rem);
    position: relative;
}

.auth-page .auth-back {
    position: absolute;
    top: clamp(1.25rem, 3vw, 2rem);
    right: clamp(1.25rem, 3vw, 2rem);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s ease;
}

.auth-page .auth-back:hover {
    color: var(--primary);
}

.auth-page .auth-card {
    width: 100%;
    max-width: 430px;
}

.auth-page .auth-card.wide {
    max-width: 520px;
}

/* mobile-only brand mark above the form */
.auth-page .auth-card-brand {
    display: none;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-page .auth-card-brand img {
    width: 54px;
    height: 54px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    object-fit: cover;
}

.auth-page .auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin-bottom: .85rem;
}

.auth-page .auth-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: .6;
}

.auth-page .auth-card h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.4rem);
    line-height: 1.12;
    margin-bottom: .6rem;
}

.auth-page .auth-card h1 em {
    font-style: italic;
    color: var(--primary);
}

.auth-page .auth-sub {
    font-size: .93rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 2rem;
    padding-bottom: 1.65rem;
    border-bottom: 1px solid var(--line);
}

/* ---- Fields ---- */
.auth-page .form-group {
    margin-bottom: 1.15rem;
}

.auth-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-page label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.auth-page .input-wrap {
    position: relative;
}

.auth-page .input-wrap>.fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .92rem;
    color: var(--muted-lt);
    pointer-events: none;
    transition: color .2s ease;
}

.auth-page input[type=email],
.auth-page input[type=password],
.auth-page input[type=text],
.auth-page input[type=tel] {
    width: 100%;
    padding: .85rem 1rem .85rem 2.7rem;
    font-family: 'Manrope', sans-serif;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-page input::placeholder {
    color: var(--muted-lt);
    font-weight: 400;
}

.auth-page input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 86, 60, .12);
}

.auth-page .input-wrap:focus-within>.fa {
    color: var(--primary);
}

/* password visibility toggle */
.auth-page .pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    color: var(--muted-lt);
    font-size: .9rem;
    transition: color .2s ease, background .2s ease;
}

.auth-page .pw-toggle:hover {
    color: var(--primary);
    background: var(--primary-lt);
}

/* Captcha Component */
.captcha-form-group {
    margin-bottom: 1.25rem;
}

.captcha-card-inner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.captcha-display-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f8f4;
    border: 1px solid #c8e1d5;
    border-radius: var(--r-sm);
    padding: 3px 6px;
    flex-shrink: 0;
}

.captcha-svg-container {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-svg-container svg {
    height: 38px;
    width: 135px;
    border-radius: 4px;
}

.captcha-refresh-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #c8e1d5;
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-refresh-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: rotate(45deg);
}

.captcha-refresh-btn.spinning i {
    animation: fa-spin 1s infinite linear;
}

.captcha-input-wrap {
    flex: 1 1 auto;
}

.auth-page input.captcha-input-field {
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.98rem;
}

@media (max-width: 480px) {
    .captcha-card-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-display-box {
        justify-content: space-between;
    }
    .captcha-svg-container svg {
        width: 160px;
    }
}

.auth-page .checkbox-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 1.35rem 0 1.6rem;
}

.auth-page .checkbox-row input[type=checkbox] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    flex: none;
}

.auth-page .checkbox-row label {
    margin: 0;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    cursor: pointer;
}

/* ---- Submit ---- */
.auth-page .btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--r-sm);
    box-shadow: 0 2px 0 0 var(--primary-dk);
    cursor: pointer;
    transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.auth-page .btn-primary:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 0 #072019, var(--sh);
}

.auth-page .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 0 var(--primary-dk);
}

/* ---- Divider + footer link ---- */
.auth-page .divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0 1.15rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-lt);
}

.auth-page .divider::before,
.auth-page .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 3.25rem);
    height: 1px;
    background: var(--line);
}

.auth-page .divider::before {
    left: 0;
}

.auth-page .divider::after {
    right: 0;
}

.auth-page .link-row {
    text-align: center;
    font-size: .875rem;
    color: var(--muted);
}

.auth-page .link-row a {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 1px solid rgba(20, 86, 60, .3);
    transition: border-color .2s ease;
}

.auth-page .link-row a:hover {
    border-bottom-color: var(--primary);
}

/* ---- Messages ---- */
.auth-page .error-msg,
.auth-page .success-msg,
.auth-page .notice {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .8rem 1rem;
    border-radius: var(--r-sm);
    font-size: .85rem;
    line-height: 1.6;
    margin-bottom: 1.15rem;
    border: 1px solid;
    border-left-width: 3px;
}

.auth-page .error-msg {
    background: #fdf2f0;
    border-color: #e3b7ad;
    color: #8c2f18;
}

.auth-page .success-msg {
    background: var(--primary-lt);
    border-color: rgba(20, 86, 60, .35);
    color: var(--primary-dk);
}

.auth-page .notice {
    background: var(--accent-lt);
    border-color: rgba(201, 162, 39, .45);
    color: #6f5a12;
}

.auth-page .error-msg .fa,
.auth-page .success-msg .fa,
.auth-page .notice .fa {
    margin-top: .18rem;
    flex: none;
}

.auth-page .field-error {
    font-size: .78rem;
    color: #a2381c;
    margin-top: .35rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    /* the brand panel becomes a compact banner */
    .auth-page .auth-aside {
        padding: 1.75rem var(--gutter);
    }

    .auth-page .auth-quote,
    .auth-page .auth-trust {
        display: none;
    }

    .auth-page .auth-main {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .auth-page .auth-back {
        position: static;
        align-self: flex-end;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 560px) {
    .auth-page .auth-aside {
        display: none;
    }

    .auth-page .auth-card-brand {
        display: flex;
    }

    .auth-page .auth-main {
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .auth-page .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* keep input text clear of the password toggle */
.auth-page .input-wrap:has(.pw-toggle) input {
    padding-right: 3.1rem;
}

.auth-page .auth-brand-lockup .name {
    display: block;
}

/* ============================================================
   36. DONOR / MEMBER PORTAL
   Scoped under .portal so the generic names here stay put.
   ============================================================ */

.portal {
    background: var(--bg-alt);
    min-height: 100vh;
}

/* ---------- Top bar ---------- */
.portal .portal-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.portal .portal-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .6), transparent);
}

.portal .portal-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
    padding: 0 clamp(1rem, 3vw, 1.75rem);
}

.portal .portal-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 1rem;
}

.portal .portal-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-right: auto;
}

.portal .portal-brand img {
    border-radius: var(--r-sm);
    border: 1px solid rgba(201, 162, 39, .4);
    object-fit: cover;
}

.portal .portal-brand strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.portal .portal-brand small {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: .15rem;
}

.portal .portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.portal .portal-give-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--accent);
    border-radius: var(--r-sm);
    transition: background .2s ease, transform .2s ease;
}

.portal .portal-give-btn:hover {
    background: #dbb43a;
    transform: translateY(-1px);
}

/* user menu */
.portal .portal-user {
    position: relative;
}

.portal .portal-user-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .6rem .35rem .35rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-size: .84rem;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}

.portal .portal-user-btn:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(201, 162, 39, .5);
}

.portal .portal-avatar {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-family: 'Fraunces', Georgia, serif;
    font-size: .95rem;
    font-weight: 700;
}

.portal .portal-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 232px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--sh-lg);
    padding: .4rem;
    z-index: 70;
}

.portal .portal-user-head {
    padding: .7rem .85rem .8rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: .35rem;
}

.portal .portal-user-head strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: .98rem;
    color: var(--ink);
}

.portal .portal-user-head span {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    word-break: break-all;
}

.portal .portal-user-menu a,
.portal .portal-user-menu button {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .58rem .85rem;
    font-size: .855rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-sm);
    text-align: left;
    transition: background .18s ease, color .18s ease;
}

.portal .portal-user-menu a .fa,
.portal .portal-user-menu button .fa {
    color: var(--muted-lt);
    width: 15px;
}

.portal .portal-user-menu a:hover,
.portal .portal-user-menu button:hover {
    background: var(--primary-lt);
    color: var(--primary);
}

.portal .portal-user-menu button:hover .fa {
    color: var(--primary);
}

/* ---------- Shell ---------- */
.portal .portal-shell {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    align-items: start;
}

.portal .portal-sidebar {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border-right: 1px solid var(--line);
}

.portal .portal-nav-label {
    display: block;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-lt);
    padding: .5rem .85rem;
    margin-top: .5rem;
}

.portal .portal-nav-label:first-child {
    margin-top: 0;
}

.portal .portal-sidebar nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    font-size: .885rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r-sm);
    position: relative;
    transition: background .2s ease, color .2s ease;
}

.portal .portal-sidebar nav a .fa {
    width: 17px;
    text-align: center;
    color: var(--muted-lt);
    transition: color .2s ease;
}

.portal .portal-sidebar nav a:hover {
    background: var(--bg);
    color: var(--primary);
}

.portal .portal-sidebar nav a:hover .fa {
    color: var(--primary);
}

.portal .portal-sidebar nav a.active {
    background: var(--primary-lt);
    color: var(--primary);
}

.portal .portal-sidebar nav a.active .fa {
    color: var(--primary);
}

.portal .portal-sidebar nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--accent);
}

.portal .portal-sidebar-cta {
    margin-top: auto;
    padding: 1.25rem 1.1rem;
    background: var(--ink);
    border-radius: var(--r);
    text-align: center;
    color: rgba(255, 255, 255, .7);
}

.portal .portal-sidebar-cta>.fa {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: .6rem;
}

.portal .portal-sidebar-cta strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: .4rem;
}

.portal .portal-sidebar-cta p {
    font-size: .78rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portal .portal-sidebar-cta .btn-red {
    width: 100%;
    justify-content: center;
    font-size: .82rem;
    padding: .65rem 1rem;
}

.portal .portal-overlay {
    position: fixed;
    inset: 64px 0 0;
    background: rgba(18, 33, 27, .5);
    z-index: 40;
}

.portal .portal-main {
    min-width: 0;
}

.portal .portal-content {
    max-width: 1080px;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.25rem) 4rem;
}

/* ---------- Page headers ---------- */
.portal .page-head {
    margin-bottom: 1.75rem;
}

.portal .page-head h1 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: .4rem;
}

.portal .page-head h1 em {
    font-style: italic;
    color: var(--primary);
}

.portal .page-head p {
    font-size: .92rem;
    color: var(--muted);
    max-width: 62ch;
}

.portal .page-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Flash messages ---------- */
.portal .flash {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .9rem 1.1rem;
    border: 1px solid;
    border-left-width: 3px;
    border-radius: var(--r-sm);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portal .flash .fa {
    margin-top: .2rem;
    flex: none;
}

.portal .flash-success {
    background: var(--primary-lt);
    border-color: rgba(20, 86, 60, .35);
    color: var(--primary-dk);
}

.portal .flash-error {
    background: #fdf2f0;
    border-color: #e3b7ad;
    color: #8c2f18;
}

.portal .flash-info {
    background: var(--accent-lt);
    border-color: rgba(201, 162, 39, .45);
    color: #6f5a12;
}

/* ---------- Cards ---------- */
.portal .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5rem;
}

.portal .card+.card {
    margin-top: 1.25rem;
}

.portal .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}

.portal .card-head h2,
.portal .card-head h3 {
    font-size: 1.12rem;
}

.portal .card-link {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.portal .card-link:hover {
    color: var(--accent-dk);
}

/* ---------- Stat tiles ---------- */
.portal .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portal .stat-tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.35rem 1.35rem 1.25rem;
    overflow: hidden;
}

.portal .stat-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--line);
}

.portal .stat-tile.is-primary::before {
    background: var(--primary);
}

.portal .stat-tile.is-accent::before {
    background: var(--accent);
}

.portal .stat-tile .label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .65rem;
}

.portal .stat-tile .label .fa {
    color: var(--accent-dk);
}

.portal .stat-tile .value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.portal .stat-tile .hint {
    font-size: .76rem;
    color: var(--muted-lt);
    margin-top: .4rem;
}

/* ---------- Tables ---------- */
.portal .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}

.portal table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.portal thead th {
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg);
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.portal tbody td {
    padding: 1rem 1.1rem;
    font-size: .875rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.portal tbody tr:last-child td {
    border-bottom: none;
}

.portal tbody tr:hover {
    background: var(--bg);
}

.portal .cell-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
}

.portal .cell-ref {
    font-size: .78rem;
    color: var(--muted-lt);
    letter-spacing: .03em;
}

.portal .cell-title {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Badges ---------- */
.portal .badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
}

.portal .badge-completed,
.portal .badge-active,
.portal .badge-issued,
.portal .badge-success,
.portal .badge-paid {
    background: var(--primary-lt);
    border-color: rgba(20, 86, 60, .3);
    color: var(--primary-dk);
}

.portal .badge-pending,
.portal .badge-processing,
.portal .badge-assigned {
    background: var(--accent-lt);
    border-color: rgba(201, 162, 39, .45);
    color: #6f5a12;
}

.portal .badge-failed,
.portal .badge-cancelled,
.portal .badge-rejected,
.portal .badge-refunded {
    background: #fdf2f0;
    border-color: #e3b7ad;
    color: #8c2f18;
}

.portal .badge-muted,
.portal .badge-inactive,
.portal .badge-expired {
    background: var(--bg-alt);
    border-color: var(--line);
    color: var(--muted);
}

/* ---------- Empty states ---------- */
.portal .empty {
    text-align: center;
    padding: 3.25rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--r);
}

.portal .empty .fa {
    font-size: 1.9rem;
    color: var(--accent);
    opacity: .65;
    margin-bottom: 1rem;
}

.portal .empty h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.portal .empty p {
    font-size: .89rem;
    color: var(--muted);
    max-width: 44ch;
    margin: 0 auto 1.5rem;
}

/* ---------- Forms ---------- */
.portal .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
}

.portal .field {
    display: flex;
    flex-direction: column;
}

.portal .field.span-2 {
    grid-column: 1 / -1;
}

.portal .field label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .45rem;
}

.portal .field input[type=text],
.portal .field input[type=email],
.portal .field input[type=tel],
.portal .field input[type=number],
.portal .field select,
.portal .field textarea {
    width: 100%;
    padding: .75rem .9rem;
    font-family: 'Manrope', sans-serif;
    font-size: .9rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.portal .field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7;
}

.portal .field input:focus,
.portal .field select:focus,
.portal .field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 86, 60, .12);
}

.portal .field input:disabled {
    background: var(--bg-alt);
    color: var(--muted);
    cursor: not-allowed;
}

.portal .field .help {
    font-size: .76rem;
    color: var(--muted-lt);
    margin-top: .4rem;
    line-height: 1.55;
}

.portal .field .err {
    font-size: .78rem;
    color: #a2381c;
    margin-top: .35rem;
}

.portal .form-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

.portal .checks {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.portal .check-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    background: var(--surface);
    transition: all .2s ease;
    text-transform: capitalize;
}

.portal .check-pill input {
    accent-color: var(--primary);
    cursor: pointer;
}

.portal .check-pill:has(input:checked) {
    background: var(--primary-lt);
    border-color: var(--primary);
    color: var(--primary-dk);
}

/* ---------- Filter bar ---------- */
.portal .filter-bar {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 1.25rem;
}

.portal .filter-bar .field {
    min-width: 150px;
}

.portal .filter-bar label {
    font-size: .68rem;
}

.portal .filter-bar select {
    padding: .6rem .8rem;
    font-size: .85rem;
}

/* ---------- Detail rows ---------- */
.portal .detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem 1.75rem;
}

.portal .detail-list>div {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.portal .detail-list dt,
.portal .detail-list .dt {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted-lt);
}

.portal .detail-list dd,
.portal .detail-list .dd {
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    word-break: break-word;
}

/* ---------- Timeline (assignments) ---------- */
.portal .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portal .timeline-item {
    position: relative;
    padding: 0 0 1.5rem 1.75rem;
    border-left: 1px solid var(--line);
}

.portal .timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.portal .timeline-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: .35rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--accent);
}

.portal .timeline-item h4 {
    font-size: 1rem;
    margin-bottom: .3rem;
}

.portal .timeline-meta {
    font-size: .8rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    margin-bottom: .4rem;
}

.portal .timeline-meta .fa {
    color: var(--accent-dk);
    margin-right: .25rem;
}

/* ---------- Pagination ---------- */
.portal .pagination-wrap {
    margin-top: 1.5rem;
}

.portal .pagination-wrap nav {
    display: flex;
    justify-content: center;
}

.portal .pagination-wrap svg {
    width: 16px;
    height: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .portal .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal .portal-nav-toggle {
        display: grid;
    }

    .portal .portal-sidebar {
        position: fixed;
        top: 64px;
        bottom: 0;
        left: 0;
        width: min(272px, 82vw);
        z-index: 50;
        transform: translateX(-102%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        height: auto;
    }

    body.portal-nav-open .portal-sidebar {
        transform: translateX(0);
    }

    body.portal-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .portal .portal-user-name {
        display: none;
    }

    .portal .portal-give-btn span {
        display: none;
    }

    .portal .portal-give-btn {
        padding: .55rem .75rem;
    }

    .portal .card {
        padding: 1.15rem;
    }

    .portal .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 37. AUTH: OTP + TABS ---------- */

.auth-page .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    padding: .3rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    margin-bottom: 1.6rem;
}

.auth-page .auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .68rem .75rem;
    font-family: 'Manrope', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    color: var(--muted);
    border-radius: 2px;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.auth-page .auth-tab .fa {
    font-size: .92rem;
}

.auth-page .auth-tab:hover {
    color: var(--primary);
}

.auth-page .auth-tab[aria-selected="true"] {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--sh-sm), inset 0 -2px 0 var(--accent);
}

.auth-page .auth-note {
    font-size: .78rem;
    line-height: 1.6;
    color: var(--muted-lt);
    text-align: center;
    margin-top: .9rem;
}

/* country-code prefix inside the phone field */
.auth-page .phone-wrap .phone-cc {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 3.1rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    border-right: 1px solid var(--line);
    pointer-events: none;
}

.auth-page .phone-wrap input {
    padding-left: 3.9rem;
    letter-spacing: .06em;
    font-weight: 600;
}

/* ---- OTP entry ---- */
.auth-page .otp-boxes {
    display: grid;
    grid-template-columns: repeat(var(--otp-count, 6), minmax(0, 1fr));
    gap: 8px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.auth-page .otp-box {
    width: 100%;
    height: 54px;
    min-height: 48px;
    max-width: 54px;
    margin: 0 auto;
    padding: 0 !important;
    text-align: center !important;
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    color: var(--ink, #12211b) !important;
    -webkit-text-fill-color: var(--ink, #12211b) !important;
    background: #ffffff !important;
    border: 1.5px solid #d4cdc3;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    box-shadow: 0 1px 3px rgba(18, 33, 27, 0.05);
    transition: all .18s ease;
}

.auth-page .otp-box:focus {
    border-color: var(--primary, #14563c) !important;
    box-shadow: 0 0 0 3px rgba(20, 86, 60, .18), 0 2px 6px rgba(20, 86, 60, .1) !important;
    background: #ffffff !important;
    transform: translateY(-1px);
}

.auth-page .otp-box:not(:placeholder-shown),
.auth-page .otp-box.has-value {
    border-color: var(--primary, #14563c);
    background: #fdfcf9;
}

.auth-page .otp-timer {
    font-size: .78rem;
    color: var(--muted-lt);
    text-align: center;
    margin-top: .8rem;
    min-height: 1.2em;
}

.auth-page .otp-resend {
    font-family: 'Manrope', sans-serif;
    font-size: .875rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(20, 86, 60, .3);
    transition: color .2s ease, border-color .2s ease;
}

.auth-page .otp-resend:hover:not(:disabled) {
    border-bottom-color: var(--primary);
}

.auth-page .otp-resend:disabled {
    color: var(--muted-lt);
    border-bottom-color: transparent;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .auth-page .otp-boxes {
        gap: 6px;
        max-width: 320px;
    }

    .auth-page .otp-box {
        height: 48px;
        font-size: 1.35rem !important;
        border-radius: 7px;
    }
}

@media (max-width: 360px) {
    .auth-page .otp-boxes {
        gap: 4px;
        max-width: 100%;
    }

    .auth-page .otp-box {
        height: 44px;
        font-size: 1.2rem !important;
        border-radius: 6px;
    }
}

/* ==========================================================================
   CONTACT US PAGE
   ========================================================================== */
.contact-page-section {
    padding: 70px 0 80px;
    background: var(--bg);
}

.contact-alert {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    border-radius: var(--r-md);
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-alert i {
    font-size: 1.6rem;
    margin-top: 2px;
}

.contact-alert strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-alert p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-alert ul {
    margin: 0.4rem 0 0 1.25rem;
    padding: 0;
    font-size: 0.88rem;
}

.contact-alert.success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.contact-alert.success i {
    color: #10b981;
}

.contact-alert.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.contact-alert.error i {
    color: #ef4444;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3rem;
    align-items: start;
}

/* Left: Info Card */
.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-info-card h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin: 0.5rem 0 0.85rem;
    line-height: 1.2;
}

.contact-info-card h2 span {
    color: var(--primary);
}

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

.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.contact-method-item {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
}

.method-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e8f4ee;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.contact-method-item:hover .method-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.method-details h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.method-details p {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
}

.method-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.method-details a:hover {
    color: var(--primary-dk);
    text-decoration: underline;
}

.badge-closed {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fee2e2;
    color: #b91c1c;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.contact-trust-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: #f0f7f4;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d4ece1;
}

/* Right: Form Card */
.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2.75rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.contact-form-card .form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.contact-form-card .form-header h3 {
    font-size: clamp(1.5rem, 2.2vw, 1.95rem);
    margin: 0.45rem 0 0.5rem;
}

.contact-form-card .form-header h3 span {
    color: var(--primary);
}

.contact-form-card .form-header p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field-group {
    margin-bottom: 1.35rem;
}

.form-field-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.form-field-group .req {
    color: #dc2626;
}

.contact-form-card .input-wrap {
    position: relative;
}

.contact-form-card .input-wrap > .fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--muted-lt);
    pointer-events: none;
    transition: color 0.2s ease;
}

.contact-form-card input[type=text],
.contact-form-card input[type=email],
.contact-form-card input[type=tel],
.contact-form-card select {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 86, 60, 0.12);
}

.contact-form-card .input-wrap:focus-within > .fa {
    color: var(--primary);
}

.select-wrap select {
    cursor: pointer;
}

.textarea-wrap textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-captcha-box {
    margin: 1.25rem 0 1.5rem;
    padding: 1.15rem;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.contact-captcha-box .captcha-form-group {
    margin-bottom: 0;
}

.btn-submit-contact {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--r-sm);
    box-shadow: 0 3px 0 0 var(--primary-dk), 0 6px 16px rgba(20, 86, 60, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-contact:hover {
    background: var(--primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 0 var(--primary-dk), 0 8px 20px rgba(20, 86, 60, 0.28);
}

.btn-submit-contact:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 0 var(--primary-dk);
}

/* FAQ Section */
.contact-faq-section {
    padding: 70px 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.faq-card h4 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: var(--ink);
}

.faq-card h4 i {
    color: var(--primary);
}

.faq-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

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

@media (max-width: 580px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.75rem 1.25rem;
    }
}

/* ===== GLOBAL TOAST NOTIFICATIONS ===== */
.dr-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.dr-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #ffffff;
    color: #1a202c;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.45;
    animation: drToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 5px solid #14563c;
}

.dr-toast.dr-toast-error {
    border-left-color: #e53e3e;
    background: #fffafa;
}

.dr-toast.dr-toast-success {
    border-left-color: #14563c;
    background: #f4faf6;
}

.dr-toast.dr-toast-warning {
    border-left-color: #d69e2e;
    background: #fffdf5;
}

.dr-toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.dr-toast-error .dr-toast-icon { color: #e53e3e; }
.dr-toast-success .dr-toast-icon { color: #14563c; }
.dr-toast-warning .dr-toast-icon { color: #d69e2e; }

.dr-toast-content {
    flex: 1;
    word-break: break-word;
}

.dr-toast-close {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.dr-toast-close:hover {
    color: #4a5568;
}

@keyframes drToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dr-toast-hide {
    opacity: 0 !important;
    transform: translateY(-12px) scale(0.95) !important;
}

@media (max-width: 580px) {
    .dr-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* ==========================================================================
   GLOBAL MOBILE-FRIENDLY RESPONSIVENESS ENHANCEMENTS
   ========================================================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Form inputs and buttons mobile usability */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }

    /* Header adjustments */
    .main-header-inner {
        min-height: 64px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.55rem;
    }

    /* Top utility bar */
    .top-header {
        padding: 6px 0;
    }

    .top-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .top-header-inner ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Donation multi-step mobile layout */
    .donation-container {
        padding: 16px 12px;
    }

    .step-item {
        font-size: 0.8rem;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .amount-btn {
        padding: 12px 8px !important;
        font-size: 1rem !important;
    }

    /* Portal & Account area mobile adjustments */
    .portal-shell {
        padding: 16px 12px;
    }

    .portal-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .amount-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .donation-hero-title {
        font-size: 1.6rem !important;
    }

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

    .donation-actions .btn-primary,
    .donation-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


