﻿

.testimonial-section {
    font-family: var(--font-family-body);
    color: var(--color-primary-text);
    padding: 3em 1em 4em;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-average {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary-accent);
    margin-bottom: 0.5rem;
}


.testimonial-cards {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
    justify-content: center;
    gap: 2rem;
}

.testimonial-card {
    flex: 0 0 320px; /* Fixed width cards side by side */
    max-width: 320px;
    background: linear-gradient(145deg, #fff 0%, #fff7f1 100%);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(230, 81, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.reviewer-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-rating {
    color: var(--color-primary-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    user-select: none;
}

    .testimonial-rating .star-empty {
        color: var(--color-light-gray);
    }

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-primary-text);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary-accent);
}

    .testimonial-author small {
        font-weight: 400;
        color: var(--color-primary-text);
    }

.testimonial-cta {
    display: block;
    margin: 3rem auto 0;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary-accent);
    text-decoration: none;
    max-width: max-content;
    cursor: pointer;
}

    .testimonial-cta:hover {
        text-decoration: underline;
    }

/* Responsive for mobile */
@media (max-width: 768px) {
    .testimonial-cards {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .testimonial-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
