/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: #F5F5F5;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Left Column: Image Card */
.testimonials-image-wrapper {
    flex: 1;
    position: relative;
    padding-left: 20px;
    /* Space for the card to stick out if needed */
}

.testimonials-main-img {
    width: 100%;
    max-width: 500px;
    height: 550px;
    object-fit: cover;
    border-radius: 30px;
    border-top-right-radius: 100px;
    /* Stylistic choice from image */
    position: relative;
    z-index: 1;
}

/* Green/Peach Background Shape behind image */
.testimonials-bg-shape {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    max-width: 520px;
    height: 570px;
    background-color: var(--primary-color);
    /* Peach */
    border-radius: 30px;
    border-top-right-radius: 100px;
    z-index: 0;
    opacity: 0.15;
    /* Subtle tint */
}

/* Ratings Floating Card */
.ratings-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    /* Breaking out of the container on the left */
    background: #fff;
    /* Creamy/White */
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    min-width: 280px;
    border: 1px solid #eee;
}

.ratings-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.ratings-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.ratings-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars-group {
    display: flex;
}

.avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-left: -10px;
    /* Overlap */
}

.avatar-small:first-child {
    margin-left: 0;
}

.add-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    margin-left: -10px;
}

.clients-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

/* Right Column: Content */
.testimonials-content {
    flex: 1;
    max-width: 600px;
}

.testimonials-tagline {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.testimonials-tagline i {
    color: var(--primary-color);
}

.testimonials-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.testimonials-title .highlight {
    color: var(--primary-color);
}

.star-rating {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.author-details p {
    font-size: 0.9rem;
    color: #888;
}

/* Slider Controls */
.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonials-container {
        flex-direction: column;
        gap: 60px;
    }

    .testimonials-image-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ratings-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        /* Push down a bit */
    }
}

@media (max-width: 768px) {
    .testimonials-title {
        font-size: 2.5rem;
    }

    .ratings-card {
        min-width: 260px;
        padding: 20px;
    }

    .testimonials-main-img,
    .testimonials-bg-shape {
        height: 450px;
    }

    .testimonials-section {
        padding: 60px 0;
    }
}