:root {
    --bs-primary: #00d492;
    --bs-primary-rgb: 0, 212, 146;

    --bs-secondary: #005a3d;
    --bs-secondary-rgb: rgb(0, 90, 61);

    --bs-middle: #00d49146;
    --nav-color: #005a3d;
}


.btn-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
    background-color: transparent !important;
    backdrop-filter: blur(8px);
    border: 2px #fff solid;
}

.btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-secondary);
    --bs-btn-active-border-color: var(--bs-secondary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-secondary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-secondary);
    --bs-gradient: none;
}

#main-nav {
    background-color: var(--nav-color);
}

.top-header {
    background-color: var(--bs-secondary);
    font-size: 16px;
    color: var(--bs-primary);
}

.top-header a {
    text-decoration: none;
}

.top-header .social-icons {
    font-size: 18px;
}

.top-header .social-icons a i {
    color: var(--bs-primary);
}

.navbar .nav-link {
    font-weight: 500;
    margin-left: 5px;
    color: var(--bs-primary);
}

.navbar .nav-link:hover {
    color: var(--bs-light);
}

.navbar .nav-item .nav-link.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border-radius: 50rem;
    padding-left: calc(1.5rem - 10px);
    padding-right: calc(1.5rem - 10px);

}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: var(--bs-primary);
}

.dropdown-menu {
    --bs-dropdown-color: var(--bs-light);
    --bs-dropdown-bg: var(--nav-color);
    --bs-dropdown-link-color: var(--bs-primary);
    --bs-dropdown-link-hover-color: var(--bs-light);
    --bs-dropdown-link-hover-bg: var(--bs-primary);
    --bs-dropdown-link-active-color: var(--bs-light);
    --bs-dropdown-link-active-bg: var(--bs-primary);
}


/* Button animation */
.btn-donate {
    animation: pulseDonate 2s infinite;
    padding-left: 5px;
    padding-right: 5px;
}

/* Pulse Animation */
@keyframes pulseDonate {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.6);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

/* Icon Bounce */
.btn-donate i {
    animation: singleBeat 2s infinite ease-in-out;

    background-color: var(--bs-light);
    color: var(--bs-primary);

    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

/* One Beat Only */
@keyframes singleBeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.35);
    }

    /* beat */
    30% {
        transform: scale(1);
    }

    /* back to normal */
    100% {
        transform: scale(1);
    }

    /* rest period */
}


.offcanvas {
    border-radius: 1rem 0 0 1rem;
    width: 80% !important;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-contact {
    margin-top: auto !important;
}

.offcanvas .navbar-nav .nav-item .nav-link {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.offcanvas .navbar-nav .nav-item .nav-link.active {
    background-color: var(--bs-middle);
    color: var(--bs-secondary);
    border-radius: 10rem 50rem 50rem 10rem;
    font-weight: bold;
}

.hero-section {
    position: relative;
    height: 78vh;
    min-height: 550px;
}

.hero-section .carousel-item {
    height: 78vh;
    min-height: 550px;
    position: relative;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(0, 90, 61, .85),
            rgba(0, 90, 61, .45),
            rgba(0, 90, 61, .10));
}

.hero-section .carousel-caption {
    z-index: 2;
    left: 8%;
    right: 8%;
    top: 0;
    bottom: 0;
    align-items: flex-start !important;
    text-align: left !important;
}

.hero-section .carousel-caption h1 {
    max-width: 850px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-section .carousel-caption p {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.7;
}

.hero-section .carousel-indicators {
    z-index: 5;
    justify-content: flex-start;
    left: 8%;
    right: auto;
    bottom: 35px;
    margin: 0;
}

.hero-section .carousel-indicators button {
    width: 35px;
    height: 4px;
    border: 0;
    margin-right: 7px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 23px;
    border-radius: 50px;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: .3s ease;
    font-size: 24px;
}

.hero-button:hover {
    background: #fff;
    color: var(--bs-secondary);
    transform: translateY(-2px);
}


/* ================= COMMON ================= */

.section-label {
    display: inline-block;
    color: var(--bs-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.section-title {
    color: var(--bs-secondary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto;
}

.section-heading p {
    color: var(--bs-secondary);
    opacity: .65;
    line-height: 1.8;
}


/* ================= ABOUT ================= */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-wrapper {
    display: block;
}

.about-content-column {
    max-width: 100%;
}

.about-image-wrapper {
    position: relative;
    float: left;
    width: 45%;
    max-width: 500px;
    padding: 0 35px 35px 0;
    margin: 0 45px 25px 0;
}

.about-image {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 25px;
}

.about-image-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bs-secondary);
    color: #fff;
    padding: 25px 30px;
    border-radius: 18px;
    min-width: 170px;
    box-shadow: 0 15px 40px rgba(0, 90, 61, .18);
}

.about-image-badge span,
.about-image-badge strong {
    display: block;
}

.about-image-badge span {
    color: var(--bs-primary);
    font-size: 14px;
}

.about-image-badge strong {
    font-size: 27px;
}

.section-divider {
    width: 60px;
    height: 4px;
    border-radius: 5px;
    background: var(--bs-primary);
    margin: 25px 0;
}

.about-description {
    color: var(--bs-secondary);
    opacity: .75;
    font-size: 17px;
    line-height: 1.9;
}

.about-description p {
    margin-bottom: 18px;
}

.about-description ul,
.about-description ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.about-description h1,
.about-description h2,
.about-description h3,
.about-description h4,
.about-description h5,
.about-description h6 {
    color: var(--bs-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
}

.about-description strong {
    font-weight: 700;
}

.about-extra {
    color: var(--bs-secondary);
    opacity: .6;
    line-height: 1.8;
}

.outline-button,
.main-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: .3s ease;
}

.outline-button {
    border: 1px solid var(--bs-primary);
    color: var(--bs-secondary);
    margin-top: 15px;
}

.outline-button:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    transform: translateY(-2px);
}

/* Clear floating image after content */
.about-content-column::after {
    content: "";
    display: block;
    clear: both;
}

/* Mobile */
@media (max-width: 768px) {

    .about-section {
        padding: 60px 0;
    }

    .about-image-wrapper {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 30px 0;
        padding: 0 20px 20px 0;
    }

    .about-image {
        height: 350px;
    }

    .about-image-badge {
        padding: 18px 22px;
        min-width: 140px;
    }

    .about-image-badge strong {
        font-size: 22px;
    }

    .about-description {
        font-size: 16px;
    }
}


/* ================= IMPACT ================= */

.impact-section {
    padding: 90px 0;
    background: var(--bs-middle);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.impact-card {
    background: #fff;
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 90, 61, .10);
    transition: .3s ease;
}

.impact-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 90, 61, .12);
}

.impact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-middle);
    color: var(--bs-secondary);
    border-radius: 18px;
    font-size: 23px;
}

.impact-card h3 {
    color: var(--bs-secondary);
    font-size: 36px;
    font-weight: 800;
    margin: 0;
}

.impact-card p {
    color: var(--bs-secondary);
    opacity: .65;
    margin: 8px 0 0;
}


/* ================= PROJECTS ================= */

.projects-section {
    padding: 50px 0 100px 0;
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.project-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 90, 61, .12);
    border-radius: 20px;
    transition: .35s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 50px rgba(0, 90, 61, .12);
}

.project-image {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent,
            rgba(0, 90, 61, .35));
}

.project-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    font-size: 13px;
    font-weight: 800;
}

.project-content {
    padding: 23px;
}

.project-content h3 {
    color: var(--bs-secondary);
    font-size: 20px;
    font-weight: 750;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--bs-secondary);
    opacity: .65;
    line-height: 1.7;
    min-height: 52px;
    margin-bottom: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bs-secondary);
    text-decoration: none;
    font-weight: 700;
}

.project-link:hover {
    color: var(--bs-primary);
}

.section-button-wrapper {
    text-align: center;
    margin-top: 45px;
}

.main-button {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border: 0;
}

.main-button:hover {
    background: var(--bs-secondary);
    color: #fff;
    transform: translateY(-2px);
}


/* ================= GALLERY ================= */
.gallery-section {
    padding: 100px 0;
    background: var(--bs-middle);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 260px;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    background: linear-gradient(transparent,
            rgba(0, 90, 61, .80));
    transition: .3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.gallery-overlay i {
    color: var(--bs-primary);
}

#galleryLightbox .modal-dialog {
    max-width: 1100px;
}

#galleryLightbox .modal-content {
    background: transparent;
}

#galleryLightboxImage {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    margin: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 90, 61, .35);
}

/* ================= CONTACT ================= */

.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.contact-information h2 {
    color: var(--bs-secondary);
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
}

.contact-information h2 span {
    color: var(--bs-primary);
}

.contact-information>p {
    color: var(--bs-secondary);
    opacity: .65;
    line-height: 1.8;
    margin: 20px 0 35px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-middle);
    color: var(--bs-secondary);
    border-radius: 14px;
}

.contact-item small {
    color: var(--bs-secondary);
    opacity: .55;
    display: block;
}

.contact-item p {
    color: var(--bs-secondary);
    font-weight: 600;
    margin: 0;
}

.contact-form-wrapper {
    padding: 40px;
    background: var(--bs-middle);
    border-radius: 25px;
}

.contact-form-wrapper h3 {
    color: var(--bs-secondary);
    font-size: 28px;
    font-weight: 750;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--bs-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(0, 90, 61, .15);
    background: #fff;
    border-radius: 12px;
    padding: 13px 15px;
    outline: none;
    color: var(--bs-secondary);
    transition: .2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 146, .12);
}


/* ================= PARTNERS ================= */

.partners-section {
    padding: 80px 0;
    background: var(--bs-middle);
}

.partners-wrapper {
    margin-top: 40px;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    padding: 25px 0;
}

.partners-track {
    display: flex;
    width: max-content;
    align-items: center;
}

.partner-item {
    width: 190px;
    padding: 10px 25px;
    text-align: center;
    border-right: 1px solid rgba(0, 90, 61, .10);
}

.partner-item img {
    width: 85px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 7px;
}

.partner-item span {
    display: block;
    color: var(--bs-secondary);
    opacity: .65;
    font-size: 13px;
}


/* ================= FINAL ================= */

.final-section {
    padding: 70px 0;
    background: #fff;
}

.final-box {
    padding: 55px 60px;
    border-radius: 28px;
    background: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.final-box .section-label {
    color: var(--bs-primary);
}

.final-box h2 {
    max-width: 700px;
    color: #fff;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
}

.final-box h2 span {
    color: var(--bs-primary);
}

.final-box p {
    color: rgba(255, 255, 255, .72);
    margin: 0;
}

.final-icon {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-middle);
    color: var(--bs-primary);
    font-size: 28px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 991px) {

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-content-column {
        max-width: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-section .carousel-item {
        min-height: 600px;
    }
}


@media (max-width: 767px) {

    .hero-section .carousel-item {
        height: 600px;
        min-height: 600px;
    }

    .hero-section .carousel-caption {
        left: 7%;
        right: 7%;
    }

    .hero-section .carousel-caption h1 {
        font-size: 42px;
    }

    .hero-section .carousel-caption p {
        font-size: 16px;
    }

    .about-section,
    .projects-section,
    .gallery-section,
    .contact-section {
        padding: 70px 0;
    }

    .about-image {
        height: 350px;
    }

    .projects-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 170px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .final-box {
        padding: 35px 25px;
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:first-child {
        grid-column: auto;
    }
}

/* Footer section Start */
.top-footer {
    position: relative;
    background-color: var(--bs-middle);
}

.top-footer::after {
    content: '';
    height: 50px;
    width: 80%;
    position: absolute;
    bottom: -27px;
    left: 50%;
    transform: translate(-50%);
    backdrop-filter: blur(15px);
    border-radius: 50rem;
    border-bottom: 2px dashed var(--bs-light);
    /* border-top: 2px solid var(--bs-secondary); */
}

.footer-section {
    background: var(--bs-secondary);
    color: var(--bs-light);
    padding: 80px 0 40px;
    font-size: 15px;
}

.footer-logo h4 {
    color: var(--bs-light);
    font-weight: 700;
}

.logo-icon {
    font-size: 32px;
    color: var(--bs-primary);
}

.footer-text {
    line-height: 1.8;
    color: var(--bs-light);
}


.footer-title {
    color: var(--bs-light);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
    display: block;
    margin-top: 8px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--bs-light);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--bs-primary);
    padding-left: 6px;
}

/* CONTACT ICON */
.footer-contact i {
    color: var(--bs-primary);
    margin-right: 8px;
}

/* SOCIAL */
.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bs-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--bs-light);
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    transform: translateY(-5px);
}

/* BADGE */
.reg-badge {
    background: var(--bs-primary);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--bs-light);
}

.footer-bottom {
    border-top: 1px solid var(--bs-middle);
    font-size: 14px;
}

.highlight a {
    color: var(--bs-primary);
    font-weight: 600;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 80px;
    height: 60px;
    background: var(--bs-primary);
    color: var(--bs-light);
    border-radius: 0 50rem 50rem 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 22px;

    font-size: 28px;
    box-shadow: 0 8px 25px var(--bs-secondary);
    z-index: 999;

    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Glow Pulse Ring */
.whatsapp-float::before {
    content: "";
    position: absolute;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-secondary);
    animation: pulse 2s infinite;
    z-index: -1;
}

/* Expand on Hover */
.whatsapp-float:hover {
    width: 190px;
    box-shadow: 0 10px 30px var(--bs-secondary);
}

/* Add Text */
.whatsapp-float span {
    white-space: nowrap;
    margin-right: 15px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: 0.4s ease;
}

.whatsapp-float:hover span {
    opacity: 1;
}

/* Icon Bounce */
.whatsapp-float i {
    transition: 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.15);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}


/* BACK TO TOP */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    /* Above WhatsApp */
    width: 55px;
    height: 55px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    z-index: 999;
}

.back-to-top::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    z-index: -1;
}


.arrow-wrapper {
    font-size: 22px;
    color: var(--bs-primary);
    transition: 0.3s;
}


.back-to-top:hover {
    transform: translateY(-6px);
}

.back-to-top:hover .arrow-wrapper {
    color: #ffffff;
}


.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Footer section End */


/* About Page start */
.who-image {
    position: relative;
    border-radius: 20px;
}

/* Desktop Only */
@media (min-width: 992px) {

    .who-image {
        perspective: 1000px;
    }

    .who-image img {
        transition: transform 0.6s ease, filter 0.4s ease;
        transform-style: preserve-3d;
    }

    .who-image:hover img {
        transform: scale(1.08) rotateY(10deg);
        filter: brightness(0.9);
    }
}

/* Mobile & Tablet */
@media (max-width: 991px) {

    .who-image {
        overflow: hidden;
    }

    .who-image img {
        transition: transform 0.4s ease;
        transform: scale(1);
        /* normal by default */
    }

    .who-image:active img {
        transform: scale(1.1);
        /* scale when tapped */
    }
}

.hover-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}

/* About Page end */

/* Affiliation Page start */
.affiliation-card img {
    height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.affiliation-card:hover img {
    transform: scale(1.05);
}

.affiliation-card {
    transition: 0.3s ease;
}

.affiliation-card:hover {
    transform: translateY(-5px);
}


/* Lightbox effect using simple modal */
.affiliation-card .zoom-link {
    display: block;
}

.custom-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    color: #fff;
    background: var(--bs-primary);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 1055;
    line-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-close:hover {
    background: var(--bs-secondary);
}


/* Affiliation Page end */

/* Projects page start */


.projects .project-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.projects .project-card {
    transition: 0.3s ease;
}

.projects .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--bs-middle);
    background-color: var(--bs-middle);
}

.projects .project-card:hover .project-img {
    transform: scale(1.05);
}

.projects .project-card .project-content {
    padding: 20px;
}

.projects .status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
}

.projects .project-tabs .nav-link {
    background: var(--bs-middle);
    margin: 0 6px;
    color: var(--bs-secondary);
    font-weight: 500;
}

.projects .project-tabs .nav-link.active {
    background: var(--bs-secondary);
    color: var(--bs-light);
}

/* Projects page end */

/* Gallery page start */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: 0.4s;
    aspect-ratio: 1 / 1;
}

.gallery-card img {
    transition: 0.4s;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    opacity: 0;
    transition: 0.4s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tabs .nav-link {
    background: var(--bs-middle);
    margin: 0 6px;
    color: var(--bs-secondary);
    font-weight: 500;
}

.gallery-tabs .nav-link.active {
    background: var(--bs-secondary);
    color: var(--bs-light);
}

/* Gallery page end */

/* Contact us start */

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.info-content h6 {
    font-weight: 600;
    margin-bottom: 6px;
}

.info-content p {
    margin: 0;
    color: #555;
}

.info-content a {
    text-decoration: none;
    transition: 0.3s;
}

.info-content a:hover {
    color: #000;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

.contact-card i {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-card h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Form Card */
.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-control {
    border-radius: 12px;
    padding: 12px 15px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

/* Map */
.map-wrapper iframe {
    display: block;
    height: 400px;
    width: 100%;
}

/* Contact us end */

/* Project details page start */
.project-details-section {
    background: #f8f9fa;
}

.project-top h2 {
    font-size: 28px;
}

.project-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.gallery-item {
    height: 220px;
    /* Same height for all */
    overflow: hidden;
    border-radius: 14px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop properly */
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


.project-sidebar {
    position: sticky;
    top: 100px;
}

.donate-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.donate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.09);
}

.donate-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 200, 150, 0.12);
    color: #00c896;
    font-size: 22px;
}

.donate-card h5 {
    color: #222;
}

.donate-card .btn-primary {
    background: #00c896;
    border-color: #00c896;
}

.donate-card .btn-primary:hover {
    background: #00785a;
    border-color: #00785a;
}

.amount-block {
    display: flex;
    flex-direction: column;
}

.raised {
    font-size: 24px;
    font-weight: 700;
    color: var(--bs-primary);
}

.qr-wrapper img {
    width: 200px;
    border-radius: 12px;
}

.document-file {
    position: relative;
    height: 220px;
    background: #f8f9fa;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    overflow: hidden;
}

.document-file span {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.document-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.document-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 12px 14px;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.616),
        rgba(0, 0, 0, 0)
    );

    z-index: 1;
}

.document-title-overlay h6 {
    max-width: 100%;
    padding-right: 5px;
}


.project-image-trigger {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project-image-trigger:hover {
    transform: translateY(-3px);
}


/* Full Screen Viewer */

.project-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);
}

.project-image-viewer.active {
    display: flex;
}

.project-viewer-content {
    width: 100%;
    height: 100%;
    padding: 70px 100px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.project-viewer-content img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 6px;

    user-select: none;
}


/* Close */

.project-viewer-close {
    position: absolute;
    top: 25px;
    right: 25px;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: #fff;

    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 2;
}

.project-viewer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* Previous / Next */

.project-viewer-prev,
.project-viewer-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: #fff;

    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 2;
}

.project-viewer-prev {
    left: 25px;
}

.project-viewer-next {
    right: 25px;
}

.project-viewer-prev:hover,
.project-viewer-next:hover {
    background: rgba(255, 255, 255, 0.25);
}


@media (max-width: 768px) {

    .project-viewer-content {
        padding: 70px 55px;
    }

    .project-viewer-prev,
    .project-viewer-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .project-viewer-prev {
        left: 10px;
    }

    .project-viewer-next {
        right: 10px;
    }

    .project-viewer-close {
        top: 15px;
        left: 15px;

        width: 42px;
        height: 42px;
    }
}

/* Project details page end */

.office-address {
    white-space: pre-line;
}