/* Testimonials */
.testimonials {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.testimonial-slider {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    /*overflow: hidden;*/
    /*overflow: hidden; !* Prevent overflow during animations *!*/
    /*height: 320px; !* Fixed height to prevent layout shifts *!*/
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 20px; /* Reduced padding */
    /*box-shadow: var(--shadow-md);*/
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    margin: 0 10px;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-card.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.testimonial-content {
    margin-bottom: 15px; /* Reduced margin */
}

.quote-icon {
    color: var(--primary-light);
    font-size: 24px; /* Smaller icon */
    margin-bottom: 10px;
}

.testimonial-content p {
    font-size: 15px; /* Smaller text */
    line-height: 1.6;
    color: var(--dark-color);
    max-height: 120px; /* Limit height */
    overflow: auto; /* Add scroll if content is too long */
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.author-image {
    width: 50px; /* Smaller image */
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px; /* Smaller heading */
    margin-bottom: 3px;
}

.author-info p {
    font-size: 13px; /* Smaller text */
    color: var(--gray-color);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed to space-between */
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.testimonial-control {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--light-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-control:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--light-dark);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}