/* =========================================================
   Club Voices — modular carousel
   ========================================================= */

.club-voices-carousel {
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 3rem auto;
}

/* Header */
.club-voices-carousel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.club-voices-carousel__header-copy {
    min-width: 0;
    max-width: 760px;
}

.club-voices-carousel__heading {
    margin: 0;
}

.club-voices-carousel__intro {
    margin: .55rem 0 0;
    color: #444;
    font-size: 1rem;
    line-height: 1.55;
}

.club-voices-carousel__header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

/* Previous / next controls */
.club-voices-carousel__controls {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.club-voices-carousel__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #2f65bf;
    border-radius: 50%;
    background: #fff;
    color: #2f65bf;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.club-voices-carousel__button:hover:not(:disabled) {
    background: #2f65bf;
    border-color: #2f65bf;
    color: #fff;
    transform: translateY(-1px);
}

.club-voices-carousel__button:focus-visible {
    outline: 3px solid rgba(47, 101, 191, .25);
    outline-offset: 2px;
}

.club-voices-carousel__button:disabled {
    opacity: .3;
    cursor: default;
    transform: none;
}

/* Viewport / track */
.club-voices-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.club-voices-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.club-voices-carousel__viewport:focus-visible {
    outline: 3px solid rgba(47, 101, 191, .2);
    outline-offset: 4px;
    border-radius: 14px;
}

.club-voices-carousel__track {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

/* Slides */
.club-voices-carousel__slide {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.club-voices-carousel__slide .club-voice-card {
    box-sizing: border-box;
    width: 100%;
    height: auto;
}

.club-voices-carousel .club-voice-card__voice {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* Footer */
.club-voices-carousel__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.15rem;
}

/* Pagination dots */
.club-voices-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 12px;
}

.club-voices-carousel__dot {
    appearance: none;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #d5d8dd;
    cursor: pointer;
    transition: width .18s ease, height .18s ease, background-color .18s ease, transform .18s ease;
}

.club-voices-carousel__dot:hover {
    background: #9dacbf;
    transform: scale(1.12);
}

.club-voices-carousel__dot.is-active {
    width: 11px;
    height: 11px;
    background: #2f65bf;
}

.club-voices-carousel__dot:focus-visible {
    outline: 3px solid rgba(47, 101, 191, .25);
    outline-offset: 3px;
}

/* View all voices CTA */
.club-voices-carousel__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: #2f65bf;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.club-voices-carousel__view-all:hover {
    color: #244f98;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.club-voices-carousel__view-all:focus-visible {
    outline: 3px solid rgba(47, 101, 191, .22);
    outline-offset: 4px;
    border-radius: 4px;
}

.club-voices-carousel__view-all-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: .9rem;
    line-height: 1;
}

/* Screen reader only */
.club-voices-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .club-voices-carousel__slide {
        flex-basis: calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 700px) {
    .club-voices-carousel {
        width: calc(100% - 2rem);
        margin: 2.25rem auto;
    }

    .club-voices-carousel__header {
        align-items: flex-start;
        gap: 1rem;
    }

    .club-voices-carousel__header-actions {
        gap: .75rem;
    }
}

@media (max-width: 600px) {
    .club-voices-carousel__header {
        flex-wrap: wrap;
    }

    .club-voices-carousel__header-copy {
        flex: 1 1 100%;
    }

    .club-voices-carousel__header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .club-voices-carousel__slide {
        flex-basis: 100%;
    }

    .club-voices-carousel__footer {
        gap: .9rem;
        margin-top: 1rem;
    }
}

@media (max-width: 430px) {
    .club-voices-carousel__button {
        width: 40px;
        height: 40px;
    }

    .club-voices-carousel__view-all {
        font-size: .88rem;
    }

    .club-voices-carousel__view-all-icon {
        width: 24px;
        height: 24px;
    }
}
