/* ================================
   TESTIMONIALS SLIDER (HOMEPAGE)
   ================================ */

/* Match surrounding block background */
.testimonials-section {
    background: #f2fdfd;
    border-radius: 24px;
    padding: 20px 40px 40px;
}

/* Header */
.testimonials-header h2 {
    font-size: 2.4rem;
    margin: 10px 0 20px 0;
    text-align: center;
    color: #0c2e32;
}

/* Wrapper */
.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* arrows + slider centred */
    gap: 20px;
}

/* Slider: one-at-a-time carousel */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    gap: 0;                 /* one slide at a time */
    padding: 10px 0;

    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
}

/* Hide scrollbar */
.testimonials-slider::-webkit-scrollbar {
    display: none;
}
.testimonials-slider {
    scrollbar-width: none;
}

/* Each testimonial slide */
.testimonial-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    padding: 40px 36px;

    /* Centre card on desktop */
    max-width: 950px;
    margin: 0 auto;
}

/* Prevent clipped text */
.testimonial-item p {
    overflow: visible !important;
    white-space: normal !important;
}

/* Text */
.testimonial-text {
    font-size: 1.5rem;
    font-weight: 400 !important;
    line-height: 1.8;
    color: #0c2e32;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* Name */
.testimonial-name {
    margin-top: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #0c2e32;
}

/* Navigation arrows */
.testimonials-nav {
    border: none;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.15s ease;
}

.testimonials-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


/* ================================
   MOBILE FIXES (NO OVERLAP)
   ================================ */
@media (max-width: 768px) {

    /* Make the section breathe */
    .testimonials-section {
        padding: 18px 12px 28px;
    }

    /* Keep slide full-width on mobile (prevents weird narrow layout) */
    .testimonial-item {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 28px 18px;
    }

    /* Slightly smaller text for mobile */
    .testimonial-text {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    /* Put arrows UNDER the card so they never cover text */
    .testimonials-slider-wrapper {
        flex-direction: column;
        gap: 14px;
    }

    .testimonials-nav {
        position: static;
        transform: none;
    }
}


/* ================================
   TESTIMONIALS LIST PAGE
   (Shortcode: [jack_testimonials_list])
   ================================ */

.jack-testimonials-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 16px;
}

.jack-testimonials-list__title {
    text-align: center;
    margin: 0 0 24px;
}

.jack-testimonials-list__item {
    margin: 0 0 18px;
}

.jack-testimonials-list__card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.jack-testimonials-list__text {
    font-size: 1.1rem;
    line-height: 1.75;
}

.jack-testimonials-list__name {
    margin-top: 16px;
    font-weight: 700;
    color: #0c2e32;
}
