/*
 * The V4 theme absolutely positions both the testimonial and its controls
 * inside a fixed-height slider. Longer testimonials can therefore reach the
 * navigation. This patch lets the active testimonial determine the height
 * and places the controls in normal document flow underneath it.
 */
.testimonial-section .testimonial-slider {
    position: relative;
    min-height: 0 !important;
    padding: 25px 0 0 !important;
    overflow: visible;
}

.testimonial-section .testimonial-slide {
    position: relative !important;
    inset: auto !important;
    display: none;
    width: 100%;
    max-width: 930px;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: none !important;
}

.testimonial-section .testimonial-slide.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.testimonial-section .testimonial-slide blockquote {
    margin: 25px 0 22px;
    overflow-wrap: anywhere;
}

.testimonial-section .testimonial-slide cite {
    display: block;
    padding-bottom: 4px;
}

.testimonial-section .testimonial-controls {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    clear: both;
    width: 100%;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.testimonial-section .testimonial-dots {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 640px) {
    .testimonial-section .testimonial-slider {
        min-height: 0 !important;
        padding-top: 12px !important;
    }

    .testimonial-section .testimonial-slide blockquote {
        margin-top: 20px;
        font-size: 25px;
        line-height: 1.38;
    }

    .testimonial-section .testimonial-controls {
        justify-content: center;
        margin-top: 30px;
        gap: 14px;
    }
}

