/* Testimonial Card ---------------------------------- */
.testi-area-1 {
    padding-top: 213px;
}
.testi-area-2 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    &.bg-smoke {
        .testi-card.style2 {
            background: $white-color;
        }
    }
}
.testi-area-4 {
    padding-bottom: 300px;
}
.testimonial-slider-arrow1 {
    --pos-x: 0;
    .slick-arrow {
        position: relative;
        margin-top: 0;
    }
    .slick-arrow.slick-next {
        margin-left: 6px;
    }
}
.testi-slider1 {
    margin-right: -220px;
}
.testi-card {
    background: $white-color;
    overflow: hidden;
    position: relative;
    &:after {
        content: '';
        position: absolute;
        left: -36px;
        top: -93px;
        border-radius: 80px;
        transform: rotate(-45deg);
        background: $theme-color;
        width: 139.95px;
        height: 280px;
        z-index: -1;
    }
    &_bg-shape {
        display: inline-block;
        width: 70%;
        img {
            width: 100%;
        }
    }
    &_profile {
        padding: 40px 40px 40px 30px;
        display: flex;
        gap: 40px;
    }
    .media-left {
        text-align: center;
        .testi-card_quote {
            margin-top: 39px;
        }
    }
    &_avater {
        border-radius: 99px;
        overflow: hidden;
        img {
            border-radius: 50%;
        }
    }
    &_name {
        font-size: 20px;
        font-weight: 700;
        font-family: $body-font;
        margin-bottom: 3px;
        margin-top: -0.28em;
    }
    &_desig {
        margin-bottom: 0;
        display: block;
        font-size: 14px;
        font-weight: 500;
        font-family: $body-font;
        color: $theme-color;
    }
    &_text {
        margin-bottom: -0.4em;
        margin-top: 15px;
        font-size: 18px;
        font-weight: 400;
        font-family: $body-font;
        color: $title-color;
        line-height: 30px;
    }
    &.style2 {
        background: $smoke-color;
        position: relative;
        overflow: inherit;
        &:after {
            content: '';
            position: absolute;
            height: 42px;
            width: 35px;
            background: #C61A07;
            left: 80px;
            border-radius: 30px 30px 30px 25px;
            transform: none;
            bottom: -9px;
            top: auto;
            z-index: -1;
        }
        .testi-card_profile {
            padding: 40px 40px 35px;
            gap: 30px;
        }
        .testi-box_review {
            background: $theme-color;
            display: inline-block;
            padding: 25px 24px 27px 14px;
            position: absolute;
            left: 40px;
            bottom: -10px;
            clip-path: path("M1.24733e-06 101.464C7.54374e-07 112.742 9.64074 122.398 22.8834 124.384L24.2065 124.583L24.2765 124.687L60 130C50.3414 127.407 43.5887 119.841 43.5887 111.134L43.5796 98.7621L43.5658 98.7621L43.5658 33.021C43.5658 1.7437 33.9248 5.08731 20.6824 3.10161L0.000256056 0L1.24733e-06 101.464Z");
            i {
                display: block;
                color: $white-color;
                font-size: 14px;
                ~ i {
                    margin-top: 2px;
                }
            }
        }
        .testi-card_text {
            margin-top: -0.3em;
            color: $title-color;
            padding-bottom: 24px;
            margin-bottom: 27px;
            border-bottom: 1px solid rgba(20, 20, 34, 0.1);
        }
        .media {
            display: flex;
            gap: 20px;
        }
    }
}
.testi-block {
    background: $smoke-color;
    padding: 40px;
    position: relative;
    .review-rating {
        background: $theme-color;
        clip-path: polygon(100% 0, 90% 50%, 100% 100%, 0% 100%, 0% 0%);
        color: $white-color;
        padding: 7px 40px 7px 20px;
        display: inline-block;
    }
    .quote-icon {
        font-size: 20px;
        color: $white-color;
        clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 20% 85%, 0 100%);
        background: $title-color;
        display: inline-block;
        border-radius: 3px 3px 0 0;
        position: absolute;
        right: 40px;
        top: 40px;
        padding: 0px 11.4px 4px;
        line-height: 36px;
    }
    &_subtitle {
        font-weight: 500;
        font-family: $body-font;
        margin-top: 20px;
        font-size: 20px;
    }
    &_text {
        font-size: 18px;
        color: $title-color;
    }
    &_profile {
        display: flex;
        position: relative;
        align-items: center;
        z-index: 0;
        gap: 30px;
        padding: 10px 0;
        &:after {
            content: '';
            position: absolute;
            left: -40px;
            top: 0;
            background: $white-color;
            height: 100%;
            width: 120px;
            z-index: -1;
            border-radius: 0 50px 50px 0;
            border-left: 2px solid $theme-color;
        }
    } 
    &_avater {
        img {
            border-radius: 50%;
        }
    }
    .box-title {
        font-size: 20px;
        margin-bottom: 3px;
    }
    &_desig {
        margin-bottom: 0;
        font-size: 14px;
        font-weight: 500;
        color: $theme-color;
        font-family: $title-font;
    }
    &.style2 {
        background: $white-color;
        padding: 40px;
        display: flex;
        gap: 20px;
        .testi-block_profile {
            flex: none;
            display: block;
            padding: 0;
            &:after {
                display: none;
            }
        }
        .quote-icon {
            background: transparent;
            position: relative;
            top: auto;
            right: auto;
            padding: 0;
            line-height: normal;
            clip-path: none;
            margin-top: 30px;
            padding-top: 83px;
            &:after {
                content: '';
                position: absolute;
                height: 53px;
                width: 4px;
                background: $smoke-color;
                left: 50%;
                top: 0;
            }
        }
        .testi-block_text {
            color: $body-color;
            margin-top: -0.3em;
            margin-bottom: 20px;
        } 
        .testi-block_desig {
            margin-bottom: -0.4em;
        }
    }
}
@media (max-width: 1600px) {
    .testi-slider1 {
        margin-right: -150px;
    }
}
@include xxl {
    .testi-slider1 {
        margin-right: -50px;
    }
    .testimonial-slider-arrow1 .slick-arrow {
        --pos-x: 0px;
    }
    .testi-card_text {
        font-size: 15px;
        line-height: inherit;
    }
    .testi-card_avater {
        width: 90px;
    } 
    .testi-card:after {
        left: -41px;
        top: -114px;
        width: 110px;
        height: 280px;
    }
}
@include ml {
    .testi-slider1 {
        margin-right: -12px;
    }
}
@media (max-width: 1200px) {
    .testi-slider1 {
        margin-right: -12px;
    }
    .testi-block_text {
        font-size: 16px;
    }
}
@include lg {
    .testi-block.style2 .testi-block_text {
        font-size: 18px;
    }
    .testi-block.style2 .quote-icon {
        padding-top: 60px;
        margin-top: 20px;
    }
    .testi-block.style2 .quote-icon:after {
        height: 40px;
    }
}
@include md {
    .testi-area-1 {
        padding-top: 80px;
    }
    .testimonial-slider-arrow1 .slick-arrow {
        margin: 0;
    }
    .testi-card.style2 .testi-card_text {
        font-size: 18px;
        line-height: 30px;
    }
    .testi-block.style2 .quote-icon {
        padding-bottom: 3px;
        position: absolute;
        bottom: 0;
        &:after {
            display: none;
        }
    }
}
@include xs {
    .testi-card_avater {
        width: 80px;
    }
    .testi-card:after {
        left: -47px;
        top: -122px;
        width: 105px;
        height: 280px;
    }
    .testi-card.style2 .testi-card_text {
        font-size: 16px;
        line-height: inherit;
    }
    .testi-card.style2 .testi-card_profile {
        display: block;
        .testi-card_avater {
            margin-bottom: 20px;
        }
    }
    .testi-card.style2 .media {
        margin-left: 65px;
        margin-top: 40px;
    }
}
@include vxs {
    .testi-card_profile {
        display: block;
    }
    .testi-card .media-left {
        display: flex;
        justify-content: space-between;
        margin-bottom: 40px;
    }
    .testi-card_name {
        font-size: 18px;
    }
    .testi-card.style2 .testi-card_profile .testi-card_avater {
        margin-bottom: 0;
    }
    .testi-card.style2 .media-left {
        margin-bottom: 30px;
    }
    .testi-card.style2 .testi-card_profile {
        padding: 30px;
    }
    .testi-card.style2 .media {
        display: block;
        text-align: end;
        .testi-box_quote {
            margin-bottom: 20px;
        }
    }
    .testi-block {
        padding: 30px;
        .quote-icon {
            top: 30px;
            right: 30px;
        }
        .testi-block_profile:after {
            left: -30px;
            width: 110px;
        }
        .testi-block_subtitle {
            font-size: 18px;
        }
        .box-title {
            font-size: 18px;
        }
    }
    .testi-block.style2 {
        padding: 30px;
        display: block;
        .testi-block_profile {
            margin-bottom: 20px;
        }
        .quote-icon {
            right: 0;
        }
        .testi-block_text {
            font-size: 16px;
        }
    }
    .testi-card_profile {
        padding: 40px 30px 30px 30px;
    }
}
