/**
 * Testimonials Slider — matches Figma node 93:1582 ("7 - Testimonials"),
 * slider portion only (right-hand card row + nav arrows).
 * Only loaded on pages that render [testimonials_slider].
 */
.nds-testimonials-slider {
    --nds-ts-navy: #0B1B29;
    --nds-ts-teal: #025978;
    --nds-ts-border: #E9EDF8;
    --nds-ts-avatar-bg: #E3ECFD;
    max-width: 1429px;
    font-family: "Poppins", sans-serif;
}

.nds-testimonials-swiper {
    overflow: visible !important;
}

.nds-testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}
.nds-testimonials-swiper .swiper-slide{
    width: 482px;
}
.nds-testimonials-swiper .swiper-slide-shadow {
    background: none !important;
}
.nds-testimonial-card {
    background: #fff;
    border: 1px solid var(--nds-ts-border);
    border-radius: 6px;
    padding: 22px 25px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100%;
    width: 455px;
}

.nds-testimonial-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nds-testimonial-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    align-items: center;
}

.nds-testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--nds-ts-avatar-bg);
}

.nds-testimonial-avatar--placeholder {
    display: inline-block;
}

.nds-testimonial-quote-icon {
    color: var(--nds-ts-teal);
    line-height: 1;
    flex-shrink: 0;
}

.nds-testimonial-quote-icon svg {
    display: block;
}

.nds-testimonial-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nds-ts-navy);
}

.nds-testimonial-divider {
    border: none;
    border-top: 1px solid var(--nds-ts-border);
    margin: 0;
    width: 100%;
}

.nds-testimonial-copy {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nds-ts-navy);
}

.nds-testimonial-copy p:last-child {
    margin-bottom: 0;
}


/* Nav arrows — rendered by the separate [testimonials_nav] shortcode, so
   this can end up anywhere on the page; no margin assumptions here. */
.nds-testimonials-nav {
    display: flex;
    gap: 10px;
}

.nds-testimonials-nav button {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid #E9EDF8;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}


/* Hide nav automatically when Swiper determines it isn't needed */
.nds-testimonials-nav button.swiper-button-lock,
.nds-testimonials-nav button:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 767px){
    .nds-testimonials-swiper .swiper-slide{
        width: 320px;
    }
    .nds-testimonial-card {
        width: 300px;
    }
}