/* ===========================================================
   Human Welfare Foundation - v2 Theme
   A warm, modern, Indian-charity inspired design system
   =========================================================== */

:root {
    /* Brand palette — Trustworthy White Theme */
    --primary: #2563EB;        /* Royal blue — trust */
    --primary-dark: #1E40AF;
    --primary-light: #DBEAFE;
    --secondary: #0F172A;      /* Deep slate */
    --secondary-dark: #020617;
    --accent: #10B981;         /* Emerald — growth */
    --gold: #F59E0B;           /* Warm amber */
    --rose: #6366F1;           /* Indigo highlight */
    --cyan: #06B6D4;           /* Sky cyan */
    --ink: #0F172A;            /* Headings */
    --body: #334155;           /* Body text */
    --muted: #64748B;
    --bg: #FFFFFF;             /* Pure white */
    --surface: #ffffff;
    --surface-2: #F8FAFC;      /* Cool light */
    --border: #E2E8F0;

    /* Gradients */
    --grad-warm: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);   /* Blue → cyan */
    --grad-cool: linear-gradient(135deg, #0F172A 0%, #1E40AF 100%);    /* Slate → royal */
    --grad-sunset: linear-gradient(135deg, #2563EB 0%, #6366F1 50%, #0F172A 100%);
    --grad-mesh:
        radial-gradient(at 20% 20%, rgba(37,99,235,0.12) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(6,182,212,0.12) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(16,185,129,0.08) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(15,23,42,0.10) 0px, transparent 50%);

    /* Shadows — softer with blue tint */
    --shadow-sm: 0 2px 8px rgba(15,23,42,0.05);
    --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 18px 48px rgba(15,23,42,0.12);
    --shadow-glow: 0 14px 40px rgba(37,99,235,0.30);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
}

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary-dark); }

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

::selection { background: var(--primary); color: #fff; }

/* ---------------- Topbar (utility) ---------------- */
.topbar {
    background: var(--secondary-dark);
    color: #cdd9e3;
    font-size: .82rem;
    padding: 8px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
}
.topbar a { color: #cdd9e3; }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: .35; margin: 0 .7rem; }
.topbar .social a { display: inline-flex; width: 28px; height: 28px; align-items: center;
    justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); margin-left:6px; }
.topbar .social a:hover { background: var(--primary); color: #fff; }

/* ---------------- Navbar ---------------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    z-index: 1030;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15,23,42,.06);
    transition: all .35s ease;
}
.site-nav.scrolled {
    box-shadow: var(--shadow-md);
}
.site-nav .navbar { padding: 12px 0; }
.site-nav .navbar-brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink) !important; font-size: 1.1rem;
}
.site-nav .navbar-brand img { height: 44px; width: 44px; object-fit: contain;
    background: var(--grad-warm); border-radius: 12px; padding: 5px; }
.site-nav .navbar-brand .brand-sub { display:block; font-size:.7rem; font-weight:500;
    color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.site-nav .nav-link {
    color: var(--ink) !important;
    font-weight: 600;
    font-size: .94rem;
    padding: 10px 14px !important;
    border-radius: 10px;
    position: relative;
    transition: color .25s ease, background .25s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(37,99,235,.07);
}
.site-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}
.site-nav .btn-donate,
.site-nav .btn-donate:hover,
.site-nav .btn-donate:focus,
.site-nav .btn-donate:active {
    background: var(--grad-warm) !important;
    background-image: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    margin-left: 10px;
}
.site-nav .btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(37,99,235,.45);
}
.navbar-toggler { border: 1px solid var(--border); padding: 6px 9px; }
.navbar-toggler:focus { box-shadow: none; }

/* Buffer for fixed navs */
.page { padding-top: 92px; }

/* ---------------- Buttons ---------------- */
.btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 12px 28px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    border: none;
    letter-spacing: .01em;
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible,
.btn-primary.active,
a.btn-primary {
    background: var(--grad-warm) !important;
    background-image: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%) !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
}
.btn-primary { box-shadow: var(--shadow-glow); }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(37,99,235,.45);
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(37,99,235,.35);
}

.btn-outline,
.btn-outline:link,
.btn-outline:visited,
a.btn-outline {
    background: transparent !important;
    color: var(--ink) !important;
    border: 2px solid var(--ink) !important;
    text-decoration: none !important;
}
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    background: var(--ink) !important;
    color: #fff !important;
    border-color: var(--ink) !important;
}

.btn-light-pill,
.btn-light-pill:link,
.btn-light-pill:visited,
a.btn-light-pill {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
}
.btn-light-pill:hover,
.btn-light-pill:focus,
.btn-light-pill:active {
    background: var(--surface-2) !important;
    color: var(--ink) !important;
    border-color: var(--border) !important;
    transform: translateY(-2px);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 100px;
    overflow: hidden;
    background:
        var(--grad-mesh),
        linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15,23,42,.05) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: 0;
    opacity: .6;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(37,99,235,.25);
    backdrop-filter: blur(10px);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 600;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(37,99,235,.6);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,99,235,.6); }
    100% { box-shadow: 0 0 0 14px rgba(37,99,235,0); }
}
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.05;
    margin: 22px 0 18px;
    font-weight: 800;
}
.hero h1 .hl {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    font-size: 1.15rem;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero collage */
.hero-collage {
    position: relative;
    min-height: 520px;
}
.hero-collage .tile {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform .6s ease;
}
.hero-collage .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .tile-1 { top: 0; left: 0; width: 58%; height: 60%; transform: rotate(-3deg); }
.hero-collage .tile-2 { top: 8%; right: 0; width: 40%; height: 45%; transform: rotate(4deg); }
.hero-collage .tile-3 { bottom: 0; left: 14%; width: 50%; height: 45%; transform: rotate(2deg); }
.hero-collage .tile-4 { bottom: 6%; right: 4%; width: 38%; height: 38%; transform: rotate(-3deg); }
.hero-collage .tile:hover { transform: scale(1.04) rotate(0); z-index: 4; }

.float-badge {
    position: absolute;
    background: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    z-index: 5;
    font-weight: 600;
    color: var(--ink);
}
.float-badge .ic {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-warm); color: #fff; font-size: 1.2rem;
}
.float-badge.b-tl { top: 8%; left: -3%; animation: floaty 6s ease-in-out infinite; }
.float-badge.b-br { bottom: 14%; right: -2%; animation: floaty 7s ease-in-out infinite 1s; }
@keyframes floaty {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
    padding: 26px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: var(--radius-lg);
}
.hero-stats .stat { text-align: center; border-right: 1px dashed rgba(15,23,42,.1); padding: 4px 0; }
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--primary);
    line-height: 1;
    text-align: center;
    min-height: 1em;
}
.hero-stats .num span {
    display: inline-block;
    color: var(--primary);
    min-width: 1ch;
}
.hero-stats .label { font-size: .82rem; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------------- Generic page header ---------------- */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--grad-cool);
    color: #fff;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grad-mesh);
    opacity: .6;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(37,99,235,.35), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(16,185,129,.3), transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    margin-bottom: 12px;
}
.page-hero .crumbs { color: rgba(255,255,255,.85); font-size: .92rem; }
.page-hero .crumbs a { color: rgba(255,255,255,.85); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs .sep { margin: 0 8px; opacity: .55; }

.page-hero .wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
    z-index: 3;
}
.page-hero .wave svg { width: 100%; height: 50px; display: block; }

/* ---------------- Sections ---------------- */
section { padding: 90px 0; }
section.bg-alt { background: var(--surface-2); }
section.bg-dark { background: var(--secondary-dark); color: #cdd9e3; }
section.bg-dark h2, section.bg-dark h3 { color: #fff; }

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    margin-bottom: 16px;
    font-weight: 800;
}
.section-title .hl {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-subtitle {
    color: var(--muted);
    max-width: 640px;
    font-size: 1.05rem;
}

/* ---------------- Cards ---------------- */
.card-mod {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-mod:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-mod .media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--surface-2);
}
.card-mod .media img,
.card-mod .media video,
.card-mod .media iframe {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s ease;
}
.card-mod:hover .media img { transform: scale(1.08); }
.card-mod .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-mod h3 { font-size: 1.15rem; margin: 0 0 8px; }
.card-mod p { color: var(--muted); margin-bottom: 14px; }
.card-mod .meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.card-mod .meta i { color: var(--primary); margin-right: 4px; }

/* Cause cards — colored hero band */
.cause-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cause-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cause-card .hood {
    height: 110px;
    background: var(--grad-warm);
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.cause-card .hood::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent 60%);
}
.cause-card .hood i {
    font-size: 2.1rem; color: #fff;
    background: rgba(255,255,255,.18);
    width: 70px; height: 70px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
}
.cause-card .body { padding: 22px 22px 26px; flex: 1; }
.cause-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cause-card p { font-size: .95rem; color: var(--muted); }

.cause-card.c-2 .hood { background: linear-gradient(135deg, #10B981, #059669); }
.cause-card.c-3 .hood { background: linear-gradient(135deg, #0F172A, #0EA5E9); }
.cause-card.c-4 .hood { background: linear-gradient(135deg, #6366F1, #F59E0B); }
.cause-card.c-5 .hood { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.cause-card.c-6 .hood { background: linear-gradient(135deg, #06B6D4, #EC4899); }
.cause-card.c-7 .hood { background: linear-gradient(135deg, #047857, #34D399); }
.cause-card.c-8 .hood { background: linear-gradient(135deg, #0EA5E9, #0891B2); }

/* Event card */
.event-card { position: relative; }
.event-card .media { aspect-ratio: 4/3; }
.event-card .date-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 8px 14px;
    text-align: center;
    line-height: 1;
    box-shadow: var(--shadow-md);
    z-index: 3;
    min-width: 60px;
}
.event-card .date-badge strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.event-card .date-badge span { font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--muted); }

/* Gallery — uniform square tiles */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-tile {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface-2);
    transition: transform .35s ease, box-shadow .35s ease;
    cursor: pointer;
}
.gallery-tile:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-tile > img,
.gallery-tile > video,
.gallery-tile > iframe {
    width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
    transition: transform .8s ease;
}
.gallery-tile:hover > img { transform: scale(1.1); }
.gallery-tile .tile-open {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background: rgba(15,23,42,.0);
    border: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0);
    font-size: 1.6rem;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
    z-index: 3;
}
.gallery-tile:hover .tile-open {
    background: rgba(15,23,42,.45);
    color: #fff;
}
.gallery-tile .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,.7) 100%);
    color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.gallery-tile:hover .veil { opacity: 1; }
.gallery-tile .badge-type {
    position: absolute; top: 12px; right: 12px;
    background: rgba(15,23,42,.65); color: #fff;
    border-radius: 999px; padding: 4px 10px;
    font-size: .7rem; font-weight: 600; backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 2;
}

/* ---------------- Impact counters ---------------- */
.impact-band {
    background: var(--grad-cool);
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.impact-band::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--grad-mesh);
    opacity: .4;
}
.impact-band .container { position: relative; z-index: 2; }
.impact-band h2 { color: #fff; }
.impact-band .stat-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-md);
    padding: 28px 18px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform .35s ease;
}
.impact-band .stat-card:hover { transform: translateY(-6px); }
.impact-band .stat-card .ic {
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--grad-warm);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}
.impact-band .stat-card .num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.impact-band .stat-card .label { color: rgba(255,255,255,.78); margin-top: 6px; font-size: .9rem; }

/* ---------------- Donor wall ---------------- */
.donor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
}
.donor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.donor-card img,
.donor-card .ph {
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    background: var(--grad-warm);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.donor-card .name { font-weight: 700; color: var(--ink); }
.donor-card .amt { color: var(--primary); font-weight: 700; font-size: .92rem; }
.donor-card .addr { font-size: .82rem; color: var(--muted); }

/* ---------------- Forms ---------------- */
.form-floating > label, .form-label { font-weight: 600; color: var(--ink); }
.form-control, .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 12px 16px;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(37,99,235,.15);
}
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.donate-info-card {
    background: var(--grad-cool);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.donate-info-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--grad-mesh);
    opacity: .35;
    z-index: 0;
}
.donate-info-card > * { position: relative; z-index: 1; }
.donate-info-card h3 { color: #fff; }
.donate-info-card .qr-wrap {
    background: #fff; padding: 16px; border-radius: 16px;
    display: inline-block; box-shadow: var(--shadow-md);
}
.donate-info-card .qr-wrap img { max-width: 220px; }
.donate-info-card .bank {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px; padding: 18px;
    backdrop-filter: blur(6px);
}

/* ---------------- Coordinator/leader card ---------------- */
.leader {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    align-items: start;
}
.leader .ph {
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--grad-warm);
    box-shadow: var(--shadow-md);
}
.leader .ph img { width: 100%; height: 100%; object-fit: cover; }
.leader .role {
    display: inline-block;
    background: var(--surface-2);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.leader blockquote {
    border-left: 4px solid var(--primary);
    margin: 0;
    padding: 8px 0 8px 18px;
    font-style: italic;
    color: var(--body);
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--secondary-dark);
    color: #b7c3cd;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grad-mesh);
    opacity: .15;
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer h5 {
    color: #fff; font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .15em;
    margin-bottom: 18px;
}
.site-footer a { color: #b7c3cd; }
.site-footer a:hover { color: var(--primary-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: .93rem; }
.site-footer .brand-block { font-size: .95rem; }
.site-footer .brand-block .logo {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.site-footer .brand-block .logo img {
    height: 50px; width: 50px; border-radius: 14px;
    background: var(--grad-warm); padding: 6px;
}
.site-footer .brand-block .logo span { font-size: 1.1rem; color: #fff; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.site-footer .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    margin-right: 6px;
    transition: all .25s ease;
}
.site-footer .social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.site-footer .newsletter {
    display: flex; gap: 8px; margin-top: 14px;
}
.site-footer .newsletter input {
    flex: 1; padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #fff; border: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}
.site-footer .newsletter input::placeholder { color: rgba(255,255,255,.5); }
.site-footer .newsletter input:focus { outline: none; border-color: var(--primary); }
.site-footer .newsletter button {
    border: none; padding: 0 22px; border-radius: 999px;
    background: var(--grad-warm); color: #fff; font-weight: 700;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 50px;
    padding-top: 22px;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .credit-link {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}
.footer-bottom .credit-link:hover { color: var(--primary-light); text-decoration: underline; }

/* ---------------- Floating action ---------------- */
.fab-donate,
.fab-donate:hover,
.fab-donate:focus,
.fab-donate:active {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--grad-warm) !important;
    background-image: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%) !important;
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow-glow);
    font-weight: 700;
    z-index: 1000;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}
.fab-donate:hover { transform: translateY(-3px) scale(1.02); }
.fab-donate i { animation: heart 1.4s ease-in-out infinite; }
@keyframes heart {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ---------------- Pagination ---------------- */
.pagination { gap: 6px; }
.pagination .page-link {
    border: 1px solid var(--border);
    border-radius: 12px !important;
    color: var(--ink);
    font-weight: 600;
    padding: 10px 16px;
}
.pagination .page-link:hover { background: var(--surface-2); color: var(--primary); }
.pagination .page-item.active .page-link {
    background: var(--grad-warm);
    border-color: transparent;
    color: #fff;
}

/* ---------------- Alerts ---------------- */
.alert {
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 14px 18px;
}
.alert-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.alert-danger { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }

/* ---------------- Modal ---------------- */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    background: rgba(15,23,42,.92);
    backdrop-filter: blur(8px);
}
.modal-body { padding: 0; position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
#fullMedia, #fullMediaVideo { max-height: 86vh; max-width: 90vw; object-fit: contain; border-radius: var(--radius-md); background: #000; }
#fullMediaFrame {
    width: min(90vw, 1100px);
    aspect-ratio: 16/9;
    border: 0;
    border-radius: var(--radius-md);
    background: #000;
}
.modal .btn-close {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.95);
    background-image: none;
    opacity: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    transition: transform .2s ease, background-color .2s ease;
    border: 0;
    padding: 0;
}
.modal .btn-close::before {
    content: '\f00d'; /* fa-times */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #0F172A;
    font-size: 1.05rem;
}
.modal .btn-close:hover {
    background-color: var(--primary);
    transform: rotate(90deg) scale(1.05);
}
.modal .btn-close:hover::before { color: #fff; }
.modal .nav-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    cursor: pointer;
    transition: background .25s ease;
}
.modal .nav-arrow:hover { background: var(--primary); }
.modal .nav-prev { left: 18px; }
.modal .nav-next { right: 18px; }

/* ---------------- Utility ---------------- */
.text-grad {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.shadow-lg-soft { box-shadow: var(--shadow-lg); }
.divider-curve { height: 60px; background: var(--bg); position: relative; }

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
    .leader { grid-template-columns: 1fr; text-align: center; }
    .leader .ph { max-width: 260px; margin: 0 auto; }
    .hero-collage { min-height: 360px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats .stat:nth-child(2) { border-right: 0; }
    .hero-stats .stat:nth-child(3) { grid-column: span 2; border-top: 1px dashed rgba(15,23,42,.1); padding-top: 12px; }
}
@media (max-width: 768px) {
    .page { padding-top: 70px; }
    .hero { padding: 100px 0 70px; min-height: auto; }
    section { padding: 60px 0; }
    .float-badge.b-tl { left: 4%; }
    .float-badge.b-br { right: 4%; }
    .site-nav .btn-donate { margin: 8px 0 0; }
    .form-card { padding: 24px; }
    .fab-donate { padding: 12px 18px; font-size: .9rem; }
}
@media (max-width: 576px) {
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats .stat { border-right: 0; border-bottom: 1px dashed rgba(15,23,42,.1); padding-bottom: 14px; }
    .hero-stats .stat:last-child { border-bottom: 0; }
}

/* ===========================================================
   Extra animations & motion (added)
   =========================================================== */

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--accent));
    z-index: 1050;
    transition: width .12s linear;
    box-shadow: 0 0 10px rgba(37,99,235,.5);
}

/* Floating blobs in hero */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    animation: blobDrift 22s ease-in-out infinite;
}
.hero-blob.b1 { width: 380px; height: 380px;
    background: radial-gradient(circle, #2563EB 0%, transparent 70%);
    top: -8%; left: -8%; }
.hero-blob.b2 { width: 460px; height: 460px;
    background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
    bottom: -12%; right: -10%; animation-delay: -7s; }
.hero-blob.b3 { width: 320px; height: 320px;
    background: radial-gradient(circle, #10B981 0%, transparent 70%);
    top: 45%; left: 38%; animation-delay: -14s; opacity: .35; }
@keyframes blobDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(50px, -40px) scale(1.1); }
    66%      { transform: translate(-40px, 50px) scale(.92); }
}

/* Rotating word */
.rotator {
    display: inline-block;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    transition: opacity .3s ease, transform .35s cubic-bezier(.5,1.6,.5,1);
}
.rotator.swap { opacity: 0; transform: translateY(-12px) rotateX(80deg); }

/* Headline highlight underline */
.hl-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.hl-underline::after {
    content: '';
    position: absolute;
    left: 4%; right: 4%; bottom: 4px;
    height: 12px;
    background: rgba(37,99,235,.25);
    border-radius: 6px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    animation: drawUnderline 1.6s 1s forwards ease-out;
}
@keyframes drawUnderline { to { transform: scaleX(1); } }

/* Scroll-down indicator */
.scroll-down {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ink);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 600;
    opacity: .65;
    text-align: center;
    z-index: 5;
    text-decoration: none;
    animation: floatY 2.4s ease-in-out infinite;
}
.scroll-down:hover { color: var(--primary); opacity: 1; }
.scroll-down .mouse {
    display: block;
    width: 22px; height: 36px;
    margin: 0 auto 10px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
}
.scroll-down .mouse::after {
    content: '';
    width: 3px; height: 7px;
    background: currentColor;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}
@keyframes floatY {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(-6px); }
}

/* Marquee impact strip */
.marquee-strip {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: #fff;
    padding: 22px 0;
    overflow: hidden;
    position: relative;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
}
.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-strip::before { left: 0; background: linear-gradient(90deg, var(--secondary-dark), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, var(--secondary-dark), transparent); }
.marquee {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: marqueeScroll 35s linear infinite;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    width: max-content;
}
.marquee span { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.marquee i { color: var(--gold); font-size: 1.05rem; }
.marquee .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Card interactive tilt prep */
.tilt-card { transform-style: preserve-3d; transition: transform .35s ease, box-shadow .35s ease; }

/* Cause icon micro-animation */
.cause-card .hood i { transition: transform .6s cubic-bezier(.5,1.5,.5,1); }
.cause-card:hover .hood i { transform: rotate(360deg) scale(1.15); }

/* Pulsing ring around cause hood */
.cause-card .hood { overflow: hidden; }
.cause-card .hood::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-in-out infinite;
    z-index: 0;
}
.cause-card .hood i { position: relative; z-index: 1; }
@keyframes ringPulse {
    0%   { width: 0; height: 0; opacity: .8; }
    100% { width: 280px; height: 280px; opacity: 0; }
}

/* Reveal variants */
[data-reveal="left"]   { transform: translateX(-40px); opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal="left"].is-revealed { transform: translateX(0); opacity: 1; }
[data-reveal="right"]  { transform: translateX(40px);  opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal="right"].is-revealed { transform: translateX(0); opacity: 1; }
[data-reveal="zoom"]   { transform: scale(.85);        opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal="zoom"].is-revealed { transform: scale(1); opacity: 1; }
[data-reveal="rotate"] { transform: rotate(-4deg) translateY(20px); opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal="rotate"].is-revealed { transform: rotate(0) translateY(0); opacity: 1; }

/* Hero collage entrance */
.hero-collage .tile { animation: tileIn 1s ease forwards; opacity: 0; }
.hero-collage .tile-1 { animation-delay: .15s; }
.hero-collage .tile-2 { animation-delay: .3s; }
.hero-collage .tile-3 { animation-delay: .45s; }
.hero-collage .tile-4 { animation-delay: .6s; }
@keyframes tileIn {
    from { opacity: 0; transform: translateY(40px) scale(.9); }
    to   { opacity: 1; }
}

/* Gradient shift */
.bg-grad-shift {
    background-size: 200% 200% !important;
    animation: gradShift 12s ease infinite;
}
@keyframes gradShift {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

/* Sparkly FAB */
.fab-donate { animation: fabFloat 4s ease-in-out infinite; }
@keyframes fabFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}

/* Section title shimmer */
.section-title .hl {
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

/* Animated wave divider */
.wave-divider {
    line-height: 0;
    overflow: hidden;
    background: transparent;
}
.wave-divider svg {
    width: 200%;
    height: 70px;
    display: block;
    animation: waveSlide 18s linear infinite;
}
@keyframes waveSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Impact band icons spin on hover */
.impact-band .stat-card .ic { transition: transform .5s cubic-bezier(.5,1.5,.5,1); }
.impact-band .stat-card:hover .ic { transform: rotate(15deg) scale(1.1); }

/* Donor card avatar pulse */
.donor-card img, .donor-card .ph { transition: transform .35s ease, box-shadow .35s ease; }
.donor-card:hover img, .donor-card:hover .ph {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(37,99,235,.15);
}

/* Hero stats number entrance */
.hero-stats .stat .num span { display: inline-block; transition: transform .35s ease; }
.hero-stats .stat:hover .num span { transform: scale(1.1); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
