/* ============================================
   Carousel Styles
   ============================================ */

.qts-carousel {
    --qts-carousel-desktop-ratio: 1920 / 640;
    --qts-carousel-mobile-ratio: 4 / 5;
    position: relative;
    width: 100%;
    aspect-ratio: var(--qts-carousel-desktop-ratio);
    min-height: 360px;
    max-height: 560px;
    overflow: hidden;
    background: var(--color-black, #1A1A1A);
}

.qts-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.qts-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.qts-carousel__slide--active {
    opacity: 1;
    z-index: 1;
}

.qts-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Keep important visual content away from image edges.
   Recommended replacement images:
   - desktop: 1920x640 or 1920x600, with core content in the center safe area;
   - mobile: use a separate vertical crop around 1080x1350 when available.
*/

/* Arrows */
.qts-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-white, #fff);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qts-carousel__arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.qts-carousel__arrow--prev {
    left: 1.5rem;
}

.qts-carousel__arrow--next {
    right: 1.5rem;
}

/* Dots */
.qts-carousel__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.6rem;
}

.qts-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.qts-carousel__dot--active {
    background: var(--color-red, #C41E2A);
    border-color: var(--color-red, #C41E2A);
}

@media (max-width: 1024px) {
    .qts-carousel {
        min-height: 300px;
        max-height: 480px;
    }
}

@media (max-width: 768px) {
    .qts-carousel {
        aspect-ratio: var(--qts-carousel-mobile-ratio);
        min-height: 480px;
        max-height: 640px;
    }

    .qts-carousel__arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .qts-carousel__arrow--prev {
        left: 0.8rem;
    }

    .qts-carousel__arrow--next {
        right: 0.8rem;
    }
}
