/*--------------------------------------------------------------
# Icon Box
--------------------------------------------------------------*/

.pxl-icon-box {
    .pxl-item--icon {
        line-height: 1;
        i {
            line-height: 1;
        }
        img {
            width: auto;
        }
    }
}

.pxl-icon-box1 {
    position: relative;
    .pxl-item--content {
        display: flex;
        align-items: center;
    }
    .pxl-item--icon {
        position: relative;
        -webkit-box-flex: 0;-ms-flex: none;flex: none;
        margin: 0 6px 0 0;
        border: 1px solid #585858;
        width: 21px;
        height: 21px;
        @extend .pxl-item--flexct;
        @include border-radius(50%);
        &:before {
            background-color: transparent;
            z-index: 1;
            opacity: 0;
            @extend .pxl-spill;
            @include transform(scale(1.2));
            @include border-radius(inherit);
            @include transition(inherit);
        }
        i {
            color: #585858;
            font-size: 10px;
            z-index: 2;
            @include transition(inherit);
        }
        img {
            max-height: 10px;
            z-index: 2;
        }
        svg {
            z-index: 2;
        }
    }
    .pxl-item--title {
        margin-bottom: 0;
        color: $third_color;
        font-size: 13.333px;
        font-weight: 500;
        line-height: 31.998px; 
    }
    .item--link {
        display: flex;
        align-items: center;
        &:hover {
            .pxl-item--icon {
                border-color: $secondary_color;
                &:before {
                    background-color: $secondary_color;
                    opacity: 1;
                    @include transform(scale(1.05));
                }
                i {
                    color: $fourth_color;
                }
            }
            .pxl-item--title {
                color: $secondary_color;
            }
        }
        &.pxl-hover-transition {
            .pxl-item--icon, .pxl-item--title {
                @include transition(all 500ms ease-in-out-in-out);
            }
        }
    }
}

.pxl-icon-box2 {
    .pxl-item--inner {
        text-align: center;
        background: #FFFFFF;
        padding: 50px 15px;
        @include border-radius(10px);
        &:hover {
            .pxl-item--icon {
                transform: rotateY(360deg);
            }
        }
    }
    .pxl-item--icon {
        display: inline-block;
        width: 60px;
        height: 60px;
        margin-bottom: 17px;
        transition: all 0.8s ease-in-out;
        img {
            width: 100%;
        }
        i {
            font-size: 60px;
            color: $primary_color;
        }
    }
    .pxl-item--title {
        color: $primary_color;
        margin: 0;
        font-size: 20px;
        @media #{$max-lg} {
            font-size: 17px;
        }
    }
}

.pxl-icon-box3 {
    .pxl-icon--content {
        padding: 81px 44px 63px 76px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        background-color: #fff;
        transform-style: preserve-3d;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        @media (max-width: 1404px) {
            padding: 44px;
        }
        @media #{$max-sm} {
            flex-direction: column;
            align-items: flex-start;
        }
        .pxl-tab--des {
            font-size: 15px;
            font-weight: 400;
            line-height: 28px;
            color: $primary_color;
            max-width: 316px;
            margin-top: 40px;
            margin-bottom: 33px;
        }
        .pxl-item--button {
            a {
                font-size: 14px;
                display: flex;
                align-items: center;
                gap: 11px;
            }
        }
    }
    img {
        max-height: 57.86px;
    }
    .pxl-item--front {
        img {
            &.dark {
                display: none;
            }
        }
    }
    .pxl-item--backdrop {
        background-color: $primary_color;       
        transform: rotatey(180deg) translatez(1px);
        z-index: 99;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;    
        img {
            &.light {
                display: none;
            }
        }
        .pxl-tab--des {
            color: #fff;
        }    
        .pxl-item--button {
            a {
                color: #fff;
                svg {
                    path {
                        stroke: #fff;
                    }
                }
            }
        }
    }
    .pxl-item--inner {   
        max-width: 459px;
        transition-property: box-shadow,transform;
        transition-duration: .6s;
        @include transition(all .5s linear);                
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transform-style: preserve-3d;
        @media #{$max-sm} {        
            max-width: 100%;
            min-height: auto;
            margin-top: 21px;
        }
        .pxl-item--link {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            background-color: transparent;
        }
        &:after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-color: transparent;
            transform: rotatey(90deg);            
        }
        &:hover {            
            transform: rotatey(180deg);
            transform-origin: 50% 50%;
        }
    }
    .btn-tab {
        margin-top: 30px;
        background-color: transparent;
        span {
            font-size: 16px;
            font-style: normal;
            font-weight: 600;
            line-height: 20px;
            color: #fff;
        }
    }
}