/* Wrapper & Card Base */
.ts-wrapper {
    position: relative;
    width: 100%;
}

.ts-card {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background-color: #80E5D1; /* Default Fallback */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Rating */
.ts-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    z-index: 2;
}
.ts-rating svg {
    width: 20px;
    height: auto;
}
.ts-star-active { color: #FFD700; fill: #FFD700; }
.ts-star-inactive { color: #E0E0E0; fill: #E0E0E0; }

/* Header (Avatar & Name) */
.ts-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    z-index: 2;
}

.ts-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Review Text */
.ts-review {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Background Decorative Quote */
.ts-quote-icon {
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 100px;
    z-index: 1;
    pointer-events: none;
}
.ts-quote-icon svg {
    width: 100%;
    height: auto;
    fill: #ffffff;
    opacity: 0.3;
}

/* --- 新增：Pagination (长条状处理) --- */
.ts-wrapper .swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: 0 !important;
}

.ts-wrapper .swiper-pagination-bullet {
    transition: all 0.3s ease;
    /* Elementor 默认给了 8px 宽高与 50% 圆角，我们在 PHP 设置中覆盖了 */
    border-radius: 5px; /* 提供一个默认圆角，方便变长条 */
    background: #ccc;
    opacity: 0.6;
}

.ts-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- 新增：Arrows (修复添加背景后的居中和布局) --- */
.ts-wrapper .swiper-button-next,
.ts-wrapper .swiper-button-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
/* 取消原始字体粗细问题，如果有的话 */
.ts-wrapper .swiper-button-next:after,
.ts-wrapper .swiper-button-prev:after {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Background Decorative Quote */
.ts-quote-icon {
    position: absolute;
    bottom: -10px;
    right: 10px;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 如果使用的是SVG格式图标 */
.ts-quote-icon svg {
    width: 100px; /* 如果没有在后台设置大小，默认100px */
    height: auto;
}

/* 如果使用的是字体图标(FontAwesome等) */
.ts-quote-icon i {
    font-size: 100px;
    line-height: 1;
}
.ts-wrapper .swiper-slide{
	height:auto;
}