/* Center Image Slider Styles */

#imageSlider {
    margin-top: 20px;
    margin-bottom: 40px;
}

#centerImageCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#centerImageCarousel .carousel-inner {
    height: 400px; /* Fixed height as requested */
}

#centerImageCarousel .carousel-item {
    height: 400px;
}

#centerImageCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

#centerImageCarousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    bottom: 30px;
    max-width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

#centerImageCarousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

#centerImageCarousel .carousel-control-prev,
#centerImageCarousel .carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

#centerImageCarousel .carousel-control-prev:hover,
#centerImageCarousel .carousel-control-next:hover {
    opacity: 1;
}

#centerImageCarousel .carousel-indicators {
    margin-bottom: 15px;
}

#centerImageCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

#centerImageCarousel .carousel-indicators button.active {
    background-color: #fff;
}

/* Responsive styles */
@media (max-width: 767px) {
    #centerImageCarousel .carousel-inner,
    #centerImageCarousel .carousel-item,
    #centerImageCarousel .carousel-item img {
        height: 300px;
    }
    
    #centerImageCarousel .carousel-caption {
        padding: 10px;
        bottom: 20px;
    }
    
    #centerImageCarousel .carousel-caption h5 {
        font-size: 1.2rem;
    }
}

/* Animation for slides */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Fade effect instead of slide */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}
