.ych-testimonials-block {
    position: relative;
    overflow: hidden;
}
.ych-testimonials-header {
    padding: 48px 0 90px 0;
}
.ych-testimonials-header .inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.ych-testimonials-heading {
    color: #fff;
    margin: 0;
    font-size: 30px;
}

.ych-testimonials-container-wrap {
    position: relative;
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 0 48px;
}

.ych-testimonials-list {
    display: flex;
    gap: 28px;
    justify-content: center;
}
.ych-testimonials-list[data-columns="3"] .ych-testimonial {
    width: calc(33.333% - 18.666px);
}
.ych-testimonials-list[data-columns="2"] .ych-testimonial {
    width: calc(50% - 14px);
}
.ych-testimonials-list[data-columns="1"] .ych-testimonial {
    width: 100%;
    max-width: 500px;
}

.ych-testimonial {
    position: relative;
    text-align: center;
    box-sizing: border-box;
}
.ych-testimonial .card {
    background: #fff;
    padding: 30px 24px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    min-height: 180px;
}
.ych-testimonial .quote {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}
.ych-testimonial .author {
    margin-top: 18px;
    color: #222;
    font-weight: 700;
}
.ych-testimonial .avatar {
    position: relative;
    top: -36px;
    display: flex;
    justify-content: center;
}
.ych-testimonial .avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Slider Mode Modifications */
.ych-testimonials-slider-mode .ych-testimonials-container-wrap {
    overflow: hidden;
}
.ych-testimonials-slider-mode .ych-testimonials-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.ych-testimonials-slider-mode .ych-testimonial {
    flex: 0 0 33.333%;
    width: 33.333%;
    padding: 0 14px;
}
.ych-testimonials-slider-mode[data-columns="3"] .ych-testimonial {
    flex: 0 0 33.333%;
    width: 33.333%;
}
.ych-testimonials-slider-mode[data-columns="2"] .ych-testimonial {
    flex: 0 0 50%;
    width: 50%;
}
.ych-testimonials-slider-mode[data-columns="1"] .ych-testimonial {
    flex: 0 0 100%;
    width: 100%;
}

/* Slider Navigation Arrows */
.ych-testimonials-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.05);
    color: #222;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 180ms ease;
}
.ych-testimonials-arrow:hover {
    background: rgba(0,0,0,0.25);
    color: #fff;
}
.ych-testimonials-arrow-left {
    left: 8px;
}
.ych-testimonials-arrow-right {
    right: 8px;
}

/* Responsive styling */
@media(max-width:900px){
    .ych-testimonials-list {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }
    .ych-testimonials-list .ych-testimonial {
        width: 100% !important;
        max-width: 500px;
        margin-bottom: 24px;
    }
    .ych-testimonials-container-wrap {
        margin-top: -30px;
        padding: 0 18px;
    }
    .ych-testimonials-header {
        padding: 36px 0 60px 0;
    }
    .ych-testimonials-heading {
        font-size: 22px !important;
    }

    /* Slider responsive columns override */
    .ych-testimonials-slider-mode .ych-testimonials-list {
        flex-direction: row;
        align-items: stretch;
    }
    .ych-testimonials-slider-mode .ych-testimonial {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-bottom: 0;
    }
    .ych-testimonials-slider-mode .ych-testimonials-container-wrap {
        padding: 0 48px;
    }
}

@media(max-width:600px){
    .ych-testimonials-slider-mode .ych-testimonial {
        flex: 0 0 100%;
        width: 100% !important;
    }
}
