.ts-wrap {
    --ink: #1c2e4a;
    --star: #f5b942;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 64px 20px;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
.ts-wrap *, .ts-wrap *::before, .ts-wrap *::after {
    box-sizing: border-box;
}

.ts-viewport {
    overflow: hidden;
}

.ts-track {
    display: flex;
    transition: transform .45s ease;
}

.ts-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 24px;
}

@media (min-width: 900px) {
    .ts-slide { flex: 0 0 var(--ts-slide-width, 33.3333%); max-width: var(--ts-slide-width, 33.3333%); }
}

.ts-header {
    color: #e8792c;
    font-style: italic;
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 40px;
}

.ts-card {
    position: relative;
    color: #fff;
    border-radius: 24px;
    border: 5px solid #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    padding: 44px 38px;
    min-height: 260px;
    overflow: visible;
}

/* Tail is a rotated square sharing the card's own background + border,
   so the white outline is continuous with the bubble instead of a
   separately-drawn triangle that can drift out of alignment. */
.ts-tail {
    position: absolute;
    left: 40px;
    bottom: -17px;
    width: 32px;
    height: 32px;
    border-radius: 0 0 7px 0;
    border-right: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(45deg);
    z-index: 1;
}

.ts-avatar {
    position: absolute;
    top: -32px;
    right: 28px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 5px solid #fff;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    background: #fff;
}
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ts-stars {
    color: var(--star);
    letter-spacing: 5px;
    font-size: 21px;
    margin-bottom: 18px;
}

.ts-quote {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.ts-name {
    margin-top: 54px;
    font-weight: 800;
    font-size: 25px;
    color: var(--ink);
}

.ts-title {
    font-size: 15px;
    color: var(--ink);
    opacity: .85;
    margin-top: 4px;
}

.ts-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.ts-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #cdd6e0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.ts-dot.active {
    background: var(--ink);
    transform: scale(1.15);
}

.ts-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
    z-index: 2;
}
.ts-arrow:hover {
    background: var(--ink);
    color: #fff;
}
.ts-arrow-prev { left: 4px; }
.ts-arrow-next { right: 4px; }
.ts-arrow:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 640px) {
    .ts-wrap { padding-left: 44px; padding-right: 44px; }
    .ts-arrow { width: 36px; height: 36px; }
    .ts-arrow-prev { left: -2px; }
    .ts-arrow-next { right: -2px; }
}
