/* =========================================
   Vio Testimonials Slider — vioweb.ir
   نویسنده: حسین نظری | تیم VIO
   ========================================= */

/* ── پوشش کلی ── */
.vio-ts-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden !important; /* برش کارت‌های کناری */
}

/* اگر کارت‌های کناری نیمه‌نمایش باشند باید overflow آزاد باشد */
.vio-ts-wrapper.has-peek {
    overflow: visible;
}

/* ── Swiper override ── */
.vio-ts-swiper {
    width: 100%;
    overflow: visible !important;
    padding-bottom: 8px !important;
}

/* ── کارت ── */
.vio-ts-card {
    background-color: #FEFBF0;
    border: 1.5px solid #D4B858;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.07);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vio-ts-card:hover {
    box-shadow: 0 12px 40px rgba(212, 184, 88, 0.18);
    transform: translateY(-3px);
}

/* ── هدر کارت ── */
.vio-ts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

/* ── متای نام / سمت / ستاره ── */
.vio-ts-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* ── نام ── */
.vio-ts-name {
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
    display: block;
}

/* ── سمت ── */
.vio-ts-role {
    font-size: 12px;
    color: #888888;
    display: block;
    margin-bottom: 2px;
}

/* ── ستاره‌ها ── */
.vio-ts-stars {
    display: flex;
    gap: 2px;
    flex-direction: row-reverse; /* RTL: اولین ستاره سمت راست */
    align-items: center;
}

[dir="ltr"] .vio-ts-stars {
    flex-direction: row;
}

.vio-ts-star {
    font-size: 18px;
    color: #D8D8D8;
    line-height: 1;
    transition: color 0.2s;
}

.vio-ts-star.active {
    color: #F5C518;
}

/* ── عکس پروفایل ── */
.vio-ts-photo-wrap {
    flex-shrink: 0;
}

.vio-ts-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid #D4B858;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.vio-ts-card:hover .vio-ts-photo {
    filter: grayscale(0%);
}

/* ── متن نظر ── */
.vio-ts-content {
    font-size: 14px;
    color: #444444;
    line-height: 2em;
    text-align: right;
    direction: rtl;
    flex: 1;
}

[dir="ltr"] .vio-ts-content {
    text-align: left;
    direction: ltr;
}

/* ── کارت‌های کناری کم‌رنگ ── */
.vio-ts-swiper .swiper-slide {
    height: auto;
    opacity: 0.55;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.vio-ts-swiper .swiper-slide-active,
.vio-ts-swiper .swiper-slide-next,
.vio-ts-swiper .swiper-slide-prev {
    opacity: 1;
    transform: scale(1);
}

/* کارت وسط (centeredSlides) */
.vio-ts-swiper .swiper-slide-active {
    opacity: 1;
}

/* ── نقاط ── */
.vio-ts-pagination {
    position: relative !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
}

.vio-ts-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #D8D8D8;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.25s, transform 0.25s;
    cursor: pointer;
}

.vio-ts-pagination .swiper-pagination-bullet-active {
    background: #D4B858;
    transform: scale(1.35);
}

/* ── دکمه‌های قبل/بعد ── */
.vio-ts-prev,
.vio-ts-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, box-shadow 0.2s;
}

.vio-ts-prev:hover,
.vio-ts-next:hover {
    background: #FEFBF0;
    box-shadow: 0 4px 20px rgba(212,184,88,0.22);
}

.vio-ts-prev::after,
.vio-ts-next::after {
    font-size: 14px !important;
    color: #D4B858;
    font-weight: 700;
}

/* ── واکنش‌گرا ── */
@media (max-width: 767px) {
    .vio-ts-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .vio-ts-name  { font-size: 15px; }
    .vio-ts-content { font-size: 13px; line-height: 1.9em; }
    .vio-ts-photo { width: 52px; height: 52px; }
}
