/**
 * @license MIT, https://opensource.org/license/MIT
 */

.testimonial .title {
    margin-bottom: 3rem;
    text-align: center;
}

.testimonial .testimonial-list {
    display: block;
    columns: 1;
    column-gap: 1rem;
}

.testimonial .testimonial-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 0 1rem;
    padding: 1.75rem;
    break-inside: avoid;
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: calc(var(--pico-border-radius) * 1.5);
    box-shadow: 0 1px 2px #09090B0D;
}

.testimonial .testimonial-item:first-child {
    background-image: radial-gradient(ellipse 100% 80% at 0% 0%, #6366F11F 0%, #00000000 70%);
}

.testimonial .testimonial-item:first-child blockquote {
    color: var(--pico-contrast);
    font-size: calc(var(--pico-font-size) * 1.15);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.testimonial blockquote {
    margin: 0 0 1.5rem;
    padding: 0;
    color: var(--pico-color);
    font-size: calc(var(--pico-font-size) * 0.95);
    line-height: 1.6;
    border: 0;
}

.testimonial blockquote::before {
    content: "“";
}

.testimonial blockquote::after {
    content: "”";
}

.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial .avatar {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--pico-muted-border-color);
}

.testimonial .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.testimonial .person {
    display: grid;
    gap: 0.0625rem;
    font-size: calc(var(--pico-font-size) * 0.875);
}

.testimonial .name {
    color: var(--pico-contrast);
    font-weight: 600;
}

.testimonial .role {
    color: var(--pico-muted-color);
}

@media screen and (min-width: 768px) {
    .testimonial .testimonial-list {
        columns: 2;
    }
}

@media screen and (min-width: 1100px) {
    .testimonial .testimonial-list:has(> :nth-child(3)) {
        columns: 3;
    }
}
