/* --- Carousel Component Styles --- */
#carousel-root {
    width: 100%;
    box-sizing: border-box;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-image-container {
    width: 100%;
    background-color: #f0f2f5;
    aspect-ratio: 1408 / 768;
    position: relative;
}

.carousel-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.carousel-image.carousel-image-fade {
    opacity: 0;
}

.carousel-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    z-index: 20;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-nav:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 20;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 24px;
    }
    .carousel-nav.prev {
        left: 10px;
    }
    .carousel-nav.next {
        right: 10px;
    }
    .carousel-counter {
        font-size: 12px;
        bottom: 10px;
    }
}