/*-- -------------------------- -->
<---      Rating Summary        -->
<--- -------------------------- -*/

#rating-summary {
    padding-bottom: 0;
}

#rating-summary .cs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#rating-summary .cs-title {
    text-align: center;
}

#rating-summary .cs-text {
    max-width: 700px;
}

#rating-summary .rating-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0 0.5rem 0;
}

#rating-summary .avatar-stack {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

#rating-summary .avatar-stack img,
#rating-summary .stack-initial {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

#rating-summary .avatar-stack img + img,
#rating-summary .avatar-stack .stack-initial {
    margin-left: -18px;
}

#rating-summary .stack-initial {
    background-color: var(--primaryOrange);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rating-summary .rating-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

#rating-summary .rating-stars {
    width: 120px;
    height: auto;
    display: block;
}

#rating-summary .rating-text {
    color: var(--headingText);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
}

/*-- -------------------------- -->
<---     Testimonial Cards      -->
<--- -------------------------- -*/

#testimonial-cards .cs-container {
    max-width: 1280px;
}

#testimonial-cards .cards-wrapper {
    column-count: 1;
    column-gap: 1.5rem;
}

#testimonial-cards .review-item {
    display: inline-block;
    width: 100%;
    background: #fff;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    padding: clamp(1.5rem, 2.5vw, 2.375rem);
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

#testimonial-cards .review-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#testimonial-cards .parent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

#testimonial-cards .initial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

#testimonial-cards .avatar-orange {
    background-color: var(--primaryOrange);
}

#testimonial-cards .avatar-green {
    background-color: var(--primaryGreen);
}

#testimonial-cards .avatar-yellow {
    background-color: #F0BB41;
}

#testimonial-cards .avatar-purple {
    background-color: var(--headingText);
}

#testimonial-cards .review-info .cs-h3 {
    color: var(--headingText);
    font-size: 1.25rem;
    line-height: 1.3;
}

#testimonial-cards .review-source {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--bodyText);
    opacity: 0.6;
}

#testimonial-cards .rating-stars {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 0.75rem;
}

#testimonial-cards .review-item .cs-text {
    margin-bottom: 0;
}

#testimonial-cards .reviews-cta {
    text-align: center;
    margin-top: 1.5rem;
}

@media screen and (min-width: 700px) {
    #testimonial-cards .cards-wrapper {
        column-count: 2;
    }
}

@media screen and (min-width: 1024px) {
    #testimonial-cards .cards-wrapper {
        column-count: 3;
    }

    #rating-summary .rating-badge {
        flex-direction: row;
    }
}
