/********** Template CSS **********/
:root {
    --primary: #639826;
    --secondary: #fff0e6;
    --light: #f8f8f9;
    --dark: #001d23;
}

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

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

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

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

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #ffffff;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.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;
}

/*** Navbar ***/
.fixed-top {
    transition: 0.5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.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: 25px 0;
    color: #ffffff;
    font-weight: 500;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

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

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

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 29, 35, 0.8);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),
        url(../img/gccsaboutpic.png) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #999999;
}

.page-header2 {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(5, 38, 5, 0.775), rgba(2, 42, 19, 0.775));
    background-size: cover;
}

.page-header2 .breadcrumb-item + .breadcrumb-item::before {
    color: #999999;
}

/*** Causes ***/

.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #ffffff;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}

@media (min-width: 1199px) {
    .causes-item {
        height: 150px;
    }
}

/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
}

/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, 0.8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked + label {
    color: var(--primary);
    border-color: var(--primary);
}

/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: 0.5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 120px;
    transition: 0.5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: 0.5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #ffffff;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #ffffff;
    background: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(0.8);
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

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

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
}

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

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

.footer .btn.btn-square {
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

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

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

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

/* ///////////////////////////// */

/* navbar our work dropdown */
.work-dropdown {
    max-height: 11.5rem;
    overflow-y: scroll;
}
.work-dropdown::-webkit-scrollbar {
    width: 1;
    /* background: transparent; */
}

.navbar .navbar-brand img {
    height: 55px;
    width: 100%;
}

@media (max-width: 404px) {
    .navbar .navbar-brand img {
        height: 55px;
        width: 250px;
    }
}

@media (max-width: 370px) {
    .navbar .navbar-brand img {
        height: 50px;
        width: 185px;
    }
}

/* homepage video  */
.vid {
    width: 100%;
    /* height: 100%; */
    /* overflow: hidden; */
    /* aspect-ratio: 6/9; */
    pointer-events: none;
    /* background-image: linear-gradient(180deg, #ffffff00,#ffffff); */
    /* position: relative; */
    /* height: 1100px; */
}
.vid iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    /* max-height: 900px; */
    /* position: absolute; */
    /* z-index: -1; */
    /* top: 0; */
    /* left: 0; */
    /* margin-left: -100%; */
    /* height: 700px; */
    /* margin-top: -90px; */
}

.vid img {
    width: 100%;
    height: 86px;
    margin-top: -90px;
}

.vid .o {
    background: url(../img/overlay-bottom.png) bottom center no-repeat;
    height: 86px;
    margin-top: -80px;
    /* background-size: contain; */
    content: "";
    z-index: 1;
}

.overlay-top::before,
.overlay-bottom::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 85px;
    left: 0;
    z-index: 1;
}

.overlay-top::before {
    top: 0;
    background: url(../img/overlay-top.png) top center no-repeat;
    background-size: contain;
}

.overlay-bottom::after {
    bottom: 0;
    background: url(../img/overlay-bottom.png) bottom center no-repeat;
    background-size: contain;
}

/* About us  */
.values-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.values-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.slide-container {
    width: 100%;
}

.slide-content {
    overflow: hidden;
}

.swiper-nav-btn {
    color: #639826;
    transition: color 0.3s ease;
}

.swiper-nav-btn:hover {
    color: #00811c;
}

/* our work  */
.ourWorkCarousel {
    margin-left: 5%;
    margin-right: 5%;
    overflow: hidden;
}

.ourWorkCarousel img {
    width: 100%;
    height: 680px;
}

.publications li {
    margin-top: 8px;
}

.ourWork-Subheadings {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.pubContent {
    text-align: left;
    padding: 0 5%;
    /* margin-top: 90px; */
}

.pubContent .pubImg {
    max-height: 580px;
}

.pubContent .imgTitle {
    font-size: 13px;
}

@media (max-width: 800px) {
    .ourWorkCarousel img {
        height: 480px;
    }
}

@media (max-width: 600px) {
    .ourWorkCarousel img {
        height: 280px;
    }

    .ourWorkCarousel {
        margin-left: 1%;
        margin-right: 1%;
    }
}

@media (max-width: 321px) {
    .ourWorkCarousel img {
        height: 190px;
    }

    .fNAleximg img {
        width: 100%;
    }
}

/* Our Impact  */
/* .driven-evidence .scroll-part1 {
    height: 700px; 
    overflow: scroll;
} */

.driven-evidence .scroll-part2 {
    height: 700px;
    overflow-y: scroll;
}

.impact-slide1 .slide img {
    max-width: 310px;
}
.impact-slide2 .slide img {
    max-width: 310px;
}

@media (max-width: 767px) {
    .driven-evidence .scroll-part1 {
        display: none;
    }

    .driven-evidence .scroll-part2 {
        flex: 0 0 auto;
        width: 100% !important; 
    }
}

/* // Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 13));
    }
}

/* // Slider Styling */
.impact-slide1 {
    .slider {
        background: transparent;
        /* box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125); */
        height: 200px;
        margin: auto;
        overflow: hidden;
        position: relative;
        width: 100%;
        /* max-width: 960px; */

        &::before,
        &::after {
            content: "";
            height: 200px;
            position: absolute;
            width: 200px;
            z-index: 2;
        }

        &::before {
            left: 0;
            top: 0;
        }

        &::after {
            right: 0;
            top: 0;
            transform: rotateZ(180deg);
        }

        .slide-track {
            display: flex;
            width: calc(280px * 12);
            animation: scroll 70s infinite alternate;
        }

        .slide {
            height: 200px;
            flex: 0 0 250px;
        }
    }
}

.impact-slide2 {
    .slider {
        background: transparent;
        box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
        height: 200px;
        margin: auto;
        overflow: hidden;
        position: relative;
        width: 100%;

        &::before,
        &::after {
            content: "";
            height: 200px;
            position: absolute;
            width: 200px;
            z-index: 2;
        }

        &::before {
            left: 0;
            top: 0;
        }

        &::after {
            right: 0;
            top: 0;
            transform: rotateZ(180deg);
        }

        .slide-track {
            display: flex;
            width: calc(280px * 13);
            animation: scroll 50s infinite alternate;
        }

        .slide {
            height: 200px;
            flex: 0 0 250px;
        }
    }
}

/* Contact Form */
.contact-form-image {
    min-height: 450px;
}

.contact-form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .contact-form-image {
        display: none;
    }
}
