.cow-carousel {
    position: relative;
    margin: 0 auto;
    width: 100%;
    user-select: none;
    font-family: inherit;
    --cow-font-size: clamp(18px, 2.4vw, 26px);
    --cow-note-size: clamp(12px, 1.3vw, 14px);
}

/* Fullwidth: break out of container */
.cow-carousel--fullwidth {
    width: 100vw;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
}

/* ──────────── Image Stage ──────────── */
.cow-carousel__stage {
    position: relative;
    width: 100%;
    display: grid;
    cursor: pointer;
    overflow: hidden;
}

/* Stack all slides in the same grid cell */
.cow-carousel__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    pointer-events: none;
    will-change: opacity;
}

.cow-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cow-carousel__slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ──────────── Controls Row (prev | text | next) ──────────── */
.cow-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 12px 8px;
}

.cow-carousel__btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1b2a4a;
    transition: background 0.2s, transform 0.2s, color 0.2s;
    padding: 0;
}

.cow-carousel__btn:hover {
    background: rgba(27, 42, 74, 0.08);
    transform: scale(1.1);
}

.cow-carousel__btn:active {
    transform: scale(0.95);
}

/* ──────────── Texts (stacked, opacity-crossfade) ──────────── */
.cow-carousel__texts {
    flex: 1;
    min-width: 0;
    display: grid;
    text-align: center;
}

.cow-carousel__text-block {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    padding: 0 8px;
    will-change: opacity;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.cow-carousel__text-block.is-active {
    opacity: 1;
    visibility: visible;
}

.cow-carousel__text {
    font-size: var(--cow-font-size);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1b2a4a;
    line-height: 1.35;
}

.cow-carousel__note {
    font-size: var(--cow-note-size);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

/* ──────────── Dots ──────────── */
.cow-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 20px;
}

.cow-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.cow-carousel__dot.is-active {
    background: #1b2a4a;
    transform: scale(1.3);
}

.cow-carousel__dot:hover {
    background: #1b2a4a;
}

/* ──────────── Responsive ──────────── */
@media (max-width: 768px) {
    .cow-carousel__controls {
        gap: 8px;
        padding: 18px 8px 6px;
    }

    .cow-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .cow-carousel__btn svg {
        width: 18px;
        height: 18px;
    }

    .cow-carousel__text {
        font-size: clamp(14px, 3.5vw, 18px);
    }

    .cow-carousel__dots {
        gap: 8px;
        padding: 6px 0 16px;
    }

    .cow-carousel__dot {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 480px) {
    .cow-carousel__btn {
        width: 32px;
        height: 32px;
    }

    .cow-carousel__btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cow-carousel__slide,
    .cow-carousel__text {
        transition: none;
    }
}
