/* ===========================
   TESTIMONIAL SLIDER PREMIUM COMPONENT
=========================== */
:root {
    --ts-primary: #1e293b;
    --ts-secondary: #3b82f6;
    --ts-star: #fbbf24;
    --ts-bg: #f8fafc;
    --ts-card-bg: rgba(255, 255, 255, 0.85);
    --ts-text-main: #0f172a;
    --ts-text-muted: #64748b;
    --ts-border: rgba(15, 23, 42, 0.05);
    --ts-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --ts-shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    --ts-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ts-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ts-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.ts-section .container {
    position: relative;
    z-index: 1;
}

.ts-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ts-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ts-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--ts-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ts-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.ts-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    padding: 20px 0; /* space for card shadows */
}

.ts-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: stretch; /* crucial for equal heights */
    touch-action: pan-y;
}

.ts-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ts-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1024px) {
    .ts-slide {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Glassmorphism Premium Card */
.ts-card {
    background: var(--ts-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 32px;
    height: 100%; /* forces card to fill slide height */
    display: flex;
    flex-direction: column;
    box-shadow: var(--ts-shadow);
    transition: var(--ts-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ts-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 140px;
    color: rgba(15, 23, 42, 0.03);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.ts-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ts-shadow-hover);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
}

.ts-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ts-avatar,
.ts-avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
    user-select: none;
}

.ts-avatar-initials.bg-grad-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ts-avatar-initials.bg-grad-2 { background: linear-gradient(135deg, #10b981, #047857); }
.ts-avatar-initials.bg-grad-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ts-avatar-initials.bg-grad-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ts-avatar-initials.bg-grad-5 { background: linear-gradient(135deg, #ec4899, #be185d); }

.ts-meta {
    flex-grow: 1;
}

.ts-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ts-text-main);
    margin: 0 0 4px 0;
}

.ts-location {
    font-size: 0.875rem;
    color: var(--ts-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-stars {
    color: var(--ts-star);
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.ts-body {
    font-size: 0.95rem;
    color: var(--ts-text-muted);
    line-height: 1.7;
    flex-grow: 1; /* Pushes footer to bottom */
    font-style: italic;
    position: relative;
    margin-bottom: 24px;
}

.ts-footer {
    padding-top: 20px;
    border-top: 1px solid var(--ts-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.ts-badge.trusted {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.ts-badge.mstravel {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ts-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slider Navigation */
.ts-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.ts-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--ts-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--ts-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-btn:hover, .ts-btn:focus-visible {
    background: var(--ts-primary);
    color: #fff;
    transform: scale(1.05);
    border-color: var(--ts-primary);
    outline: none;
}

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

.ts-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: var(--ts-transition);
    padding: 0;
}

.ts-dot:hover, .ts-dot:focus-visible {
    background: #94a3b8;
    outline: none;
}

.ts-dot.active {
    background: var(--ts-primary);
    width: 24px;
}

/* No horizontal scroll during swipe */
body {
    overflow-x: hidden;
}
