/* ==========================================================================
   Jibon Foundation — Design Tokens & Core Styles
   Signature idea: "ripple" — a single act of help spreading outward,
   expressed as concentric rings used across hero, dividers and stats.
   ========================================================================== */

:root{
  /* Palette sampled directly from the Jibon Foundation logo (drop + leaf + stem) */
  --jf-forest:      #14513A;   /* deep green — matches the "FOUNDATION" wordmark */
  --jf-forest-2:    #0A2E1F;   /* darker shade for gradients/footer */
  --jf-leaf:        #2E7D46;   /* brand mid-green, from the stem/outline green */
  --jf-leaf-light:  #5BAE79;   /* lighter green for hovers */
  --jf-gold:        #E2231E;   /* logo red — CTA / donate / accent (name kept for compatibility) */
  --jf-gold-dark:   #B91C1C;   /* darker red for hover states */
  --jf-sage:        #F6F7F5;   /* page background, matches logo's light backdrop */
  --jf-sage-2:      #EAF0EC;   /* alt section background */
  --jf-ink:         #17231F;   /* body text */
  --jf-ink-soft:    #4A5750;   /* secondary text */
  --jf-white:       #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--jf-ink);
  background: var(--jf-sage);
  line-height: 1.65;
  font-size: 1rem;
}

h1,h2,h3,h4,.display-font{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--jf-forest);
  letter-spacing: -0.01em;
}

h1{ font-weight: 560; }

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--jf-leaf);
  font-weight: 600;
}

a{ color: var(--jf-leaf); text-decoration: none; }
a:hover{ color: var(--jf-gold-dark); }

::selection{ background: var(--jf-gold); color: var(--jf-forest); }

/* Skip link for accessibility */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--jf-gold); color:var(--jf-forest);
  padding:.6rem 1rem; z-index:2000; border-radius:0 0 8px 0; font-weight:600;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline: 3px solid var(--jf-gold);
  outline-offset: 2px;
}

/* =========================================================
   HEADER WRAPPER
========================================================= */

.site-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1050;

    background: #fff;

    transition: box-shadow .35s ease;
}

.site-header::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    z-index: 1101;

    background: linear-gradient(
        to right,
        #2e9b61 0%, #2e9b61 15%,
        #f58220 15%, #f58220 33%,
        #e63946 33%, #e63946 50%,
        #2e9b61 50%, #2e9b61 66%,
        #f58220 66%, #f58220 83%,
        #e63946 83%, #e63946 100%
    );
}


/* =========================================================
   BODY OFFSET — header is fixed (desktop default)
   MUST come before the mobile media query in source order
========================================================= */

body{
    padding-top: 150px;
    transition: padding-top .35s ease;
}

body.header-compact{
    padding-top: 75px;
}


/* =========================================================
   TOP CONTACT BAR
========================================================= */

.top-bar{
    height: 40px;
    padding-top: 4px;

    background: #fff;
    border-bottom: 1px solid #eee;

    transition:
        height .35s ease,
        opacity .25s ease,
        padding .35s ease;
}

.top-bar-inner{
    height: 100%;
    padding-left: 200px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    transition: padding-left .35s ease;
}

.top-bar a{
    color: #7d8e95;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: .04em;
}

.top-bar a:hover{
    color: var(--jf-gold);
}

.top-bar i{
    margin-right: 7px;
}


/* =========================================================
   MAIN NAVBAR
========================================================= */

.jf-navbar{
    height: 110px;
    padding: 0;

    background: #fff;

    transition:
        height .35s ease,
        box-shadow .35s ease;
}

.jf-nav-container{
    height: 110px;
    position: relative;

    display: flex;
    align-items: center;
}


/* =========================================================
   LOGO CARD
========================================================= */

.jf-brand{
    position: absolute;
    top: -40px;
    left: 0;

    width: 180px;
    height: 150px;

    background: #fff;
    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px;
    margin: 0;

    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,.10);

    overflow: hidden;

    transition: all .35s ease;
}

.logo-full{
    display: block;
    width: 100%;
    height: 100%;
    max-width: 145px;
    max-height: 122px;
    object-fit: contain;
}

.logo-icon{
    display: none;
    width: 46px;
    height: 46px;
    object-fit: contain;
}


/* =========================================================
   NAVBAR AREA
========================================================= */

.jf-navbar .navbar-collapse{
    width: 100%;
    padding-left: 200px;
}

.jf-menu{
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 26px;
}

.jf-navbar .nav-item{
    position: relative;
}

.nav-row{
    display: flex;
    align-items: center;
}

.jf-navbar .nav-link{
    color: var(--jf-ink);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;

    padding: 10px 0;
    margin: 0;

    white-space: nowrap;

    transition: color .25s ease;
}

.jf-navbar .nav-link:hover,
.jf-navbar .nav-link.active{
    color: var(--jf-gold);
}

.jf-navbar .nav-link.active::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--jf-gold);
}

.nav-caret{
    background: transparent;
    border: none;

    color: #62747b;

    margin-left: 5px;
    padding: 5px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform .25s ease;
}

.nav-caret i{
    font-size: 12px;
}

.nav-item.show .nav-caret{
    transform: rotate(180deg);
    color: var(--jf-gold);
}


/* =========================================================
   SEARCH BUTTON
========================================================= */

.jf-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-toggle{
    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: var(--jf-gold);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    transition: all .25s ease;
}

.search-toggle:hover{
    background: var(--jf-gold-dark);
    transform: scale(1.05);
}

.search-toggle[aria-expanded="true"]{
    background: var(--jf-gold-dark);
}


/* =========================================================
   DROPDOWN
========================================================= */

.jf-navbar .dropdown-menu{
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;

    padding: 8px;
    margin: 10px 0 0;

    border: none;
    border-radius: 10px;

    background: #fff;

    box-shadow: 0 12px 35px rgba(0,0,0,.14);

    z-index: 1200;
}

.jf-navbar .nav-item.show > .dropdown-menu{
    display: block;
}

.jf-navbar .dropdown-item{
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--jf-ink);
    font-size: 15px;
}

.jf-navbar .dropdown-item:hover{
    background: var(--jf-sage-2);
    color: var(--jf-gold);
}

.jf-navbar .dropdown-submenu{
    position: relative;
}

.dsm-row{
    display: flex;
    align-items: center;
}

.dsm-row .dropdown-item{
    flex: 1;
}

.dsm-caret{
    background: transparent;
    border: none;
    color: var(--jf-ink-soft);
    padding: 10px;
    cursor: pointer;
}

.jf-navbar .dropdown-submenu > .dropdown-menu{
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.jf-navbar .dropdown-submenu.show > .dropdown-menu{
    display: block;
}


/* =========================================================
   SEARCH PANEL — floating overlay, doesn't push page content
========================================================= */

.jf-search-panel{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    max-height: 0;
    overflow: hidden;

    background: var(--jf-forest-2);

    box-shadow: 0 12px 30px rgba(0,0,0,.18);

    z-index: 1040;

    transition: max-height .35s ease;
}

.jf-search-panel.show{
    max-height: 100px;
}

.jf-search-panel .container{
    height: 100px;
    gap: 12px;
}

.jf-search-input{
    width: 100%;

    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;

    border-radius: 999px;
    padding: 11px 18px;
}

.jf-search-input::placeholder{
    color: rgba(255,255,255,.6);
}

.jf-search-input:focus{
    background: rgba(255,255,255,.15);
    color: #fff;
    box-shadow: none;
    border-color: var(--jf-gold);
    outline: none;
}

.search-close{
    background: transparent;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;

    transition: color .2s ease;
}

.search-close:hover{
    color: #fff;
}


/* =========================================================
   SCROLL EFFECT
========================================================= */

.jf-navbar.scrolled{
    height: 75px;
    box-shadow: 0 3px 18px rgba(0,0,0,.12);
}

.jf-navbar.scrolled .jf-nav-container{
    height: 75px;
}

.jf-navbar.scrolled .jf-brand{
    top: 0;
    width: 70px;
    height: 75px;

    padding: 8px;

    border-radius: 0;
    box-shadow: none;
}

.jf-navbar.scrolled .logo-full{
    display: none;
}

.jf-navbar.scrolled .logo-icon{
    display: block;
}

.jf-navbar.scrolled .navbar-collapse{
    padding-left: 90px;
}

body.header-compact .top-bar{
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    border: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px){

    .jf-nav-container{
        justify-content: flex-end;
    }

    .jf-actions{
        margin-left: auto;
    }

    .top-bar{
        display: none;
    }

    .jf-navbar{
        height: 75px;
    }

    .jf-nav-container{
        height: 75px;
    }

    .jf-brand{
        top: 0;
        left: 0;

        width: 70px;
        height: 75px;

        padding: 8px;

        border-radius: 0;
        box-shadow: none;
    }

    .logo-full{
        display: none;
    }

    .logo-icon{
        display: block;
    }

    .jf-navbar .navbar-collapse{
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;

        padding: 15px 20px;

        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 12px 25px rgba(0,0,0,.08);
    }

    .jf-menu{
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 0;
    }

    .jf-navbar .nav-item{
        width: 100%;
    }

    .nav-row{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .jf-navbar .nav-link{
        font-size: 17px;
        padding: 12px 0;
    }

    .jf-navbar .dropdown-menu{
        position: static;
        width: 100%;
        margin: 0;
        padding: 5px 0 5px 15px;
        border-radius: 0;
        box-shadow: none;
        background: #f8f8f8;
    }

    .jf-navbar .dropdown-submenu > .dropdown-menu{
        position: static;
        margin: 0;
        padding-left: 15px;
    }

    .search-toggle{
        width: 42px;
        height: 42px;
    }

    /* This now correctly wins over the desktop rule above, since it
       comes later in source order for the same selector/specificity */
    body{
        padding-top: 75px;
    }

}
/* =========================================================
   HERO CAROUSEL
========================================================= */

.jf-hero-carousel{
    position: relative;
}

.jf-hero-carousel .carousel-item img{
    height: 640px;
    object-fit: cover;
}

.hero-slide-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
}

.hero-slide-content{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
}


/* TEXT CARD */

.hero-card{
    max-width: 420px;

    background: #fff;
    padding: 34px 32px;

    border-radius: 0 14px 14px 0;
    border-left: 5px solid var(--jf-forest-2, #1e4d3e);

    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.hero-card h2{
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.25;

    color: var(--jf-ink, #1a2b2f);

    margin-bottom: 14px;

    position: relative;
    padding-bottom: 14px;
}

.hero-card h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 60px;
    height: 3px;

    background: var(--jf-gold, #c8912f);
}

.hero-card p{
    font-size: 15px;
    line-height: 1.6;
    color: var(--jf-ink-soft, #55666a);
    margin: 0;
}


/* ARROWS */

.jf-hero-carousel .carousel-control-prev,
.jf-hero-carousel .carousel-control-next{
    width: 60px;
    opacity: 1;
}

.hero-arrow{
    width: 44px;
    height: 44px;

    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    transition: background .25s ease;
}

.hero-arrow:hover{
    background: var(--jf-gold, #c8912f);
}



.jf-hero-indicators{
    bottom: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.jf-hero-indicators [data-bs-target]{
    box-sizing: content-box;

    width: 9px;
    height: 9px;

    padding: 0;
    margin: 0;

    border: none;
    border-top: none;
    border-bottom: none;

    border-radius: 50%;

    background-color: rgba(255,255,255,.55);
    background-clip: padding-box;

    opacity: 1;

    text-indent: -9999px;

    transition: all .25s ease;

    flex: 0 0 auto;
}

.jf-hero-indicators [data-bs-target]:hover{
    background-color: rgba(255,255,255,.85);
}

.jf-hero-indicators [data-bs-target].active{
    width: 24px;
    height: 9px;

    border-radius: 5px;

    background-color: var(--jf-gold, #c8912f);
}

/* =========================================================
   PAGE HEADER (inner pages — About, Reports, etc.)
========================================================= */

.jf-page-header{
    position: relative;

    background: linear-gradient(120deg, var(--jf-forest) 0%, var(--jf-forest-2) 100%);

    padding: 70px 0 60px;

    overflow: hidden;

    isolation: isolate;
}

.jf-page-header .ripple-field{
    position: absolute;
    top: 50%;
    right: -80px;

    width: 340px;
    height: 340px;

    transform: translateY(-50%);

    opacity: .35;

    pointer-events: none;

    z-index: 0;
}

.jf-page-header .container{
    position: relative;
    z-index: 1;
}


/* BREADCRUMB */

.jf-breadcrumb{
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .03em;

    color: rgba(255,255,255,.55);
}

.jf-breadcrumb a{
    color: rgba(255,255,255,.75);
    text-decoration: none;

    transition: color .2s ease;
}

.jf-breadcrumb a:hover{
    color: var(--jf-gold);
}


/* EYEBROW */

.jf-page-header .eyebrow{
    color: var(--jf-gold) !important;
}


/* TITLE */

.jf-page-header h1{
    color: #fff;

    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;

    margin: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px){

    .jf-page-header{
        padding: 50px 0 40px;
    }

    .jf-page-header .ripple-field{
        width: 220px;
        height: 220px;

        right: -60px;
        opacity: .25;
    }

    .jf-breadcrumb{
        font-size: .72rem;
        white-space: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .jf-breadcrumb::-webkit-scrollbar{
        display: none;
    }

}

@media (max-width: 480px){

    .jf-page-header{
        padding: 42px 0 32px;
    }

    .jf-page-header .ripple-field{
        display: none;
    }

    .jf-page-header h1{
        font-size: 1.7rem;
    }

}
/* =========================================================
   BOTTOM ACTION STRIP
========================================================= */

.hero-action-strip{
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    z-index: 10;
}

.hero-action{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    transition: filter .2s ease;
}

.hero-action:hover{
    filter: brightness(1.08);
    color: #fff;
}

.hero-action.donate{ background: #c0392b; }
.hero-action.anniversary{ background: #c8912f; }
.hero-action.funding{ background: #3f8f4f; }
.hero-action.relief{ background: #16232e; }


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px){

    .jf-hero-carousel .carousel-item img{
        height: 480px;
    }
    .hero-card{
        max-width: 88%;
        margin: 0 auto;
        border-radius: 14px;
        border-left: none;
        border-top: 5px solid var(--jf-forest-2, #1e4d3e);
    }
    .hero-card h2{
        font-size: 24px;
    }
    .hero-action-strip{
        position: static;
    }
    .hero-action{
        flex: 1 1 50%;
        justify-content: center;
        font-size: 13px;
        padding: 12px 10px;
    }

}
/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-jf-primary{
  background: var(--jf-gold);
  border: none;
  color: var(--jf-forest);
  font-weight: 700;
  padding: .8rem 1.9rem;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.btn-jf-primary:hover{ background: var(--jf-gold-dark); color: var(--jf-white); transform: translateY(-2px); }

.btn-jf-outline{
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  color: var(--jf-white);
  font-weight: 600;
  padding: .78rem 1.8rem;
  border-radius: 999px;
  transition: all .2s ease;
}
.btn-jf-outline:hover{ background: rgba(255,255,255,.12); color: var(--jf-white); border-color: var(--jf-white); }

.btn-jf-ghost-dark{
  background: transparent;
  border: 1.5px solid var(--jf-forest);
  color: var(--jf-forest);
  font-weight: 600;
  padding: .7rem 1.6rem;
  border-radius: 999px;
}
.btn-jf-ghost-dark:hover{ background: var(--jf-forest); color: var(--jf-white); }

/* ==========================================================================
   Section basics
   ========================================================================== */
.section{ padding: 3.5rem 0; }
.section-alt{ background: var(--jf-sage-2); }
.section-dark{ background: var(--jf-forest); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3{ color: var(--jf-white); }

.section-head{ max-width: 42rem; margin-bottom: 3rem; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top:.4rem; }

/* divider ripple */
.ripple-divider{ display:flex; justify-content:center; margin: 0 0 2.5rem; }
.ripple-divider svg{ width:64px; height:64px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.jf-card{
  background: var(--jf-white);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.8rem;
  height: 100%;
  box-shadow: 0 2px 0 rgba(20,81,58,.05);
  border: 1px solid #E4EBE4;
  transition: transform .25s ease, box-shadow .25s ease;
}
.jf-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 34px rgba(20,81,58,.12); }
.jf-card .icon-wrap{
  width: 58px; height:58px; border-radius: 16px;
  background: var(--jf-sage-2);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 1.2rem; color: var(--jf-leaf);
}
.jf-card h3{ font-size: 1.2rem; }
.jf-card p{ color: var(--jf-ink-soft); font-size:.96rem; margin-bottom: 0; }

.program-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--jf-white);
  border: 1px solid #E4EBE4;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.program-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 34px rgba(20,81,58,.12); }
.program-card .thumb{
  height: 190px; width:100%;
  background-size: cover; background-position: center;
  position: relative;
}
.program-card .thumb .tag{
  position:absolute; top:14px; left:14px;
  background: var(--jf-gold); color: var(--jf-forest);
  font-family: var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em;
  padding:.3rem .7rem; border-radius: 999px; font-weight:700;
}
.program-card .body{ padding: 1.5rem; }
.program-card h3{ font-size: 1.15rem; }
.program-card p{ color: var(--jf-ink-soft); font-size:.94rem; }
.program-card .meta{
  font-family: var(--font-mono); font-size:.72rem; color: var(--jf-leaf); text-transform:uppercase; letter-spacing:.06em;
}

/* stat block */
.stat-block{ text-align:center; padding: 1rem; }
.stat-block .ring-wrap{ position:relative; width:120px; height:120px; margin:0 auto 1rem; }
.stat-block .num{ font-family: var(--font-display); font-size: 1.9rem; font-weight:700; color: var(--jf-forest); }
.stat-block .label{ font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color: var(--jf-ink-soft); }

/* process steps (real 3-step sequence) */
.step-item{ display:flex; gap:1.4rem; margin-bottom:2.3rem; }
.step-item .step-mark{
  font-family: var(--font-display); font-size:1.4rem; color: var(--jf-gold);
  border: 1.5px solid var(--jf-gold); border-radius:50%;
  width:52px; height:52px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
}
.step-item h3{ font-size:1.1rem; margin-bottom:.3rem; }
.step-item p{ color: var(--jf-ink-soft); margin-bottom:0; font-size:.95rem; }

/* testimonial */
.testimonial-card{
  background: var(--jf-white);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  border-left: 4px solid var(--jf-gold);
}
.testimonial-card q{ font-family: var(--font-display); font-size:1.25rem; line-height:1.5; color: var(--jf-forest); }
.testimonial-card .who{ font-family: var(--font-mono); font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color: var(--jf-ink-soft); margin-top:1rem; display:block; }
/* =========================================================
   TESTIMONIAL CAROUSEL
========================================================= */

.jf-testimonial-arrow{
    width: 6%;
    opacity: 1;
}

.jf-testimonial-arrow-icon{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--jf-white);
    color: var(--jf-forest);
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .2s ease, color .2s ease;
}

.jf-testimonial-arrow-icon:hover{
    background: var(--jf-gold);
    color: #fff;
}

.jf-testimonial-dots{
    position: static;
    margin: 2.5rem 0 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.jf-testimonial-dots [data-bs-target]{
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background-color: #D7E2D8;
    opacity: 1;
    text-indent: -9999px;
    transition: all .25s ease;
}

.jf-testimonial-dots [data-bs-target].active{
    width: 22px;
    border-radius: 5px;
    background-color: var(--jf-gold);
}


@media (max-width: 767.98px){
    .jf-testimonial-arrow{
        display: none;
    }

}
/* gallery */
.gallery-item{
  position:relative; overflow:hidden; border-radius: var(--radius-md);
  aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item .cap{
  position:absolute; inset:auto 0 0 0; padding: .9rem 1rem;
  background: linear-gradient(0deg, rgba(10,46,31,.88), transparent);
  color: var(--jf-white); font-size:.85rem; font-weight:600;
  transform: translateY(100%); transition: transform .3s ease;
}
.gallery-item:hover .cap{ transform: translateY(0); }

/* news card */
.news-card{ background: var(--jf-white); border-radius: var(--radius-lg); overflow:hidden; border:1px solid #E4EBE4; height:100%; }
.news-card img{ width:100%; height:190px; object-fit:cover; }
.news-card .body{ padding:1.5rem; }
.news-card .date{ font-family: var(--font-mono); font-size:.72rem; color: var(--jf-leaf); text-transform:uppercase; letter-spacing:.06em; }
.news-card h3{ font-size:1.08rem; margin: .5rem 0; }
.news-card p{ color: var(--jf-ink-soft); font-size:.92rem; }


/* forms */
.jf-form .form-control, .jf-form .form-select{
  border-radius: var(--radius-sm);
  border: 1.5px solid #D7E2D8;
  padding: .8rem 1rem;
}
.jf-form .form-control:focus, .jf-form .form-select:focus{
  border-color: var(--jf-leaf);
  box-shadow: 0 0 0 3px rgba(60,140,110,.15);
}
.jf-form label{ font-weight:600; font-size:.9rem; color: var(--jf-forest); margin-bottom:.35rem; }

/* ==========================================================================
   Donate page — campaign progress, amount cards, sticky impact panel
   ========================================================================== */
.campaign-card{
  background: var(--jf-white); border:1px solid #E4EBE4; border-radius: var(--radius-lg);
  overflow:hidden; display:flex; flex-wrap:wrap;
}
.campaign-card .cc-img{ flex:1 1 320px; min-height:220px; background-size:cover; background-position:center; }
.campaign-card .cc-body{ flex:1 1 380px; padding: 2rem; }
.campaign-card .progress{ height:10px; border-radius:999px; background:var(--jf-sage-2); }
.campaign-card .progress-bar{ background: var(--jf-gold); }
.campaign-card .cc-stats{ display:flex; gap:2rem; margin-top:1.2rem; flex-wrap:wrap; }
.campaign-card .cc-stats .val{ font-family:var(--font-display); font-size:1.4rem; color:var(--jf-forest); font-weight:700; }
.campaign-card .cc-stats .lbl{ font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; color:var(--jf-ink-soft); }

.amount-card{
  border: 1.5px solid #D7E2D8; background: var(--jf-white); border-radius: var(--radius-md);
  padding: 1rem .75rem; text-align:center; cursor:pointer; transition: all .2s ease;
  display:block; width:100%;
}
.amount-card .amt{ font-family: var(--font-display); font-weight:700; font-size:1.15rem; color: var(--jf-forest); display:block; }
.amount-card .imp{ font-size:.72rem; color: var(--jf-ink-soft); display:block; margin-top:.25rem; line-height:1.35; }
input[type=radio].btn-check:checked + .amount-card{ border-color: var(--jf-gold); background: var(--jf-sage-2); box-shadow: 0 0 0 2px var(--jf-gold) inset; }
.amount-card:hover{ border-color: var(--jf-leaf); }

.impact-panel{
  background: var(--jf-forest); color: rgba(255,255,255,.88); border-radius: var(--radius-lg);
  padding: 2rem; position: sticky; top: 6.5rem;
}
.impact-panel h3{ color: var(--jf-white); font-size:1.15rem; }
.impact-panel ul li{ color: rgba(255,255,255,.8); font-size:.9rem; }
.impact-panel .trust-mini{ display:flex; align-items:center; gap:.5rem; font-size:.8rem; color: rgba(255,255,255,.7); margin-top:.6rem; }
.impact-panel .trust-mini i{ color: var(--jf-gold); }
.impact-panel hr{ border-color: rgba(255,255,255,.15); }

/* donation amount pills */
.amount-pill{
  border: 1.5px solid #D7E2D8; background: var(--jf-white); color: var(--jf-forest);
  border-radius: 999px; padding:.75rem 0; font-weight:700; width:100%;
  font-family: var(--font-mono);
}
.amount-pill.active, .amount-pill:hover{ background: var(--jf-forest); color: var(--jf-white); border-color: var(--jf-forest); }
input[type=radio].btn-check:checked + .amount-pill{ background: var(--jf-gold); color: var(--jf-forest); border-color: var(--jf-gold); }

/* accordion tweaks */
.accordion-button{ font-family: var(--font-display); font-weight:600; color: var(--jf-forest); }
.accordion-button:not(.collapsed){ background: var(--jf-sage-2); color: var(--jf-forest); box-shadow:none; }
.accordion-button:focus{ box-shadow: 0 0 0 3px rgba(60,140,110,.15); }

/* team card */
.team-card{ text-align:center; }
.team-card .photo{ width:150px; height:150px; border-radius:50%; overflow:hidden; margin:0 auto 1rem; border: 3px solid var(--jf-sage-2); }
.team-card .photo img{ width:100%; height:100%; object-fit:cover; }
.team-card h3{ font-size:1.05rem; margin-bottom:.1rem; }
.team-card .role{ font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color: var(--jf-leaf); }

/* map */
.jf-map{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid #E4EBE4; }
.jf-map iframe{ width:100%; height:420px; border:0; display:block; }
/* =========================
   CTA SECTION
========================= */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 55px 60px;
    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #b5121b 0%,
            #e2231e 50%,
            #8f0d14 100%
        );

    box-shadow:
        0 20px 50px rgba(226, 35, 30, 0.25);

    isolation: isolate;
}

/* Decorative gradient overlay */
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(0, 0, 0, 0.18),
            transparent 40%
        );

    z-index: -1;
}


/* Decorative floating circle */
.cta-band::after {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.15);

    right: -90px;
    top: -130px;

    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.03),
        0 0 0 70px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.02);

    z-index: -1;

    animation: floatCircle 8s ease-in-out infinite;
}


/* Heading */
.cta-band h2 {
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    max-width: 750px;
    letter-spacing: -0.5px;
}


/* Paragraph */
.cta-band p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 650px;
}


/* Ripple SVG */
.ripple-field {
    position: absolute;

    width: 420px;
    height: 420px;

    right: -100px;
    bottom: -180px;

    pointer-events: none;

    transform: rotate(-15deg);

    animation: rippleMove 12s linear infinite;
}


/* =========================
   DONATE BUTTON
========================= */

.btn-jf-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #ffffff;
    color: #e2231e;

    padding: 16px 28px;

    border-radius: 12px;

    font-weight: 700;
    font-size: 16px;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);

    transition:
        all 0.3s ease;
}


.btn-jf-primary i {
    transition: transform 0.3s ease;
}


.btn-jf-primary:hover {
    background: #111111;
    color: #ffffff;

    transform: translateY(-4px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.25);
}


.btn-jf-primary:hover i {
    transform: translateX(5px);
}


/* =========================
   ANIMATIONS
========================= */

@keyframes floatCircle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}


@keyframes rippleMove {

    0% {
        transform: rotate(-15deg) scale(1);
    }

    50% {
        transform: rotate(-15deg) scale(1.05);
    }

    100% {
        transform: rotate(-15deg) scale(1);
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .cta-band {
        padding: 45px 35px;
        text-align: center;
    }

    .cta-band h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-band p {
        margin-left: auto;
        margin-right: auto;
    }

}


@media (max-width: 575px) {

    .cta-band {
        padding: 35px 22px;
        border-radius: 18px;
    }

    .cta-band h2 {
        font-size: 27px;
    }

    .cta-band p {
        font-size: 15px;
    }

    .btn-jf-primary {
        width: 100%;
        padding: 15px 20px;
    }

}
/* ==========================================================================
   Footer
   ========================================================================== */
.jf-footer{
  background: var(--jf-forest-2);
  color: rgba(255,255,255,.72);
  padding: 4.5rem 0 1.5rem;
}
.jf-footer h5{ color: var(--jf-white); font-family: var(--font-display); font-size:1.05rem; margin-bottom:1.2rem; }
.jf-footer a{ color: rgba(255,255,255,.68); }
.jf-footer a:hover{ color: var(--jf-gold); }
.jf-footer .foot-brand{ font-family: var(--font-display); color: var(--jf-white); font-size:1.4rem; display:flex; align-items:center; gap:.6rem; }
.jf-footer .social-row a{
  width:38px; height:38px; border-radius:50%; border:1.5px solid rgba(255,255,255,.25);
  display:inline-flex; align-items:center; justify-content:center; margin-right:.6rem;
}
.jf-footer .social-row a:hover{ border-color: var(--jf-gold); background: rgba(227,168,87,.12); }
.jf-footer .foot-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:3rem; padding-top:1.5rem; font-size:.85rem; }
.jf-footer .newsletter-form .form-control{
  border-radius: 999px 0 0 999px; border:none; padding:.7rem 1.1rem;
}
.jf-footer .newsletter-form .btn{
  border-radius: 0 999px 999px 0; background: var(--jf-gold); color: var(--jf-forest); font-weight:700; padding:.7rem 1.2rem;
}

/* back to top */
.back-to-top{
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1000;
  width: 46px; height:46px; border-radius:50%;
  background: var(--jf-gold); color: var(--jf-forest);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 20px rgba(10,46,31,.25);
  opacity:0; visibility:hidden; transition: all .3s ease;
  border:none;
}
.back-to-top.show{ opacity:1; visibility:visible; }

/* ==========================================================================
   Hero visual (image + floating cards)
   ========================================================================== */
.jf-hero .hero-visual{ position: relative; margin-top: 3rem; }
.jf-hero .hero-visual .frame{
  border-radius: 26px; overflow:hidden; aspect-ratio: 4/3;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  border: 6px solid rgba(255,255,255,.08);
}
.jf-hero .hero-visual .frame img{ width:100%; height:100%; object-fit:cover; }
.floating-card{
  position:absolute; background: var(--jf-white); color: var(--jf-ink);
  border-radius: 16px; padding: .95rem 1.2rem; box-shadow: 0 22px 44px rgba(0,0,0,.28);
  display:flex; align-items:center; gap:.8rem; max-width: 230px;
}
.floating-card .fc-icon{
  width:42px; height:42px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--jf-sage-2); color: var(--jf-leaf); font-size:1.2rem;
}
.floating-card .fc-title{ font-weight:700; font-size:.92rem; color: var(--jf-forest); line-height:1.2; }
.floating-card .fc-sub{ font-family: var(--font-mono); font-size:.68rem; color: var(--jf-ink-soft); text-transform:uppercase; letter-spacing:.04em; }
.floating-card.badge-card{ top:-1.6rem; left:-1.6rem; }
.floating-card.rating-card{ bottom:-1.6rem; right:-1.6rem; }
.floating-card .stars{ color: var(--jf-gold); font-size:.85rem; letter-spacing:.1em; }

@media (max-width: 991.98px){
  .floating-card{ max-width: 190px; padding:.75rem 1rem; }
  .floating-card.badge-card{ top:-1rem; left:-.8rem; }
  .floating-card.rating-card{ bottom:-1rem; right:-.8rem; }
}
@media (max-width: 575.98px){
  .floating-card{ position: static; max-width: none; margin: .6rem 0; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
  .jf-hero .hero-visual .frame{ box-shadow: 0 16px 32px rgba(0,0,0,.3); }
}

/* ==========================================================================
   Trust / accreditation strip
   ========================================================================== */
.trust-strip{ background: var(--jf-white); border-bottom: 1px solid #E4EBE4; }
.trust-strip .trust-item{
  display:flex; align-items:center; gap:.7rem; padding: 1.4rem 0;
  font-family: var(--font-mono); font-size:.76rem; letter-spacing:.03em;
  color: var(--jf-ink-soft); text-transform:uppercase;
}
.trust-strip .trust-item i{ color: var(--jf-leaf); font-size:1.3rem; }
.trust-strip .trust-item strong{ display:block; color: var(--jf-forest); font-family: var(--font-body); text-transform:none; font-size:.92rem; font-weight:700; letter-spacing:0; }

/* ==========================================================================
   Partner / donor logo marquee
   ========================================================================== */
.partner-marquee{
  overflow: hidden; position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.partner-track{
  display:flex; align-items:center; gap: 4.5rem; width:max-content;
  animation: jf-marquee 32s linear infinite;
}
.partner-marquee:hover .partner-track{ animation-play-state: paused; }
@keyframes jf-marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.partner-track .wordmark{
  font-family: var(--font-display); font-weight:700; font-size:1.35rem;
  color: var(--jf-ink-soft); opacity:.55; white-space:nowrap; transition: opacity .25s, color .25s;
}
.partner-track .wordmark:hover{ opacity:1; color: var(--jf-forest); }
@media (prefers-reduced-motion: reduce){ .partner-track{ animation: none; flex-wrap:wrap; justify-content:center; } }

/* ==========================================================================
   Radial network diagram ("Where We Work")
   ========================================================================== */
.network-wrap{ position:relative; width:100%; max-width:560px; margin:0 auto; aspect-ratio:1/1; }
.network-wrap svg{ width:100%; height:100%; overflow:visible; }
.network-node-label{
  font-family: var(--font-mono); font-size:.62rem; text-transform:uppercase; letter-spacing:.04em;
  fill: var(--jf-ink-soft);
}
.network-legend{ display:flex; flex-wrap:wrap; gap:.6rem .9rem; margin-top:1.5rem; justify-content:center; }
.network-legend .leg-item{
  font-family: var(--font-mono); font-size:.72rem; color: var(--jf-ink-soft);
  display:flex; align-items:center; gap:.4rem;
}
.network-legend .leg-dot{ width:8px; height:8px; border-radius:50%; background: var(--jf-gold); display:inline-block; }

/* ==========================================================================
   Parallax statement / quote band
   ========================================================================== */
.parallax-band{
  position: relative; min-height: 440px; display:flex; align-items:center;
  background-color: var(--jf-forest-2); /* fallback so the quote stays readable even if the photo fails to load */
  background-size: cover; background-position: center; background-attachment: fixed;
  isolation: isolate;
}
.parallax-band::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(10,46,31,.88) 0%, rgba(20,81,58,.72) 60%, rgba(10,46,31,.85) 100%);
  z-index: -1;
}
.parallax-band .stmt{
  font-family: var(--font-display); color: var(--jf-white);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height:1.35; max-width: 46rem;
}
.parallax-band .stmt .accent{ color: var(--jf-gold); }
.parallax-band .attribution{ font-family: var(--font-mono); font-size:.78rem; color: rgba(255,255,255,.65); text-transform:uppercase; letter-spacing:.06em; margin-top:1.6rem; display:block; }
@media (max-width: 767.98px){ .parallax-band{ background-attachment: scroll; min-height:360px; padding: 3rem 0; } }

/* ==========================================================================
   SDG alignment grid
   ========================================================================== */
.sdg-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.sdg-tile{
  aspect-ratio: 1; border-radius: 14px; color:#fff; text-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.3rem;
  padding: .6rem .4rem; transition: transform .2s ease;
}
.sdg-tile:hover{ transform: translateY(-5px); }
.sdg-tile .sdg-num{ font-family: var(--font-display); font-size:1.5rem; font-weight:700; line-height:1; }
.sdg-tile .sdg-label{ font-family: var(--font-mono); font-size:.6rem; text-transform:uppercase; letter-spacing:.03em; line-height:1.2; }
@media (max-width: 767.98px){ .sdg-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px){ .sdg-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Donut chart (fund allocation) — pure CSS conic-gradient
   ========================================================================== */
.donut{
  width: 210px; height: 210px; border-radius:50%; position:relative; flex-shrink:0;
  background: conic-gradient(
    var(--jf-leaf) 0% 76%,
    var(--jf-gold) 76% 90%,
    var(--jf-forest-2) 90% 100%
  );
}
.donut::before{ content:""; position:absolute; inset:22px; background: var(--jf-white); border-radius:50%; }
.donut .donut-center{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.donut .donut-center .big{ font-family: var(--font-display); font-size:1.9rem; color: var(--jf-forest); font-weight:700; }
.donut .donut-center .small{ font-family: var(--font-mono); font-size:.62rem; text-transform:uppercase; letter-spacing:.05em; color: var(--jf-ink-soft); }
.donut-legend .leg-row{ display:flex; align-items:center; gap:.7rem; padding:.5rem 0; border-bottom:1px dashed #E4EBE4; }
.donut-legend .leg-row:last-child{ border-bottom:none; }
.donut-legend .leg-swatch{ width:14px; height:14px; border-radius:4px; flex-shrink:0; }
.donut-legend .leg-text{ font-size:.9rem; color: var(--jf-ink-soft); }
.donut-legend .leg-pct{ margin-left:auto; font-family: var(--font-mono); font-weight:700; color: var(--jf-forest); }

/* ==========================================================================
   Press / "as featured in" strip
   ========================================================================== */
.press-strip .press-name{
  font-family: var(--font-display); font-weight:600; font-size:1.05rem;
  color: var(--jf-ink-soft); opacity:.6; text-align:center; transition: opacity .25s, color .25s;
}
.press-strip .press-name:hover{ opacity:1; color: var(--jf-forest); }

/* ==========================================================================
   Vertical timeline (About — history)
   ========================================================================== */
.jf-timeline{ position:relative; }
.jf-timeline::before{
  content:""; position:absolute; left:50%; top:0; bottom:0; width:2px;
  background: linear-gradient(180deg, var(--jf-leaf), var(--jf-gold));
  transform: translateX(-50%);
}
.tl-item{ position:relative; width:50%; padding: 0 3rem 3rem; }
.tl-item:nth-child(odd){ left:0; text-align:right; }
.tl-item:nth-child(even){ left:50%; text-align:left; }
.tl-item .tl-dot{
  position:absolute; top:.2rem; width:16px; height:16px; border-radius:50%;
  background: var(--jf-gold); border:3px solid var(--jf-white); box-shadow: 0 0 0 2px var(--jf-leaf);
}
.tl-item:nth-child(odd) .tl-dot{ right:-8px; }
.tl-item:nth-child(even) .tl-dot{ left:-8px; }
.tl-item .tl-year{ font-family: var(--font-mono); color: var(--jf-gold-dark); font-weight:700; font-size:.85rem; letter-spacing:.04em; }
.tl-item h3{ font-size:1.1rem; margin:.3rem 0; }
.tl-item p{ color: var(--jf-ink-soft); font-size:.92rem; margin-bottom:0; }

@media (max-width: 767.98px){
  .jf-timeline::before{ left: 10px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even){
    width:100%; left:0; text-align:left; padding: 0 0 2.4rem 2.4rem;
  }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot{ left:2px; right:auto; }
}

/* carousel dots — brand colour */
.jf-carousel .carousel-indicators [data-bs-target]{
  background-color: var(--jf-leaf); width:9px; height:9px; border-radius:50%; opacity:.35;
}
.jf-carousel .carousel-indicators .active{ opacity:1; background-color: var(--jf-gold); }
.jf-carousel .carousel-control-prev, .jf-carousel .carousel-control-next{ width:5%; }
.jf-carousel .carousel-control-prev-icon, .jf-carousel .carousel-control-next-icon{
  filter: invert(0); background-color: var(--jf-forest); border-radius:50%; padding:.9rem; background-size:1rem;
}

/* stat ring (accreditation badges) */
.badge-row{ display:flex; flex-wrap:wrap; gap:.9rem; }
.accred-badge{
  display:flex; align-items:center; gap:.6rem;
  background: var(--jf-white); border:1px solid #E4EBE4; border-radius: 999px;
  padding:.6rem 1.1rem; font-size:.82rem; font-weight:600; color: var(--jf-forest);
}
.accred-badge i{ color: var(--jf-gold); font-size:1.1rem; }

/* utility */
.text-gold{ color: var(--jf-gold); }
.text-leaf{ color: var(--jf-leaf); }
.bg-sage{ background: var(--jf-sage-2); }



@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior:auto; }
}
