/* ============================================================
   rpl-testimonials-slider.css
   Scoped to .rpl-ts — Testimonials Slider Elementor Widget
   ============================================================ */

/* ── Outer wrapper ─────────────────────────────────────────
   position:relative is required for absolute nav-wrap.
   NO overflow:hidden here — clipping is handled by .rpl-ts__track.
   This lets an absolute-placed .rpl-ts__nav-wrap escape the track
   without being clipped.
   ─────────────────────────────────────────────────────────── */
.rpl-ts {
    position: relative;
}

/* ── Track: clips sliding content but not nav overlay ─────
   overflow:hidden clips slides at the outer edge.
   Elementor CSS (from center_peek selectors) adds padding when
   center mode is active — the padded area becomes a "window"
   where adjacent slides can be seen (swiper is overflow:visible).
   ─────────────────────────────────────────────────────────── */
.rpl-ts__track {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ── Swiper container ──────────────────────────────────── */
.rpl-ts__swiper {
    /* overflow:visible lets adjacent slides bleed into track's
       padding area when center mode is active */
    overflow: visible;
    width: 100%;
}

/* ── Slide inner: equal-height slides ─────────────────── */
.rpl-ts__slide-inner {
    display: flex;
    height: 100%;
}

/* ── Card ──────────────────────────────────────────────── */
.rpl-ts__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-sizing: border-box;
    height: 100%;
}

/* ── Content (testimonial text) ───────────────────────── */
.rpl-ts__content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
}

/* ── Meta (name + position) ───────────────────────────── */
.rpl-ts__meta {
    display: flex;
    gap: 4px;
}

.rpl-ts__meta--vertical {
    flex-direction: column;
    align-items: flex-start;
}

.rpl-ts__meta--horizontal {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rpl-ts__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111111;
    line-height: 1.3;
}

.rpl-ts__position {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.3;
}

.rpl-ts__sep {
    color: #999999;
    line-height: 1.3;
}

/* ── Nav wrap ──────────────────────────────────────────────
   Two placement modes driven by PHP class on .rpl-ts__nav-wrap:

   --absolute  → position:absolute, user controls top/right/bottom/left
                 via Elementor style selectors on {{WRAPPER}} .rpl-ts__nav-wrap
   --below     → static flow, appears after the track
   ─────────────────────────────────────────────────────────── */
.rpl-ts__nav-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* Absolute placement defaults (before Elementor selectors override) */
.rpl-ts__nav-wrap--absolute {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* Below placement: static flow */
.rpl-ts__nav-wrap--below {
    position: static;
    margin-top: 16px;
    justify-content: flex-end; /* Elementor selector can override */
}

/* ── Arrow button base ────────────────────────────────── */
.rpl-ts__nav-prev,
.rpl-ts__nav-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid #cccccc;
    border-radius: 50%;
    color: #333333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.rpl-ts__nav-prev:hover,
.rpl-ts__nav-next:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.rpl-ts__nav-prev i,
.rpl-ts__nav-next i {
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.rpl-ts__nav-prev svg,
.rpl-ts__nav-next svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    pointer-events: none;
}

/* Swiper disabled state */
.rpl-ts__nav-prev.swiper-button-disabled,
.rpl-ts__nav-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Dots ─────────────────────────────────────────────── */
.rpl-ts__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    position: static !important; /* override Swiper's absolute default */
    width: auto !important;
    margin-top: 20px;
}

.rpl-ts__dots--inside {
    position: absolute !important;
    bottom: 12px;
    left: 0;
    right: 0;
    margin-top: 0;
}

.rpl-ts__dots .swiper-pagination-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cccccc;
    opacity: 1;
    transition: background 0.2s, width 0.2s, height 0.2s;
    margin: 0 !important; /* override Swiper defaults */
    flex-shrink: 0;
}

.rpl-ts__dots .swiper-pagination-bullet-active {
    background: #000000;
    width: 10px;
    height: 10px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
    .rpl-ts__card {
        padding: 24px;
        gap: 16px;
    }
}
