/* RB Testimonials — Swiper carousel */

.rb-tm {
    position: relative;
    width: 100%;
    padding: 0 var(--rb-space-7);
}

.rb-tm__header {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-tm__eyebrow {
    font-family: var(--rb-font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rb-primary) !important;
}

.rb-tm__heading {
    font-family: var(--rb-font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--rb-dark) !important;
    margin: 0;
}

.rb-tm__slider {
    overflow: hidden;
    padding: 8px 4px 32px;
}

/* ---------- Card ---------- */
.rb-tm__card {
    position: relative;
    height: 100%;
    background: var(--rb-light);
    padding: 32px 28px;
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--rb-transition);
}

.rb-tm__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rb-shadow-md);
}

.rb-tm__mark {
    width: 36px;
    height: 36px;
    color: var(--rb-accent);
    opacity: 0.4;
    margin-bottom: -8px;
}

.rb-tm__rating {
    display: flex;
    gap: 4px;
}

.rb-tm__star {
    width: 18px;
    height: 18px;
    color: rgba(0, 0, 0, 0.12);
}

.rb-tm__star.is-filled {
    color: var(--rb-accent);
}

.rb-tm__quote {
    font-size: 16px;
    line-height: 1.65;
    color: var(--rb-dark);
    margin: 0;
    flex: 1;
    font-style: italic;
}

.rb-tm__person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--rb-border);
}

.rb-tm__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--rb-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rb-font-heading);
    font-weight: 700;
    color: var(--rb-primary);
    font-size: 18px;
}

.rb-tm__avatar--initial {
    background: var(--rb-cream);
    color: var(--rb-primary);
}

.rb-tm__name {
    font-family: var(--rb-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--rb-dark) !important;
    line-height: 1.2;
}

.rb-tm__role {
    font-size: 13px;
    color: var(--rb-muted);
    margin-top: 2px;
}

/* ---------- Arrows ---------- */
.rb-tm__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rb-light) !important;
    border: 1px solid var(--rb-border) !important;
    border-radius: 50% !important;
    color: var(--rb-dark) !important;
    cursor: pointer;
    transition: var(--rb-transition);
    box-shadow: var(--rb-shadow-sm) !important;
    z-index: 5;
    padding: 0;
    outline: none !important;
}

.rb-tm__arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.rb-tm__arrow svg path { stroke: currentColor; }

.rb-tm__arrow:hover,
.rb-tm__arrow:focus,
.rb-tm__arrow:active,
.rb-tm__arrow:focus-visible {
    background: var(--rb-accent) !important;
    color: var(--rb-dark) !important;
    border-color: var(--rb-accent) !important;
    transform: translateY(-50%) scale(1.1);
    outline: none !important;
}

.rb-tm__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rb-tm__arrow--prev { left: 0; }
.rb-tm__arrow--next { right: 0; }

/* ---------- Pagination ---------- */
.rb-tm__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.rb-tm__dot {
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    background: var(--rb-border) !important;
    border: none !important;
    cursor: pointer;
    transition: var(--rb-transition-fast);
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
}

.rb-tm__dot:hover,
.rb-tm__dot:focus,
.rb-tm__dot:focus-visible {
    background: var(--rb-primary-light) !important;
    outline: none !important;
}

.rb-tm__dot.is-active {
    background: var(--rb-accent) !important;
    width: 24px;
    border-radius: 4px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .rb-tm { padding: 0; }
    .rb-tm__arrow { display: none; }
    .rb-tm__card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-tm__card,
    .rb-tm__arrow,
    .rb-tm__dot { transition: none !important; transform: none !important; }
}
