
/* =========================================
   STEP 8: CLIENT TESTIMONIALS
========================================= */

.r3s-testimonials-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.testimonial-heading {
    max-width: 700px;
    margin: 0 auto 55px;
}

.testimonial-heading h2 {
    margin: 12px 0;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.testimonial-heading h2 span {
    color: var(--r3s-primary);
}

.testimonial-heading p {
    margin: 15px auto 0;
    max-width: 580px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* TESTIMONIAL CARD */

.testimonial-card {
    position: relative;
    height: 100%;
    min-height: 390px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
    transition: transform 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(221, 3, 17, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.testimonial-quote {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(221, 3, 17, 0.09);
    color: var(--r3s-primary);
}

.testimonial-quote i {
    font-size: 30px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #F5A623;
    font-size: 13px;
}

.testimonial-text {
    flex: 1;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400;
}

.testimonial-divider {
    width: 100%;
    height: 1px;
    margin: 24px 0 20px;
    background: var(--border-color);
}

/* AUTHOR */

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--r3s-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}

.testimonial-author-info {
    min-width: 0;
}

.testimonial-author-info h3 {
    margin: 0 0 3px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.testimonial-author-info span {
    display: block;
    margin-bottom: 2px;
    color: var(--r3s-primary);
    font-size: 12px;
    font-weight: 700;
}

.testimonial-author-info small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* BOTTOM NOTE */

.testimonial-bottom {
    margin-top: 38px;
    text-align: center;
}

.testimonial-bottom span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.testimonial-bottom i {
    color: var(--r3s-primary);
    font-size: 17px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .r3s-testimonials-section {
        padding: 80px 0;
    }

    .testimonial-card {
        min-height: 370px;
    }
}

@media (max-width: 767px) {
    .r3s-testimonials-section {
        padding: 65px 0;
    }

    .testimonial-heading {
        margin-bottom: 35px;
    }

    .testimonial-card {
        min-height: auto;
        padding: 25px 22px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-bottom {
        margin-top: 28px;
    }

    .testimonial-bottom span {
        font-size: 12px;
        line-height: 1.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none;
    }

    .testimonial-card:hover {
        transform: none;
    }
}
