

.slider-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.image-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ... existing CSS ... */

@media (max-width: 768px) {
    .slider-container {
        flex-direction: column; /* Stack content vertically on smaller screens */
        height: auto; /* Allow height to adjust */
    }

    .text-content,
    .image-slider {
        flex: none; /* Remove flex sizing */
        width: 100%; /* Take full width */
        height: 50vh; /* Give each half the viewport height */
    }

    .text-content {
        padding: 15px; /* Adjust padding for smaller screens */
        justify-content: flex-start; /* Align content to the top */
    }

    .text-content img {
        width: 150px; /* Adjust logo size */
        height: 150px;
        margin-bottom: 10px;
    }

    .text-content h1 {
        font-size: 1.5em; /* Smaller font size for main title */
        margin-bottom: 15px;
    }

    .text-content h2 {
        font-size: 1.5em; /* Smaller font for counter numbers */
    }

    .text-content p {
        font-size: 0.8em; /* Smaller font for paragraphs */
    }

    .text-content .row {
        flex-wrap: wrap; /* Allow columns to wrap */
        justify-content: center; /* Center items */
    }

    .text-content .col-sm-4 {
        width: 100%; /* Make each stat take full width */
        margin-bottom: 15px; /* Add space between them */
    }

    .image-overlay-text h1 {
        font-size: 1.5em; /* Smaller font for image overlay text */
        padding: 0 10px; /* Add some padding */
    }
}

@media (max-width: 480px) {
    .text-content {
        height: auto; /* Allow height to be content-driven on very small screens */
    }

    .image-slider {
        height: 60vh; /* Adjust image slider height for very small screens */
    }
}
