:root {
    --green: #1f6b45;
    --green-dark: #124b32;
    --green-soft: #eaf5ee;
    --earth: #b8793b;
    --cream: #f8f7f1;
    --text: #24302a;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #e7eee9
}

.navbar-brand img {
    height: 58px;
    width: auto
}

.navbar-brand span {
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.05
}

.site-title-hindi {
    font-family: "Noto Serif Devanagari", serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #174f32;
}

.site-title-english {
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: #287542;
}

.nav-link {
    font-weight: 600;
    color: #24302a !important
}

.nav-link:hover,
.nav-link.active {
    color: var(--green) !important
}

.hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7, 48, 30, .82), rgba(7, 48, 30, .38), rgba(7, 48, 30, .1)),
        url("../images/gallery-09.jpeg") center/cover
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff
}

.hero p {
    font-size: 1.2rem;
    color: #f1f7f3;
    max-width: 720px
}

.btn-success {
    background: var(--green);
    border-color: var(--green)
}

.btn-success:hover {
    background: var(--green-dark);
    border-color: var(--green-dark)
}

.section {
    padding: 80px 0
}

.section-title {
    font-weight: 800;
    color: var(--green-dark)
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 800;
    color: var(--earth)
}

.card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(20, 60, 40, .08);
    height: 100%
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 1.4rem
}

.stat {
    background: var(--green-dark);
    color: #fff;
    border-radius: 18px;
    padding: 28px
}

.stat h3 {
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0
}

.page-hero {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff
}

.page-hero h1 {
    font-weight: 800
}

.project-card .badge {
    background: var(--green-soft);
    color: var(--green-dark)
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    transition: .3s ease;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.16);
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================================
   FULL SCREEN GALLERY MODAL
========================================= */

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.94);

    align-items: center;
    justify-content: center;
}

/* Image container */

.gallery-preview-container {
    width: calc(100% - 160px);
    height: calc(100% - 80px);

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

    position: relative;
}

#galleryPreview {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}


/* Close button */

.gallery-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.15);
    color: #fff;

    font-size: 38px;
    line-height: 40px;

    cursor: pointer;

    z-index: 100001;

    transition: .2s;
}

.gallery-close:hover {
    background: rgba(255,255,255,.3);
}


/* Previous / Next */

.gallery-prev,
.gallery-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 70px;

    border: none;
    border-radius: 8px;

    background: rgba(255,255,255,.15);
    color: #fff;

    font-size: 38px;

    cursor: pointer;

    z-index: 100001;

    transition: .2s;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255,255,255,.3);
}

.gallery-prev {
    left: 25px;
}

.gallery-next {
    right: 25px;
}


/* Counter */

.gallery-counter {
    position: absolute;

    bottom: -35px;
    left: 50%;

    transform: translateX(-50%);

    color: #fff;

    font-size: 14px;

    background: rgba(0,0,0,.55);

    padding: 5px 12px;

    border-radius: 20px;
}


/* Mobile */

@media (max-width: 768px) {

    .gallery-preview-container {
        width: calc(100% - 90px);
        height: calc(100% - 100px);
    }

    .gallery-prev,
    .gallery-next {
        width: 42px;
        height: 55px;

        font-size: 28px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .gallery-close {
        top: 10px;
        right: 12px;

        width: 42px;
        height: 42px;

        font-size: 32px;
    }

}

footer {
    background: #103b29;
    color: #dcece3
}

footer a {
    color: #dcece3;
    text-decoration: none
}

footer a:hover {
    color: #fff
}

.contact-box {
    background: var(--cream);
    border-radius: 20px;
    padding: 30px
}

.table thead {
    background: var(--green-dark);
    color: #fff
}

@media(max-width:991px) {
    .navbar-brand img {
        height: 48px
    }

    .hero {
        min-height: 500px
    }
}

/* =========================================
   FULL WIDTH HOME SLIDER
========================================= */

.home-slider {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.home-slider .carousel {
    width: 100%;
}

.home-slider .carousel-item {
    height: calc(100vh - 115px);
    min-height: 300px;
    max-height: 450px;
    background: #eee;
}

.home-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* Remove Bootstrap caption completely */
.home-slider .carousel-caption {
    display: none !important;
}


/* -----------------------------------------
   PREVIOUS / NEXT BUTTONS
----------------------------------------- */

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
    width: 70px;
    height: 70px;

    top: 50%;
    transform: translateY(-50%);

    opacity: 1;

    z-index: 10;
}

.home-slider .carousel-control-prev {
    left: 15px;
}

.home-slider .carousel-control-next {
    right: 15px;
}


/* Arrow background */

.slider-arrow {
    width: 50px;
    height: 65px;

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

    background: rgba(0, 0, 0, 0.45);

    color: #fff;

    font-size: 28px;

    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: #1f6b45;
    color: #fff;
}


/* -----------------------------------------
   SLIDER INDICATORS
----------------------------------------- */

.home-slider .carousel-indicators {
    bottom: 18px;
    z-index: 10;
}

.home-slider .carousel-indicators button {
    width: 35px;
    height: 5px;

    margin: 0 5px;

    border: 0;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.65);

    opacity: 1;

    transition: all 0.3s ease;
}

.home-slider .carousel-indicators button.active {
    width: 45px;
    background: #fff;
}


/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media (max-width: 768px) {

    .home-slider .carousel-item {
        height: 55vh;
        min-height: 400px;
        max-height: 550px;
    }

    .home-slider .carousel-control-prev,
    .home-slider .carousel-control-next {
        width: 50px;
        height: 55px;
    }

    .home-slider .carousel-control-prev {
        left: 5px;
    }

    .home-slider .carousel-control-next {
        right: 5px;
    }

    .slider-arrow {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .home-slider .carousel-indicators {
        bottom: 10px;
    }

    .home-slider .carousel-indicators button {
        width: 25px;
        height: 4px;
    }

    .home-slider .carousel-indicators button.active {
        width: 35px;
    }
}


/* -----------------------------------------
   SMALL MOBILE
----------------------------------------- */

@media (max-width: 480px) {

    .home-slider .carousel-item {
        height: 45vh;
        min-height: 300px;
    }

    .home-slider .carousel-control-prev,
    .home-slider .carousel-control-next {
        display: none;
    }

}

/* =========================================
   COMPACT DONATION SECTION
========================================= */

.donation-section {
    background: #f4f8f3;
    padding-top: 45px;
    padding-bottom: 45px;
}

.donation-section .row {
    --bs-gutter-y: 25px;
}

.donation-section .section-title {
    margin-bottom: 12px;
}

.donation-section .lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.donation-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.donation-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e3ebe1;
    font-size: 14px;
    font-weight: 600;
    color: #315b3a;
}

.donation-point i {
    font-size: 19px;
    color: #3f7d4a;
}

.donation-card {
    background: #ffffff;
    padding: 22px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.donation-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    background: #eaf4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f7d4a;
    font-size: 20px;
}

.donation-card h4 {
    font-size: 20px;
    margin-top: 10px !important;
    margin-bottom: 5px;
}

.donation-card > p {
    font-size: 13px;
    margin-bottom: 8px;
}

.donation-qr {
    width: 170px;
    height: 170px;
    padding: 7px;
    margin: 12px auto 6px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.donation-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.donation-card .badge {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 5px 10px;
}

.donation-card .small {
    font-size: 11px;
    line-height: 1.4;
    margin-top: 8px !important;
}

@media (max-width: 768px) {
    .donation-section {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .donation-qr {
        width: 160px;
        height: 160px;
    }
}