
/********************************************************************************/ /* Testomonials */

.testomonials .section-head .d-flex {
    width: calc(100% - 306px);
}

.testomonials .section-head-btns-wrap {
    width: 306px;
    justify-content: end;
    gap: 40px;
}

.testomonials .section-head .d-flex .mid-line {
    width: calc(100% - 220px - 112px);
    margin: 0 auto;
}

.testomonials .mid-line:after,
.testomonials .mid-line:before,
.testomonials .mid-line {
    background: color-mix(in srgb, var(--dark_gray_color) 20%, transparent);
}

.section-head .section-left-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    color: var(--dark_gray_color);
}

.testomonials .swiper-buttons:before {
    content: none;
}

.testomonials .swiper-buttons {
    position: absolute;
    top: 55px;
    left: 200px;
}

.testomonials .swiper-button-next {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--dark_gray_color);
    border-radius: 100%;
    margin: 0;
    left: unset;
    right: unset;
    transition: all .3s ease;
}

.testomonials .swiper-button-prev {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--dark_gray_color);
    border-radius: 100%;
    margin: 0 0 0 8px;
    left: unset;
    right: unset;
    transition: all .3s ease;
}

.testomonials .swiper-button-next:after,
.testomonials .swiper-button-prev:after {
    font-size: 20px;
    color: var(--dark_gray_color);
}

.testomonials .swiper-button-prev:hover:before {
    content: " ";
    width: 30px;
    height: 58px;
    background-color: transparent;
    border-top-right-radius: 48px;
    border-bottom-right-radius: 48px;
    border: 2px solid orange;
    border-left: 0;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.testomonials .swiper-button-next:hover:before {
    content: " ";
    width: 30px;
    height: 58px;
    background-color: transparent;
    border-top-left-radius: 48px;
    border-bottom-left-radius: 48px;
    border: 2px solid orange;
    border-right: 0;
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.testomonials .swiper-button-prev:hover,
.testomonials .swiper-button-next:hover {
    color: var(--bg_color);
    background: var(--secondary_color);
    border-color: var(--secondary_color);
}

.testomonials .swiper-button-next:hover:after,
.testomonials .swiper-button-prev:hover:after {
    color: var(--bg_color);
}

.testomonials {
    position: relative;
}

.testomonials:before {
    content: " ";
    background-color: var(--secondary_color);
    -webkit-mask-image: url(../img/wave-2.svg);
    mask-image: url(../img/wave-2.svg);
    width: 78px;
    height: 101px;
    position: absolute;
    right: 5%;
    top: 50%;
    box-shadow: 0 4px 26px 0 color-mix(in srgb, var(--secondary_color) 36%, transparent);
    z-index: 1;
    transform: scaleX(-1);
}

.testomonials:after {
    content: " ";
    background-color: var(--primary_color);
    -webkit-mask-image: url(../img/wave-2.svg);
    mask-image: url(../img/wave-2.svg);
    width: 78px;
    height: 101px;
    position: absolute;
    left: 5%;
    top: 50%;
    box-shadow: 0 4px 26px 0 color-mix(in srgb, var(--primary_color) 36%, transparent);
    z-index: 1;
    transform: scale(0.8);
}

.comment-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px;
}

.comment-box .bg-box {
    width: 186px;
    height: calc(100% + 56px);
    background: var(--secondary_color);
    border-radius: 24px;
    position: absolute;
    top: -28px;
    right: 40px;
    z-index: -1;
}

.comment-box .img-wrap {
    position: relative;
    width: 267px;
    background: #ffffff;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--dark_gray_color) 24%, transparent);
    border-radius: 20px;
}

.comment-box .img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

.comment-box .commenter-name {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary_color);
    margin-bottom: 12px;
}

.comment-box .commenter-bought {
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--dark_gray_color) 20%, transparent);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 12px;
    color: var(--dark_gray_color);
    border-radius: 100px;
    margin: 0 auto;
    display: table;
}

.comment-box .comment-wrap {
    width: 610px;
}

.comment-box .comment-wrap .line {
    width: 194px;
    height: 1px;
    background: var(--primary_color);
    position: relative;
}

.comment-box .comment-wrap .line:before {
    content: " ";
    width: 9px;
    height: 9px;
    background: var(--secondary_color);
    position: absolute;
    left: 0;
    top: -4px;
}

.comment-box .star-rating {
    padding-right: 16px;
    display: flex;
    align-items: center;
}

.comment-box .star-rating .star {
    color: var(--secondary_color);
    font-size: 25px;
    direction: ltr;
    display: inline-block;
}

.comment-box .star-rating .rating {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding-right: 5px;
    color: var(--dark_gray_color);
}

.comment-box .comment-text {
    padding: 60px 60px 0 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark_gray_color);
    line-height: 36px;
    position: relative;
}

.comment-box .comment-text:before {
    content: "“";
    font-family: "playfair";
    font-size: 123px;
    font-weight: 500;
    line-height: 104px;
    color: var(--primary_color);
    position: absolute;
    right: 12px;
    top: 3px;
    transform: scaleX(-1);
}

@media (max-width: 1199px) {

    .testomonials .section-head .d-flex {
        max-width: 100%;
    }

    .testomonials .section-head .d-flex .mid-line {
        display: block;
    }

    .testomonials:before {
        right: -5px;
    }

    .testomonials:after {
        left: -50px;
    }
}

@media (max-width: 991px) {


    .testomonials {
        padding: 0 35px;
    }

    .testomonials .swiper {
        padding-bottom: 80px;
    }

    .testomonials .section-head .d-flex {
        margin: 0 auto;
        width: 100%;
    }

    .comment-box .bg-box,
    .testomonials .section-head .d-flex .mid-line {
        display: none;
    }

    .testomonials .section-head {
        flex-wrap: wrap;
        padding: 0;
    }

    .testomonials .section-head .section-head-btns-wrap {
        display: flex;
        width: 100%;
        margin-bottom: 0;
    }

    .testomonials .swiper-buttons {
        top: unset;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .comment-box {
        flex-wrap: wrap;
        padding: 0;
    }

    .comment-box .img-wrap {
        width: 291px;
        max-width: 100%;
    }

    .comment-box .comment-text:before {
        display: none;
    }

    .comment-box .comment-text {
        padding: 20px 0 0;
        order: 3;
        font-size: 16px;
        font-weight: 400;
        line-height: 32px;
        text-align: center;
    }

    .comment-box .comment-wrap .line {
        margin: 0 auto;
        order: 2;
    }

    .comment-box .star-rating {
        padding: 0;
        justify-content: center;
        margin: 10px auto 0;
        order: 1;
    }

    .comment-box .comment-wrap {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .testomonials:before,
    .testomonials:after{
        display: none;
    }
}