/********** Template CSS **********/
:root {
    --primary: #050505;
    --secondary: #CCCCCC;
    --light: #F8F8F8;
    --dark: #010101;
}

.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;
}



/*** About Us Page Read More Button Extenstion ***/

#moreText {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 0;
    opacity: 0;
}
#moreText.show {
    opacity: 1;
    max-height: 1000px;
}





/** Causes Box Text **/

.causes-box {
    position: relative;
    cursor: pointer;
}

.causes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.overlay-text {
    background: rgba(0,0,0,0.3);
    color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    display: none;
}



/*** Button ***/
.btn {
    font-weight: 500;
    transition: .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: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .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(--secondary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(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: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .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, 0, 0, .7);
    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, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.webp) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #FFFFFF;
}


/*** 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, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(13, 13, 13, .7);
}

.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: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #F2F2F2;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #F2F2F2;
    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(.8);
    transition: .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: .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: .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: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}



/*** Gallery ***/

/* Gallery Grid Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.85);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.gallery-item:hover::after {
    opacity: 1;
}




/*** Terms & Conditions Page ***/

body.terms-body {
    background-color: #010101; /* Matte black background */
    color: #FFFFFF; /* White text */
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

.terms-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.terms-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.terms-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.terms-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 15px;
}

.terms-block {
    background: #050505;
    border-left: 5px solid #666666;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.terms-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    border-left-color: #fff;
}

.terms-block h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    position: relative;
}

.terms-block h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #666666;
    display: block;
    margin-top: 5px;
    border-radius: 2px;
}

.terms-block p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.terms-block a {
    color: #666666;
    text-decoration: underline;
}

.terms-block a:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 2rem;
    }
    .terms-block {
        padding: 20px;
    }
}






/* About Page */
#about .border-start {
    border-color: var(--primary) !important;
}

#about p {
    color: #555;
    line-height: 1.7;
}

#about h1, #about h5 {
    font-weight: 600;
}

#about .btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

#about .bg-opacity-10 {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

#about .text-primary {
    color: var(--primary) !important;
}





/* ------------------------
   Impact Timeline Section
------------------------- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    position: relative;
    border-left: 4px solid var(--primary);
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 8px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 0;
    }
    .timeline-item.right {
        left: 0;
    }
}


.counter {
    font-size: 2.5rem;
    transition: all 0.4s ease-in-out;
}

.counter:hover {
    color: var(--dark);
    transform: scale(1.05);
}





/* Newsletter Form */
.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 120px; /* space for button */
    background-color: transparent;
    border: 1px solid #6c757d; /* subtle border */
    color: #fff;
    border-radius: 4px;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form button {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    padding: 10px 20px;
}




//*** Thank you Page ***//

#thankYouMessage {
    display: none;
    color: #fff;
    margin-top: 130px;
    opacity: 0;
    transition: opacity 1s;
}




//** Causes Page Read More ***//

.causes-box:hover .causes-overlay {
    opacity: 1;
}

.readMoreBtn {
    border: 2px solid #fff;
    color: #fff;
    background-color: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.readMoreBtn:hover {
    background-color: #fff;
    color: #010101;
}

.readMoreBtn .btn-sm-square {
    transition: transform 0.3s ease;
}

.readMoreBtn:hover .btn-sm-square {
    transform: translateX(5px);
}

.overlay-text p {
    margin: 0;
}






/* ==== Team Carousel Styles for Home Page ==== */
.team-carousel .team-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.team-carousel .team-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-carousel .team-text h5 {
    font-weight: 600;
}

.team-carousel .team-social .btn {
    background: var(--primary);
    color: #fff;
    transition: all 0.3s ease;
}

.team-carousel .team-social .btn:hover {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Owl Carousel Navigation */
.team-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.team-carousel .owl-nav button.owl-prev {
    left: -50px;
}
.team-carousel .owl-nav button.owl-next {
    right: -50px;
}
.team-carousel .owl-nav button:hover {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.team-carousel .team-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-carousel .team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-carousel .owl-nav {
    text-align: center;
    margin-top: 20px;
}

.team-carousel .owl-nav button {
    background: #050505;
    color: #fff;
    border: none;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 50%;
    transition: 0.3s;
}

.team-carousel .owl-nav button:hover {
    background: #ccc;
    color: #050505;
}


/* 3D Team Carousel Styling */
.team-carousel {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.team-carousel .team-item {
    transform: scale(0.85) rotateY(15deg);
    opacity: 0.6;
    transition: all 0.6s ease-in-out;
    filter: blur(1px);
}

.team-carousel .owl-item.center .team-item,
.team-carousel .team-item.active-center {
    transform: scale(1.05) rotateY(0deg);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

/* Shadow hover */
.team-carousel .team-item:hover {
    transform: scale(1.07) rotateY(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Nav buttons */
.team-carousel .owl-nav {
    text-align: center;
    margin-top: 30px;
}

.team-carousel .owl-nav button {
    background: #050505;
    color: #fff;
    border: none;
    margin: 0 8px;
    padding: 10px 16px;
    border-radius: 50%;
    transition: 0.3s;
}

.team-carousel .owl-nav button:hover {
    background: #ccc;
    color: #050505;
}

/* Optional smooth fade-in when visible */
.team-carousel .team-item img {
    border-radius: 10px;
    transition: transform 0.6s ease, opacity 0.4s ease;
}






/* Preloader overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark); /* Matte black */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    z-index: 99999;
    flex-direction: column; /* stack items vertically if needed */
}

/* Logo animation with glow */
.preloader-logo {
    width: 200px;
    height: auto;
    animation: logo-bounce 1.5s infinite ease-in-out, logo-glow 2s infinite alternate;
}

/* Logo bounce effect */
@keyframes logo-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Glow effect */
@keyframes logo-glow {
    0% {
        filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px var(--primary));
    }
    50% {
        filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 30px var(--primary));
    }
    100% {
        filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px var(--primary));
    }
}

/* Hide preloader */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}






/* Hidden modal for volunteer registration form */
.form-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.form-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease-in-out;
}

.form-modal-content iframe {
    width: 100%;
    height: 600px;
    border-radius: 10px;
}

/* Close button */
.form-close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #050505;
    transition: color 0.3s ease;
}

.form-close:hover {
    color: var(--primary);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}





/* In The Media Section */
.hover-shadow {
  transition: all 0.3s ease;
}
.hover-shadow:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Footer "Featured In" Logos */
.hover-opacity {
  transition: opacity 0.3s ease;
}
.hover-opacity:hover {
  opacity: 1;
}
.opacity-75 {
  opacity: 0.75;
}



/* ================================
   Reports Page Styles
=================================== */
.reports-section {
    background-color: #f9f9f9;
}

.report-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.report-card img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.report-card:hover img {
    filter: grayscale(0%);
}





/*** 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: .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, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: var(--secondary);

}

