:root {
    --blue: #1a365d;
    --green: #2d5016;
    --red: #e53e3e;
    --light: #f7fafc;
    --dark: #2d3748;
    --text: #4a5568;
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    color: var(--text);
    background: #f8f9fa;
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s, transform 5s;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1.5s;
}
.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    animation: slideInDown 1.2s;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    min-height: 40px;
}
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.hero-btn.primary {
    background: var(--red);
    color: #fff;
}
.hero-btn.primary:hover {
    background: #ff7043;
    transform: scale(1.05);
}
.hero-btn.secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-btn.secondary:hover {
    background: #fff;
    color: var(--dark);
    transform: scale(1.05);
}
.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px);}
    to { opacity: 1; transform: translateY(0);}
}
.features, .blog, .contact {
    padding: 5rem 0;
    background: #fff;
}
.features:nth-of-type(even) { background: #f7fafc; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}
.section-title h2 {
    font-size: 2.2rem;
    display: inline-block;
    padding-bottom: 1rem;
    position: relative;
}
.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.features-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card, .blog-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.feature-card:hover, .blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.10);
}
.feature-icon, .blog-icon i {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    color: var(--green);
    transform: scale(1.1);
}
.blog-icon {
    text-align: center;
    margin-bottom: 15px;
    color: #2c7a7b;
}
.read-more {
    background: #2c7a7b;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background .3s;
    margin-top: 10px;
}
.read-more:hover { background: #225e5f; }
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}
.impact {
    background: var(--dark);
    color: #fff;
    padding: 2.5rem 0;
}
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.impact-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ecc94b;
}
@media (max-width: 900px) {
    .hero-title { font-size: 2.2rem; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .features, .blog, .contact { padding: 2.5rem 0; }
    .features-grid, .blog-grid { grid-template-columns: 1fr; }
}

/* Inner page banner */
.page-banner {
    background: linear-gradient(135deg, rgba(26,54,93,.92), rgba(45,80,22,.88)), url('../images/hero-1.webp') center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0 60px;
}
.page-banner h1 { font-size: 2.6rem; margin-bottom: .5rem; }
.page-banner p { font-size: 1.15rem; opacity: .9; }
.intro-card a { color: var(--blue); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 1rem; }
.intro-card a:hover { color: var(--red); }
@media (max-width: 600px) {
    .page-banner { padding: 120px 0 40px; }
    .page-banner h1 { font-size: 1.8rem; }
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255,255,255,0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(26,54,93,0.08);
    color: var(--dark);
    transition: background .35s, padding .35s, box-shadow .35s, border-color .35s, color .35s;
}
.site-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(15,36,64,0.10);
}
/* Home page: transparent over the hero until the visitor scrolls */
.site-header.is-transparent:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    color: #fff;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.logo-img {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: width .35s, height .35s;
}
.site-header.scrolled .logo-img { width: 44px; height: 44px; }
.logo-img img { width: 88%; height: 88%; object-fit: contain; }
.logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo-subtext {
    font-size: 0.75rem;
    letter-spacing: .5px;
    color: var(--green);
    font-weight: 600;
}
.site-header.is-transparent:not(.scrolled) .logo-subtext { color: #ecc94b; }
.desktop-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
}
.desktop-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    transition: background .25s, color .25s;
}
.desktop-nav a:hover { background: rgba(45,80,22,0.08); color: var(--green); }
.desktop-nav a[aria-current="page"] { background: var(--green); color: #fff; }
.site-header.is-transparent:not(.scrolled) .desktop-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.site-header.is-transparent:not(.scrolled) .desktop-nav a[aria-current="page"] { background: rgba(255,255,255,0.2); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}
.header-phone i {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(45,80,22,0.1);
    color: var(--green);
}
.site-header.is-transparent:not(.scrolled) .header-phone i { background: rgba(255,255,255,0.15); color: #fff; }
.header-donate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(229,62,62,0.35);
    transition: transform .25s, box-shadow .25s, background .25s;
}
.header-donate:hover { background: #c53030; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(229,62,62,0.4); }
.mobile-nav-toggle {
    position: relative;
    display: none;
    width: 46px; height: 46px;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: rgba(45,80,22,0.08);
    color: inherit;
    cursor: pointer;
    transition: background .3s, color .3s;
}
.mobile-nav-toggle:hover { background: rgba(45,80,22,0.14); }
.mobile-nav-toggle:focus-visible { outline: 3px solid rgba(45,80,22,0.35); outline-offset: 2px; }
/* Three equal bars drawn from the button's centre, so the X is always symmetric */
.mobile-nav-toggle span {
    position: absolute;
    left: 50%; top: 50%;
    width: 20px; height: 2px;
    margin: -1px 0 0 -10px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .4s var(--ease-out), opacity .25s;
}
.mobile-nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.mobile-nav-toggle span:nth-child(3) { transform: translateY(6px); }
.site-header.is-transparent:not(.scrolled) .mobile-nav-toggle { background: rgba(255,255,255,0.15); }
/* Bars morph into an X while the menu is open */
.menu-open .site-header { z-index: 1200; }
.menu-open .mobile-nav-toggle { background: var(--green); color: #fff; }
.menu-open .mobile-nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .mobile-nav-toggle span:nth-child(3) { transform: rotate(-45deg); }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,36,64,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
    z-index: 1090;
}
.nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; max-width: 400px;
    height: 100vh;
    height: 100dvh;
    padding: 86px 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--dark);
    z-index: 1100;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out), box-shadow .5s;
}
.mobile-nav.active { transform: translateX(0); box-shadow: -20px 0 60px rgba(15,36,64,0.25); }
.mnav-eyebrow {
    padding: 0 .6rem .6rem;
    color: #94a3b8;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.mobile-nav ul { list-style: none; }
.mobile-nav li {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .4s, transform .5s var(--ease-out);
}
.mobile-nav.active li { opacity: 1; transform: none; }
.mobile-nav.active li:nth-child(1) { transition-delay: .08s; }
.mobile-nav.active li:nth-child(2) { transition-delay: .12s; }
.mobile-nav.active li:nth-child(3) { transition-delay: .16s; }
.mobile-nav.active li:nth-child(4) { transition-delay: .2s; }
.mobile-nav.active li:nth-child(5) { transition-delay: .24s; }
.mobile-nav.active li:nth-child(6) { transition-delay: .28s; }
.mobile-nav ul a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    margin-bottom: 4px;
    border-radius: 16px;
    color: var(--dark);
    text-decoration: none;
    transition: background .25s;
}
.mobile-nav ul a:hover { background: #f5f7fa; }
.mnav-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--green);
    font-size: 1rem;
    transition: background .25s, color .25s;
}
.mnav-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.mnav-text strong { font-family: 'Montserrat', sans-serif; font-size: 1.02rem; font-weight: 600; }
.mnav-text small { color: #94a3b8; font-size: .8rem; }
.mnav-arrow { color: #cbd5e0; font-size: .75rem; transition: transform .3s var(--ease-out), color .3s; }
.mobile-nav ul a:hover .mnav-arrow { transform: translateX(3px); color: var(--green); }
.mobile-nav ul a[aria-current="page"] { background: rgba(45,80,22,0.08); }
.mobile-nav ul a[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--green);
}
.mobile-nav ul a[aria-current="page"] .mnav-icon { background: var(--green); color: #fff; }
.mobile-nav ul a[aria-current="page"] .mnav-arrow { color: var(--green); }
.mnav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.2rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s .3s, transform .5s var(--ease-out) .3s;
}
.mobile-nav.active .mnav-actions { opacity: 1; transform: none; }
.mobile-donate, .mobile-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: transform .3s var(--ease-out), box-shadow .3s;
}
.mobile-donate { background: var(--red); box-shadow: 0 8px 20px rgba(229,62,62,0.3); }
.mobile-wa { background: #25d366; box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.mobile-donate:hover, .mobile-wa:hover { transform: translateY(-2px); }
.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding: 1.2rem .6rem 0;
    border-top: 1px solid #edf2f7;
    font-size: .88rem;
}
.mobile-nav-contact a, .mobile-nav-contact span { padding: 5px 0; color: var(--text); text-decoration: none; }
.mobile-nav-contact i { width: 20px; color: var(--green); }
.mnav-actions + .mobile-nav-contact { margin-top: auto; }
.mobile-nav ul + .mnav-actions { margin-bottom: 1.5rem; }
@media (max-width: 600px) {
    .mobile-nav { padding-top: 80px; }
}
[id] { scroll-margin-top: 100px; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(45,80,22,0.45), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(229,62,62,0.12), transparent 50%),
        #0f2440;
    color: rgba(255,255,255,0.72);
    padding: 4rem 0 0;
    margin-top: 0;
}
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 2.2rem;
    margin-bottom: 3.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-newsletter h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.subscribe-form {
    display: flex;
    flex: 1;
    max-width: 460px;
    min-width: 260px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
}
.subscribe-form input {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: .95rem;
}
.subscribe-form button {
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s;
}
.subscribe-form button:hover { background: var(--blue); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-brand p { max-width: 340px; }
.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4rem; }
.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}
.footer-chip:hover { background: rgba(255,255,255,0.1); }
.footer-chip.donate { background: var(--red); border-color: var(--red); }
.footer-chip.donate:hover { background: #c53030; }
.footer-col h4 {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}
.footer-links, .footer-contact { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: .75rem; }
.footer-links a, .footer-contact a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover, .footer-contact a:hover, .footer-links a[aria-current="page"] { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: baseline; }
.footer-contact i { color: #68d391; width: 16px; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: .88rem;
}
.back-to-top { color: rgba(255,255,255,0.72); text-decoration: none; margin-right: 70px; }
.back-to-top:hover { color: #fff; }

@media (max-width: 1100px) {
    .header-phone span { display: none; }
}
@media (max-width: 960px) {
    .desktop-nav, .header-phone { display: none; }
    .mobile-nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .logo-subtext { font-size: .7rem; letter-spacing: .2px; }
    .logo { gap: 9px; }
    .logo-text { font-size: 1.1rem; }
    .logo-img { width: 44px; height: 44px; }
    .header-donate { padding: 10px 14px; }
    .header-donate span { display: none; }
    .footer-newsletter { padding: 1.5rem; }
    .subscribe-form { min-width: 0; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { justify-content: center; text-align: center; padding-bottom: 90px; }
    .back-to-top { margin-right: 0; }
}

/* ---------- Stories listing ---------- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.story-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15,36,64,0.08);
    transition: transform .25s, box-shadow .25s;
}
.story-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,36,64,0.12); }
.story-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story-card:hover .story-thumb img { transform: scale(1.05); }
.story-thumb--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: rgba(255,255,255,0.9);
    font-size: 4rem;
}
.story-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem; }
.story-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; margin-bottom: .8rem; }
.story-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(45,80,22,0.1);
    color: var(--green);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.story-body h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.story-body h3 a { color: var(--dark); text-decoration: none; }
.story-body h3 a:hover { color: var(--green); }
.story-link { margin-top: auto; padding-top: 1rem; color: var(--red); font-weight: 600; text-decoration: none; }
.story-link i { transition: transform .25s; }
.story-link:hover i { transform: translateX(4px); }

/* ---------- Article page ---------- */
.article-narrow { max-width: 780px; }
.article-hero {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    padding: 140px 0 60px;
}
.article-hero .story-tag { background: rgba(255,255,255,0.15); color: #fff; }
.article-hero h1 { font-size: 2.6rem; line-height: 1.2; margin: 1rem 0; }
.article-back { display: table; margin-bottom: 1.5rem; color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 600; }
.article-back:hover { color: #fff; }
.article-meta { opacity: .85; }
.article { background: #fff; padding: 0 0 4rem; }
.article-figure { margin: -30px 0 2.5rem; }
.article-figure img { width: 100%; border-radius: 18px; box-shadow: 0 16px 40px rgba(15,36,64,0.18); display: block; }
.article-content { padding-top: 2.5rem; font-size: 1.12rem; line-height: 1.85; color: #3b4556; }
.article-figure + .article-content { padding-top: 0; }
.article-content p { margin-bottom: 1.4rem; }
.article-content h2 { font-size: 1.5rem; color: var(--dark); margin: 2.2rem 0 1rem; }
.article-content ul { margin: 0 0 1.4rem 1.3rem; }
.article-content li { margin-bottom: .6rem; }
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--red);
    background: #f7fafc;
    border-radius: 0 12px 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: var(--dark);
}
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}
.article-share span { font-weight: 600; margin-right: 6px; color: var(--dark); }
.article-share a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
    color: var(--dark);
    text-decoration: none;
    transition: background .25s, color .25s;
}
.article-share a:hover { background: var(--green); color: #fff; }
.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    padding: 2rem;
    border-radius: 18px;
    background: #0f2440;
    color: rgba(255,255,255,0.8);
}
.article-cta h3 { color: #fff; margin-bottom: .3rem; }
.article-cta-actions { display: flex; gap: 10px; align-items: center; }
.article-next { display: flex; flex-direction: column; gap: 4px; }
.article-next span { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
.article-next a { color: var(--dark); text-decoration: none; font-size: 1.15rem; }
.article-next a:hover { color: var(--green); }

/* ---------- Footer credit ---------- */
.footer-credit a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-credit a:hover { color: #68d391; }

@media (max-width: 600px) {
    .story-grid { grid-template-columns: 1fr; }
    .article-hero { padding: 110px 0 50px; }
    .article-hero h1 { font-size: 1.8rem; }
    .article-content { font-size: 1.02rem; }
    .article-cta { padding: 1.5rem; }
}

/* ---------- Motion system ---------- */
:root { --ease-out: cubic-bezier(.16,1,.3,1); }
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--stagger, 0s);
}
.js .reveal.reveal-left { transform: translateX(-48px); }
.js .reveal.reveal-right { transform: translateX(48px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--red), #ecc94b, #68d391);
    z-index: 1200;
    pointer-events: none;
}
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
}
.btn-shine:hover::after { animation: shine .8s ease; }
@keyframes shine { to { left: 130%; } }

/* ---------- Hero ---------- */
.hero-content { animation: none; max-width: 900px; }
.hero-title { animation: none; font-size: 3.4rem; line-height: 1.12; letter-spacing: -.5px; }
.hero-anim { opacity: 0; animation: heroIn 1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}
.hero-subtitle { color: #ecc94b; font-family: 'Montserrat', sans-serif; font-weight: 600; margin-bottom: 1rem; }
.hero-lead { max-width: 640px; margin: 0 auto 2.2rem; font-size: 1.15rem; opacity: .92; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; }
.hero-btn i { transition: transform .3s var(--ease-out); }
.hero-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.hero-overlay { background: linear-gradient(180deg, rgba(15,36,64,.55) 0%, rgba(15,36,64,.45) 50%, rgba(15,36,64,.85) 100%); }
.hero-dots {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dots button {
    width: 10px; height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: width .4s var(--ease-out), background .4s;
}
.hero-dots button.active { width: 30px; background: #fff; }
.scroll-cue {
    position: absolute;
    right: 40px; bottom: 30px;
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 14px;
    z-index: 3;
}
.scroll-cue span {
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Shared section heads ---------- */
.home-section { padding: 6rem 0; }
.eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--red);
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head h2, .about-copy h2 { font-size: 2.4rem; line-height: 1.2; color: var(--dark); margin-bottom: 1rem; }
.section-head p { font-size: 1.08rem; }
.section-head--light h2 { color: #fff; }
.section-head--light .eyebrow { color: #ecc94b; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: none; text-align: left; }
.section-head--row h2 { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; text-decoration: none; }
.text-link i { transition: transform .3s var(--ease-out); }
.text-link:hover i { transform: translateX(5px); }

/* ---------- Impact ---------- */
.impact { position: relative; background: #0f2440; padding: 3.5rem 0; }
.impact-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.impact-item { padding: 1rem; border-right: 1px solid rgba(255,255,255,0.1); }
.impact-item:last-child { border-right: none; }
.impact-item > i { font-size: 1.4rem; color: #68d391; margin-bottom: .6rem; }
.impact-number { font-size: 2.8rem; line-height: 1.1; }
.impact-item p { color: rgba(255,255,255,0.75); font-size: .95rem; max-width: 220px; margin: .4rem auto 0; }

/* ---------- About preview ---------- */
.home-about { background: #fff; overflow: hidden; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about-media { position: relative; padding: 0 40px 60px 0; }
.about-img-main { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(15,36,64,0.18); }
.about-img-small {
    position: absolute;
    right: 0; bottom: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    border: 6px solid #fff;
    box-shadow: 0 18px 40px rgba(15,36,64,0.2);
}
.about-badge {
    position: absolute;
    top: 24px; left: -20px;
    display: flex;
    flex-direction: column;
    padding: 14px 22px;
    border-radius: 16px;
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 30px rgba(229,62,62,0.35);
    animation: floaty 5s ease-in-out infinite;
}
.about-badge strong { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; }
.about-badge span { font-size: .85rem; opacity: .9; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.about-copy > p { margin-bottom: 1rem; font-size: 1.05rem; }
.about-tabs { display: flex; gap: 6px; margin: 1.8rem 0 1rem; padding: 5px; border-radius: 999px; background: #f1f5f9; width: fit-content; flex-wrap: wrap; }
.about-tab {
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: background .3s, color .3s, box-shadow .3s;
}
.about-tab.active { background: #fff; color: var(--green); box-shadow: 0 4px 12px rgba(15,36,64,0.1); }
.about-panel { display: none; min-height: 84px; }
.about-panel.active { display: block; animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; margin-bottom: .5rem; font-weight: 600; color: var(--dark); }
.check-list i { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(45,80,22,0.12); color: var(--green); font-size: .75rem; }
.about-copy .text-link { margin-top: 1.2rem; }

/* ---------- Programs preview ---------- */
.home-programs { background: #f7fafc; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.2rem 1.8rem;
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15,36,64,0.06);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out);
}
.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--blue), var(--green));
    opacity: 0;
    transition: opacity .5s var(--ease-out);
}
.program-card > * { position: relative; }
.program-card:hover { transform: translateY(-10px); box-shadow: 0 24px 48px rgba(15,36,64,0.18); }
.program-card:hover::before { opacity: 1; }
.program-card:hover, .program-card:hover h3 { color: #fff; }
.program-num { position: absolute; top: 18px; right: 22px; font-family: 'Montserrat', sans-serif; font-size: 2.6rem; font-weight: 700; color: rgba(26,54,93,0.07); transition: color .5s; }
.program-card:hover .program-num { color: rgba(255,255,255,0.15); }
.program-icon {
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
    border-radius: 18px;
    background: rgba(45,80,22,0.1);
    color: var(--green);
    font-size: 1.6rem;
    transition: background .5s, color .5s, transform .5s var(--ease-out);
}
.program-card:hover .program-icon { background: rgba(255,255,255,0.15); color: #fff; transform: rotate(-8deg) scale(1.05); }
.program-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: .7rem; transition: color .5s; }
.program-card p { font-size: .97rem; margin-bottom: 1.4rem; }
.program-more { margin-top: auto; font-weight: 700; color: var(--red); transition: color .5s; }
.program-card:hover .program-more { color: #ecc94b; }

/* ---------- Values ---------- */
.home-values {
    padding: 6rem 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(104,211,145,0.18), transparent 50%),
        linear-gradient(135deg, var(--blue), var(--green));
    color: rgba(255,255,255,0.85);
}
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.value-item {
    padding: 2rem 1.4rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    transition: background .4s, transform .5s var(--ease-out), opacity .9s var(--ease-out);
}
.value-item:hover { background: rgba(255,255,255,0.14); transform: translateY(-6px); }
.value-item i { font-size: 1.8rem; color: #ecc94b; margin-bottom: 1rem; }
.value-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: .5rem; }
.value-item p { font-size: .92rem; }

/* ---------- Gallery ---------- */
.home-gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery-item { position: relative; padding: 0; border: none; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #e2e8f0; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15,36,64,0.45);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex; align-items: center; justify-content: center;
    padding: 4vh 4vw;
    background: rgba(10,20,35,0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; transform: scale(.94); transition: transform .5s var(--ease-out); }
.lightbox.open img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* ---------- Stories preview ---------- */
.home-stories { background: #f7fafc; }

/* ---------- Partners marquee ---------- */
.home-partners { padding: 5rem 0 4rem; background: #fff; overflow: hidden; }
.home-partners .section-head { margin-bottom: 2.5rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 24px; padding-right: 24px; }
.marquee-logo {
    display: flex; align-items: center; justify-content: center;
    width: 240px; height: 120px;
    padding: 20px 28px;
    border-radius: 18px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
}
.marquee-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.marquee-logo:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Get involved ---------- */
.home-involve { background: #f7fafc; }
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; align-items: stretch; }
.involve-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.4rem 2rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15,36,64,0.06);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out);
}
.involve-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(15,36,64,0.14); }
.involve-card--featured { background: linear-gradient(160deg, var(--blue), var(--green)); color: rgba(255,255,255,0.85); }
.involve-card.involve-card--featured h3 { color: #fff; }
.involve-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.3rem;
    border-radius: 50%;
    background: rgba(229,62,62,0.1);
    color: var(--red);
    font-size: 1.4rem;
}
.involve-card--featured .involve-icon { background: rgba(255,255,255,0.15); color: #fff; }
.involve-card h3 { font-size: 1.35rem; color: var(--dark); margin-bottom: .6rem; }
.involve-card p { margin-bottom: 1.6rem; }
.involve-card .hero-btn { margin-top: auto; font-size: 1rem; padding: 11px 24px; }

/* ---------- Contact CTA ---------- */
.home-cta { padding: 0 0 5rem; background: #f7fafc; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(229,62,62,0.35), transparent 45%),
        #0f2440;
    color: rgba(255,255,255,0.8);
}
.cta-inner h2 { color: #fff; font-size: 1.9rem; margin-bottom: .4rem; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background .3s, transform .3s var(--ease-out);
}
.cta-pill:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .about-split { grid-template-columns: 1fr; gap: 3rem; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-item:nth-child(2) { border-right: none; }
    .involve-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .scroll-cue { display: none; }
}
@media (max-width: 600px) {
    .home-section, .home-values { padding: 4rem 0; }
    .hero-title { font-size: 1.9rem; }
    .hero-lead { font-size: 1rem; }
    .section-head h2, .about-copy h2 { font-size: 1.8rem; }
    .impact-number { font-size: 2.2rem; }
    .program-grid, .values-grid { grid-template-columns: 1fr; }
    .about-media { padding: 0 20px 40px 0; }
    .about-badge { left: -6px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
    .marquee-logo { width: 180px; height: 96px; }
    .cta-inner { padding: 2rem 1.5rem; }
    .cta-inner h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal, .hero-anim { opacity: 1; transform: none; filter: none; }
    .marquee-track { animation: none; }
    .marquee-group[aria-hidden] { display: none; }
    .marquee-track, .marquee-group { flex-wrap: wrap; justify-content: center; width: 100%; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Donate page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.eyebrow--light { color: #ecc94b; }
.donate-hero {
    position: relative;
    padding: 170px 0 110px;
    background:
        linear-gradient(135deg, rgba(15,36,64,.9), rgba(45,80,22,.82)),
        url('../images/hero-4.webp') center/cover;
    color: #fff;
    text-align: center;
}
.donate-hero-inner { max-width: 760px; }
.donate-hero h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 1.2rem; }
.donate-hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.donate-main { background: #f7fafc; padding-top: 0; }
.donate-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.donate-card, .mpesa-card {
    padding: 2.4rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15,36,64,0.12);
}
.donate-card h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: .4rem; }
.donate-sub { margin-bottom: 1.8rem; }
.donate-fieldset { border: none; margin-bottom: 1.8rem; }
.donate-fieldset legend { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--dark); margin-bottom: .8rem; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-btn, .amount-custom input {
    width: 100%;
    height: 54px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease-out);
}
.amount-btn:hover { border-color: var(--green); transform: translateY(-2px); }
.amount-btn.active { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(45,80,22,0.25); }
.amount-custom input { padding: 0 14px; cursor: text; text-align: center; }
.amount-custom input:focus { outline: none; border-color: var(--green); }
.amount-custom input.active { border-color: var(--green); background: rgba(45,80,22,0.06); }
.cause-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cause-option input { position: absolute; opacity: 0; pointer-events: none; }
.cause-option span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--dark);
    cursor: pointer;
    transition: border-color .25s, background .25s, color .25s;
}
.cause-option span i { color: var(--green); transition: color .25s; }
.cause-option:hover span { border-color: var(--green); }
.cause-option input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.cause-option input:checked + span i { color: #fff; }
.cause-option input:focus-visible + span { outline: 3px solid rgba(45,80,22,0.35); outline-offset: 2px; }
.donate-summary {
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background: rgba(229,62,62,0.07);
    border-left: 4px solid var(--red);
    color: var(--dark);
}
.mpesa-card { border-top: 6px solid #4caf50; }
.mpesa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 1.4rem; }
.mpesa-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: #4caf50;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 1px;
}
.mpesa-head h3 { font-size: 1.4rem; color: var(--dark); }
.mpesa-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.4rem;
    border-radius: 16px;
    background: #0f2440;
    color: #fff;
}
.mpesa-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.mpesa-number strong { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; letter-spacing: 1px; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s;
}
.copy-btn:hover { background: rgba(255,255,255,0.24); }
.copy-btn.copied { background: #4caf50; }
.mpesa-steps { list-style: none; margin-bottom: 1.6rem; }
.mpesa-steps li { display: flex; gap: 12px; align-items: flex-start; padding: .55rem 0; color: var(--text); }
.mpesa-steps li > span {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(76,175,80,0.14);
    color: #2e7d32;
    font-weight: 700;
    font-size: .85rem;
}
.mpesa-steps strong { color: var(--dark); }
.mpesa-confirm { width: 100%; justify-content: center; background: #25d366; }
.mpesa-confirm:hover { background: #1fb457; }
.mpesa-note { margin-top: 1rem; font-size: .9rem; display: flex; gap: 8px; }
.mpesa-note i { color: var(--green); margin-top: 4px; }
.donate-ways { background: #fff; }
.ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.way-card {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.6rem;
    border-radius: 20px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s, opacity .9s var(--ease-out);
}
.way-card:hover { transform: translateY(-8px); background: #fff; box-shadow: 0 20px 40px rgba(15,36,64,0.1); }
.way-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 16px;
    background: rgba(26,54,93,0.08);
    color: var(--blue);
    font-size: 1.4rem;
}
.way-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: .6rem; }
.way-card p { margin-bottom: 1.2rem; font-size: .97rem; }
.way-card .text-link { margin-top: auto; }
.impact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.impact-cards .value-item { color: rgba(255,255,255,0.85); text-decoration: none; }
.donate-trust { background: #f7fafc; padding: 4.5rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; padding: 1.6rem; border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(15,36,64,0.05); }
.trust-item > i { font-size: 1.6rem; color: var(--red); margin-top: 4px; }
.trust-item h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: .3rem; }
.trust-item p { font-size: .95rem; }
.donate-faq { background: #fff; }
.faq-wrap { max-width: 820px; }
.faq-item { border-bottom: 1px solid #edf2f7; }
.faq-item summary {
    position: relative;
    padding: 1.3rem 3rem 1.3rem 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%;
    width: 32px; height: 32px;
    margin-top: -16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--green);
    font-size: 1.3rem;
    transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-item p { padding: 0 3rem 1.4rem 0; animation: panelIn .5s var(--ease-out); }
.donate-page .home-cta { background: #fff; }
.header-donate { text-decoration: none; }
.header-donate[aria-current="page"] { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 5px var(--red); }
@media (max-width: 1100px) {
    .ways-grid, .impact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .donate-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .donate-hero { padding: 130px 0 90px; }
    .donate-hero h1 { font-size: 2rem; }
    .donate-card, .mpesa-card { padding: 1.6rem; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .mpesa-number strong { font-size: 1.35rem; }
    .ways-grid, .impact-cards { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-hero { padding-bottom: 130px; background:
    linear-gradient(135deg, rgba(15,36,64,.9), rgba(45,80,22,.82)),
    url('../images/hero-2.webp') center/cover; }
.contact-quick { background: #f7fafc; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: -70px;
    position: relative;
    z-index: 2;
}
.quick-card {
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.6rem;
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(15,36,64,0.1);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out);
}
.quick-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(15,36,64,0.16); }
.quick-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: rgba(45,80,22,0.1);
    color: var(--green);
    font-size: 1.3rem;
    transition: background .4s, color .4s;
}
.quick-icon--wa { background: rgba(37,211,102,0.12); color: #1da851; }
.quick-card:hover .quick-icon { background: var(--green); color: #fff; }
.quick-card:hover .quick-icon--wa { background: #25d366; }
.quick-card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: .2rem; }
.quick-card p { font-size: .95rem; word-break: break-word; }
.quick-action { margin-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--red); }
.quick-action i { transition: transform .3s var(--ease-out); }
.quick-card:hover .quick-action i { transform: translateX(4px); }
.contact.home-section { background: #f7fafc; }
.contact-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; }
.contact-form-card { padding: 2.6rem; border-radius: 24px; background: #fff; box-shadow: 0 10px 34px rgba(15,36,64,0.08); }
.contact-form-card h2 { font-size: 2rem; color: var(--dark); margin-bottom: .4rem; }
.contact-intro { margin-bottom: 1.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .92rem; color: var(--dark); }
.optional { font-weight: 400; color: #94a3b8; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45,80,22,0.1);
}
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: #fff5f5; }
.form-submit { margin-top: .4rem; }
.form-submit[disabled] { opacity: .7; cursor: wait; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.success, .form-status.error { padding: 1rem 1.2rem; border-radius: 12px; animation: panelIn .5s var(--ease-out); }
.form-status.success { background: rgba(72,187,120,0.12); color: #276749; }
.form-status.error { background: rgba(229,62,62,0.1); color: #c53030; }
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.map-card { border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 10px 34px rgba(15,36,64,0.08); }
.map-card iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-caption { display: flex; gap: 14px; align-items: center; padding: 1.2rem 1.4rem; }
.map-caption > i { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(229,62,62,0.1); color: var(--red); }
.map-caption strong { display: block; color: var(--dark); }
.map-caption span { font-size: .92rem; }
.help-card { padding: 1.8rem; border-radius: 24px; background: #0f2440; color: rgba(255,255,255,0.8); }
.help-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: .6rem; display: flex; align-items: center; gap: 10px; }
.help-card h3 i { color: #fc8181; }
.help-card p { font-size: .95rem; margin-bottom: 1rem; }
.help-list { list-style: none; display: grid; gap: 8px; }
.help-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    text-decoration: none;
    transition: background .25s;
}
.help-list a:hover { background: rgba(255,255,255,0.14); }
.help-list strong { min-width: 86px; font-family: 'Montserrat', sans-serif; font-size: 1.15rem; color: #fbd38d; }
.help-list span { font-size: .92rem; }
.contact-involve { background: #fff; }
.ways-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .ways-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .quick-grid { grid-template-columns: 1fr; gap: .9rem; }
    .contact-form-card { padding: 1.6rem; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- About page ---------- */
.about-hero { background:
    linear-gradient(135deg, rgba(15,36,64,.88), rgba(45,80,22,.8)),
    url('../images/hero-1.webp') center 30%/cover; }
.story-stats { display: flex; gap: 2.2rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid #edf2f7; flex-wrap: wrap; }
.story-stats strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--green); line-height: 1.1; }
.story-stats span { font-size: .9rem; }
.mv-section { background: #f7fafc; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.mv-card {
    position: relative;
    padding: 2.8rem 2.4rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(15,36,64,0.07);
    overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(15,36,64,0.13); }
.mv-card--dark { background: linear-gradient(150deg, var(--blue), var(--green)); color: rgba(255,255,255,0.85); }
.mv-icon {
    position: absolute;
    top: 2rem; right: 2rem;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(229,62,62,0.1);
    color: var(--red);
    font-size: 1.4rem;
}
.mv-card--dark .mv-icon { background: rgba(255,255,255,0.14); color: #ecc94b; }
.mv-lead { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 600; line-height: 1.5; color: var(--dark); margin: .4rem 4.5rem 1.2rem 0; }
.mv-card--dark .mv-lead { color: #fff; }
.approach-section { background: #fff; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; position: relative; }
.approach-grid::before {
    content: '';
    position: absolute;
    top: 52px; left: 16%; right: 16%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #cbd5e0 0 8px, transparent 8px 16px);
}
.approach-step { position: relative; text-align: center; padding: 0 1rem; }
.approach-step > i {
    position: relative;
    width: 104px; height: 104px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: var(--green);
    font-size: 2.2rem;
    transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease-out);
}
.approach-step:hover > i { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.06); }
.approach-num { position: absolute; top: -6px; left: 50%; margin-left: 26px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; }
.approach-step h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: .5rem; }
.sdg-section { background: #f7fafc; }
.sdg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sdg-card {
    position: relative;
    padding: 2.2rem 2rem 2rem;
    border-radius: 20px;
    background: #fff;
    border-top: 6px solid var(--sdg);
    box-shadow: 0 8px 26px rgba(15,36,64,0.06);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out);
}
.sdg-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,36,64,0.12); }
.sdg-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 58px; height: 58px;
    padding: 0 10px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: var(--sdg);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}
.sdg-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: .5rem; }
.about-partners { background: #fff; }
.partner-logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.partner-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.4rem;
    border-radius: 20px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    text-align: center;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s, opacity .9s var(--ease-out);
}
.partner-tile:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 18px 38px rgba(15,36,64,0.1); }
.partner-tile img { height: 80px; max-width: 100%; object-fit: contain; }
.partner-tile span { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--dark); font-size: .95rem; }
.about-cta { padding-top: 0; background: #fff; }
.cta-pill--solid { background: var(--red); border-color: var(--red); }
@media (max-width: 1100px) {
    .partner-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .mv-grid, .sdg-grid, .approach-grid { grid-template-columns: 1fr; }
    .approach-grid { gap: 2.5rem; }
    .approach-grid::before { display: none; }
}
@media (max-width: 600px) {
    .mv-card { padding: 2rem 1.6rem; }
    .mv-lead { font-size: 1.12rem; margin-right: 3.5rem; }
    .mv-icon { top: 1.4rem; right: 1.4rem; width: 48px; height: 48px; }
    .partner-logo-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
    .partner-tile { padding: 1.4rem 1rem; }
    .partner-tile img { height: 60px; }
}

/* ---------- Programs page ---------- */
.programs-hero { background:
    linear-gradient(135deg, rgba(15,36,64,.88), rgba(45,80,22,.8)),
    url('../images/hero-5.webp') center/cover; }
.program-nav {
    position: sticky;
    top: 61px;
    z-index: 900;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #edf2f7;
}
.program-nav-inner { display: flex; justify-content: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.program-nav-inner::-webkit-scrollbar { display: none; }
.program-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s, color .3s;
}
.program-nav a i { color: var(--green); transition: color .3s; }
.program-nav a:hover { background: #f1f5f9; }
.program-nav a.active { background: var(--green); color: #fff; }
.program-nav a.active i { color: #fff; }
.program-detail { padding: 6rem 0; background: #fff; overflow: hidden; scroll-margin-top: 130px; }
.program-detail--alt { background: #f7fafc; }
.program-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4.5rem; align-items: center; }
.program-split--reverse .program-media { order: 2; }
.program-media { position: relative; }
.program-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 50px rgba(15,36,64,0.16); display: block; }
.program-media-num {
    position: absolute;
    bottom: -24px; right: 28px;
    width: 76px; height: 76px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 22px;
    background: var(--red);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(229,62,62,0.35);
}
.program-split--reverse .program-media-num { right: auto; left: 28px; }
.program-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(45,80,22,0.1);
    color: var(--green);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.program-copy h2 { font-size: 2.2rem; line-height: 1.2; color: var(--dark); margin-bottom: .6rem; }
.program-lead { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--red); margin-bottom: 1rem; }
.program-copy > p { font-size: 1.05rem; margin-bottom: 1.4rem; }
.program-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; margin-bottom: 1.6rem; }
.program-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--dark); font-size: .97rem; }
.program-list i {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: .7rem;
}
.program-help, .program-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 16px;
}
.program-help { background: #0f2440; color: rgba(255,255,255,0.85); }
.program-help > i { font-size: 1.4rem; color: #fc8181; }
.program-help a { color: #fbd38d; text-decoration: none; }
.program-highlight { background: #fff; border: 1px solid #e2e8f0; }
.program-detail--alt .program-highlight { background: #fff; }
.program-highlight img { width: 70px; flex-shrink: 0; }
.program-support { background: #fff; }
@media (max-width: 960px) {
    .program-nav { top: 61px; }
    .program-nav-inner { justify-content: flex-start; }
}
@media (max-width: 900px) {
    .program-split { grid-template-columns: 1fr; gap: 3rem; }
    .program-split--reverse .program-media { order: 0; }
}
@media (max-width: 600px) {
    .program-detail { padding: 4rem 0; }
    .program-copy h2 { font-size: 1.7rem; }
    .program-list { grid-template-columns: 1fr; }
    .program-media-num { width: 60px; height: 60px; font-size: 1.4rem; bottom: -18px; }
}

/* ---------- Gallery page ---------- */
.gallery-hero { background:
    linear-gradient(135deg, rgba(15,36,64,.85), rgba(45,80,22,.78)),
    url('../images/hero-7.webp') center/cover; }
.gallery-page { background: #f7fafc; }
.masonry { column-count: 3; column-gap: 16px; }
.masonry-item { display: block; width: 100%; margin-bottom: 16px; break-inside: avoid; }
.masonry-item img { height: auto; }
.masonry-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.2rem 1.1rem .9rem;
    background: linear-gradient(transparent, rgba(10,20,35,0.8));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    text-align: left;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity .4s, transform .5s var(--ease-out);
    z-index: 1;
}
.masonry-item:hover .masonry-caption, .masonry-item:focus-visible .masonry-caption { opacity: 1; transform: none; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox-figure img { max-height: 82vh; }
.lightbox-caption { margin-top: 1rem; color: rgba(255,255,255,0.85); font-size: .95rem; text-align: center; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 52px; height: 52px;
    margin-top: -26px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .25s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Legal pages ---------- */
.legal-hero {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
}
.legal-hero h1 { font-size: 2.8rem; margin: .3rem 0 .4rem; }
.legal-hero p { opacity: .85; }
.legal-section { padding: 4rem 0 5rem; background: #fff; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
.legal-toc {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 1.4rem;
    border-radius: 18px;
    background: #f7fafc;
}
.legal-toc strong { font-family: 'Montserrat', sans-serif; color: var(--dark); margin-bottom: .6rem; }
.legal-toc a { padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; transition: background .2s, color .2s; }
.legal-toc a:hover { background: #fff; color: var(--green); }
.legal-content { max-width: 760px; font-size: 1.05rem; line-height: 1.8; color: #3b4556; }
.legal-intro { font-size: 1.15rem; padding: 1.3rem 1.5rem; border-left: 4px solid var(--green); background: #f7fafc; border-radius: 0 12px 12px 0; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.35rem; color: var(--dark); margin: 2.2rem 0 .8rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.3rem; }
.legal-content li { margin-bottom: .5rem; }
.legal-content a { color: var(--green); font-weight: 600; }
.legal-contact { padding: 1.4rem 1.6rem; border-radius: 16px; background: #0f2440; color: rgba(255,255,255,0.85); }
.legal-contact strong { color: #fff; }
.legal-contact a { color: #fbd38d; }
.legal-contact i { width: 18px; color: #68d391; }

/* ---------- Footer legal links ---------- */
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: #fff; }

@media (max-width: 900px) {
    .masonry { column-count: 2; }
    .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
    .legal-toc { position: static; }
}
@media (max-width: 600px) {
    .masonry { column-gap: 10px; }
    .masonry-item { margin-bottom: 10px; }
    .masonry-caption { opacity: 1; transform: none; font-size: .8rem; padding: 1.6rem .7rem .6rem; }
    .lightbox-nav { top: auto; bottom: 24px; margin-top: 0; }
    .lightbox-prev { left: calc(50% - 64px); }
    .lightbox-next { right: calc(50% - 64px); }
    .legal-hero { padding: 120px 0 45px; }
    .legal-hero h1 { font-size: 2rem; }
    .legal-content { font-size: 1rem; }
    /* Footer: two columns on phones */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
    .footer-brand, .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
    .footer-legal { justify-content: center; width: 100%; }
}

/* ---------- WhatsApp button ---------- */
.wa-widget {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    animation: waIn .7s var(--ease-out) 1s both;
    transition: opacity .3s, transform .3s;
}
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(.8); } }
.menu-open .wa-widget { opacity: 0; transform: translateY(20px); pointer-events: none; }
.whatsapp-float {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 6px 0 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2fe07a, #1ebe5b);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(30,190,91,0.45), 0 2px 6px rgba(0,0,0,0.12);
    transition: box-shadow .35s, transform .35s var(--ease-out);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    animation: waPulse 2.6s ease-out infinite;
    z-index: -1;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: .55; }
    80%, 100% { transform: scale(1.7); opacity: 0; }
}
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 4px; left: 44px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ecc94b;
    border: 2px solid #fff;
}
.wa-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.wa-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    opacity: 0;
    transition: max-width .45s var(--ease-out), opacity .3s, padding .45s var(--ease-out);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(30,190,91,0.55), 0 2px 6px rgba(0,0,0,0.12);
}
.whatsapp-float:hover .wa-label, .whatsapp-float:focus-visible .wa-label { max-width: 140px; opacity: 1; padding-right: 16px; }
.whatsapp-float:hover::before { animation: none; opacity: 0; }
.wa-greeting {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 270px;
    padding: 14px 34px 14px 14px;
    border-radius: 18px 18px 4px 18px;
    background: #fff;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.45;
    box-shadow: 0 16px 40px rgba(15,36,64,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .4s, transform .5s var(--ease-out), visibility .4s;
}
.wa-greeting.show { opacity: 1; visibility: visible; transform: none; }
.wa-greeting strong { display: block; color: var(--dark); font-family: 'Montserrat', sans-serif; font-size: .92rem; }
.wa-greeting-avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    overflow: hidden;
}
.wa-greeting-avatar img { width: 86%; height: 86%; object-fit: contain; }
.wa-greeting-close {
    position: absolute;
    top: 8px; right: 8px;
    width: 24px; height: 24px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text);
    font-size: .7rem;
    cursor: pointer;
}
.wa-greeting-close:hover { background: #e2e8f0; }
@media (max-width: 600px) {
    .wa-widget { right: 16px; bottom: 16px; }
    .whatsapp-float { height: 54px; }
    .wa-icon, .whatsapp-float::before { width: 54px; height: 54px; }
    .wa-icon { font-size: 27px; }
    .whatsapp-float::after { left: 38px; }
    .wa-greeting { width: min(260px, calc(100vw - 32px)); }
}

/* Keep side-sliding reveals from causing sideways scroll before they animate in */
.donate-main, .contact.home-section { overflow-x: clip; }

/* ---------- Phone header: keep the tagline on one line ---------- */
@media (max-width: 600px) {
    .header-container { gap: 10px; }
    .logo { min-width: 0; }
    .logo-words { min-width: 0; }
    .logo-subtext { white-space: nowrap; }
    .header-actions { gap: 8px; }
    .header-donate { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 12px; }
    .mobile-nav-toggle { width: 42px; height: 42px; border-radius: 12px; }
}
@media (max-width: 374px) {
    .logo-img, .site-header.scrolled .logo-img { width: 38px; height: 38px; }
    .logo { gap: 7px; }
    .logo-text { font-size: .98rem; letter-spacing: .5px; }
    .logo-subtext { font-size: .62rem; letter-spacing: 0; }
    .header-donate { width: 38px; height: 38px; }
    .mobile-nav-toggle { width: 38px; height: 38px; }
    .mobile-nav-toggle span { width: 18px; margin-left: -9px; }
}
@media (max-width: 340px) {
    .logo-subtext { font-size: .58rem; }
    .logo-text { font-size: .92rem; }
}
@media (max-width: 600px) {
    .about-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 4px; }
    .about-tab { padding: 9px 6px; font-size: .8rem; }
    .gallery-grid { grid-auto-flow: dense; }
    .impact-item p { font-size: .88rem; }
}
/* The CTA box doubles as the container, so keep it off the screen edges below desktop width */
.cta-inner { width: calc(100% - 40px); }
@media (max-width: 600px) {
    .cta-inner { width: calc(100% - 32px); }
    .cta-actions { width: 100%; }
    .cta-pill { flex: 1 1 auto; justify-content: center; }
}
.mpesa-steps li p { margin: 0; }
.mpesa-number strong { white-space: nowrap; }
@media (max-width: 400px) {
    .mpesa-number { padding: 1rem; }
    .mpesa-number strong { font-size: 1.2rem; }
    .copy-btn { padding: 8px 12px; }
}
@media (max-width: 600px) {
    .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-card { padding: 1.2rem 1rem; }
    .quick-icon { width: 44px; height: 44px; margin-bottom: .8rem; font-size: 1.1rem; }
    .quick-card h3 { font-size: 1rem; }
    .quick-card p { font-size: .82rem; }
    .quick-action { font-size: .82rem; margin-top: .7rem; }
}

/* ---------- Staff login links ---------- */
.header-login {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(45,80,22,0.08);
    color: var(--green);
    text-decoration: none;
    transition: background .25s, color .25s;
}
.header-login:hover { background: var(--green); color: #fff; }
.site-header.is-transparent:not(.scrolled) .header-login { background: rgba(255,255,255,0.15); color: #fff; }
.mnav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: opacity .4s .35s, background .25s, border-color .25s;
}
.mobile-nav.active .mnav-login { opacity: 1; }
.mnav-login i { color: var(--green); }
.mnav-login:hover { background: #f5f7fa; border-color: #cbd5e0; }
@media (max-width: 960px) {
    .header-login { display: none; }
}
/* The full number is in the footer and on the contact page; the header keeps a compact call button */
.header-phone span { display: none; }
/* Seven menu items plus actions need about 1240px; below that the hamburger menu takes over */
@media (max-width: 1240px) {
    .desktop-nav, .header-phone, .header-login { display: none; }
    .mobile-nav-toggle { display: flex; }
}
.logo { flex-shrink: 0; }
.logo-subtext { white-space: nowrap; }

/* ---------- Events ---------- */
.events-hero { background:
    linear-gradient(135deg, rgba(15,36,64,.88), rgba(45,80,22,.8)),
    url('../images/hero-3.webp') center/cover; }
.team-hero { background:
    linear-gradient(135deg, rgba(15,36,64,.88), rgba(45,80,22,.8)),
    url('../images/hero-2.webp') center/cover; }
.events-section, .team-section { background: #f7fafc; }
.events-wrap { max-width: 980px; }
.events-heading { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; color: var(--dark); margin-bottom: 1.4rem; }
.events-heading i { color: var(--green); }
.events-heading-past { margin-top: 3.5rem; }
.events-list { display: flex; flex-direction: column; gap: 1.2rem; }
.event-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15,36,64,0.07);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .9s var(--ease-out);
    scroll-margin-top: 110px;
}
.event-card.has-img { grid-template-columns: 92px minmax(0, 1fr) 220px; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,36,64,0.12); }
.event-card:target { outline: 3px solid var(--green); outline-offset: 3px; }
.event-card-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 96px;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--blue), var(--green));
    color: #fff;
    line-height: 1.1;
}
.event-card-date strong { font-family: 'Montserrat', sans-serif; font-size: 2rem; }
.event-card-date span { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.event-card-date small { opacity: .75; font-size: .75rem; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .88rem; margin-bottom: .5rem; }
.event-meta i { color: var(--green); }
.event-card h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: .3rem; }
.event-where { font-weight: 600; color: var(--dark); margin-bottom: .6rem; }
.event-where i { color: var(--red); }
.event-card-body > p { margin-bottom: .6rem; }
.event-more { margin: .4rem 0 .8rem; }
.event-more summary { cursor: pointer; font-weight: 700; color: var(--green); list-style: none; }
.event-more summary::-webkit-details-marker { display: none; }
.event-more summary::after { content: ' +'; }
.event-more[open] summary::after { content: ' \2212'; }
.event-more p { margin-top: .6rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .8rem; }
.event-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    color: var(--dark);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: background .25s, border-color .25s, color .25s;
}
.event-btn:hover { border-color: var(--green); color: var(--green); }
.event-btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.event-btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.event-card-img { width: 100%; height: 100%; max-height: 200px; object-fit: cover; border-radius: 14px; }
.events-past .event-card { opacity: .85; box-shadow: none; border: 1px solid #edf2f7; }
.events-past .event-card-date { background: #a0aec0; }
.events-empty { text-align: center; padding: 2.5rem 1.5rem; border-radius: 20px; background: #fff; border: 2px dashed #e2e8f0; }
.events-empty i { font-size: 2rem; color: #a0aec0; margin-bottom: .6rem; }
.events-none { color: #94a3b8; }

/* Homepage strip */
.home-events { background: #fff; }
.home-events-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-event {
    display: flex; align-items: center; gap: 14px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    color: var(--text);
    text-decoration: none;
    transition: transform .4s var(--ease-out), box-shadow .4s, background .3s, opacity .9s var(--ease-out);
}
.home-event:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 14px 30px rgba(15,36,64,0.1); }
.home-event-date { flex-shrink: 0; width: 58px; height: 62px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--red); color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; line-height: 1.1; }
.home-event-date strong { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; }
.home-event-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.home-event-info strong { color: var(--dark); font-family: 'Montserrat', sans-serif; line-height: 1.3; }
.home-event-info small { color: #718096; margin-top: 3px; }
.home-event > i { color: var(--green); transition: transform .3s; }
.home-event:hover > i { transform: translateX(4px); }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: 3.5rem; }
.team-group-title { text-align: center; font-size: 1.6rem; color: var(--dark); margin-bottom: 2rem; }
.team-group-title::after { content: ''; display: block; width: 50px; height: 3px; margin: .7rem auto 0; background: var(--red); border-radius: 2px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 270px)); gap: 1.5rem; justify-content: center; }
.team-card {
    position: relative;
    padding: 2rem 1.4rem 1.6rem;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 6px 24px rgba(15,36,64,0.07);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .9s var(--ease-out);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,36,64,0.12); }
.team-photo {
    width: 128px; height: 128px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: linear-gradient(135deg, var(--green), var(--red));
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; display: block; }
.team-initials { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 700; }
.team-card h3 { font-size: 1.15rem; color: var(--dark); }
.team-role { color: var(--green); font-weight: 700; font-size: .92rem; margin: .2rem 0 .7rem; }
.team-bio { font-size: .93rem; }
.team-link { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #edf2f7; color: #0a66c2; text-decoration: none; transition: background .25s, color .25s; }
.team-link:hover { background: #0a66c2; color: #fff; }
.team-link-about { margin: .4rem 0 0; }

@media (max-width: 900px) {
    .home-events-list { grid-template-columns: 1fr; }
    .event-card.has-img { grid-template-columns: 92px minmax(0, 1fr); }
    .event-card-img { grid-column: 1 / -1; max-height: 220px; order: -1; }
}
@media (max-width: 600px) {
    .event-card, .event-card.has-img { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
    .event-card-date { flex-direction: row; gap: 8px; height: auto; padding: 8px 14px; width: fit-content; }
    .event-card-date strong { font-size: 1.3rem; }
    .event-actions .event-btn { flex: 1 1 auto; justify-content: center; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .team-card { padding: 1.4rem .9rem; }
    .team-photo { width: 92px; height: 92px; }
}

/* ---------- Dropdowns ---------- */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 42px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
    cursor: pointer;
    text-overflow: ellipsis;
}
select:hover { border-color: #c9d3de; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232d5016' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232d5016' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
select::-ms-expand { display: none; }
select option { color: var(--dark); background: #fff; }
select option:checked { font-weight: 700; color: var(--green); }
.field select, .field select:focus {
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
}
.field select:hover, .field select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232d5016' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Partners and ways to give (managed from the dashboard) ---------- */
a.marquee-logo, a.partner-tile { text-decoration: none; }
.partner-name-only { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--dark); font-size: 1rem; text-align: center; line-height: 1.3; }
.marquee-logo .partner-name-only { opacity: .75; }
.partner-tile .partner-name-only { min-height: 80px; display: flex; align-items: center; }
.mpesa-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 1.2rem; border-radius: 14px; background: #f1f5f9; }
.mpesa-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: background .25s, color .25s, box-shadow .25s;
}
.mpesa-tab:hover { color: var(--dark); }
.mpesa-tab.active { background: #fff; color: #2e7d32; box-shadow: 0 4px 12px rgba(15,36,64,0.08); }
.mpesa-tab:focus-visible { outline: 2px solid #4caf50; outline-offset: 2px; }
.mpesa-method .mpesa-number + .mpesa-number { margin-top: -0.6rem; }
.mpesa-method[hidden] { display: none; }
.mpesa-empty { margin-bottom: 1.4rem; }
.bank-details { margin: 0 0 1.2rem; font-size: .93rem; }
.bank-details div { display: flex; flex-direction: column; padding: .45rem 0; border-bottom: 1px dashed #e2e8f0; }
.bank-details div:last-child { border-bottom: none; }
.bank-details dt { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: #718096; }
.bank-details dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-weight: 700; color: var(--dark); word-break: break-word; }
.copy-btn-sm { flex-shrink: 0; padding: 4px 10px; font-size: .78rem; background: rgba(26,54,93,0.08); color: var(--blue); }
.copy-btn-sm:hover { background: rgba(26,54,93,0.16); }
.copy-btn-sm.copied { color: #fff; }
@media (max-width: 480px) {
    .donate-card, .mpesa-card { padding: 1.3rem 1.1rem; border-radius: 20px; }
    .mpesa-head { margin-bottom: 1.1rem; gap: 10px; }
    .mpesa-head h3 { font-size: 1.15rem; line-height: 1.25; white-space: nowrap; }
    .mpesa-badge { flex-shrink: 0; white-space: nowrap; padding: 5px 10px; font-size: .8rem; }
    .mpesa-tabs { gap: 4px; padding: 4px; }
    .mpesa-tab { padding: 9px 4px; font-size: .8rem; white-space: nowrap; }
    .mpesa-number { padding: .85rem 1rem; margin-bottom: 1rem; border-radius: 14px; }
    .mpesa-method .mpesa-number + .mpesa-number { margin-top: -0.4rem; }
    .mpesa-label { font-size: .68rem; letter-spacing: .6px; white-space: nowrap; }
    .mpesa-number strong { font-size: 1.2rem; }
    .mpesa-steps li { gap: 10px; padding: .45rem 0; font-size: .95rem; }
    .mpesa-confirm { padding-left: 1rem; padding-right: 1rem; font-size: .95rem; }
    .mpesa-note { font-size: .85rem; }
    .way-card { padding: 1.6rem 1.3rem; }
}
@media (max-width: 360px) {
    .mpesa-number { gap: .6rem; }
    .mpesa-number strong { font-size: 1.05rem; }
    .copy-btn { padding: 7px 10px; font-size: .82rem; }
    .mpesa-tab { font-size: .74rem; }
}
