.testimonials-section {
    background-color: #FFFFFF;
}

.testimonials-section .testimonials-container {
    max-width: 1530px;
    margin: auto;
}

.testimonials-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
}

.testimonials-section h2.title {
    font-weight: 800;
    font-size: 48px;
    line-height: 1.4;
    color: var(--b9-text-dark);
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
}

.testimonials-section h2.title .highlight {
    color: var(--b9-primary-color);
}

.testimonials-section .description { 
    margin: auto;
    font-weight: 400;
    font-size: 18px;
    color: #575D66;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 750px;
}
.testimonials-section .description .strong {
    font-weight: 700;
}

.testimonials-section .testimonials-list {
    column-count: 3;
    gap: 16px 30px;
    position: relative;
}

.testimonials-section .testimonial-image {
    z-index: 99;
    position: relative;
}
 
.testimonials-section .testimonial-image img {
    width: 100%;
    aspect-ratio: 490 / 581;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 19px;
}

.testimonial-card {
    position: relative;
    max-width: 490px;
    padding: 16px 24px 24px 24px;
    border-radius: 24px;
    background: #F2F5F7;
    break-inside: avoid;
    margin-bottom: 16px;
}

.testimonial-card .testimonial-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.testimonial-card .testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover; /* 🔥 object-fit */
}

.testimonial-card .testimonial-info .testimonial-name {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;

}

.testimonial-card .testimonial-info .testimonial-role {
    font-size: 16px;
    color: var(--b9-text-dark);
    line-height: 1.6;
    font-weight: 400;
}

.testimonial-card .testimonial-stars {
    display: flex;
    gap: 2px;
    height: 20px;
}

.testimonial-card .testimonial-stars img {
    width: 16px;
    height: 16px;
}

.testimonial-card .testimonial-content {
    font-size: 18px;
    line-height: 1.5;
    color: var(--b9-text-dark);
    margin: 0;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 107px;
    height: 93px;
    opacity: 0.5;
    object-fit: contain;
}

.testimonial-rating.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 60px 20px 74px 20px;
}

.testimonial-rating .count {
    color : var(--b9-primary-color);
    font-size: 48px;
    line-height: 1.6;
    font-weight: 800;
    z-index: 99;
}

.testimonial-rating .text {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 26px;
    color: var(--b9-text-dark);
    z-index: 99;
}

.testimonial-rating .btn-primary {
    background-color: var(--b9-primary-color);
    color: var(--b9-text-dark);
    padding: 19px 0px;
    width: 255px;
    max-width: 100%;
    border-radius: 99px;
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 1.4;
    z-index: 99;
}

.testimonial-rating .btn-primary:hover {
    background-color: var(--b9-primary-hover);
    color: var(--b9-ebony);
    border-color: var(--b9-primary-hover);
}


@media screen and (max-width: 768px) {
    .testimonials-section {
        padding: 16px;
    }

    .testimonials-section h2.title {
        font-weight: 700;
        font-size: 32px;
    }
    .testimonials-section .description { 
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
        max-width: unset;
    }
    .testimonials-section .testimonials-list {
        display: flex;
        gap: 10px;
        overflow: scroll;
        align-items: flex-start;
    }

    .testimonials-background-overlay, .testimonials-section .testimonial-image {
        display: none;
    }

    .testimonial-card {
        padding: 12px 16px 16px 16px;
        min-width: 360px;
    }

    .testimonial-card .testimonial-info .testimonial-name {
        font-size: 16px;
        line-height: 1.6;
        font-weight: 700;
    }
    .testimonial-card .testimonial-info .testimonial-role {
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
    }

    .testimonial-card .testimonial-stars {
        gap: 1.47px;
        height: 14.69px;
    }

    .testimonial-card .testimonial-stars img {
        width: 11.76px;
        height: 11.76px;
    }

    .testimonial-card .testimonial-content {
        font-size: 14px;
        line-height: 1.4;
    }

    .testimonial-card .quote-icon {
        top: 12px;
        right: 20px;
        width: 79px;
        height: 69px;
    }

    .testimonial-rating.testimonial-card {
        height: 220px;
    }
    .testimonial-rating .btn { 
        font-size: 16px;
        font-weight: bold;
    }
}

/* Mark's custom styles */
.testimonials-section h2.title{margin:0 auto 25px;font-size: 40px}
.testimonials-section .description{font-size: 18px}
.testimonials-section .testimonials-list{overflow: auto}
.testimonial-card{min-width: 100%}