/* =========================================================================
   IKARA ORPHANAGE CHARITY TRUST — 2026 REDESIGN
   Design language: "The Ledger of Good Deeds"
   Inspired by the trust's own tagline, "Every deed is weighed," and the
   golden balance-scale mark. Indigo (adire-dye night sky) grounds the site,
   warm gold stands in for the scale and for hope, clay adds warmth, and a
   monospace numeral face gives every statistic the feel of an open ledger.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {

    /* ---- palette --------------------------------------------------- */
    --ink: #14213A;
    /* deep indigo — headings, header bg */
    --ink-2: #1F3157;
    /* lighter indigo panel */
    --gold: #D9A441;
    /* the scale — primary accent */
    --gold-dark: #B9852A;
    --clay: #B85C38;
    /* warm clay — secondary accent */
    --leaf: #4B7A5A;
    /* baobab green — programs / growth */
    --sand: #F6F1E6;
    /* warm sand background */
    --sand-2: #EFE7D6;
    --paper: #FFFFFF;
    --text: #251C10;
    --text-soft: #5B5445;
    --line: rgba(20, 33, 58, .12);

    /* ---- type --------------------------------------------------- */
    --f-display: 'Fraunces', serif;
    --f-body: 'Inter', sans-serif;
    --f-mono: 'IBM Plex Mono', monospace;

    /* ---- misc --------------------------------------------------- */
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 20px 45px -18px rgba(20, 33, 58, .28);
    --shadow-sm: 0 8px 20px -10px rgba(20, 33, 58, .22);
    --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--sand);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--f-display);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 600;
    margin: 0 0 .5em;
}

p {
    margin: 0 0 1em;
    color: var(--text-soft);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: clamp(56px, 9vw, 120px) 0;
    position: relative;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   EYEBROW / SECTION HEADS  (ledger-entry styling)
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold-dark);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head.left {
    margin: 0 0 48px;
    text-align: left;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    margin-bottom: 14px;
}

.section-lede {
    font-size: 1.05rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 12px 28px -12px rgba(217, 164, 65, .65);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--gold-dark);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: inherit;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--ink);
    color: var(--sand);
}

.btn-dark:hover {
    background: var(--ink-2);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: .85rem;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, var(--ink-2) 0%, var(--ink) 70%);
    transition: opacity .8s var(--ease), visibility .8s var(--ease);
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: var(--sand);
}

#scale-image {
    width: 120px;
    margin: 0 auto 22px;
    filter: drop-shadow(0 0 25px rgba(217, 164, 65, .55));
    animation: tip 2.4s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes tip {

    0%,
    100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

.preloader-content h2 {
    color: var(--sand);
    font-size: 1.05rem;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.preloader-content p {
    color: var(--gold);
    font-family: var(--f-mono);
    font-size: .8rem;
    margin-bottom: 18px;
}

#loading-percent {
    font-family: var(--f-mono);
    color: var(--gold);
    font-size: 1.6rem;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gold);
    z-index: 9999;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(246, 241, 230, .75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

header.scrolled {
    background: rgba(246, 241, 230, .94);
    border-color: var(--line);
    box-shadow: 0 8px 30px -20px rgba(20, 33, 58, .35);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.logo span {
    font-family: var(--f-display);
    font-size: 1.25rem;
    letter-spacing: .02em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links>li>a {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    transition: background .25s, color .25s;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    background: rgba(20, 33, 58, .08);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    background: var(--paper);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .25s var(--ease);
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
}

.dropdown a:hover {
    background: var(--sand);
    color: var(--ink);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 33, 58, .08);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
}

.icon-btn:hover {
    background: rgba(20, 33, 58, .16);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--sand);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

@media(max-width:1080px) {
    .nav-links {
        position: fixed;
        top: 78px;
        right: -100%;
        width: min(340px, 86%);
        height: calc(100vh - 78px);
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        padding: 26px;
        gap: 6px;
        box-shadow: -20px 0 45px rgba(0, 0, 0, .15);
        transition: right .4s var(--ease);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links>li>a {
        padding: 14px 16px;
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        margin-top: 4px;
        background: var(--sand);
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    position: relative;
    background:
        linear-gradient(180deg, rgba(20, 33, 58, .82), rgba(20, 33, 58, .72) 55%, var(--sand-2) 100%),
        url(images/dashboard8.jpg) center/cover no-repeat;
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 10px 20px;
    border-radius: 999px;
    margin-bottom: 26px;
    font-size: .88rem;
    backdrop-filter: blur(6px);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 22px;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p.lede {
    color: rgba(255, 255, 255, .82);
    font-size: 1.12rem;
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-ledger {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.hero-ledger h3 {
    color: var(--gold);
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .25);
    color: #fff;
}

.ledger-row:last-child {
    border-bottom: none;
}

.ledger-row .num {
    font-family: var(--f-mono);
    font-size: 1.5rem;
    color: var(--gold);
}

.ledger-row .label {
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
}

@media(max-width:920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 130px;
    }
}

/* ==========================================================================
   IMPACT / STATS  (ledger numerals)
   ========================================================================== */

.impact {
    background: var(--ink);
    color: var(--sand);
}

.impact .section-head h2,
.impact .eyebrow {
    color: var(--sand);
}

.impact .eyebrow {
    color: var(--gold);
}

.impact .eyebrow::before {
    background: var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    background: var(--ink-2);
    padding: 40px 24px;
    text-align: center;
}

.stat h3,
.stat .counter {
    font-family: var(--f-mono);
    font-size: 2.6rem;
    color: var(--gold);
    font-weight: 600;
}

.stat p {
    color: rgba(246, 241, 230, .72);
    margin: 6px 0 0;
    font-size: .92rem;
}

/* ==========================================================================
   ABOUT PREVIEW / GENERIC CENTERED TEXT SECTION
   ========================================================================== */

.about-preview {
    text-align: center;
}

.about-preview .container>p {
    max-width: 720px;
    margin: 18px auto 32px;
    font-size: 1.05rem;
}

/* ==========================================================================
   PROGRAM / OBJECTIVE CARDS
   ========================================================================== */

.programs {
    background: var(--sand-2);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.program-card {
    background: var(--paper);
    padding: 38px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    text-align: left;
    border: 1px solid var(--line);
}

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

.program-card i {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--leaf), #3a6248);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.program-card ul {
    margin-top: 14px;
}

.program-card ul li {
    padding: 7px 0 7px 22px;
    position: relative;
    color: var(--text-soft);
    font-size: .92rem;
    border-top: 1px dashed var(--line);
}

.program-card ul li:first-child {
    border-top: none;
}

.program-card ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold-dark);
}

/* Objectives (numbered — genuinely a numbered charter, so numerals earn their keep) */

.objectives-section {
    background: var(--sand);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.objective-card {
    position: relative;
    background: var(--paper);
    padding: 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    overflow: hidden;
}

.objective-number {
    font-family: var(--f-mono);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2.6rem;
    font-weight: 600;
    color: rgba(20, 33, 58, .06);
}

.objective-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.objective-card h3 {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.objective-card p {
    font-size: .94rem;
}

/* ==========================================================================
   SPONSOR CTA BAND
   ========================================================================== */

.sponsor-child {
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(20, 33, 58, .92), rgba(75, 122, 90, .88)),
        url("images/charity5.jpg") center/cover;
}

.sponsor-child h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.sponsor-child p {
    color: rgba(255, 255, 255, .85);
    max-width: 520px;
    margin: 14px auto 30px;
}

/* ==========================================================================
   DONATION GOAL / PROGRESS
   ========================================================================== */

.donation-goal {
    text-align: center;
}

.progress-container {
    width: 100%;
    max-width: 760px;
    margin: 26px auto 14px;
    background: var(--sand-2);
    border-radius: 999px;
    height: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    transition: width 1.4s var(--ease);
}

.donation-goal>.container>p {
    font-family: var(--f-mono);
    color: var(--ink);
    font-weight: 600;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
    background: var(--sand-2);
}

.testimonial-slider {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    min-height: 150px;
}

.testimonial {
    background: var(--paper);
    padding: 44px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--line);
}

.testimonial p {
    font-family: var(--f-display);
    font-size: 1.3rem;
    color: var(--ink);
    font-style: italic;
}

.testimonial h4 {
    color: var(--gold-dark);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--f-mono);
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline .container {
    max-width: 760px;
}

.timeline-item {
    border-left: 2px solid var(--gold);
    padding: 4px 0 32px 28px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--sand);
}

.timeline-item h3 {
    font-family: var(--f-mono);
    color: var(--gold-dark);
    font-size: 1rem;
    margin-bottom: 6px;
}

.static {
    border-radius: 200px;
    border-color: white;
    background-color: white;
    border-style: none;
    background-position: initial;
    font-family: var(--f-display);
    font-size: 1.3rem;
    color: var(--ink);
    font-style: italic;
    border: width 20px;
    background-size: cover;
    text-align: center;
    text-decoration-line:initial;

}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-preview {
    background: var(--sand-2);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    color: var(--text-soft);
    transition: .25s;
}

.filter-btn:hover {
    border-color: var(--gold);
}

.filter-btn.active {
    background: var(--ink);
    color: var(--sand);
    border-color: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    cursor: zoom-in;
    transition: transform .45s var(--ease), filter .45s;
    filter: saturate(.94);
}

.gallery-grid img:hover {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.gallery-grid.filtering img {
    display: none;
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */

.partners {
    text-align: center;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logos img {
    max-width: 110px;
    margin: auto;
    filter: grayscale(1) opacity(.65);
    transition: .3s;
}

.partner-logos img:hover {
    filter: none;
}

/* ==========================================================================
   TRANSPARENCY
   ========================================================================== */

.transparency {
    text-align: center;
    background: var(--ink);
    color: var(--sand);
}

.transparency h2 {
    color: var(--sand);
}

.transparency p {
    color: rgba(246, 241, 230, .78);
    max-width: 560px;
    margin: 0 auto 28px;
}

/* ==========================================================================
   VOLUNTEER CTA
   ========================================================================== */

.volunteer-cta {
    text-align: center;
}

/* ==========================================================================
   BLOG
   ========================================================================== */

.featured-blog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.featured-blog-card img {
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-category {
    font-family: var(--f-mono);
    color: var(--gold-dark);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
    display: block;
}

@media(max-width:820px) {
    .featured-blog-card {
        grid-template-columns: 1fr;
    }
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 30px 0 0;
}

.category-btn {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    color: var(--text-soft);
    transition: .25s;
}

.category-btn.active,
.category-btn:hover {
    background: var(--ink);
    color: var(--sand);
    border-color: var(--ink);
}

.blog-section {
    background: var(--sand-2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform .3s var(--ease);
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 26px;
}

.blog-content span {
    font-family: var(--f-mono);
    color: var(--gold-dark);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.blog-content a {
    font-weight: 700;
    color: var(--ink);
    font-size: .9rem;
}

.blog-content a:hover {
    color: var(--gold-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    font-weight: 600;
    background: var(--paper);
    transition: .25s;
}

.pagination a:hover {
    background: var(--ink);
    color: var(--sand);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.newsletter,
.newsletter-section {
    text-align: center;
}

.newsletter form,
.newsletter-section form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.newsletter input,
.newsletter-section input,
.donation-form input,
form.newsletter input,
form.newsletter select,
form.newsletter textarea {
    font-family: var(--f-body);
}

.newsletter input,
.newsletter-section input {
    width: 340px;
    max-width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

/* ==========================================================================
   FORMS  (contact / donate / sponsor / events / programs request)
   ========================================================================== */

form.newsletter {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form.newsletter input,
form.newsletter select,
form.newsletter textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    font-size: .95rem;
    color: var(--text);
}

form.newsletter textarea {
    border-radius: 16px;
    resize: vertical;
}

form.newsletter button {
    align-self: flex-start;
    border: none;
    padding: 15px 34px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

form.newsletter button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--gold-dark);
    transition: transform .3s;
}

.faq-question.open::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
}

.faq-answer.open {
    max-height: 240px;
}

.faq-item>p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--text-soft);
}

/* Static faq-item that isn't wired to JS toggle (plain h4/p pairs) */
.faq-item h4 {
    padding: 20px 24px 0;
    font-family: var(--f-body);
    color: var(--ink);
}

.faq-item>p:only-of-type {
    padding: 8px 24px 20px;
}

/* ==========================================================================
   EVENT COUNTDOWN
   ========================================================================== */

#countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.countdown-box {
    background: var(--ink);
    color: var(--sand);
    border-radius: 16px;
    padding: 22px 26px;
    text-align: center;
    min-width: 100px;
}

.countdown-box h3 {
    font-family: var(--f-mono);
    color: var(--gold);
    font-size: 2rem;
    margin: 0;
}

.countdown-box span {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(246, 241, 230, .7);
}

/* ==========================================================================
   SEARCH BOX
   ========================================================================== */

.search-box {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 16px 22px;
    font-size: .95rem;
    background: none;
}

.search-box button {
    border: none;
    background: var(--ink);
    color: var(--sand);
    padding: 0 24px;
    cursor: pointer;
}

/* ==========================================================================
   MAP
   ========================================================================== */

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ==========================================================================
   TEAM / LEADERSHIP
   ========================================================================== */

.partner-logos.team {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 4px solid var(--paper);
    box-shadow: var(--shadow-sm);
}

.team-card h4 {
    color: var(--ink);
    margin-bottom: 2px;
}

.team-card span {
    font-family: var(--f-mono);
    font-size: .78rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ==========================================================================
   CHILD SPONSORSHIP PROFILES
   ========================================================================== */

.program-card.child-profile img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
    background: var(--sand);
}

.error-container {
    padding-top: 170px;
    text-align: center;
}

.error-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 26px;
}

.error-container h1 {
    font-size: 5.5rem;
    color: var(--gold-dark);
    margin-bottom: 0;
}

.error-container h2 {
    margin-bottom: 16px;
}

.error-container p {
    max-width: 480px;
    margin: 0 auto 30px;
}

.error-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--ink);
    color: rgba(246, 241, 230, .75);
    padding: 70px 0 30px;
}

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

.footer-col h3 {
    color: var(--sand);
    font-size: 1.3rem;
}

.footer-col h5 {
    color: var(--sand);
    font-family: var(--f-mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
}

.footer-col p {
    color: rgba(246, 241, 230, .65);
    font-size: .92rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: .92rem;
    color: rgba(246, 241, 230, .72);
    transition: .2s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.socials {
    margin: 24px 0;
    display: flex;
    gap: 12px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(246, 241, 230, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand);
    transition: .25s;
}

.socials a:hover {
    background: var(--gold);
    color: var(--ink);
}

.footer-bottom {
    border-top: 1px solid rgba(246, 241, 230, .12);
    padding-top: 26px;
    text-align: center;
    font-size: .85rem;
    color: rgba(246, 241, 230, .55);
}

@media(max-width:900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FLOATING ACTIONS
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 900;
    box-shadow: var(--shadow-sm);
    transition: .3s;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
}

.floating-donate {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   GRACEFUL IMAGE FALLBACK
   (used when a referenced photo hasn't been uploaded to /images yet —
   JS adds .img-missing to the wrapping element on error)
   ========================================================================== */

.img-missing {
    position: relative;
    background: linear-gradient(135deg, var(--ink-2), var(--ink));
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-missing img {
    display: none;
}

.img-missing::after {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.6rem;
    color: rgba(217, 164, 65, .6);
}

.team-card .img-missing {
    border-radius: 50%;
}

/* ==========================================================================
   BANK ACCOUNTS (donate page)
   ========================================================================== */

.bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

@media(max-width:640px) {
    .bank-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LEADERSHIP / TRUST OFFICERS
   ========================================================================== */

.leader-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(217, 164, 65, .12);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* --- Patron: single featured card --- */
.leader-feature {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.leader-feature .leader-photo {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.leader-feature .leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leader-feature h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.leader-role {
    color: var(--text-soft);
    font-size: .98rem;
    margin-bottom: 18px;
}

.leader-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.leader-facts span {
    font-family: var(--f-mono);
    font-size: .76rem;
    color: var(--ink);
    background: var(--sand-2);
    padding: 6px 12px;
    border-radius: 999px;
}

@media(max-width:760px) {
    .leader-feature {
        grid-template-columns: 1fr;
    }

    .leader-feature .leader-photo {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* --- Trustees / executives grid --- */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.leader-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

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

.leader-card .leader-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 18px;
    border: 3px solid var(--sand-2);
    box-shadow: var(--shadow-sm);
}

.leader-card .leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leader-card h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.leader-bio {
    margin-top: 16px;
    border-top: 1px dashed var(--line);
    padding-top: 14px;
}

.leader-bio summary {
    cursor: pointer;
    font-family: var(--f-mono);
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-bio summary::-webkit-details-marker {
    display: none;
}

.leader-bio summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: .95rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: transform .25s var(--ease);
}

.leader-bio[open] summary::before {
    content: "–";
}

.leader-bio p {
    margin-top: 14px;
    font-size: .94rem;
}

.leader-note {
    background: var(--sand-2);
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    font-size: .92rem;
    color: var(--text-soft);
    margin-top: 10px;
}

/* ==========================================================================
   RESPONSIVE TYPE TUNING
   ========================================================================== */

@media(max-width:768px) {
    .hero p.lede {
        font-size: 1rem;
    }

    section {
        padding: 56px 0;
    }
}

/* ==========================================================================
   EVENTS SLIDER (homepage) — auto-rotating, pause-on-hover
   ========================================================================== */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 420px;
    margin: 0 auto;
    background-color: var(--ink);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 3. Event Slides Wrapper */
.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.event-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
    transform: scale(0.96);
}

/* Desktop layout split */
@media (min-width: 768px) {
    .event-slide {
        flex-direction: row;
    }
}

/* The Active Slide State */
.event-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

/* 4. Layout Elements */
.image-side {
    width: 100%;
    height: 50%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .image-side {
        width: 50%;
        height: 100%;
    }
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Artistic darkening overlay for readability */
.image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,33,58,0.7), transparent 60%);
}

@media (min-width: 768px) {
    .image-side::after {
        background: linear-gradient(to right, rgba(20,33,58,0.3), rgba(20,33,58,0.8));
    }
}

.content-side {
    width: 100%;
    height: 50%;
    background-color: var(--ink);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

@media (min-width: 768px) {
    .content-side {
        width: 50%;
        height: 100%;
        padding: 50px 48px;
    }
}

.location {
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

@media (min-width: 768px) {
    .title {
        font-size: 32px;
    }
}

.description {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
}

/* 5. Pagination Indicators */
.pagination-container {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background-color: var(--gold);
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: 480px;
        border-radius: 12px;
    }
    
    .content-side {
        padding: 28px 20px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 440px;
    }
    
    .content-side {
        padding: 20px 16px;
    }
    
    .title {
        font-size: 17px;
    }
    
    .description {
        font-size: 12px;
        max-width: 100%;
    }
    
    .pagination-container {
        bottom: 12px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 24px;
    }
}