/* ======================================
   Testimonial Slider Widget — Style v2
====================================== */

.tsw-wrap {
    font-family: inherit;
    width: 100%;
}

/* ── Slider container ── */
.tsw-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0d1f1a;
}

/* ── Track ── */
.tsw-track {
    display: flex;
    will-change: transform;
}

/* ── Slide ── */
.tsw-slide {
    min-width: 100%;
    padding: 40px 56px;
    box-sizing: border-box;
}

/* ── Card layout ── */
.tsw-card {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ── Main Image ── */
.tsw-image-wrap {
    flex-shrink: 0;
}

.tsw-image {
    width: 160px;
    height: 190px;
    border-radius: 18px;
    background: rgba(0, 229, 160, 0.10);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tsw-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.tsw-image .tsw-img-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.tsw-placeholder-svg {
    width: 72px;
    height: 72px;
    opacity: 0.55;
}

/* ── Content ── */
.tsw-content {
    flex: 1;
    min-width: 0;
}

/* ── Header row (avatar + meta) ── */
.tsw-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

/* ── Avatar ── */
.tsw-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 229, 160, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsw-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.tsw-avatar .tsw-av-svg {
    object-fit: contain;
}

.tsw-avatar-placeholder {
    width: 28px;
    height: 28px;
    opacity: 0.55;
}

/* ── Meta (name + role) ── */
.tsw-meta {
    flex: 1;
    min-width: 0;
}

.tsw-name {
    font-size: 15px;
    font-weight: 600;
    color: #00e5a0;
    margin: 0 0 3px;
    line-height: 1.35;
    padding: 0;
}

.tsw-role {
    font-size: 12px;
    color: #6ab89b;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* ── Divider ── */
.tsw-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 12px 0;
    border: none;
}

/* ── Quote ── */
.tsw-quote {
    font-size: 14px;
    color: #c8ddd8;
    line-height: 1.78;
    margin: 0 0 18px;
    padding: 0;
}

/* ── Stars ── */
.tsw-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tsw-star {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tsw-star.filled {
    fill: #00c87a;
}

.tsw-star.empty {
    fill: rgba(0, 200, 122, 0.18);
}

/* ── Arrow buttons ── */
.tsw-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.tsw-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.tsw-btn:active {
    transform: translateY(-50%) scale(0.94);
}

.tsw-prev { left: 12px; }
.tsw-next { right: 12px; }

/* ── Dots ── */
.tsw-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.tsw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 229, 160, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.tsw-dot.tsw-active {
    background: #00e5a0;
    transform: scale(1.35);
}

.tsw-dot:hover:not(.tsw-active) {
    background: rgba(0, 229, 160, 0.45);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tsw-slide {
        padding: 28px 48px;
    }
}

@media (max-width: 600px) {
    .tsw-card {
        flex-direction: column;
    }

    .tsw-image {
        width: 100%;
        height: 200px;
    }

    .tsw-image img {
        border-radius: 14px;
    }

    .tsw-slide {
        padding: 28px 40px;
    }
}

@media (max-width: 480px) {
    .tsw-slide {
        padding: 22px 34px;
    }

    .tsw-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .tsw-prev { left: 8px; }
    .tsw-next { right: 8px; }
}
