:root {
    --ifd-primary: #0d6efd;
    --ifd-primary-dark: #084298;
    --ifd-primary-light: #e7f1ff;
    --ifd-primary-50: #f5f9ff;
    --ifd-accent: #20a8d8;
    --ifd-accent-dark: #1789b0;
    --ifd-white: #ffffff;
    --ifd-text: #1a2733;
    --ifd-muted: #5d6c7a;
    --ifd-border: #e2eaf3;
    --ifd-success: #1aa179;
    --ifd-danger: #dc3545;
    --ifd-shadow-sm: 0 2px 8px rgba(13, 110, 253, 0.08);
    --ifd-shadow-md: 0 8px 24px rgba(13, 110, 253, 0.12);
    --ifd-shadow-lg: 0 16px 48px rgba(13, 110, 253, 0.16);
    --ifd-radius-sm: 8px;
    --ifd-radius-md: 14px;
    --ifd-radius-lg: 22px;
    --ifd-radius-pill: 999px;
    --ifd-transition: 220ms cubic-bezier(.4,.2,.2,1);

    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-link-color: var(--ifd-primary);
    --bs-link-hover-color: var(--ifd-primary-dark);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--ifd-text);
    --bs-body-bg: #f6f9ff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent any element from causing horizontal scroll */
}
body { overflow-x: hidden; }

body {
    font-family: var(--bs-body-font-family);
    color: var(--ifd-text);
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(32,168,216,0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(13,110,253,0.16), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
    background-attachment: fixed;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lang-or, .lang-or h1, .lang-or h2, .lang-or h3, .lang-or h4, .lang-or h5, .lang-or h6 {
    font-family: 'Noto Sans Oriya', 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', var(--bs-body-font-family);
    font-weight: 700;
    color: var(--ifd-primary-dark);
    letter-spacing: -0.01em;
}

h1, .h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; }
h3, .h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

a { color: var(--ifd-primary); text-decoration: none; transition: color var(--ifd-transition); }
a:hover, a:focus { color: var(--ifd-primary-dark); }

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

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 4rem) 0; }
.section-title { margin-bottom: 2.5rem; text-align: center; }
.section-title .eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ifd-accent);
    background: var(--ifd-primary-light);
    padding: .35rem .9rem;
    border-radius: var(--ifd-radius-pill);
    margin-bottom: 1rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--ifd-muted); max-width: 640px; margin: 0 auto; }

/* Skip-link — sr-only by default, slides in on keyboard focus only */
.skip-link {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    left: 1rem; top: 1rem;
    width: auto; height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    padding: .6rem 1rem;
    background: var(--ifd-primary-dark); color: #fff;
    border-radius: var(--ifd-radius-sm);
    z-index: 10000;
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 12px 28px rgba(8,32,64,.3);
}

/* Top bar */
.top-bar { background: var(--ifd-primary-dark); color: #fff; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: #ffe066; }
.top-bar .btn-link { color: #fff; }
.top-bar i { color: #ffd75e; }

.lang-switcher { display: inline-flex; gap: .35rem; }
.lang-btn {
    color: rgba(255,255,255,.85);
    padding: .15rem .55rem;
    border-radius: var(--ifd-radius-pill);
    font-weight: 500;
    border: 1px solid transparent;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-btn.active { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }

.a11y-panel { padding-top: .6rem; }
.a11y-panel .glass { border-radius: var(--ifd-radius-md); }
.a11y-panel .btn { font-size: .85rem; }

/* Header / Nav */
.site-header { z-index: 1030; }

/* Brand band — institute name strip between top-bar and navbar */
.brand-band {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ifd-border);
    padding: 1rem 0 1.1rem;
}
.brand-band .brand-band-name {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--ifd-primary-dark);
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    letter-spacing: .01em;
    line-height: 1.15;
}
.brand-band .brand-band-tag {
    margin: .25rem 0 0;
    color: var(--ifd-muted);
    font-size: .85rem;
    letter-spacing: .04em;
}

.navbar-brand { flex-shrink: 0; }
.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}
@media (max-width: 575.98px) {
    .brand-logo { height: 44px; }
}

/* Mega menu */
.navbar .nav-item.has-mega { position: static; }
.navbar .mega-menu {
    width: 100%;
    max-width: 100%;
    left: 0; right: 0;
    margin-top: 0;
    padding: 1.5rem 1.75rem;
    border-radius: var(--ifd-radius-lg);
    box-shadow: var(--ifd-shadow-lg);
    border: 1px solid var(--ifd-border);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
}
.mega-menu .mega-col-title {
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ifd-accent);
    margin-bottom: .85rem;
}
.mega-menu .mega-link {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .5rem .65rem;
    border-radius: var(--ifd-radius-sm);
    color: var(--ifd-text);
    font-weight: 500;
    transition: background var(--ifd-transition), color var(--ifd-transition);
}
.mega-menu .mega-link:hover,
.mega-menu .mega-link:focus-visible {
    background: var(--ifd-primary-light);
    color: var(--ifd-primary-dark);
}
.mega-menu .mega-link i {
    color: var(--ifd-primary);
    font-size: 1.05rem;
    margin-top: .15rem;
}
.mega-menu .mega-link .mega-link-sub {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    color: var(--ifd-muted);
    margin-top: 2px;
}
.mega-menu .mega-feature {
    display: block;
    width: 100%;
    border-radius: var(--ifd-radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--ifd-primary-light) center/cover no-repeat;
    box-shadow: var(--ifd-shadow-sm);
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
}
.mega-menu .mega-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--ifd-shadow-md);
}
.mega-menu .mega-feature::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(8,66,152,.85) 100%);
}
.mega-menu .mega-feature .mega-feature-text {
    position: absolute; left: 1rem; right: 1rem; bottom: .9rem;
    color: #fff;
    z-index: 1;
}
.mega-menu .mega-feature .mega-feature-text strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}
.mega-menu .mega-feature .mega-feature-text span {
    display: block;
    font-size: .8rem;
    opacity: .9;
}

/* Hover trigger on desktop only */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu,
    .navbar .nav-item.dropdown:focus-within > .dropdown-menu {
        display: block;
    }
    .navbar .nav-item.dropdown > .dropdown-toggle:active { pointer-events: none; }
}

/* Mobile: mega menu collapses gracefully in offcanvas */
@media (max-width: 991.98px) {
    /* Offcanvas width: never exceed viewport (fixes horizontal scroll on small phones) */
    #mainNav {
        max-width: min(400px, 100vw);
        width: min(400px, 100vw);
    }
    .navbar .offcanvas,
    .navbar .glass-offcanvas { background: #ffffff; }
    .navbar .offcanvas-body {
        padding: 1rem 1.25rem;
        overflow-x: hidden; /* prevent child overflow from causing scroll */
    }
    .navbar .offcanvas-body .navbar-nav { gap: .15rem; }

    .navbar .mega-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: .25rem 0 .25rem 1rem !important;
        margin: 0;
        border-left: 2px solid var(--ifd-primary-light) !important;
    }
    .mega-menu .row { --bs-gutter-y: .85rem; }
    .mega-menu .mega-feature { display: none; }
    .mega-menu .mega-col-title {
        color: var(--ifd-primary);
        margin-bottom: .35rem;
        font-size: .68rem;
    }
    .mega-menu .mega-link { padding: .4rem .55rem; }
    .mega-menu .mega-link .mega-link-sub { display: none; }

    .navbar .nav-link.dropdown-toggle.show {
        color: var(--ifd-primary-dark);
        background: var(--ifd-primary-light);
    }
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--ifd-text);
    padding: .65rem 1rem;
    border-radius: var(--ifd-radius-sm);
    transition: all var(--ifd-transition);
}
.navbar .nav-link:hover, .navbar .nav-link:focus-visible {
    color: var(--ifd-primary);
    background: var(--ifd-primary-light);
}
.navbar .nav-link.active {
    color: var(--ifd-primary-dark);
    background: var(--ifd-primary-light);
}

.dropdown-menu {
    border: none;
    border-radius: var(--ifd-radius-md);
    box-shadow: var(--ifd-shadow-md);
    padding: .5rem;
}
.dropdown-item {
    border-radius: var(--ifd-radius-sm);
    padding: .55rem .85rem;
    font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--ifd-primary-light); color: var(--ifd-primary-dark); }

.btn-donate {
    background: linear-gradient(135deg, var(--ifd-primary), var(--ifd-accent));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .55rem 1.2rem;
    border-radius: var(--ifd-radius-pill);
    box-shadow: 0 6px 18px rgba(13,110,253,.35);
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
}
.btn-donate:hover, .btn-donate:focus {
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(13,110,253,.45);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7rem) 0;
    color: #fff;
    isolation: isolate;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(135deg, rgba(8,66,152,.92) 0%, rgba(13,110,253,.85) 50%, rgba(32,168,216,.78) 100%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.18) 0, transparent 35%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,.12) 0, transparent 30%);
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 700px; }
.hero .btn-primary {
    background: #fff; border-color: #fff; color: var(--ifd-primary-dark); font-weight: 600;
}
.hero .btn-primary:hover { background: #ffe7a3; border-color: #ffe7a3; color: var(--ifd-primary-dark); }
.hero .btn-outline-light { font-weight: 600; }

.page-hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
    background: linear-gradient(135deg, var(--ifd-primary-dark), var(--ifd-primary), var(--ifd-accent));
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin-bottom: .8rem; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* Page-hero parallax variant — true fixed background (parallax) with gradient overlay.
   The background-image is set inline via JS so the URL resolves relative to the
   document, not this CSS file. */
.page-hero-parallax {
    padding-bottom: clamp(5rem, 10vw, 9rem);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero-parallax .page-hero-bg { display: none; } /* legacy inner div unused */
.page-hero-parallax::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(8,66,152,.62) 0%, rgba(13,110,253,.55) 50%, rgba(32,168,216,.45) 100%);
    z-index: -1;
}

/* Rounded "card stack" sections that overlap upward */
.section-rounded {
    position: relative;
    z-index: 2;
    background: var(--bs-body-bg);
    border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
    box-shadow: 0 -16px 48px -16px rgba(8,32,64,.10);
}
.section-rounded + .section-rounded {
    border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
    margin-top: clamp(-30px, -3vw, -56px);
}
.section-overlap-top { margin-top: clamp(-30px, -4vw, -72px); }
.section-tinted { background: var(--ifd-primary-50); }
.section-rounded.section-tinted { background: var(--ifd-primary-50); }

/* Image card — for hero/feature imagery */
.image-card {
    position: relative;
    border-radius: clamp(16px, 2.4vw, 28px);
    overflow: hidden;
    background: var(--ifd-primary-light) center/cover no-repeat;
    box-shadow: var(--ifd-shadow-md);
    aspect-ratio: 4/3;
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
}
.image-card:hover { transform: translateY(-4px); box-shadow: var(--ifd-shadow-lg); }
.image-card-tall { aspect-ratio: 3/4; }
.image-card-wide { aspect-ratio: 16/9; }

/* Donate tier card */
.donate-tier {
    position: relative;
    background: #fff;
    border: 1px solid var(--ifd-border);
    border-radius: clamp(16px, 2vw, 24px);
    padding: 1.6rem 1.4rem 1.5rem;
    text-align: center;
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition), border-color var(--ifd-transition);
    display: flex;
    flex-direction: column;
}
.donate-tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--ifd-shadow-lg);
    border-color: var(--ifd-primary);
}
.donate-tier-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--ifd-accent);
    background: var(--ifd-primary-light);
    padding: .3rem .85rem;
    border-radius: var(--ifd-radius-pill);
    margin-bottom: 1rem;
}
.donate-tier-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--ifd-primary-dark);
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1;
    margin: 0 0 .65rem;
}
.donate-tier-desc {
    color: var(--ifd-muted);
    font-size: .92rem;
    margin: 0 0 1.25rem;
    flex: 1;
}
.donate-tier.is-highlight {
    border-color: var(--ifd-primary);
    box-shadow: 0 18px 48px -10px rgba(13,110,253,.22);
    background: linear-gradient(180deg, #ffffff 0%, var(--ifd-primary-50) 100%);
}
.donate-tier.is-highlight::before {
    content: 'Most Popular';
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ifd-primary), var(--ifd-accent));
    color: #fff;
    font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: var(--ifd-radius-pill);
    box-shadow: 0 6px 16px rgba(13,110,253,.3);
}

/* Impact list (Where Your Money Goes) */
.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.impact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--ifd-border);
}
.impact-list li:last-child { border-bottom: none; }
.impact-list .impact-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--ifd-primary);
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1;
    min-width: 80px;
}
.impact-list strong { color: var(--ifd-text); display: block; margin-bottom: .25rem; }

/* Bank details card */
.bank-card {
    background: #fff;
    border: 1px solid var(--ifd-border);
    border-radius: clamp(16px, 2vw, 24px);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--ifd-shadow-sm);
}
.bank-card dt { color: var(--ifd-muted); font-weight: 500; font-size: .9rem; }
.bank-card dd { font-weight: 600; color: var(--ifd-text); margin-bottom: 0; font-family: 'Inter', monospace; font-size: .95rem; }

/* Cards (default + pillar/icon variants) */
.card-feature {
    border: none;
    border-radius: var(--ifd-radius-lg);
    height: 100%;
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
}
.card-feature:hover { transform: translateY(-4px); box-shadow: var(--ifd-shadow-lg); }
.card-feature .icon-circle {
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ifd-primary), var(--ifd-accent));
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 8px 22px rgba(13,110,253,.25);
    margin-bottom: 1.1rem;
}

/* Stats strip */
.stats-strip {
    background: linear-gradient(135deg, var(--ifd-primary-dark), var(--ifd-primary));
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.stat { text-align: center; }
.stat .num {
    display: block; font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem); color: #ffd75e; line-height: 1;
}
.stat .lbl { display: block; margin-top: .35rem; font-weight: 500; opacity: .9; }

/* Team cards */
.team-card {
    border-radius: var(--ifd-radius-lg);
    overflow: hidden;
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
    height: 100%;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--ifd-shadow-lg); }
.team-card .photo {
    aspect-ratio: 1/1;
    background: var(--ifd-primary-light) center / cover no-repeat;
    position: relative;
}
.team-card .photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(8,66,152,.6) 100%);
}
.team-card .body { padding: 1.1rem 1.25rem 1.4rem; }
.team-card .role { color: var(--ifd-accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.team-card h3 { font-size: 1.15rem; margin: .25rem 0 .35rem; }
.team-card .qual { color: var(--ifd-muted); font-size: .9rem; margin: 0; }

/* Gallery */
.gallery-grid { --gap: 14px; display: grid; gap: var(--gap);
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a {
    display: block; overflow: hidden; border-radius: var(--ifd-radius-md);
    aspect-ratio: 1/1;
    box-shadow: var(--ifd-shadow-sm);
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
    background: var(--ifd-primary-light);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-grid a:hover { transform: translateY(-3px); box-shadow: var(--ifd-shadow-md); }
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.05); }

/* Activities list */
.activity-item {
    border-radius: var(--ifd-radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: transform var(--ifd-transition), box-shadow var(--ifd-transition);
}
.activity-item:hover { transform: translateY(-3px); box-shadow: var(--ifd-shadow-lg); }
.activity-item .badge { background: var(--ifd-primary-light); color: var(--ifd-primary-dark); font-weight: 600; }
.activity-item h3 { margin: .85rem 0 .65rem; }

/* Forms */
.form-glass .form-control, .form-glass .form-select {
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(13,110,253,.25);
    border-radius: var(--ifd-radius-sm);
    padding: .8rem 1rem;
    transition: border-color var(--ifd-transition), box-shadow var(--ifd-transition);
}
.form-glass .form-control:focus, .form-glass .form-select:focus {
    border-color: var(--ifd-primary);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.18);
    background: #fff;
}
.form-floating > label { color: var(--ifd-muted); }

/* Buttons */
.btn { font-weight: 500; border-radius: var(--ifd-radius-sm); }
.btn-primary {
    background: linear-gradient(135deg, var(--ifd-primary), var(--ifd-accent));
    border: none; box-shadow: 0 4px 14px rgba(13,110,253,.25);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--ifd-primary-dark), var(--ifd-accent-dark));
}
.btn-outline-primary { border-color: var(--ifd-primary); color: var(--ifd-primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--ifd-primary); color: #fff; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-pill { border-radius: var(--ifd-radius-pill); }

/* Footer brand block — logo + full name */
/* ── Footer — 3 stacked cards that animate open on scroll ──────────────────── */

/* Wrapper */
.site-footer {
    color: #cdd9ec;
    overflow: visible;      /* cards' rounded tops can overhang the main content edge */
}
.site-footer h2 { color: #fff; }
.site-footer a  { color: #cdd9ec; transition: color var(--ifd-transition); }
.site-footer a:hover { color: #ffd75e; }

/* ── Individual stack card ────────────────────────────────────────────────── */
/*
 * Deck-of-cards layering:
 *   – Each successive card sits ON TOP of (higher z-index than) the previous.
 *   – A negative margin-top = border-radius means each card's rounded top
 *     corner sits exactly at the previous card's straight bottom edge with
 *     zero gap — the body background never bleeds through.
 *   – Before animation cards are shifted down & hidden; on scroll JS adds
 *     .is-open with stagger so they "deal" upward one by one.
 */
.fsc {
    --fsc-radius: clamp(26px, 4vw, 44px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--fsc-radius) var(--fsc-radius) 0 0;
    /* overlap = radius → no body-background gap between cards */
    margin-top: calc(var(--fsc-radius) * -1);
    z-index: var(--fsc-z, 1);
    /* ── animation start state ── */
    opacity: 0;
    transform: translateY(var(--fsc-y, 110px)) scale(0.97);
    transition: opacity .6s ease,
                transform .75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.fsc:nth-child(1) { --fsc-y: 80px;  --fsc-z: 10; margin-top: 0; }
.fsc:nth-child(2) { --fsc-y: 120px; --fsc-z: 20; }
.fsc:nth-child(3) { --fsc-y: 160px; --fsc-z: 30; }

/* ── Opened state — JS adds .is-open with 0 / 160ms / 320ms stagger ──────── */
.fsc.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Card 1 — CTA ────────────────────────────────────────────────────────── */
.fsc-cta {
    background: linear-gradient(160deg, #051428 0%, #0a2540 50%, #073e88 100%);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
    text-align: center;
}

/* Parallax background photo layer */
.fsc-photo-bg,
.fsc-photo-bg > * { position: absolute; inset: 0; pointer-events: none; }
.fsc-photo-img {
    background-position: center 40%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .16;
    transform: scale(1.08);
    will-change: transform;
}
.fsc-photo-overlay {
    background:
        radial-gradient(circle at 80% 15%, rgba(32,168,216,.28), transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(13,110,253,.32), transparent 55%),
        linear-gradient(180deg, rgba(5,20,40,.30) 0%, rgba(5,20,40,.80) 100%);
}

/* Floating blobs */
.fsc-blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; pointer-events: none; }
.fsc-blob-a {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13,110,253,.9), transparent 70%);
    top: -170px; left: -110px;
}
.fsc-blob-b {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(32,168,216,.75), transparent 70%);
    bottom: -220px; right: -100px;
}

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

.fsc-logo {
    display: block;
    width: 68px; height: auto;
    background: rgba(255,255,255,.94);
    border-radius: 16px;
    padding: 8px;
    margin: 0 auto 1.6rem;
    box-shadow: 0 10px 36px rgba(8,32,64,.35);
}
.fsc-eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: #ffd75e;
    margin-bottom: .9rem;
}
.fsc-heading {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1rem;
}
.fsc-body {
    color: rgba(255,255,255,.80);
    max-width: 560px;
    margin: 0 auto 2.2rem;
    font-size: 1.05rem;
    line-height: 1.65;
}
.fsc-donate-btn {
    color: var(--ifd-primary-dark) !important;
    background: #fff;
    border: none;
    padding: .9rem 2.4rem;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 14px 44px rgba(255,255,255,.22);
    transition: background var(--ifd-transition), transform var(--ifd-transition), box-shadow var(--ifd-transition);
}
.fsc-donate-btn:hover,
.fsc-donate-btn:focus-visible {
    background: #ffe7a3;
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(255,231,163,.45);
}

/* ── Card 2 — Info / Links ───────────────────────────────────────────────── */
.fsc-links {
    background: #0d1e35;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    box-shadow: 0 -20px 60px rgba(0,0,0,.35);
}

.footer-brand        { color: #fff; }
.footer-brand:hover  { color: #ffd75e; }
.footer-brand-logo {
    display: block;
    width: 44px; height: auto;
    background: rgba(255,255,255,.95);
    border-radius: 10px;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(8,32,64,.22);
}
.footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    font-size: .95rem;
}
.footer-links li  { margin-bottom: .35rem; }
.footer-links a   { display: inline-block; padding: .15rem 0; }

.footer-contact-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: var(--ifd-radius-pill);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #cdd9ec;
    transition: background var(--ifd-transition), color var(--ifd-transition), border-color var(--ifd-transition);
}
.footer-contact-pill:hover,
.footer-contact-pill:focus-visible {
    background: rgba(255,215,94,.12);
    color: #ffd75e;
    border-color: rgba(255,215,94,.3);
}

/* ── Card 3 — Copyright ──────────────────────────────────────────────────── */
.fsc-copy {
    background: #060e1c;
    padding: .9rem 0;
    box-shadow: 0 -16px 48px rgba(0,0,0,.45);
    font-size: .82rem;
}
.fsc-copy p { margin: 0; }

/* ── Scroll-reveal — generic (used site-wide) ────────────────────────────── */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(.2,.65,.3,1),
                transform 700ms cubic-bezier(.2,.65,.3,1);
}
.reveal-on-scroll.is-revealed .reveal-item { opacity: 1; transform: translateY(0); }
.reveal-on-scroll.is-revealed .reveal-item:nth-child(2) { transition-delay: 90ms; }
.reveal-on-scroll.is-revealed .reveal-item:nth-child(3) { transition-delay: 180ms; }
.reveal-on-scroll.is-revealed .reveal-item:nth-child(4) { transition-delay: 270ms; }

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .fsc { opacity: 1; transform: none !important; transition: none; }
    .fsc-photo-img { transform: scale(1.08) !important; }
}

/* Section with TRUE parallax — background-attachment: fixed keeps image pinned
   while content scrolls past, creating real parallax depth. The background-image
   is set inline via JS so the URL resolves correctly. */
.section-image-parallax {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(4rem, 7vw, 6rem) 0;
}
.section-image-parallax-bg { display: none; } /* legacy inner div unused */
.section-image-parallax::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(235,243,255,.72) 0%, rgba(245,250,255,.80) 100%),
        radial-gradient(circle at 80% 20%, rgba(13,110,253,.08), transparent 55%);
    z-index: -1;
    pointer-events: none;
}
.section-image-parallax > .container { position: relative; z-index: 1; }
.section-image-parallax .section-title h2,
.section-image-parallax .section-title p { color: var(--ifd-text); }

/* iOS/mobile fallback — background-attachment: fixed is broken on iOS Safari
   and most mobile browsers. Fall back to scroll (still shows image, no parallax). */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    .page-hero-parallax,
    .section-image-parallax {
        background-attachment: scroll;
    }
}

/* Fade-up scroll animation — applied to content cards */
.fade-up-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 720ms cubic-bezier(.2,.65,.3,1),
                transform 720ms cubic-bezier(.2,.65,.3,1);
}
.fade-up-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger consecutive cards within the same row */
.row > .col > .fade-up-on-scroll,
.row > [class*="col-"] > .fade-up-on-scroll {
    transition-delay: 0ms;
}
.row > [class*="col-"]:nth-child(2) > .fade-up-on-scroll { transition-delay: 80ms; }
.row > [class*="col-"]:nth-child(3) > .fade-up-on-scroll { transition-delay: 160ms; }
.row > [class*="col-"]:nth-child(4) > .fade-up-on-scroll { transition-delay: 240ms; }
.row > [class*="col-"]:nth-child(5) > .fade-up-on-scroll { transition-delay: 320ms; }
.row > [class*="col-"]:nth-child(6) > .fade-up-on-scroll { transition-delay: 400ms; }

/* Glass-card subtle shine sweep on hover */
.glass-card { position: relative; overflow: hidden; }
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 800ms cubic-bezier(.2,.65,.3,1);
    pointer-events: none;
    z-index: 1;
}
.glass-card:hover::after { transform: translateX(100%); }
.glass-card > * { position: relative; z-index: 2; }

/* Page-hero text entrance animation on load */
@keyframes hero-text-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-hero h1,
.page-hero .lead,
.page-hero .breadcrumb,
.hero h1,
.hero p.lead,
.hero .chip-glass,
.hero .d-flex {
    animation: hero-text-rise 700ms cubic-bezier(.2,.65,.3,1) both;
}
.page-hero .breadcrumb { animation-delay: 0ms; }
.page-hero h1 { animation-delay: 80ms; }
.page-hero .lead { animation-delay: 160ms; }
.hero .chip-glass { animation-delay: 60ms; }
.hero h1 { animation-delay: 140ms; }
.hero p.lead { animation-delay: 220ms; }
.hero .d-flex { animation-delay: 300ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up-on-scroll { opacity: 1; transform: none; transition: none; }
    .page-hero h1, .page-hero .lead, .page-hero .breadcrumb,
    .hero h1, .hero p.lead, .hero .chip-glass, .hero .d-flex {
        animation: none;
    }
    .glass-card::after { display: none; }
    .section-image-parallax-bg { transform: scale(1.08) !important; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item { opacity: 1; transform: none; transition: none; }
    .footer-bg-photo { transform: scale(1.08) !important; }
}

.social-list .social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    transition: all var(--ifd-transition);
}
.social-list .social-btn:hover { background: var(--ifd-accent); transform: translateY(-2px); }

/* Floating WhatsApp + back-to-top */
.whatsapp-fab {
    position: fixed; right: 22px; bottom: 22px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 24px rgba(37,211,102,.45);
    z-index: 1040;
    transition: transform var(--ifd-transition);
}
.whatsapp-fab:hover, .whatsapp-fab:focus { color: #fff; transform: scale(1.07); }

.btn-to-top {
    position: fixed; right: 22px; bottom: 90px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ifd-primary); color: #fff;
    border: none; box-shadow: var(--ifd-shadow-md);
    z-index: 1039; opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity var(--ifd-transition), transform var(--ifd-transition);
}
.btn-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btn-to-top:hover { background: var(--ifd-primary-dark); }

/* Focus visibility (a11y) */
:focus-visible {
    outline: 3px solid #ffd75e;
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; }

/* Toast / alerts */
.alert-soft-success { background: #e8f7f1; color: #0a6b50; border-color: #b9e7d6; border-radius: var(--ifd-radius-md); }
.alert-soft-danger  { background: #fdecee; color: #841e2a; border-color: #f6c4ca; border-radius: var(--ifd-radius-md); }

/* Accordion */
.accordion-item { border: none; margin-bottom: .75rem; border-radius: var(--ifd-radius-md) !important; overflow: hidden; }
.accordion-button { font-weight: 600; background: rgba(255,255,255,.7); }
.accordion-button:not(.collapsed) { background: var(--ifd-primary-light); color: var(--ifd-primary-dark); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(13,110,253,.18); }

/* Map */
.map-frame {
    border: 0; width: 100%; height: 360px;
    border-radius: var(--ifd-radius-md);
    box-shadow: var(--ifd-shadow-md);
}

/* Lists */
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding: .35rem 0 .35rem 2rem; }
.list-check li::before {
    content: "\F26E";
    font-family: 'bootstrap-icons';
    position: absolute; left: 0; top: .35rem;
    color: var(--ifd-success);
    font-size: 1.2rem; line-height: 1;
}

/* ── Donate page ──────────────────────────────────────────────────────────── */

/* Impact section — deep tinted blue strip */
.donate-impact-section {
    background: linear-gradient(135deg, var(--ifd-primary-50) 0%, #dceeff 100%) !important;
}

/* Stats strip — primary blue gradient */
.donate-stats-band {
    background: linear-gradient(135deg, #1043a0 0%, var(--ifd-primary) 55%, var(--ifd-accent) 100%) !important;
    padding: 2rem 0;
}
.donate-stats-band .donate-stat-card {
    background: rgba(255,255,255,.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 1.4rem 1rem;
}
.donate-stats-band .donate-stat-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: #fff;
    margin-bottom: .25rem;
    line-height: 1.1;
}
.donate-stats-band .donate-stat-label {
    color: rgba(255,255,255,.8) !important;
    font-size: .8rem;
}

/* Bank section — light warm tint */
.donate-bank-section {
    background: linear-gradient(145deg, #f0f6ff 0%, #e8f2ff 100%) !important;
}

/* Final CTA band */
.glass-cta-band {
    background: linear-gradient(135deg, var(--ifd-primary-50) 0%, #dceeff 60%, #f0f6ff 100%);
    border: 1px solid var(--ifd-border);
    border-radius: clamp(20px, 3vw, 36px);
    box-shadow: var(--ifd-shadow-md);
}

/* Utility text */
.text-muted2 { color: var(--ifd-muted) !important; }
.bg-soft { background: var(--ifd-primary-50); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
