/* WIDGET CONTAINER */
.testimonial-wrapper {
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 20px 0;
}

.adm-testimonials-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 100px;
    max-width: 1700px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 22%;
    width: 100%;
    position: relative;
}


.icon-container .elementor img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 417px;
    width: 100%;
    max-height: 458px;
    height: 100% !important;
    object-fit: contain;
    object-position: top;
}

.icon-container img.quote-icon-lightmode {
    display: block;
}

.icon-container img.quote-icon-darkmode {
    display: none;
}

body.dark-mode .icon-container img.quote-icon-darkmode {
    display: block;
}

body.dark-mode .icon-container img.quote-icon-lightmode {
    display: none;
}

.quote-icon {
    width: 100%;
}

.testimonials-swiper {
    width: 70%;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px !important;
}

.testimonials-name {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
}

.testimonial-name-p {
    color: var(--e-global-color-text) !important;
    font-size: 18px;
    font-weight: 700;
    font-family: "Montserrat", serif;
}

.adm-testimonials-container .testimonial-thumbnail {
    max-width: 62px;
    max-height: 62px;
    border-radius: 50%;
}

.testimonial-swiper-slide {
    opacity: 0;
    transition: opacity 0.3s;
    max-width:890px !important;
}


.testimonial-swiper-slide.swiper-slide-active {
    opacity: 1;
}

.testimonial-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.testimonial-name {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
    font-family: "Montserrat", serif;
    color: var(--e-global-color-text) !important;
}

/*Citation*/
.testimonial-content {
    font-size: 25px;
    font-weight: 700;
    line-height: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--e-global-color-text) !important;
    font-family: 'Montserrat', serif;
}

.adm-testimonials-container .swiper-pagination {
    position: relative;
    display: flex;
    justify-content: flex-start;
    max-width: 85px;
    width: 100%;
    margin-left: 12px;
    gap: 5px;
    margin-top: 30px;
}

/*Active paginationbullet gets a border*/
.swiper-pagination-bullet-active::before {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 30px;
    border: 1px solid var(--e-global-color-text) !important;
    transform: translate(-7px, -7px);
}

.swiper-pagination-bullet:nth-child(-n+2) {
    order: 1;
}

.swiper-pagination-bullet-active {
    background: var(--e-global-color-text) !important;
    opacity: 1;
}

.swiper-pagination-bullet {
    background: var(--e-global-color-text) !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet:before{
    display: block;
    content: "";
    width: 20px;
    height: 20px;
}

.testimonials-swiper .swiper-pagination-bullet:hover {
    background: var(--e-global-color-primary) !important;
}

.testimonials-swiper .swiper-pagination-bullet-active:hover::before {
    border: 1px solid var(--e-global-color-text) !important;
}


/*Responsive*/

@media screen and (max-width: 767px) {
    .testimonial-wrapper {
        padding: 5px;
    }

    .adm-testimonials-container {
        margin-top: 20px;
        flex-direction: column;
        gap: 40px;
        padding-left: 10px;
        align-items: center;
    }

    .testimonial-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .testimonial-content {
        font-size: 18px;
        line-height: 34px;
        text-align: center;
        margin-top: 30px;
    }

    .testimonials-swiper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .testimonials-name {
        display:flex;
        flex-direction: column;
        font-size: 15px;
        justify-content: center;
        align-items: center;
    }

    .testimonial-name-p {
        margin-bottom: 40px;
    }

    .adm-testimonials-container .swiper-pagination {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        margin:auto;
    }

    .icon-container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        max-width: 250px;
        width: 100%;
        position: relative;
    }

    .adm-testimonials-container .testimonial-thumbnail {
        margin-top:40px;
        max-width: 65px;
        max-height: 65px;
    }
}

@media screen and (min-width: 767px) and (max-width: 1024px) {
    .adm-testimonials-container {
        flex-direction: row;
        width: 100%;
        gap: 40px;
    }

    .testimonial-item {
        display: flex;
        justify-content: center;
        max-height: 50%;
    }

    .testimonial-content {
        font-size: 28px;
    }

    .testimonials-swiper {
        height: 100%;
        display: flex;

    }

    .adm-testimonials-container .swiper-pagination {
        position: relative;
        display: flex;
        justify-content: flex-start;
        width: 100%;
        margin-left: 12px;
        margin-top: 30px;
    }

}


@media screen and (min-width: 768px) and (max-width: 1366px) {
    .testimonial-wrapper {
        padding: 15px;
    }

    .testimonial-container {
        flex-direction: row;
    }

    .testimonial-content {
        font-size: 25px;
        line-height: 30px;
    }

    .adm-testimonials-container .testimonial-thumbnail {
        max-width: 65px;
        max-height: 65px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1366px) {

    .adm-testimonials-container .swiper-pagination {
        position: relative;
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    .icon-container {
        max-width: 250px;
        width: 100%;
    }

    .testimonials-swiper {
        max-width: 650px;
        width: 100%;
    }

    .adm-testimonials-container {
        display: flex;
        flex-direction: row;
        max-width: 1000px;
        width: 100%;
        gap: 50px;
    }
}