/* General Carousel Style */
.carousel {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    position: relative;
}

ul.slides {
    display: block;
    position: relative;
    height: 650px; /* Default height for desktop */
    margin: 0;
    padding: 0;
    overflow: visible;
    list-style: none;
}



.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide-image {
    position: absolute;
    width: 550px;
    height: 550px;
    margin-top: 40px;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    left: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.233);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Show the image of the active slide */
input:checked + .slide-container .slide-image {
    opacity: 1;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 40%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    margin-left: 10px;
}

.carousel-next {
    margin-right: 10px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    z-index: 2;
    text-align: center;
}

.carousel-dots .carousel-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.5;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.carousel-dots .carousel-dot.active {
    background-color: rgb(83, 139, 224);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    ul.slides {
        height: 485px; /* Adjusted height for mobile */
    }
    .slide-image {
        width: 100%;
        max-width: 360px;
        height: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 25px;
    }
}
