@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

.ts-section {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}

.ts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding: 0 8%;
}

.ts-title-group {
    max-width: 80%;
}

.ts-title {
    font-family: 'Rubik', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    color: #000000;
}

.ts-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    opacity: 0.9;
}

.ts-nav-arrows {
    display: flex;
    gap: 10px;
}

.ts-arrow {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
}

.ts-arrow:hover {
    opacity: 0.5;
}

.ts-arrow svg {
    width: 24px;
    height: 24px;
}

/* Swiper Container */
.ts-swiper-outer {
    position: relative;
    padding: 0 12%;
}

.ts-swiper {
    overflow: visible !important;
}

/* New Blur Masks Approach */
.ts-blur-mask {
    position: absolute;
    top: -20px;
    bottom: -20px;
    width: 12%;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ts-blur-left {
    left: 0;
    mask-image: linear-gradient(to right, black 60%, black 100%);
    -webkit-mask-image: linear-gradient(to right, black 60%, black 100%);
}

.ts-blur-right {
    right: 0;
    mask-image: linear-gradient(to left, black 60%, black 100%);
    -webkit-mask-image: linear-gradient(to left, black 60%, black 100%);
}

.ts-testimonial-card {
    background: #ffffff;
    border: 1px solid #E8E8E1;
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
    min-height: 400px;
}

/* Remove old class */
.ts-swiper .swiper-slide-blurred {
    filter: none;
    opacity: 1;
}

.ts-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
}

.ts-star-icon {
    width: 18px;
    height: 18px;
    fill: #FFBD00;
}

.ts-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-author-name {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.ts-verified-icon {
    width: 18px;
    height: 18px;
}

.ts-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.ts-image-wrapper {
    width: 100%;
    margin-top: 5px;
    border-radius: 10px;
    overflow: hidden;
}

.ts-image-wrapper img {
    width: 130px;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .ts-header {
        padding: 0 7%;
    }
    .ts-swiper-outer {
        padding: 0 7%;
    }
    .ts-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .ts-section {
        padding: 60px 0;
    }
    .ts-header {
        padding: 0 7%;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .ts-title-group {
        max-width: 100%;
    }

    .ts-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .ts-nav-arrows {
        align-self: flex-end;
    }

    .ts-testimonial-card {
        padding: 25px;
        min-height: 350px;
    }
}
