.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    overflow: hidden;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-carousel-container {
    position: relative;
    padding: 20px 0 60px;
    overflow: hidden;
}

.testimonials-carousel {
    display: flex;
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    height: 350px;
    will-change: transform;
}

.testimonial-item {
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: auto;
    min-height: 200px;
    margin: 0 15px;
    flex: 0 0 90%;
    max-width: 90%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    backface-visibility: hidden;
}

.testimonial-item.prev,
.testimonial-item.next {
    visibility: visible;
    z-index: 1;
    opacity: 0.5;
    max-width: 70%;
    width: 70%;
}

.testimonial-item.prev {
    transform: translateX(-85%);
}

.testimonial-item.next {
    transform: translateX(85%);
}

.testimonial-item.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid var(--primary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
    text-align: left;
}

.testimonial-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-location {
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.6;
}

.testimonial-content {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-color);
    opacity: 0.8;
    flex-grow: 1;
    text-align: left;
}

.testimonial-rating {
    display: flex;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.testimonial-rating svg {
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonials-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonials-nav-dot:hover {
    background-color: var(--primary-color);
}

.testimonials-nav-dot.active {
    background-color: var(--secondary-color);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-color);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--secondary-color);
}

.carousel-button:hover svg {
    fill: var(--light-color);
}

.carousel-button svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary-color);
    transition: fill 0.3s ease;
}

.carousel-button.prev {
    left: 5px;
}

.carousel-button.next {
    right: 5px;
}

@media (min-width: 768px) {
    .testimonials-carousel {
        height: 300px;
    }
    
    .testimonial-item {
        flex: 0 0 70%;
        max-width: 70%;
    }
    
    .testimonial-item.prev {
        transform: translateX(-85%);
    }
    
    .testimonial-item.next {
        transform: translateX(85%);
    }
    
    .carousel-button.prev {
        left: 20px;
    }

    .carousel-button.next {
        right: 20px;
    }
}

@media (min-width: 992px) {
    .testimonial-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .testimonial-item.prev {
        transform: translateX(-90%);
    }
    
    .testimonial-item.next {
        transform: translateX(90%);
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .testimonials-carousel {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .testimonial-header {
        margin-bottom: 15px;
    }
    
    .testimonial-name {
        font-size: 16px;
    }
    
    .testimonial-location {
        font-size: 12px;
    }
    
    .testimonial-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .testimonials-carousel {
        height: 280px;
    }
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.review-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-color);
}

.reviewer-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.review-date {
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.6;
    margin-bottom: 5px;
}

.review-type {
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0.7;
    font-style: italic;
}

.review-rating {
    font-size: 18px;
    color: var(--secondary-color);
    margin-top: 10px;
}

.progress-bar {
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
}

.progress-5 { width: var(--width, 90%); background-color: var(--secondary-color); }

.avatar-badge {
    background-color: var(--light-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--secondary-color);
}

.avatar-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--secondary-color);
}

.review-card:hover .avatar-badge svg {
    fill: var(--light-color);
} 