/* ==========================================================================
   Nicky Orphans Support Centre: base layout
   Colours, fonts and radii come from tokens; see themes.css for each look.
   ========================================================================== */

:root {
    --bg: #fbf8f3;
    --bg-alt: #f4eee5;
    --surface: #ffffff;
    --field: #fdfcfa;
    --ink: #0f172a;
    --text: #475569;
    --text-strong: #334155;
    --muted: #94a3b8;
    --line: #e9e4dc;
    --tint: #fff4e8;

    --primary: #0B1C39;
    --primary-hover: #13294f;
    --primary-ink: #ffffff;
    --accent: #FF7600;
    --accent-2: #ff9a3d;
    --accent-ink: #ffffff;
    --accent-text: #e86a00;
    --secondary: #00A5FF;

    --header-bg: rgba(255, 255, 255, .8);
    --header-line: rgba(233, 228, 220, .9);
    --nav-hover: #f3efe8;

    --panel-bg: #0B1C39;
    --panel-text: #c7d0e0;
    --panel-heading: #ffffff;
    --panel-card: rgba(255, 255, 255, .05);
    --panel-card-line: rgba(255, 255, 255, .08);
    --panel-glow-1: rgba(0, 165, 255, .22);
    --panel-glow-2: rgba(255, 118, 0, .22);

    --involve-bg: linear-gradient(135deg, #FF7600, #ff8f2b 60%, #ffab5c);
    --involve-text: #fff3e6;
    --involve-heading: #ffffff;
    --involve-em: #0B1C39;
    --involve-chip: rgba(255, 255, 255, .15);

    --footer-bg: #0B1C39;
    --footer-text: #aeb9cc;
    --footer-heading: #ffffff;
    --footer-line: rgba(255, 255, 255, .1);

    --hero-overlay: linear-gradient(100deg, rgba(11, 28, 57, .94) 0%, rgba(11, 28, 57, .75) 50%, rgba(11, 28, 57, .25) 100%);
    --blob-1: rgba(255, 118, 0, .14);
    --blob-2: rgba(0, 165, 255, .10);

    --ic-orange-bg: #fff1e5; --ic-orange: #e86a00;
    --ic-blue-bg: #e5f6ff;   --ic-blue: #0088d6;
    --ic-rose-bg: #ffe9ee;   --ic-rose: #e11d48;
    --ic-amber-bg: #fff6dc;  --ic-amber: #c58a00;
    --ic-violet-bg: #f0ebff; --ic-violet: #7c3aed;
    --ic-green-bg: #e6f7ee;  --ic-green: #16a34a;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow: 0 2px 4px rgba(15, 23, 42, .03), 0 12px 32px rgba(15, 23, 42, .07);
    --shadow-lg: 0 30px 60px -24px rgba(11, 28, 57, .25);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Fraunces', Georgia, serif;
    --heading-weight: 800;
    --heading-tracking: -.02em;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom: 18px; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
h1 em, h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--accent-text);
    letter-spacing: -.01em;
}
.icon { flex-shrink: 0; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; color: var(--primary-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-strong); }
.muted { color: var(--muted); font-size: .95rem; }

/* Every section keeps at least 2cm of space above and below its content */
.section { padding: max(2cm, 96px) 0; }
.section-tight { padding: 2cm 0; }
.bg-tint { background: linear-gradient(180deg, var(--bg), var(--tint) 30%, var(--tint) 70%, var(--bg)); }

/* Alternating section background for gentle demarcation */
.section-alt { background: var(--bg-alt); }
.pt-0 { padding-top: 0 !important; }

/* Gradient divider between every pair of sections, on every page */
main > :is(section, article) { position: relative; }
main > :is(section, article) + :is(section, article)::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--accent) 25%, transparent) 20%,
        color-mix(in srgb, var(--accent) 60%, transparent) 50%,
        color-mix(in srgb, var(--accent) 25%, transparent) 80%,
        transparent 100%);
}
/* Two tinted sections in a row read as one block */
main > .section-alt + .section-alt::before { display: none; }
.section-alt .about-img-small { border-color: var(--bg-alt); }
.section-alt .mv-dark { background: var(--panel-bg-alt, var(--panel-bg)); border: 1px solid var(--panel-card-line); }

/* Chips & labels */
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; margin-bottom: 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.chip .icon { color: var(--accent-text); }
.chip-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.chip-light .icon { color: currentColor; }
.kicker { display: block; color: var(--accent-text); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 6px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow.back:hover .icon { transform: translateX(-3px); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover { color: var(--accent-ink); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { color: var(--panel-heading); border-color: color-mix(in srgb, var(--panel-heading) 35%, transparent); }
.btn-ghost-light:hover { background: var(--panel-heading); color: var(--panel-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-row.center-row { justify-content: center; }

/* Icon boxes */
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; }
.icon-box.small { width: 44px; height: 44px; border-radius: 12px; }
.icon-orange { background: var(--ic-orange-bg); color: var(--ic-orange); }
.icon-blue   { background: var(--ic-blue-bg);   color: var(--ic-blue); }
.icon-rose   { background: var(--ic-rose-bg);   color: var(--ic-rose); }
.icon-amber  { background: var(--ic-amber-bg);  color: var(--ic-amber); }
.icon-violet { background: var(--ic-violet-bg); color: var(--ic-violet); }
.icon-green  { background: var(--ic-green-bg);  color: var(--ic-green); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0; transition: padding .3s var(--ease); }
.header-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 10px 10px 10px 22px;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid var(--header-line);
    border-radius: 999px;
    transition: box-shadow .3s;
}
.site-header.scrolled { padding: 8px 0; }
.site-header.scrolled .header-bar { box-shadow: var(--shadow); }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav ul a {
    display: block; padding: 9px 16px; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .93rem;
    transition: background .2s, color .2s;
}
.main-nav ul a:hover { background: var(--nav-hover); color: var(--ink); }
.main-nav ul a.active { background: var(--primary); color: var(--primary-ink); }
/* Admin login icon in the header */
.nav-user {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    transition: border-color .2s, color .2s, background .2s;
}
.nav-user:hover { border-color: var(--ink); color: var(--ink); }
.nav-user.signed-in::after {
    content: ''; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%;
    background: #3fa45b; border: 2px solid var(--surface);
}
.nav-user-label { display: none; }

/* Orange / blue theme switcher (left of the admin icon) */
.palette-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; cursor: pointer; padding: 0;
    border: 1px solid transparent; font: inherit;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.palette-toggle:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-1px); }
.palette-toggle .nav-user-label { color: var(--ink); }
.palette-icon { flex-shrink: 0; transition: transform .45s var(--ease); }
.palette-hole { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.palette-toggle:active .palette-icon { transform: rotate(-25deg) scale(.92); }

/* Small label that briefly names the new theme after a click */
.palette-menu { position: relative; }
.palette-toast {
    position: absolute; top: calc(100% + 12px); left: 50%; z-index: 120;
    transform: translate(-50%, -4px); opacity: 0; pointer-events: none; white-space: nowrap;
    padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
    background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow);
    transition: opacity .25s ease, transform .25s var(--ease);
}
.palette-toast.show { opacity: 1; transform: translate(-50%, 0); }
.palette-toast:empty { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); border: 0; cursor: pointer; position: relative; }
.nav-toggle span {
    position: absolute; left: 14px; right: 14px; height: 2px; background: var(--primary-ink); border-radius: 2px;
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero { position: relative; padding: 24px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; }
.hero::before { width: 520px; height: 520px; background: var(--blob-1); top: -120px; right: -80px; }
.hero::after { width: 420px; height: 420px; background: var(--blob-2); bottom: -160px; left: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 40px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: 1.8rem; font-weight: var(--heading-weight); color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.hero-stats dd { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* Hero slider: slides stack in one grid cell and crossfade */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero .h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: 22px; }
.slide-dots { display: flex; gap: 8px; margin: -10px 0 28px; }
.slide-dots button {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: color-mix(in srgb, var(--ink) 18%, transparent); transition: width .3s var(--ease), background .3s;
}
.slide-dots button.active { width: 28px; background: var(--accent); }
/* All three hero frames hold one image per slide; they crossfade in a gentle cascade */
.hero-img { position: relative; }
.hero-img img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-img img.active { opacity: 1; }

.hero-media { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 490px; }
.hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-main { grid-row: 1 / 3; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow-lg);
}
.float-card strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card-a { left: -30px; bottom: 60px; }
.float-card-b { right: -20px; top: 40px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.align-start { align-items: start; }
.sticky-col { position: sticky; top: 120px; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; max-width: none; }
.split-head h2 { margin-bottom: 0; }
.split-head p { margin-bottom: 12px; font-size: 1.05rem; }

/* About media collage */
.about-media { position: relative; padding: 0 70px 70px 0; }
.about-img-main { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-img-small {
    position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius); border: 8px solid var(--bg); box-shadow: var(--shadow-lg);
}
.since-badge {
    position: absolute; left: -18px; top: 36px;
    background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
    padding: 16px 22px; box-shadow: var(--shadow-lg); text-align: center;
}
.since-badge strong { display: block; font-size: 1.8rem; line-height: 1; letter-spacing: -.03em; }
.since-badge span { font-size: .78rem; font-weight: 600; opacity: .9; }

/* Mission / Vision */
.mv-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.mv-card { border-radius: var(--radius-lg); padding: 44px; position: relative; overflow: hidden; isolation: isolate; }
.mv-card h3 { font-size: 1.5rem; margin: 22px 0 12px; }
.mv-dark { background: var(--panel-bg); color: var(--panel-text); }
.mv-dark h3 { color: var(--panel-heading); }
.mv-dark::after {
    content: ''; position: absolute; z-index: -1; width: 280px; height: 280px; right: -80px; top: -80px;
    border-radius: 50%; background: radial-gradient(circle, var(--panel-glow-2), transparent 70%);
}
.mv-light { background: var(--surface); border: 1px solid var(--line); }

/* Program cards */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.program-card .icon-box { margin-bottom: 22px; }
.program-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.program-index { font-size: .85rem; font-weight: 700; color: var(--muted); opacity: .6; }
.program-card p { font-size: .96rem; }

/* Rounded feature panel */
.dark-panel {
    background: var(--panel-bg); color: var(--panel-text); border-radius: var(--radius-xl); padding: 72px 60px;
    position: relative; overflow: hidden; isolation: isolate;
}
.dark-panel::before {
    content: ''; position: absolute; z-index: -1; width: 600px; height: 600px; left: -200px; bottom: -300px;
    border-radius: 50%; background: radial-gradient(circle, var(--panel-glow-1), transparent 65%);
}
.dark-panel::after {
    content: ''; position: absolute; z-index: -1; width: 500px; height: 500px; right: -150px; top: -250px;
    border-radius: 50%; background: radial-gradient(circle, var(--panel-glow-2), transparent 65%);
}
.dark-panel h2, .dark-panel > .section-head h3 { color: var(--panel-heading); }
.dark-panel h2 em { color: var(--panel-accent, var(--accent-2)); }
.dark-panel .chip-light, .mv-dark .chip-light { background: var(--panel-card); border-color: var(--panel-card-line); color: var(--panel-heading); }

/* Impact */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.impact-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.impact-card:hover img { transform: scale(1.03); }
.impact-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; background: linear-gradient(180deg, transparent 35%, rgba(10, 16, 28, .9));
}
.impact-overlay h3 { color: #fff; margin-bottom: 6px; }
.impact-overlay p { font-size: .9rem; color: #dde3ee; }

/* Partners */
.partner-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-logo {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 96px; border-radius: var(--radius); border: 1px dashed var(--line);
    color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--surface) 60%, transparent);
    transition: background .2s, border-color .2s;
}
.partner-logo:hover { background: var(--surface); border-color: var(--accent); }
.partner-logo .icon { color: var(--accent-text); }
a.partner-logo:hover { color: var(--ink); }
.partner-logo.has-logo img { max-height: 56px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner-logo.has-logo:hover img { filter: none; opacity: 1; }

/* Testimonials */
.quote-stack { display: grid; gap: 18px; margin-top: 10px; }
.quote-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 26px; }
.quote-mark { position: absolute; right: 24px; top: 4px; font-family: var(--serif); font-size: 5rem; color: color-mix(in srgb, var(--accent) 25%, transparent); line-height: 1; }
.quote-card blockquote { font-size: 1.08rem; color: var(--ink); font-weight: 500; margin-bottom: 18px; position: relative; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption strong { display: block; color: var(--ink); line-height: 1.2; }
.quote-card figcaption small { color: var(--muted); }
.avatar-sm { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.avatar-sm.alt { background: var(--primary); color: var(--primary-ink); }
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Get involved */
.involve-panel {
    display: grid; grid-template-columns: 1fr 1.8fr; gap: 40px; align-items: center;
    background: var(--involve-bg); border-radius: var(--radius-xl); padding: 60px; color: var(--involve-text);
}
.involve-intro h2 { color: var(--involve-heading); }
.involve-intro h2 em { color: var(--involve-em); }
.involve-panel .chip-light { background: var(--involve-chip); border-color: transparent; color: var(--involve-heading); }
.involve-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.involve-card {
    display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
    padding: 26px; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.involve-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.involve-card .icon-box { margin-bottom: 18px; }
.involve-card p { font-size: .93rem; flex: 1; }
.involve-card .link-arrow { margin-top: 16px; font-size: .9rem; }
.involve-card:hover .link-arrow { color: var(--accent-text); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-date {
    position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); color: var(--ink);
    padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.post-body { padding: 26px; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--accent-text); }
.post-body p { font-size: .95rem; }
.post-body .link-arrow { margin-top: 14px; font-size: .92rem; }

/* Volunteer band */
.volunteer-band {
    display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
    margin-top: 90px; /* room for the figure's head above the border */
}
.volunteer-band-text { padding: 60px; }
.volunteer-band-media { position: relative; min-height: 320px; }
.volunteer-band-media::before {
    content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; aspect-ratio: 1;
    border-radius: 50% 50% 0 0;
    background: radial-gradient(circle at 50% 70%, var(--tint), transparent 70%);
}
/* Cut-out figure stands on the bottom edge and rises above the top border */
.volunteer-band-media img {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    height: calc(100% + 90px); width: auto; max-width: none; object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .12));
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { padding: 10px 0 2cm; }
.page-hero-card {
    position: relative; overflow: hidden; isolation: isolate; background: #1f2535;
    border-radius: var(--radius-xl); padding: 90px 60px;
    color: #dbe2ee; min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
/* Banner photos are real images (sharp at any size) with the colour overlay on top */
.page-hero-card .ph-img {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center;
    opacity: 0; transition: opacity 1s ease;
}
.page-hero-card .ph-img.active { opacity: 1; }
.page-hero-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); pointer-events: none; }
.ph-slides { display: grid; width: 100%; }
.ph-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.ph-slide.active { opacity: 1; visibility: visible; }
.page-hero-card :is(h1, .h1) { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 760px; margin-bottom: 16px; }
.page-hero-card p { max-width: 640px; font-size: 1.05rem; }
.page-hero-card .slide-dots { margin: 20px 0 0; }
.page-hero-card .slide-dots button { background: rgba(255, 255, 255, .45); }
.page-hero-card .slide-dots button.active { background: var(--accent); }
.breadcrumb {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15);
    padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
}
.breadcrumb a { color: #fff; opacity: .75; }
.breadcrumb a:hover { opacity: 1; color: #fff; }
.breadcrumb span:first-of-type { opacity: .5; }

/* Tabs */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.tab-list { display: flex; gap: 6px; background: var(--tint); border-radius: 999px; padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab {
    display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer;
    padding: 11px 20px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--text);
    white-space: nowrap; transition: background .2s, color .2s;
}
.tab.active { background: var(--primary); color: var(--primary-ink); }
.tab-panel { display: none; padding: 30px 24px 20px; font-size: 1.1rem; color: var(--text-strong); }
.tab-panel.active { display: block; animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.check-list { list-style: none; display: grid; gap: 12px; margin: 10px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--accent-text); margin-top: 6px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 16px 30px; font-size: 1rem; margin: 0; }

/* Feature pills */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid.compact { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.feature-pill {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    font-weight: 700; color: var(--ink);
}

/* Objectives */
.objective-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.objective { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--panel-card); border: 1px solid var(--panel-card-line); border-radius: var(--radius); }
.objective-num { font-size: 1.4rem; font-weight: 800; color: var(--accent-text); line-height: 1.3; letter-spacing: -.02em; }
.dark-panel .objective-num { color: var(--panel-accent, var(--accent)); }
.objective p { font-size: .96rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 24px; text-align: center; }
.team-avatar {
    width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.team-photo { display: block; object-fit: cover; }
.tone-0 { background: var(--primary); color: var(--primary-ink); }
.tone-1 { background: var(--accent); color: var(--accent-ink); }
.tone-2 { background: var(--ic-blue); }
.tone-3 { background: var(--ic-green); }
.team-card p { color: var(--accent-text); font-weight: 600; font-size: .92rem; }

/* Programs page */
.program-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 70px; }
.program-nav-item {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-weight: 600; font-size: .9rem;
}
.program-nav-item:hover { border-color: var(--accent); color: var(--accent-text); }
.program-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 100px; }
.program-feature:last-child { margin-bottom: 0; }
.program-section .program-feature { margin-bottom: 0; }
.program-section .about-img-small, .section-alt .program-feature-num { border-color: var(--bg-alt); }
.program-nav { margin-bottom: 0; }
.program-feature.reverse .program-feature-media { order: 2; }
.program-feature-media { position: relative; }
.program-feature-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.program-feature-num {
    position: absolute; right: 24px; bottom: -28px;
    width: 76px; height: 76px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: var(--accent-text); letter-spacing: -.02em;
}
.program-feature.reverse .program-feature-num { right: auto; left: 24px; }
.program-feature-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.program-feature-text p { font-size: 1.05rem; margin-bottom: 22px; }

/* Article */
.article { padding-top: 60px; }
.article-head { text-align: center; margin-bottom: 40px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 22px 0 18px; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; color: var(--muted); font-weight: 500; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 50px; }
.prose { font-size: 1.1rem; color: var(--text-strong); }
.prose p { margin-bottom: 22px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.article .prose p:last-child { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--accent-text); }
.article-cta {
    margin-top: 50px; padding: 32px; border-radius: var(--radius); background: var(--tint);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.article-cta p { font-weight: 700; color: var(--ink); font-size: 1.1rem; margin: 0; }
.article-cta .btn-row { margin: 0; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.page-link {
    display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px;
    justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); font-weight: 700; font-size: .92rem;
}
.page-link:hover { border-color: var(--accent); color: var(--accent-text); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state h1 { margin-bottom: 14px; }
.empty-state .btn { margin-top: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; }
.contact-card h4 { margin-bottom: 4px; }
.contact-card a { color: var(--text); font-weight: 500; word-break: break-word; }
.contact-card a:hover { color: var(--accent-text); }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.35); }

/* Forms */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.form-card > .muted { margin-bottom: 24px; }
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card-banner { width: calc(100% + 80px); margin: -40px -40px 28px; height: 180px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px;
    font-family: inherit; font-size: .97rem; color: var(--ink); background: var(--field);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.amount-row { grid-template-columns: 120px 1fr; }
.amount-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preset { padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); font-family: inherit; font-weight: 700; color: var(--ink); cursor: pointer; transition: all .2s; }
.preset:hover { border-color: var(--accent); }
.preset.selected { border-color: var(--accent); background: var(--tint); color: var(--accent-text); }

.alert { padding: 14px 18px; border-radius: 14px; font-size: .93rem; font-weight: 500; margin-bottom: 6px; }
.alert-success { background: #e8f8ef; color: #166534; border: 1px solid #bbf0d0; }
.alert-error { background: #fff0f0; color: #b42318; border: 1px solid #ffd2d2; }

.thanks-card { text-align: center; max-width: 760px; margin: 0 auto; padding: 60px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.thanks-card .kicker { margin-top: 20px; }
.thanks-card p { font-size: 1.1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 60px; border-radius: 48px 48px 0 0; font-size: .95rem; }
.footer-cta { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--footer-line); }
.footer-cta h2 { color: var(--footer-heading); margin-bottom: 8px; }
.footer-cta h2 em { color: var(--footer-accent, var(--accent-2)); }
.footer-cta p { color: var(--footer-text); }
.newsletter-form { display: flex; gap: 8px; padding: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--footer-line); border-radius: 999px; }
.newsletter-form input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 16px; font-family: inherit; font-size: .95rem; color: #fff; }
.newsletter-form input::placeholder { color: color-mix(in srgb, var(--footer-text) 75%, transparent); }
.newsletter-form input:focus { outline: none; }
.newsletter-form input + input { border-left: 1px solid var(--footer-line); }
.newsletter-wrap .alert { margin-bottom: 12px; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 50px; padding: 60px 0; }
.footer-logo { height: 54px; width: auto; margin-bottom: 20px; background: #fff; padding: 8px 14px; border-radius: 14px; }
.footer-about p { max-width: 380px; }
.site-footer h4 { color: var(--footer-heading); margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: var(--footer-heading); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--footer-accent, var(--accent-2)); margin-top: 5px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.social:hover { background: var(--accent); color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--footer-line); padding: 22px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.to-top { color: var(--footer-text); font-weight: 600; }
.to-top:hover { color: var(--footer-heading); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* WhatsApp chat (bottom right) */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 160; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-toggle {
    position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: #25D366; color: #fff; box-shadow: 0 10px 26px -6px rgba(18, 140, 126, .55);
    transition: transform .2s var(--ease), background .2s;
}
.wa-toggle:hover { transform: translateY(-2px); background: #1ebe5b; }
.wa-toggle .wa-x { display: none; }
.wa-widget.open .wa-toggle .wa-icon { display: none; }
.wa-widget.open .wa-toggle .wa-x { display: block; }
.wa-panel {
    width: min(340px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .35);
    transform-origin: bottom right; animation: waIn .25s var(--ease);
}
.wa-panel[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #075E54; color: #fff; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.wa-avatar img { width: 32px; height: 32px; object-fit: contain; }
.wa-who { flex: 1; min-width: 0; line-height: 1.3; }
.wa-who strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who small { font-size: .76rem; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.wa-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; opacity: .85; display: inline-flex; }
.wa-close:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.wa-body { padding: 18px 16px; background: #EFE7DD; min-height: 110px; }
html[data-theme="dusk"] .wa-body { background: #0E1620; }
.wa-bubble {
    position: relative; max-width: 88%; padding: 10px 12px 18px; border-radius: 0 12px 12px 12px;
    background: #fff; color: #1f2933; font-size: .92rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
html[data-theme="dusk"] .wa-bubble { background: #1F2C34; color: #E9EDEF; }
.wa-bubble time { position: absolute; right: 10px; bottom: 4px; font-size: .68rem; color: #8696a0; }
.wa-form { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.wa-form textarea {
    width: 100%; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .92rem; color: var(--ink); background: var(--field);
}
.wa-form textarea:focus { outline: none; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
.wa-send {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px;
    border: 0; border-radius: 999px; background: #25D366; color: #fff; font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.wa-send:hover { background: #1ebe5b; }
@media (max-width: 600px) {
    .wa-widget { right: 14px; bottom: 14px; }
    .wa-toggle { width: 54px; height: 54px; }
    .theme-badge { bottom: 80px; }
}

/* Theme preview badge */
.theme-badge {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 150;
    display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px;
    background: #111827; color: #e5e7eb; border-radius: 999px; font-size: .85rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25); white-space: nowrap;
}
.theme-badge strong { color: #fff; }
.theme-badge a { color: #111827; background: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.theme-badge a:hover { color: #111827; background: #e5e7eb; }

/* ==========================================================================
   Scroll reveal (gentle)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .involve-panel { grid-template-columns: 1fr; padding: 48px; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .float-card-a { left: 10px; }
    .float-card-b { right: 10px; }
}

@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .header-bar { border-radius: 26px; flex-wrap: wrap; }
    .main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 12px 14px 0; }
    .main-nav.open { display: flex; animation: fadeIn .3s var(--ease); }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav ul a { padding: 13px 16px; border-radius: 14px; }
    .main-nav .btn { width: 100%; }
    .nav-user, .palette-toggle { width: auto; height: auto; border-radius: 14px; justify-content: flex-start; padding: 12px 16px; font-weight: 600; font-size: .93rem; }
    .palette-toggle { width: 100%; }
    .palette-toast { display: none; } /* the button's own label shows the theme name on phones */
    .nav-user-label { display: inline; }
    .nav-user.signed-in::after { position: static; order: 3; margin-left: auto; }

    .section { padding: 2cm 0; }
    .hero { padding: 10px 0 36px; }
    .hero-grid, .split, .contact-grid, .program-feature, .mv-grid, .volunteer-band, .footer-cta { grid-template-columns: 1fr; }
    .hero-grid, .split, .program-feature { gap: 50px; }
    .hero-media { height: 400px; }
    .split-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
    .program-feature.reverse .program-feature-media { order: 0; }
    .program-feature { margin-bottom: 80px; }
    .sticky-col { position: static; }
    .program-grid, .post-grid, .feature-grid, .partner-row { grid-template-columns: repeat(2, 1fr); }
    .dark-panel { padding: 56px 32px; border-radius: 32px; }
    .volunteer-band-text { padding: 44px; }
    .volunteer-band { margin-top: 70px; }
    .volunteer-band-media { min-height: 300px; order: -1; }
    .volunteer-band-media img {
        height: calc(100% + 70px);
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
        mask-image: linear-gradient(to bottom, #000 80%, transparent);
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .site-header { padding: 10px 0; }
    .header-bar { padding: 8px 8px 8px 16px; }
    .logo img { height: 36px; }
    .section { padding: 2cm 0; }
    .section-tight { padding: 2cm 0; }
    .hero-stats { gap: 24px; }
    .hero-stats dt { font-size: 1.5rem; }
    .hero-media { height: 320px; gap: 10px; }
    .hero-img { border-radius: var(--radius); }
    .float-card { padding: 8px 12px 8px 8px; }
    .float-card small { display: none; }
    .float-card-a { left: -6px; bottom: 20px; }
    .float-card-b { right: -6px; top: 20px; }
    .about-media { padding: 0 40px 40px 0; }
    .since-badge { left: -6px; padding: 12px 16px; }
    .mv-card { padding: 30px; }
    .program-grid, .program-grid.three, .post-grid, .feature-grid, .feature-grid.compact, .impact-grid,
    .objective-grid, .team-grid, .involve-cards, .contact-cards, .form-row, .check-list.two-col, .footer-grid { grid-template-columns: 1fr; }
    .partner-row { grid-template-columns: 1fr 1fr; }
    .partner-logo { height: 80px; font-size: .88rem; flex-direction: column; gap: 6px; }
    .impact-card { aspect-ratio: 4 / 3; }
    .involve-panel { padding: 32px 22px; border-radius: 28px; }
    .dark-panel { padding: 44px 20px; border-radius: 28px; }
    .volunteer-band { border-radius: 28px; }
    .volunteer-band-text { padding: 30px 22px; }
    .page-hero-card { padding: 56px 24px; border-radius: 28px; min-height: 260px; }
    .tabs { padding: 10px; }
    .tab { padding: 10px 14px; font-size: .85rem; }
    .tab-panel { padding: 22px 10px 12px; font-size: 1rem; }
    .form-card { padding: 26px 20px; }
    .form-card-banner { width: calc(100% + 40px); margin: -26px -20px 22px; }
    .amount-row { grid-template-columns: 1fr; }
    .site-footer { border-radius: 32px 32px 0 0; }
    .newsletter-form { flex-direction: column; border-radius: 22px; }
    .newsletter-form input + input { border-left: 0; border-top: 1px solid var(--footer-line); }
    .newsletter-form .btn { width: 100%; }
    .program-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 50px; padding: 0 16px 6px; }
    .program-nav-item { white-space: nowrap; }
    .article-cta { flex-direction: column; align-items: flex-start; }
    .theme-badge { font-size: .78rem; gap: 8px; bottom: 10px; }
}
