/* Typography and Layout */
.testimonial-slider-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Prevent horizontal scroll on page */
}

/* Top Section */
.ts-top-section {
    text-align: center;
    margin-bottom: 60px;
}
.ts-main-title {
    font-size: 48px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.ts-title-normal {
    font-weight: 400;
}
.ts-title-bold {
    font-weight: 700;
}
.ts-sub-title {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #4a4a4a;
}
.ts-brand-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 18px;
}
.ts-brand-icon svg {
    display: block;
}

/* Flex Layout */
.ts-content-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Left Area */
.ts-left-area {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}
.ts-quote-icon {
    margin-bottom: 25px;
}
.ts-left-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 40px 0;
}
.ts-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 200px;
}
.ts-nav-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0;
    display: flex;
    transition: color 0.3s ease;
}
.ts-nav-btn:hover {
    color: #1a1a1a;
}
.ts-nav-btn.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Custom Scrollbar Progress */
.ts-scrollbar-wrap {
    flex-grow: 1;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}
.ts-scrollbar-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1a1a1a;
    width: 33.33%; /* Updated via JS */
    transition: left 0.3s ease-out, width 0.3s ease-out;
}

/* Right Area */
.ts-right-area {
    width: 65%;
    position: relative;
    overflow: hidden;
    /* Fading edge so cards dissolve at the right end */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

/* Swiper Configuration */
.ts-swiper-container {
    padding-bottom: 40px; /* Space for avatars */
    padding-top: 10px;
    margin: -10px 0 -40px; 
    overflow: visible !important;
}
.ts-slide-item {
    width: 320px; /* Fixed width of the cards */
}

/* Cards */
.ts-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}
.ts-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.ts-card::after {
    /* Speech bubble tail pointing left/down */
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    filter: drop-shadow(0px 8px 6px rgba(0,0,0,0.04));
}
.ts-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 25px 0;
}
.ts-card-rating {
    display: flex;
    gap: 4px;
}
.ts-card-rating svg {
    color: #00b67a; /* Will be overridable via elementor controls */
}

/* Author Info */
.ts-card-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px; /* Offset to align with tail */
}
.ts-author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.ts-author-info {
    display: flex;
    flex-direction: column;
}
.ts-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}
.ts-author-time {
    font-size: 13px;
    color: #888888;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ts-content-flex {
        flex-direction: column;
        gap: 40px;
    }
    .ts-left-area {
        width: 100%;
        align-items: center;
        text-align: center;
        padding-right: 0;
    }
    .ts-right-area {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .ts-navigation {
        margin: 0 auto;
    }
    .ts-slide-item {
        width: 80%; /* Let slides take up more width on smaller screens */
    }
}

@media (max-width: 768px) {
    .ts-main-title {
        font-size: 32px;
    }
    .ts-sub-title {
        flex-direction: column;
        gap: 10px;
    }
    .ts-slide-item {
        width: 90%;
    }
}
