/*--------------------------------------------------------------
# Testimonial
--------------------------------------------------------------*/
.pxl-item--star {
    display: inline-block;
    color: #3c3c3c;
    margin: 0 -2px;
    i {
        display: inline-block;
        font-size: 16px;
        margin: 0 2px;
    }
    &.one-star {
        i:nth-child(1) {
            color: #B90808;
        }
    }
    &.two-star {
        i:nth-child(1), i:nth-child(2) {
            color: #B90808;
        }
    }
    &.three-star {
        i:nth-child(1), i:nth-child(2), i:nth-child(3) {
            color: #B90808;
        }
    }
    &.four-star {
        i:nth-child(1), i:nth-child(2), i:nth-child(3), i:nth-child(4) {
            color: #B90808;
        }
    }
    &.five-star {
        i {
            color: #B90808;
        }
    }
}

.pxl-testimonial-carousel1 {
    .wp-arrow.style2 {
        bottom: 74px;
        @media #{$max-xs} {
            bottom: -15px;
            position: relative;
            left: 0;
        }
        .pxl-swiper-arrow {
            .circle {
                width: 54px;
                height: 54px;
            }
        }
    }
    .pxl-carousel-inner {
        position: relative;
    }
    .pxl-swiper-slide {
        cursor: pointer;
    }
    .pxl-item--position {        
        font-size: 20px;      
        font-weight: 400;  
        line-height: 30px;
        color: #fff;        
    }
    .pxl-item--title {
        color: #fff;        
        margin-bottom: 1px;
    }
    .pxl-item--by {
        padding-top: 36px;
        display: flex;
        align-items: center;
        .item-avatar {
            border-radius: 50%;
            overflow: hidden;
            border: 3.286px solid #2C2C2C;
            margin-right: 19px;
        }
        .pxl-item--bottom {
            display: flex;
            flex-direction: column;            
        }     
    }
    .pxl-item--quote {
        position: absolute;
        top: 31px;
        right: 69px;     
        svg {
            width: 65px;
        }   
    }
    .pxl-item--desc {
        display: block;
        color: #fff;        
        font-size: 20px;
        font-weight: 300;
        line-height: 34px;
        margin-bottom: 33px;
    }
    .pxl-item--holder {
        border-bottom: 1px solid $sixth_color;
        @media #{$max-sm} {
            padding-right: 0;
            padding-left: 0;
        }
        .pxl-item--star {
            margin-bottom: 23px;
            i {
                font-size: 18px;
                margin: 0;
                color: $secondary_color;
            }
        }
    }
    .pxl-item--inner  {
        position: relative;
        background-color: $primary_color;
        padding: 54px 69px 56px;
        @media #{$max-lg} {
            padding: 54px 15px;
        }
        @media #{$max-sm} {
            display: block;
            padding: 54px 15px;
        }
    }
}
.pxl-testimonial-carousel2 {
    &:before {
        content: '';
        position: absolute;
        left: calc(50% - 1px);
        bottom: calc(100% - 60px);
        width: 1px;
        height: 120px;
        background: #B2B2B2;
        z-index: 1;
    }
    .pxl-swiper-container {
        overflow: visible;
    }
    .pxl-carousel-inner {
        position: relative;
        padding: 170px 0 75px;
        overflow: hidden;
    }
    .pxl-item--inner {
        position: relative;
        flex-direction: column;
        text-align: center;
        max-width: 614px;
        margin: 0 auto;
        padding: 0 50px 54px;
        @extend .pxl-item--flexct;
        @include border-radius(10px);
        @include user-select(none);
        @media #{$max-lg} {
            max-width: 100%;
        }
        &:before {
            background: #272727;
            @extend .pxl-spill;
            @include border-radius(inherit);
        }
    }
    svg {
        margin-top: -62.5px;
        opacity: 0;
        z-index: -1;
        @include transform(translateY(15px));
    }
    .pxl-item--image {
        position: absolute;
        top: 0;
        width: 125px;
        height: 125px;
        -ms-flex-negative: 0;flex-shrink: 0;
        margin-top: -62.5px;
        opacity: 0;
        z-index: 1;
        @include border-radius(125px);
        img {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 107px;
            height: 107px;
            @include border-radius(107px);
            @include transform(translate(-50%, -50%));
        }
    }
    .pxl-item--desc {
        display: inline-block;
        color: $fourth_color;
        margin: 30px 0 32px;
        opacity: 0.5;
        z-index: 2;
        @media #{$max-xs} {
            font-size: 13px;
        }
    }
    .pxl-item--subtitle {
        position: relative;
        display: flex;
        align-items: center;
        color: $secondary_color;
        opacity: 0;
        margin-bottom: 0;
        @include transform(translateY(15px));
        @media #{$max-xs} {
            font-size: 13px;
        }
        &:before {
            content: "";
            display: inline-block;
            width: 14px;
            height: 2px;
            margin-right: 15px;
            background: #54595F;
        }
        &.pxl-hover-transition {
            @include transition(opacity var(--data-speed) ease, transform 1s);
        }
    }
    &.pxl-slider-next-transition {
        &:before {
            @include animation(pxl_spin_180 var(--data-speed) linear);
        }
    }
    &.pxl-slider-prev-transition {
        &:before {
            @include animation(pxl_reverse_spin_180 var(--data-speed) linear);
        }
    }
    .swiper-slide-active {
        .pxl-item--desc {
            opacity: 1;
        }
        svg, .pxl-item--image, .pxl-item--subtitle {
            opacity: 1;
            @include transform(translateY(0));
            &.pxl-hover-transition {
                @include transition(opacity var(--data-speed) ease .4s, transform var(--data-speed) .4s);
            }
        }
    }
}