/* ══ Roche Image Carousel — Frontend Styles ══════════════════════ */

.roche-carousel-wrap {
    margin: 2rem 0;
}

.roche-carousel {
    --rc-blue:       #0066CC;
    --rc-blue-dark:  #004C99;
    --rc-radius:     12px;
    --rc-speed:      0.45s;

    position: relative;
    width: 100%;
    border-radius: var(--rc-radius);
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    user-select: none;
    outline: none;
}

/* ── Track ── */
.roche-carousel__track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* ── Slides ── */
.roche-carousel__slide {
    position: absolute;
    inset: 0;
    transition: transform var(--rc-speed) cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.roche-carousel__slide[hidden] {
    display: block !important;
    visibility: visible;
    transform: translateX(100%);
}

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

/* ── Caption overlay ── */
.roche-carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .6rem 1.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .01em;
    pointer-events: none;
}

/* ── Navigation Arrows ── */
.roche-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.22);
    transition: background .2s, transform .2s, box-shadow .2s;
    padding: 0;
}

.roche-carousel__arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.roche-carousel__arrow:hover {
    background: var(--rc-blue);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 18px rgba(0,102,204,.35);
}

.roche-carousel__arrow--prev { left: 14px; }
.roche-carousel__arrow--next { right: 14px; }

/* ── Dots ── */
.roche-carousel__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.roche-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .25s, border-color .25s, transform .25s;
}

.roche-carousel__dot.is-active,
.roche-carousel__dot:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.25);
}

/* ── Counter ── */
.roche-carousel__counter {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: .03em;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .roche-carousel__track { aspect-ratio: 4 / 3; }
    .roche-carousel__arrow { width: 36px; height: 36px; }
    .roche-carousel__arrow svg { width: 16px; height: 16px; }
    .roche-carousel__arrow--prev { left: 8px; }
    .roche-carousel__arrow--next { right: 8px; }
}

/* ── Aspect ratio variants ── */
.roche-carousel.is-ratio-16-9 .roche-carousel__track { aspect-ratio: 16 / 9; }
.roche-carousel.is-ratio-4-3  .roche-carousel__track { aspect-ratio: 4 / 3; }

/* ── Responsive overrides ── */
@media (max-width: 600px) {
    .roche-carousel.is-ratio-16-9 .roche-carousel__track { aspect-ratio: 16 / 9; }
    .roche-carousel.is-ratio-4-3  .roche-carousel__track { aspect-ratio: 4 / 3; }
}
