/********** Template CSS **********/
/* | Element              | Color Description | HEX Code  | RGB Code             |
| -------------------- | ----------------- | --------- | -------------------- |
| Red Hand             | Bright Red        | `#D22B2B` | `rgb(210, 43, 43)`   |
| Green Hand           | Dark Leaf Green   | `#3D773D` | `rgb(61, 119, 61)`   |
| Heart (Center Shape) | White             | `#FFFFFF` | `rgb(255, 255, 255)` |
| "CHAFO" Text (Black) | Deep Black        | `#202020` | `rgb(32, 32, 32)`    |
| Slogan Text (Red)    | Deep Red          | `#9E1B1B` | `rgb(158, 27, 27)`   | */



:root {
    --primary: #3D773D;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.project-header {
    background: linear-gradient(rgba(61, 119, 61, 0.8), rgba(61, 119, 61, 0.8)), url('img/project-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.project-timeline {
    position: relative;
    padding-left: 50px;
}

.project-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3D773D;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3D773D;
    border: 4px solid white;
}

.impact-stat {
    border-left: 4px solid #3D773D;
    padding-left: 15px;
}

.project-gallery img {
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.03);
}

@media (max-width: 767.98px) {
    .project-header {
        min-height: 300px;
    }
    
    .project-timeline {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        left: -28px;
    }
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.donation-option {
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}
.donation-option:hover {
    transform: translateY(-5px);
    border-color: #3D773D;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.donation-option.active {
    border-color: #3D773D;
    background-color: rgba(61, 119, 61, 0.05);
}
.impact-card {
    background: #3D773D;
    color: white;
    border-radius: 5px;
    transition: all 0.3s;
}
.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.payment-method {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-method:hover {
    border-color: #3D773D;
}
.payment-method.active {
    border-color: #3D773D;
    background-color: rgba(61, 119, 61, 0.05);
}
.donate-btn {
    background-color: #3D773D;
    color: white;
    transition: all 0.3s;
}
.donate-btn:hover {
    background-color: #2c5a2c;
    transform: translateY(-2px);
}
.custom-amount-input {
    border: 2px solid #3D773D;
    font-weight: bold;
    text-align: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 119, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    color: #3D773D;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}
.gallery-btn:hover {
    background: #D22B2B;
    color: white;
    transform: scale(1.1);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    transform: translateY(100%);
    transition: all 0.3s;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}
.filter-btn.active {
    background-color: #3D773D;
    color: white;
}
.gallery-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #D22B2B;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.project-card {
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: #3D773D;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.project-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #D22B2B;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.project-img {
    position: relative;
    overflow: hidden;
}
.project-img img {
    transition: all 0.3s;
}
.project-card:hover .project-img img {
    transform: scale(1.05);
}
.project-category {
    color: #3D773D;
    font-weight: 600;
}
.impact-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3D773D;
}
.filter-btn.active {
    background-color: #3D773D;
    color: white;
}


.program-card {
            transition: all 0.3s;
            border-left: 4px solid #3D773D;
            height: 100%;
        }
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.program-icon {
    font-size: 2.5rem;
    color: #3D773D;
    margin-bottom: 15px;
}
.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D22B2B;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3D773D;
}
.approach-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}
.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: #3D773D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.tab-content {
    padding: 30px 0;
}
.nav-pills .nav-link.active {
    background-color: #3D773D;
}
.nav-pills .nav-link {
    color: #3D773D;
    font-weight: 500;
}

.resource-card {
    transition: all 0.3s ease;
    border-left: 4px solid #3D773D;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.resource-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #D22B2B;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.filter-btn.active {
    background-color: #3D773D;
    color: white;
}
.file-icon {
    font-size: 2.5rem;
    color: #3D773D;
}
.download-btn {
    background-color: #3D773D;
    color: white;
}
.download-btn:hover {
    background-color: #2c5a2c;
}


.team-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 12px 25px;
    margin: 0 5px;
}
.team-tabs .nav-link.active {
    color: #3D773D;
    background-color: transparent;
    border-bottom: 3px solid #3D773D;
}
.team-item {
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}
.team-item:hover {
    transform: translateY(-5px);
    border-color: #3D773D;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.team-img {
    position: relative;
    overflow: hidden;
}
.team-img img {
    transition: all 0.3s;
}
.team-item:hover .team-img img {
    transform: scale(1.05);
}
.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(61, 119, 61, 0.9);
    transition: all 0.3s;
}
.team-item:hover .team-social {
    bottom: 0;
}
.team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 2px;
    margin: 0 3px;
}
.team-social a:hover {
    background: #ffffff;
    color: #3D773D;
}
.team-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #D22B2B;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.volunteer-batch {
    background-color: #3D773D;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

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

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpeg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}