/* Testimonials Section - Matching Figma Design */
.testimonials-section {
    position: relative;
}

.testimonials-wrapper {
    position: relative;
}

.testimonials-grid {
    position: relative;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Avatar Wrapper - Positioned at top */
.testimonial-avatar-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: -87px;
}

.testimonial-avatar {
    width: 174px;
    height: 174px;
    border-radius: 50%;
    border: 8px solid #3ab54a;
    object-fit: cover;
    background: white;
}

/* Testimonial Content Card */
.testimonial-content {
    background: transparent;
    border: 2px solid #3ab54a;
    border-radius: 16px;
    padding: 110px 32px 32px 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 400px;
    transition: all 0.3s ease;
}

/* .testimonial-card:hover .testimonial-content {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(58, 181, 74, 0.15);
} */

/* Testimonial Text */
.testimonial-text {
    font-family: "Din", Helvetica;
    font-size: 23.3px;
    font-weight: 400;
    color: #464646;
    line-height: 1.5;
    text-align: left;
    flex: 1;
}

/* Testimonial Footer */
.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.testimonial-name {
    font-family: "Din", Helvetica;
    font-size: 35.7px;
    font-weight: 600;
    color: #0c9444;
    line-height: 1.2;
}

.testimonial-stars {
    width: 105px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .testimonial-avatar {
        width: 140px;
        height: 140px;
        border-width: 6px;
    }

    .testimonial-avatar-wrapper {
        margin-bottom: -70px;
    }

    .testimonial-content {
        padding: 90px 24px 24px 24px;
        min-height: 350px;
    }

    .testimonial-text {
        font-size: 18px;
    }

    .testimonial-name {
        font-size: 28px;
    }

    .testimonial-stars {
        width: 90px;
    }
}

@media (max-width: 767px) {
    .testimonial-avatar {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }

    .testimonial-avatar-wrapper {
        margin-bottom: -60px;
    }

    .testimonial-content {
        padding: 80px 20px 20px 20px;
        min-height: 320px;
        gap: 20px;
    }

    .testimonial-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .testimonial-name {
        font-size: 24px;
    }

    .testimonial-stars {
        width: 80px;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        gap: 48px;
    }

    .testimonial-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .testimonial-avatar-wrapper {
        margin-bottom: -50px;
    }

    .testimonial-content {
        padding: 70px 16px 20px 16px;
        min-height: 300px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-name {
        font-size: 20px;
    }

    .testimonial-stars {
        width: 70px;
    }
}

/* Grid Layout Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure consistent card heights */
.testimonial-card {
    height: 100%;
}

.testimonial-content {
    height: 100%;
}
