.testimonial-slider {
    overflow: hidden;
    padding: 0 50px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 -15px;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px;
    transition: opacity 0.3s ease;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.testimonial-nav:hover {
    background: #2980b9;
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.card-text-wrapper {
    position: relative;
}

.card-text {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.card-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.btn-read-more {
    font-size: 0.875rem;
    color: #007bff;
    border: none;
    background: none;
    cursor: pointer;
}

.btn-read-more:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

/* Скрываем кнопку если текст короткий */
.card-text-wrapper:not(.has-long-text) .btn-read-more {
    display: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 calc(100% - 30px);
    }

    .testimonial-slider {
        padding: 0 40px;
    }
}