/* ============================================================
   Train Biomedics Initiative Uganda Ltd. — Public styles
    Brand: Charcoal | Field green | White | Warm gray
   ============================================================ */

:root {
    --navy: #0A2540;
    --navy-dark: #050706;
    --light-blue: #3d8b70;
    --light-blue-hover: #2f705a;
    --brand-navy: #0A2540;
    --white: #ffffff;
    --soft-gray: #f3f1ec;
    --text: #202522;
    --muted: #5d6862;
    --border: #dfe3dd;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 12px 30px rgba(10, 37, 64, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--light-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }
ul { list-style: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(90deg, var(--brand-navy), var(--navy));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { color: var(--white); }

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--light-blue);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 217, 0.15);
    border-radius: 50%;
}

.logo-text strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.logo-text small { font-size: 0.75rem; opacity: 0.8; }

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.btn-donate {
    background: var(--light-blue) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    margin-left: 4px;
}

.btn-donate:hover {
    background: var(--light-blue-hover) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

.news-ticker {
    background: #c43d24;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.24);
    font-size: 0.88rem;
    overflow: hidden;
}

.news-ticker-viewport {
    width: 100%;
    overflow: hidden;
}

.news-ticker-track {
    display: flex;
    width: max-content;
    min-height: 38px;
    animation: news-marquee 34s linear infinite;
}

.news-ticker-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding-right: 54px;
    white-space: nowrap;
}

.news-ticker strong { color: var(--white); }
.news-ticker a, .news-ticker .ticker-message { color: var(--white); }
.news-ticker a { text-decoration: underline; text-underline-offset: 2px; }
.news-ticker .ticker-news { font-weight: 600; }
.news-ticker .ticker-separator { color: #ffd2a6; font-size: 1.05rem; }
.news-ticker .ticker-donate { color: #fff4c2; font-weight: 800; text-decoration: none; }
.news-ticker:hover .news-ticker-track { animation-play-state: paused; }

@keyframes news-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker-track { animation: none; }
}

.social-link { font-size: 1.05rem !important; padding-left: 8px !important; padding-right: 8px !important; }

.news-popup {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1500;
    width: min(390px, calc(100vw - 32px));
    padding: 26px;
    background: linear-gradient(135deg, #b85c36, #8f3f2d);
    color: var(--white);
    border-left: 5px solid #f4c95d;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.3);
}

.news-popup.open { display: block; animation: news-in 0.35s ease-out, popup-float 3.8s ease-in-out 0.5s infinite; }
.news-popup-label { color: #b8dfce; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.news-popup h2 { margin: 10px 0 8px; font-size: 1.3rem; line-height: 1.3; }
.news-popup p { color: rgba(255,255,255,0.78); margin-bottom: 18px; }
.news-popup-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: white; font-size: 1.7rem; cursor: pointer; }
@keyframes news-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popup-float {
    0%, 100% { transform: translateY(0); box-shadow: 0 16px 42px rgba(0,0,0,0.3); }
    50% { transform: translateY(-7px); box-shadow: 0 22px 48px rgba(0,0,0,0.38); }
}

.news-list { display: grid; gap: 24px; max-width: 900px; margin: 0 auto; }
.news-card { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.4fr; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.news-card > img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.news-card-body { padding: 28px; }
.news-card h2 { color: var(--navy); margin-bottom: 10px; font-size: 1.4rem; }
.news-excerpt { font-weight: 600; margin-bottom: 14px; }
.news-content { color: var(--muted); }
.x-follow-band { background: #202522; color: var(--white); padding: 38px 0; }
.x-follow-band .container { display: flex; align-items: center; gap: 20px; }
.x-follow-band .fa-x-twitter { font-size: 2rem; }
.x-follow-band h2 { font-size: 1.35rem; margin-bottom: 3px; }
.x-follow-band p { color: rgba(255,255,255,0.72); }
.x-follow-band .btn { margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--light-blue);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}

.btn:hover {
    background: var(--light-blue-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
}

.btn-navy:hover {
    background: var(--navy-dark);
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(90deg, rgba(5, 7, 6, 0.92), rgba(5, 7, 6, 0.58)), url('../images/hero.jpg') center 42% / cover;
    color: var(--white);
    padding: 72px 0 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.3));
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.25;
    margin-bottom: 18px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.page-hero {
    background: linear-gradient(90deg, rgba(5, 7, 6, 0.9), rgba(5, 7, 6, 0.52)), url('../images/hero.jpg') center 42% / cover;
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.page-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* Field photography keeps the work visible alongside the programme text. */
.field-work {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}

.field-work figure {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.field-work figcaption {
    padding: 14px 16px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.about-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 54px;
    margin: 0 0 56px;
    padding: 0;
}

.about-feature-image { width: 100%; overflow: hidden; border-radius: 10px; box-shadow: 0 16px 30px rgba(10, 37, 64, 0.16); background: var(--soft-gray); }
.about-feature-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.about-feature-image:hover img { transform: scale(1.03); }
.about-feature-content { padding: 34px 36px; background: #1d4d3b; border-radius: 10px; box-shadow: 0 12px 26px rgba(10, 37, 64, 0.12); }
.about-feature-content .eyebrow { display: block; margin-bottom: 10px; color: var(--light-blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.about-feature-content .eyebrow { color: #b8dfce; }
.about-feature-content h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 14px; }
.about-feature-content h2 i { color: #b8dfce; font-size: 1.25rem; margin-right: 8px; }
.about-feature-content p { color: rgba(255,255,255,0.86); font-size: 1.04rem; }
.about-feature-content p + p { margin-top: 16px; }
.about-story-feature { align-items: start; margin-bottom: 0; }

.story-collage {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    aspect-ratio: 1.3;
    width: 100%;
    min-width: 0;
    gap: 10px;
    margin: 0;
}

.story-photo { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; border: 5px solid var(--white); border-radius: 8px; box-shadow: 0 14px 28px rgba(10, 37, 64, 0.2); }
.story-photo-large { grid-column: 1 / 5; grid-row: 2 / 7; }
.story-photo-top { grid-column: 4 / 7; grid-row: 1 / 4; }
.story-photo-bottom { grid-column: 3 / 7; grid-row: 4 / 7; }

.team-bio { margin-top: 14px; text-align: left; border-top: 1px solid var(--border); padding-top: 10px; }
.team-bio summary { color: var(--navy); cursor: pointer; font-size: 0.88rem; font-weight: 700; list-style: none; }
.team-bio summary::after { content: ' +'; color: var(--light-blue); }
.team-bio[open] summary::after { content: ' -'; }
.team-bio p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--soft-gray); }

.section-title {
    text-align: center;
    color: var(--navy);
    font-size: 1.85rem;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-header {
    margin-bottom: 40px;
}

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; }
.card-body p { color: var(--muted); flex: 1; }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(74, 144, 217, 0.12);
    color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* ---------- Impact stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--light-blue);
}

.stat-card i {
    font-size: 1.6rem;
    color: var(--light-blue);
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ---------- Team ---------- */
.team-category {
    margin-bottom: 40px;
}

.team-category h2 {
    color: var(--navy);
    font-size: 1.35rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--light-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 14px;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--light-blue);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ---------- Partners ---------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.partner-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
    border-color: var(--light-blue);
    box-shadow: var(--shadow);
}

.partner-card-home {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.partner-logo-wrap {
    height: 62px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-wrap img {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.partner-logo-wrap i {
    color: var(--light-blue);
    font-size: 2rem;
}

.partner-card-home a {
    color: var(--navy);
}

/* ---------- Gallery ---------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.gallery-filters button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--muted);
    transition: 0.2s;
}

.gallery-filters button.active,
.gallery-filters button:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--soft-gray);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(10,37,64,0.85));
    color: var(--white);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}

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

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success { background: #e6f7ed; color: #0d5c2e; border: 1px solid #b7e4c7; }
.alert-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c2c2; }
.alert-info { background: #e8f1fb; color: #1a4a7a; border: 1px solid #b8d4f0; }

/* ---------- Donate ---------- */
.donate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.donate-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--light-blue);
}

.donate-card h3 {
    color: var(--navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donate-logo-wrap {
    height: 58px;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.donate-logo {
    display: block;
    max-width: 148px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.donate-card h3 i { color: var(--light-blue); }

.donate-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
}

.donate-card dt { color: var(--muted); font-size: 0.9rem; }
.donate-card dd { font-weight: 600; color: var(--navy); }

.note-box {
    background: var(--soft-gray);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 32px;
    border-left: 4px solid var(--navy);
}

/* ---------- Research ---------- */
.research-list { display: flex; flex-direction: column; gap: 20px; }

.research-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.research-card .body { padding: 24px; }

.research-card h3 {
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.research-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.research-article {
    max-width: 800px;
    margin: 0 auto;
}

.research-article h1 {
    color: var(--navy);
    margin-bottom: 12px;
}

.research-article .content {
    margin-top: 28px;
    font-size: 1.05rem;
}

.research-article .content p { margin-bottom: 1em; }

/* ---------- About blocks ---------- */
.about-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.about-block h2 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.reg-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    background: var(--soft-gray);
    padding: 24px;
    border-radius: var(--radius);
}

.reg-details dt { font-weight: 600; color: var(--navy); }
.reg-details dd { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, #050706, var(--navy));
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}

.cta-band h2 { margin-bottom: 12px; font-size: 1.75rem; }
.cta-band p { opacity: 0.9; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.85);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-col p { margin-bottom: 8px; font-size: 0.95rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--light-blue); }
.footer-col i { width: 20px; color: var(--light-blue); margin-right: 6px; }
.footer-reg { font-size: 0.85rem; opacity: 0.7; margin-top: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-4, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 12px 20px 20px;
        gap: 4px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: 12px 14px; }
    .btn-donate { margin-left: 0; text-align: center; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 64px; }
    .field-work { grid-template-columns: 1fr; }
    .about-feature { grid-template-columns: 1fr; gap: 20px; margin-bottom: 42px; }
    .about-story-feature { gap: 8px; }
    .story-collage { aspect-ratio: 1.15; margin: 0; gap: 8px; }
    .story-photo { border-width: 4px; }
    .news-ticker-track { animation-duration: 46s; }
    .news-card { grid-template-columns: 1fr; }
    .news-card > img { min-height: 180px; max-height: 240px; }
    .x-follow-band .container { align-items: flex-start; flex-wrap: wrap; }
    .x-follow-band .btn { margin-left: 0; }
    .section { padding: 48px 0; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}
