@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poetsen+One&display=swap');

/*
 * ─── Reviews Slider — Frontend Styles ────────────────────────────────────────
 *
 * The icon sits ABOVE each card. To show it without clipping we need
 * overflow: visible on .rs-track-outer. But that causes horizontal
 * scroll on mobile. The fix: wrap everything in .rs-section-lock which
 * uses overflow-x: clip — this prevents any horizontal scroll bar from
 * appearing while still allowing the icon to visually overflow upward.
 * (overflow-x: clip does not create a scroll container unlike hidden.)
 */

.rs-section-lock {
    overflow-x: clip;
    position: relative;
}

.rs-track-outer {
    overflow: visible;
    width: 100%;
    position: relative;
    padding-top: 52px;
}

.rs-track-clip {
    overflow: hidden;
    width: 100%;
}

.rs-wrapper {
    position: relative;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.rs-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
    align-items: stretch; /* equal heights */
}

.rs-card {
    flex: 0 0 calc(33.333% - 19px);
    min-width: calc(33.333% - 19px);
    border-radius: 24px;
    padding: 46px 36px 36px 36px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Quote icon floats above the card, overlapping the top edge */
.rs-quote-wrap {
    position: absolute;
    top: -42px;
    left: 30px;
    z-index: 10;
    line-height: 0;
}

.rs-quote-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.rs-review-text {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    color: #333333;
    flex: 1; /* pushes author to bottom of card */
    margin: 0;
}

.rs-author {
    font-family: 'Poetsen One', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #222222;
    margin-top: 12px; /* tightened from 24px */
}

/* ── Dot navigation ── */
.rs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.rs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background .3s, transform .3s;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.rs-dot.rs-active {
    background: #7B6BB5;
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .rs-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rs-card {
        flex: 0 0 calc(50% - 14px);
        min-width: calc(50% - 14px);
    }
}
