/* ──────────────────────────────────────────────
 * Member Quotes — rotator + featured pull-quote
 * ────────────────────────────────────────────── */

.bc-quotes-section {
    background-color: var(--white);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.bc-quotes-section--featured {
    /* Featured quote sits at the page bottom before the closing teal CTA.
       Background blends with surrounding content (typically white or warm-white). */
    background-color: var(--white);
    padding: 36px 0 40px;
}

.bc-quotes-header {
    text-align: center;
    margin-bottom: 32px;
}

.bc-quotes-header h2 {
    margin: 0;
}

/* ── Rotator container ── */
.bc-quotes-rotator {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 16px 32px 0;
}

/* CSS Grid stacking: all quotes occupy the same grid cell, so the cell
   sizes to the tallest quote's natural content height — no JS measuring,
   no reflow on rotation. */
.bc-quotes-rotator__viewport {
    display: grid;
    grid-template-columns: 1fr;
}

/* ── Individual quote ── */
.bc-quote {
    margin: 0;
    padding: 0;
    text-align: center;
}

/* In the rotator: every quote stacks in row 1 / col 1 of the grid */
.bc-quotes-rotator .bc-quote {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.bc-quotes-rotator .bc-quote.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* The featured (single-quote) variant flows in normal layout */
.bc-quote--featured {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 32px 24px;
}

.bc-quote__text {
    margin: 0 0 20px;
    padding: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--navy);
    font-size: clamp(1.15rem, 2.1vw, 1.6rem);
    line-height: 1.55;
    border: 0;
    quotes: none;
}

.bc-quote__text::before,
.bc-quote__text::after {
    content: none;
}

.bc-quote__attribution {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
}

.bc-quote__attribution::before {
    content: "— ";
    opacity: 0.75;
}

/* ── Oversized quotation glyph ── */
.bc-quote__glyph {
    position: absolute;
    top: -8px;
    left: 0;
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    font-size: clamp(120px, 18vw, 220px);
    line-height: 0.85;
    color: var(--teal);
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
}

.bc-quotes-rotator > .bc-quote__glyph {
    top: -18px;
    left: 8px;
}

/* ── Controls (arrows + dots) ── */
.bc-quotes-rotator__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.bc-quotes-rotator__arrow {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(33, 165, 165, 0.3);
    color: var(--teal);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bc-quotes-rotator__arrow:hover,
.bc-quotes-rotator__arrow:focus-visible {
    background-color: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    outline: none;
}

.bc-quotes-rotator__dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 360px;
}

.bc-quotes-rotator__dot {
    appearance: none;
    background: rgba(26, 54, 61, 0.18);
    border: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bc-quotes-rotator__dot:hover {
    background: rgba(33, 165, 165, 0.6);
}

.bc-quotes-rotator__dot:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.bc-quotes-rotator__dot.is-active {
    background: var(--teal);
    transform: scale(1.25);
}

/* ── Mobile ── */
@media (max-width: 720px) {
    .bc-quotes-section {
        padding: 36px 0 32px;
    }
    .bc-quotes-section--featured {
        padding: 28px 0 32px;
    }
    .bc-quotes-rotator {
        padding: 12px 8px 0;
    }
    .bc-quote--featured {
        padding: 24px 16px 12px;
    }
    .bc-quote__glyph {
        top: -6px;
        font-size: clamp(90px, 26vw, 140px);
    }
    .bc-quotes-rotator__controls {
        margin-top: 20px;
        gap: 10px;
    }
    .bc-quotes-rotator__arrow {
        width: 44px;
        height: 44px; /* tap target */
    }
    .bc-quotes-rotator__dot {
        width: 11px;
        height: 11px;
    }
}

/* ── Reduced motion: kill the fade transition; JS also disables auto-rotate ── */
@media (prefers-reduced-motion: reduce) {
    .bc-quotes-rotator .bc-quote {
        transition: none;
    }
}
