.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
    /* visual gap between cards (can be adjusted) */
    --testimonial-gap: 1rem;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 600%; /* Set to 100% × number of slides */
}

.testimonial {
    /* keep the layout width the same so slider math still works */
    position: relative;
    flex: 0 0 16.666%; /* 100% ÷ number of slides */
    width: 16.666%; /* 100% ÷ number of slides */
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
}

/* draw the visible card (background, radius, shadow) slightly inset using a pseudo element
   so the .testimonial element keeps its original width for slider calculations while
   creating a visual gap between cards */
.testimonial::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--testimonial-gap) / 2);
    right: calc(var(--testimonial-gap) / 2);
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    /* Use the project's consistent inset 2px border instead of a drop shadow */
    box-shadow: inset 0 0 0 2px #eeeeee;
    pointer-events: none;
    z-index: 0;
}

/* keep content above the pseudo-element */
.testimonial > * {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-style: italic;
    color: #007175;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.slider-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.slider-nav button.active {
    background-color: #007175;
}

@media screen and (max-width: 736px) {
    .testimonial {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    .testimonial-text {
        font-size: 1rem;
    }
}
