.testimonial-section-wrapper {
    background-color: var(--global-palette8);
    padding: 3.2rem 3.2rem;
    border-radius: 8px;

    .book-testimonials {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.6rem;
    }

    .testimonial-card {
        display: grid;
        grid-template-rows: auto auto 1fr;
        text-align: left;
        box-shadow: var(--global-md-block-shadow);
        padding: 3.2rem;
        border-radius: 8px;
        margin: 1.2rem 0;
        background: var(--global-palette9)
    }

    .testimonial-image {
        aspect-ratio: 1/1;
        border-radius: 50%;
        overflow: clip;
        max-width: 200px;
        margin: 0 auto;
        margin-bottom: 1.2rem;
    }

    .testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .testimonial-name {
        font-size: 1.6rem;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .testimonial-text-wrapper {
        position: relative;
    }

    .testimonial-text {
        overflow: hidden;
        max-height: 10.2rem; /* about 4 lines at 1.65em line height */
        transition: max-height 0.3s ease;
    }

    .testimonial-text.expanded {
        max-height: none;
    }

    .testimonial-toggle {
        margin-top: 1rem;
        background: none;
        border: none;
        color: var(--global-palette7);
        cursor: pointer;
        font-weight: 500;
        font-size: 1.6rem;
        padding: 0;
        text-decoration: underline;
    }

    .testimonial-fade {
        position: absolute;
        bottom: 2.4rem;
        left: 0;
        right: 0;
        height: 3em;
        background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .testimonial-pagination {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .testimonial-pagination .page-numbers {
        display: inline-block;
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        background: #f2f2f2;
        color: #333;
        text-decoration: none;
    }

    .testimonial-pagination .current {
        background: #39404d;
        color: #fff;
        font-weight: bold;
    }

    .testimonial-section-title {
        margin-bottom: 2.4rem;
        font-size: 1.8rem;
        color: var(--global-palette1);
    }

    @media (max-width: 767px) {
        .book-testimonials {
            grid-template-columns: 1fr;
        }
    }
}
