/**
 * File: assets/style.css
 * Testimonial Slider Styles (Swiper Version)
 */

.testimonial-slider-container {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Slider Wrapper */
.testimonial-slider-wrapper {
    position: relative;
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-swiper {
    position: relative;
    width: 100%;
    /* Space for shadow/scale */
    /* Swiper adds overflow hidden by default which masks shadow/scale sometimes */
    overflow: visible !important;
}

/* Slide Item */
.swiper-slide {
    width: auto;
    /* Let Swiper handle width based on slidesPerView */
    height: auto;
    opacity: 0.7;
    /* User requested 70% visibility for side slides */
    transform: scale(0.7);
    /* User requested 70% size */
    transition: all 0.5s ease;
    /* Basic alignment */
    display: flex;
    justify-content: center;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Card Content */
.testimonial-inner-content {
    background: #f7f8fc;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    height: 100%;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);*/
    /* Width management: Ensure card fits comfortably in slide */
    width: 100%;
    /*max-width: 600px;*/
    /* Limit max card width */
    box-sizing: border-box;
}

/* Image Wrapper */
.testimonial-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
    max-width: 200px;
    align-content: center;
    align-items: center;
    display: flex;
    aspect-ratio: 1 / 1;
    max-height: 200px;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Content */
.testimonial-content-wrapper {
    flex: 1;
    text-align: left;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-style: normal;
}

.testimonial-info {
    display: block;
}

.testimonial-author-name {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.testimonial-author-role {
    display: block;
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.testimonial-prev,
.testimonial-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #B3B3B4;
    background: #fff;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    z-index: 10;
    aspect-ratio: 1/1;
    padding: 5px;
}
.testimonial-prev .dashicons,
.testimonial-next .dashicons{
    width: 30px;
    height: 30px;
    font-size: 30px;
}
.arrow-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: -2px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Responsive */
@media (max-width: 1080px){
    .testimonial-image-wrapper{
        max-width: 140px;
        max-height: 140px;
    }
}
@media (max-width: 768px) {
    .testimonial-controls{
        margin-top: 30px;
    }
    .testimonial-prev, .testimonial-next {
        width: 34px;
        height: 34px;
        aspect-ratio: 1 / 1;
        padding: 7px;
    }
    .testimonial-prev img, .testimonial-next img {
        width: auto;
        max-width: 10px;
    }
    .testimonial-prev .dashicons, .testimonial-next .dashicons {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }
    .testimonial-inner-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .testimonial-content-wrapper {
        text-align: center;
    }

    .testimonial-image-wrapper {
        margin: 0 auto 15px auto;
    }
}