/* ============================================
   Testimonials Slider Pro
   ============================================ */

.tsp-slider-wrapper *,
.tsp-slider-wrapper *::before,
.tsp-slider-wrapper *::after {
    box-sizing: border-box;
}

.tsp-slider-wrapper {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 44px 52px;
    background: transparent;
    border-radius: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    box-shadow: none !important;
}

.tsp-slider-wrapper,
.tsp-viewport,
.tsp-track {
    box-shadow: none !important;
}


/* ---- Track: slides sit side by side ---- */
.tsp-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    min-height: 0;
}

.tsp-viewport {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
}

/* Hide native scrollbars in supported browsers */
.tsp-viewport {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tsp-viewport::-webkit-scrollbar {
    display: none;
}

/* ---- Each slide: masonry layout ---- */
.tsp-slider-wrapper .tsp-slide {
    column-count: 3;
    column-width: 320px;
    column-gap: 24px;
    column-fill: balance;
    min-width: 100%;
    width: 100%;
}

.tsp-slider-wrapper .tsp-slide::after {
    content: '';
    display: block;
    clear: both;
}

.tsp-slider-wrapper .tsp-slide .tsp-card {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin: 0 0 24px;
    break-inside: avoid-column;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    page-break-inside: avoid;
    background: #F5F5F5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tsp-slider-wrapper .tsp-slide .tsp-card:hover,
.tsp-card:hover {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

/* ---- Review text ---- */
.tsp-card-body {
    margin-bottom: 20px;
    flex: 1 1 auto;
}

.tsp-review-text {
    font-size: 15px;
    line-height: 1.9;
    color: #1f2937;
    margin: 0;
    word-break: break-word;
}

/* ---- Footer ---- */
.tsp-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.tsp-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---- Stars ---- */
.tsp-stars {
    display: flex;
    gap: 6px;
}

.tsp-star {
    font-size: 16px;
    line-height: 1;
}

.tsp-star.filled { color: #FFC107; }
.tsp-star.empty  { color: #ddd; }

.tsp-source-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.tsp-source-icon svg {
    width: 18px;
    height: 18px;
}

.tsp-reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: #102a43;
    margin: 0;
}

.tsp-source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.tsp-source-link:hover {
    opacity: 0.85;
}

.tsp-source-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.tsp-source-label {
    font-size: 11px;
    font-weight: 700;
    color: #4285F4;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tsp-reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: #102a43;
}

/* ============================================
   Navigation Arrows
   ============================================ */
.tsp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1f2937;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    z-index: 20;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    outline: none;
}

.tsp-nav:hover {
    color: #0f172a;
    transform: translateY(-50%) scale(1.02);
}

.tsp-nav svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.tsp-prev { left: 8px; }
.tsp-next { right: 8px; }

.tsp-nav.is-disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* ============================================
   Pagination Dots
   ============================================ */
.tsp-pagination {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.tsp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6d6d8;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    display: inline-block;
}

.tsp-dot:hover { transform: scale(1.1); }

.tsp-dot.is-active { background: #1f2937; }

/* ---- Empty state ---- */
.tsp-no-testimonials {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 0;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .tsp-slider-wrapper .tsp-slide {
        column-count: 2;
        column-gap: 20px;
    }

    .tsp-slider-wrapper {
        padding: 24px 32px 40px;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .tsp-track {
        align-items: flex-start;
    }

    .tsp-slider-wrapper .tsp-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 24px 0;
    }

    .tsp-slider-wrapper {
        padding: 20px 24px 32px;
    }

    .tsp-slider-wrapper .tsp-card {
        padding: 20px;
        width: min(100%, 380px);
        margin: 0 auto 24px;
    }
}
