/* Image Slider Container */
.image-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Scrollable Slider */
.slider-container {
    width: 100%;
    overflow-x: scroll;
    scroll-behavior: smooth;
    display: flex;
    scrollbar-width: none; /* Hide Scrollbar */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Hide Scrollbar for Webkit */
}

/* Slider Wrapper */
.slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

/* Individual Images */
.slider-wrapper img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    margin-right: 10px;
}

/* Previous and Next Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
    z-index: 10;
    display: none;
}

/* Button Positions */
.prev {
    left: 10px;
}
.next {
    right: 10px;
}

/* Show buttons only when needed */
.image-slider:hover .prev {
    display: block;
}
.image-slider:hover .next {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-wrapper img {
        max-width: 100%;
    }
}


/* Image Carousel Section */
.image-carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background-color: #121829; /* Dark theme */
}

/* Carousel Container */
.carousel {
    display: flex;
    justify-content: center;
    overflow-x: auto;  /* Allows manual scrolling */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Webkit browsers */
.carousel::-webkit-scrollbar {
    display: none;
}

/* Image Container */
.image-container {
    display: flex;
    gap: 10px;
    width: max-content; /* Allows all images in a row */
    animation: infiniteScroll 30s linear infinite alternate; /* Continuous scrolling */
}

/* Image Styling (16:9 Aspect Ratio) */
.image-container img {
    width: 320px;  
    height: 180px; /* 16:9 ratio */
    border-radius: 10px;
    object-fit: cover; /* Ensures images don’t stretch */
    flex-shrink: 0; /* Prevents shrinking */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Keyframe Animation (Infinite Scroll) */
@keyframes infiniteScroll {
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-50% - 10px)); } /* Move half, loop smoothly */
}

/* Pause on Hover (Desktop & Mobile Hold) */
.image-container:hover {
    animation-play-state: paused; /* Stops animation when hovered */
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .image-container img {
        width: 240px; /* Smaller images on mobile */
        height: 135px; /* 16:9 ratio */
    }
}