/*Index page card*/
.custom-card {
    position: relative;
    background-color: black; /* Black background */
    border: none; /* Remove borders */
    color: white; /* Default text color */
    height: 75vh; 
}

.custom-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.7; /* Darkens the image slightly for text readability */
}

.custom-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to the left */
    text-align: left;
    padding: 20px 40px; /* Increase padding on the left */
    background: rgba(0, 0, 0, 0.4); /* Add overlay for text readability */
}

.custom-card .card-title {
    font-size: 2rem;
    font-weight: bold;
}

.custom-card .card-text {
    font-size: 1.2rem;
}

@media (max-width: 768px) { /* Tablet and smaller devices */
    .custom-card {
        height: 60vh; /* Further reduce height for smaller screens */
    }
    .custom-card .card-title {
        font-size: 1.5rem; /* Smaller font size for smaller screens */
    }
    .custom-card .card-text {
        font-size: 1rem; /* Adjust paragraph font size */
    }
    .custom-card .card-img-overlay {
        padding: 10px 20px; /* Reduce padding for smaller screens */
    }
}

@media (max-width: 576px) { /* Mobile devices */
    .custom-card {
        height: 50vh; /* Further reduce height for mobile devices */
    }
    .custom-card .card-title {
        font-size: 1.2rem; /* Smaller font size for mobile */
    }
    .custom-card .card-text {
        font-size: 0.9rem;
    }
    .custom-card .card-img-overlay {
        padding: 5px 15px; /* Further reduce padding */
    }
}


/*Mission*/
.mission-card {
    background-color: white; /* Black background */
    color: black; /* White text */
    border: none; /* Remove borders */
}

.mission-card img {
    object-fit: cover;
    width: 100%;
    height: 100%; /* Ensure the image fills its column */
    max-height: 300px; /* Limit height for consistent layout */
}

.mission-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) { /* For tablets and smaller devices */
    .missiion-card {
        flex-direction: column; /* Stack image and text vertically */
    }
    .mission-card img {
        max-height: none; /* Allow full image height on smaller screens */
    }
}

/*partner slider*/
.partners-slider {
    display: flex;
    overflow: hidden; /* Hide overflow for smooth sliding */
    gap: 15px; /* Space between images */
    padding: 20px 0;
}

.partsect{
    background-color: greenyellow;
    font-weight: bold;
    font-size: medium;
}
.partners-slider img {
    max-height: 100px; /* Adjust the image size */
    object-fit: contain;
    cursor: pointer;
    flex-shrink: 0; /* Prevent images from shrinking */
    transition: transform 0.3s ease-in-out; /* Smooth transitions */
}

.partners-slider img:hover {
    opacity: 0.8; /* Hover effect */
    transition: opacity 0.3s;
}

/* For smaller screens, adjust image size */
@media (max-width: 768px) {
    .partners-slider img {
        max-height: 80px;
    }
}

 /* Scroll to Top Button */
 #scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: yellowgreen;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #9acd32; /* Darker shade of yellowgreen */
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn i {
    font-size: 20px;
}