:root {
    --bg: #f0f6ff;
    --bg-soft: #dce9f9;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --ink: #011e3d;
    --muted: #3d5a7a;
    --line: rgba(1, 46, 91, 0.1);
    --accent: #012e5b;
    --accent-dark: #011e3d;
    --forest: #012e5b;
    --forest-soft: #0e4a8a;
    --gold: #e0b45c;
    --shadow: 0 24px 60px rgba(1, 46, 91, 0.13);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(224, 180, 92, 0.10), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #edf4ff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow: clip;
}

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.ambient-one {
    width: 18rem;
    height: 18rem;
    top: 7rem;
    right: -6rem;
    background: rgba(1, 46, 91, 0.10);
}

.ambient-two {
    width: 22rem;
    height: 22rem;
    bottom: 6rem;
    left: -8rem;
    background: rgba(14, 74, 138, 0.08);
}

.site-header,
main,
.site-footer {
    position: relative;
}

.site-header {
    background: transparent;
    backdrop-filter: blur(14px);
}

.header-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(1, 46, 91, 0.12);
}

.brand-logo {
    height: 3rem;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-weight: 800;
    line-height: 1;
}

.brand-subtitle {
    color: rgba(1, 46, 91, 0.65);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-header .navbar {
    background: #012e5b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-social a {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(1, 46, 91, 0.14);
    color: #012e5b;
    background: #fff;
}

.header-social a:hover {
    background: #012e5b;
    color: #fff;
}

.btn-header-volunteer,
.btn-header-donate {
    border-radius: 999px;
    padding: 0.65rem 1.05rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-header-volunteer {
    background: #ffffff;
    color: #012e5b;
    border-color: rgba(1, 46, 91, 0.2);
}

.btn-header-volunteer:hover {
    background: #f4f8ff;
    color: #012e5b;
}

.btn-header-login {
    background: #ffffff;
    color: #012e5b;
    border: 1px solid rgba(1, 46, 91, 0.2);
    border-radius: 999px;
    padding: 0.65rem 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-header-login:hover {
    background: #f4f8ff;
    color: #012e5b;
    border-color: rgba(1, 46, 91, 0.2);
}

.btn-header-donate {
    background: #1f212b;
    color: #fff;
}

.btn-header-donate:hover {
    background: #101218;
    color: #fff;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    padding-inline: 0.85rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    background-color: #fff;
    color: #012e5b !important;
}

.btn-accent {
    background: var(--gold);
    color: var(--accent);
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(1, 46, 91, 0.22);
}

.btn-accent:hover {
    background: #c99b42;
    color: var(--accent);
}

.hero-section {
    position: relative;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(1, 18, 40, 0.97), rgba(1, 55, 105, 0.92)),
        radial-gradient(circle at top right, rgba(224, 180, 92, 0.28), transparent 25%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(1, 18, 40, 0.78) 0%, rgba(1, 18, 40, 0.22) 70%),
        url('https://www.drabdulkalamtrust.org/upload/gallery/IMG-20151015-WA0486.jpg') center right / cover no-repeat;
    opacity: 0.32;
    pointer-events: none;
}

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

.py-lg-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.eyebrow,
.section-kicker,
.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

/* Gold kickers on dark navy backgrounds */
.section-dark .section-kicker,
.section-dark .footer-kicker,
.section-quote .section-kicker,
.inner-hero .section-kicker,
.footer-kicker {
    color: var(--gold);
}

.hero-title,
.section-title,
.inner-title,
.footer-title {
    font-family: 'Fraunces', serif;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    max-width: 12ch;
}

.hero-copy,
.inner-copy,
.section-copy,
.footer-copy,
.story-copy {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-copy,
.story-copy,
.footer-copy{
    color: var(--muted);
}

.hero-highlights span {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.card-glass,
.content-card,
.form-shell,
.feature-card,
.mini-card,
.branch-card,
.program-card,
.news-card,
.gallery-card,
.quote-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.is-pending {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.stat-value {
    margin-bottom: 0.2rem;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.announcement-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.section-space {
    padding: 5rem 0;
}

.home-links-section {
    background:
        radial-gradient(circle at top right, rgba(14, 74, 138, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(240, 246, 255, 0.75));
}

.home-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    min-height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(1, 46, 91, 0.25);
    box-shadow: 0 30px 48px rgba(1, 46, 91, 0.16);
}

.home-link-icon {
    display: inline-grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 12px;
    background: rgba(1, 46, 91, 0.09);
    color: var(--accent);
    font-size: 1.15rem;
}

.home-link-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.home-link-card p {
    color: var(--muted);
    line-height: 1.7;
}

.kalam-quote-section {
    padding-top: 0;
}

.kalam-quote-panel {
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    border: 1px solid rgba(1, 46, 91, 0.14);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(232, 242, 255, 0.88)),
        url('https://www.drabdulkalamtrust.org/upload/gallery/IMG-20160703-WA0020.jpg') right center / 34% auto no-repeat;
    box-shadow: var(--shadow);
}

.kalam-quote-panel blockquote {
    margin-top: 1.2rem;
    max-width: 34ch;
    color: var(--accent-dark);
    font-family: 'Fraunces', serif;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.35;
}

.section-dark {
    background: linear-gradient(135deg, #012e5b, #011224);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.4rem);
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.text-link {
    font-weight: 700;
    color: var(--forest);
}

.content-card {
    padding: 2rem;
    background: linear-gradient(155deg, var(--forest-soft), var(--forest));
    color: #fff;
    border: none;
}

.feature-card,
.mini-card,
.branch-card,
.program-card,
.form-shell {
    background: var(--surface-strong);
    padding: 1.8rem;
}

.feature-card h3,
.mini-card h3,
.branch-card h3,
.program-card h2,
.news-card h2,
.news-card h3,
.gallery-card h2,
.gallery-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.feature-card p,
.mini-card p,
.branch-card p,
.program-card p,
.news-card p,
.gallery-card p,
.quote-card p {
    color: var(--muted);
    line-height: 1.75;
}

.program-impact {
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
}

.feature-index {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.14em;
}

.branch-name,
.news-date {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
}

.bg-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(220, 233, 249, 0.5));
}

.gallery-card {
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: #fff;
    border: none;
}

.gallery-card-large {
    min-height: 20rem;
}

.gallery-chip {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: auto;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tone-forest {
    background: linear-gradient(160deg, #1d4e3e, #0f241b);
}

.tone-earth {
    background: linear-gradient(160deg, #8d583a, #452519);
}

.tone-sun {
    background: linear-gradient(160deg, #d38f32, #8f4f14);
}

.tone-ocean {
    background: linear-gradient(160deg, #2e7787, #183d51);
}

.tone-clay {
    background: linear-gradient(160deg, #b85b4b, #642c2b);
}

.tone-night {
    background: linear-gradient(160deg, #2b325c, #11162f);
}

.news-card {
    overflow: hidden;
    background: var(--surface-strong);
}

.archive-card h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.news-card-image {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.section-quote {
    background: linear-gradient(180deg, rgba(1, 15, 35, 0.98), rgba(1, 46, 91, 0.95));
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.quote-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    padding: 2rem;
}

.quote-card i,
.quote-card p {
    color: #fff;
}

.quote-card i {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.inner-hero {
    background: linear-gradient(180deg, rgba(1, 18, 40, 0.97), rgba(1, 60, 110, 0.9));
    color: #fff;
}

.inner-title {
    font-size: clamp(2.6rem, 4vw, 4.5rem);
    max-width: 14ch;
    margin-top: 0.8rem;
}

.story-copy {
    font-size: 1.06rem;
}

.member-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.member-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.member-body {
    padding: 1rem 1.1rem 1.2rem;
}

.member-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.member-body p {
    color: var(--muted);
}

.faq-shell .accordion-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.faq-shell .accordion-button {
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    box-shadow: none;
}

.faq-shell .accordion-button:not(.collapsed) {
    color: var(--accent);
    background: rgba(1, 46, 91, 0.06);
}

.faq-shell .accordion-body {
    color: var(--muted);
    line-height: 1.75;
}

.donation-list li + li {
    margin-top: 0.7rem;
}

.donation-qr-card {
    border: 1px solid var(--line);
}

.donation-qr-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.5rem;
}

.volunteer-shell .form-control,
.volunteer-shell .form-select {
    border-radius: 12px;
    border-color: rgba(1, 46, 91, 0.2);
    padding: 0.62rem 0.75rem;
}

.stacked-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.program-points li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.55rem;
    color: var(--muted);
}

.program-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
}

.orphanage-contact {
    padding: 2rem;
}

.orphanage-contact-list .list-group-item {
    background: transparent;
    border-color: var(--line);
}

.orphanage-contact-list i {
    color: var(--accent);
}

.orphanage-impact {
    padding: 2rem;
}

.orphanage-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.orphanage-service-card {
    position: relative;
}

.orphanage-service-icon {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 12px;
    background: rgba(1, 46, 91, 0.08);
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.orphanage-photo-btn {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
}

.orphanage-photo {
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.orphanage-photo-btn:hover .orphanage-photo {
    transform: scale(1.04);
}

.site-footer {
    background: #011224;
    color: rgba(255, 255, 255, 0.76);
}

.footer-title {
    font-size: 2rem;
    color: #fff;
}

.footer-links li + li,
.footer-contact li + li {
    margin-top: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover,
.footer-contact a:hover,
.social-links a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-card,
.support-mini-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.support-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.support-logo {
    width: 100%;
    max-width: 160px;
    height: 90px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 0.4rem;
    border: 1px solid var(--line);
}

.support-mini-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.support-mini-card h3,
.support-mini-card p {
    color: rgba(255, 255, 255, 0.88);
}

.support-logo-mini {
    max-width: 120px;
    height: 64px;
}

.support-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
    .header-utilities {
        justify-content: flex-start;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .quote-grid {
        grid-template-columns: 1fr;
    }

    .kalam-quote-panel {
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(232, 242, 255, 0.88));
    }
}

@media (max-width: 767.98px) {
    .header-social {
        width: 100%;
    }

    .orphanage-contact,
    .orphanage-impact {
        padding: 1.4rem;
    }

    .orphanage-stat-grid {
        grid-template-columns: 1fr;
    }

    .btn-header-volunteer,
    .btn-header-donate {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero-panel-grid {
        grid-template-columns: 1fr;
    }

    .stacked-stats {
        grid-template-columns: 1fr;
    }

    .section-space {
        padding: 4rem 0;
    }

    .hero-title,
    .inner-title {
        max-width: none;
    }
}