@media (max-width: 992px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%; /* Initially hide the menu off-screen */
        width: 100%;
        height: 100%;
        background-color: #fff; /* Match your navbar's background */
        z-index: 1;
        transition: left 0.3s ease-in-out; /* Smooth sliding effect */
        padding-top: 4rem; /* Space for the brand and toggler */
        text-align: center; /* Center align menu items */
    }

    .navbar-collapse.show {
        left: 0; /* Slide in from the left */
    }

    .navbar {
        text-align: center;
    }

    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 150px;
    }

    .btn-close {
        background-color: transparent;
        border: none;
        font-size: 1.5rem;
    }

    .navbar-toggler {
        z-index: 1051; /* Ensures the toggler stays above the collapsing menu */
    }

    .navbar-nav .nav-item {
        margin-bottom: 1rem;
    }


    .navbar-collapse .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1052; /* Ensure the close button stays above everything */
    }
}

.nav-link.active{
    color: #1B35E0 !important;
}
.btn-pr-outline{
border-radius: 10px;
border: 1px solid #1B35E0;
background: #1B35E014;
color: #1B35E0;
}
#hero{
    background: #F1F2F6;
}
.underline-text {
    display: inline-block;
    position: relative;
}

.underline-svg {
    display: block;
    margin-top: 4px; /* Adjust the distance between the text and the SVG */
    width: 100%; /* Ensures the SVG matches the width of the text */
    height: auto; /* Maintains the aspect ratio */
}
.image-carousel .slick-slide {
    margin: 0 10px; /* Adjust the margin to create space between images */
}

.image-carousel .slick-list {
    margin: 0 -10px; /* Offset the margin to prevent overflow */
}

.image-carousel img {
    width: 100%; /* Make sure the images take up their container width */
    display: block;
}
.about-image {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust to your desired hero height */
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-image h4 {
    position: absolute;
    bottom: 30px; /* Adjust spacing from the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin: 0;
    text-align: left;
    width: 100%; /* Ensures the text aligns properly in the center */
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.services-card {
    border: solid 1px #e8ebfc !important;
    border-radius: 20px;
    padding: 15px;
    transition: all 0.3s;
    height: 220px;
    
  }


  .program-card {
    height: 100%;
    border: none;
}

.program-card .program-img {
    height: 270px; /* Adjust this value as needed for your design */
    object-fit: cover; /* Ensures the image covers the space without distortion */
    width: 100%;
    border-radius: 10px;
}

.program-card .card-body {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    height: 100%; /* Matches the card height */
}

#why-join-us {
    position: relative;
    background-image: url('../img/why-join-us-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 50px 0;
    min-height: 700px;
}

#why-join-us:after {
    content: "";
    position: absolute;
    top: 600px; 
    left: 0;
    width: 100%;
    height: calc(100% - 600px); 
    background-color: #f2f2f2; 
    z-index: 0;
}

#why-join-us .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background: rgba(27, 53, 224, 0.3);

    z-index: 2;
}

.content {
    position: relative;
    z-index: 2;
}

.background-container {
    height: auto; /* Allow content to grow */
}



.section-heading {
    margin-bottom: 15px;
}
  
  .section-heading::after {
    content: "";
    position: absolute;
    display: block;
    width: 90px;
    height: 6px;
    background: white;
  }
.checkbox-list li {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
}

.checkbox-list li i {
   font-size: 18px;
}
.join-us-form .form-control {
    border-radius: 5px;
}
.contact-us-label {
    font-size: 1rem; /* Adjust size as needed */
    color: #333; /* Adjust color as needed */
    margin-bottom: 0.5rem; /* Space between label and input */
}
.custom-gutter {
    gap: 200px; /* Adjust the value as needed */
}
@media (max-width: 1366px) {
    .custom-gutter {
        gap: 20px; /* Smaller gap for smaller screens */
    }
    #why-join-us .overlay {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .custom-gutter {
        gap: 20px; /* Smaller gap for smaller screens */
    }
    #why-join-us .overlay {
        height: 600px;
    }
}
.star-img{
    width: 100px;
    height: auto;
}

.impact-image {
    position: relative;
    width: 100%;
    height: 525px; /* Adjust to your desired hero height */
    overflow: hidden;
    border-radius: 10px;
}

.impact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.impact-card {
    border: none !important;
    height: 220px;
}

#footer {
    position: relative;
    background-image: url('../img/why-join-us-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 50px 0;
}



#footer .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #090C3CC7;

    z-index: 1;
}

#footer .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #222636;
    color: #eee;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
  }
  
  #footer .footer-top .social-links a:hover {
    background: #1B35E0;
    color: #fff;
  }

  #footer .logo {
    text-decoration: none;
    white-space: nowrap;
}
.motto-card {
    border: solid 1px #e8ebfc !important;
    border-radius: 20px;
    padding: 15px;
    transition: all 0.3s;
    height: 210px;
    
  }
  .bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
  }
  .card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
}
.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 437px;
}
.event-card img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 10px; 
}

@media (max-width: 768px) {
    .event-card img {
        height: auto; 
    }
}


.underline-text-2 {
    display: inline-block;
    position: relative; 
    text-decoration: none; 
}

.underline-svg-2 {
    position: absolute;
    left: 0;
    bottom: -5px; 
    width: 100%; 
    height: auto; 
}
.section-heading-2 {
    margin-bottom: 15px;
}
  
  .section-heading-2::after {
    content: "";
    position: absolute;
    display: block;
    width: 90px;
    height: 6px;
    background: #1E1E1E;
  }
  .image-container {
    position: relative;
    width: 100%; /* Full width of the column */
    max-width: 600px; /* Optional: Limit the width */
    height: 500px; /* Fixed height for the container */
    margin: 0 auto; /* Center the container horizontally */
    overflow: hidden; /* Prevent images from spilling out */
}

.image {
    position: absolute;
    width: 55%; /* Adjust image size */
    height: auto;
    border-radius: 10px; /* Optional styling */
    transition: all 0.3s ease; /* Optional hover effect */
}

.image-top-left {
    top: 0;
    left: 0;
    z-index: 2; /* Ensure this image is above the other */
}

.image-bottom-right {
    bottom: 0;
    right: 0;
    z-index: 1; /* Ensure this image is below the other */
    transform: translate(-15%, -15%); /* Adjust for overlap */
}
#donate .row {
    display: flex;
    align-items: stretch; /* Ensure equal height for columns */
}

.donate-img {
    object-fit: cover; /* Ensure the image scales proportionally */
    height: auto; /* Allow natural height */
    max-height: 400px; /* Prevent it from exceeding the parent's height */
    width: 100%; /* Maintain full width of the column */
    border-radius: 10px; /* Keep rounded corners */
}

@media (max-width: 768px) {
    .image-container {
        display: flex;
        flex-direction: column; /* Stack images vertically */
        align-items: center;
        height: auto; /* Allow height to adjust */
    }

    .image {
        position: static; /* Reset absolute positioning */
        width: 100%; /* Resize for smaller screens */
        max-width: none; /* Remove width limit */
        margin-bottom: 10px; /* Add spacing between stacked images */
    }

    .image-bottom-right {
        bottom: 0;
        right: 0;
        z-index: 1; /* Ensure this image is below the other */
        transform:none
    }
}
