/*--------------------------------------------------------------
# Service
--------------------------------------------------------------*/

.pxl-service-grid-layout1,.pxl-service-carousel1 {
    .pxl-swiper-slide {
        overflow: unset;
    }
    .item--icon {
        position: relative;
        line-height: 1;
        margin-bottom: 11px;
        @include transition(all 0.5s ease-in-out);
        z-index: 1;
        font-size: 67px;
        margin-bottom: 70px;
        color: $primary_color;
        max-height: 67px;
        display: flex;
        align-items: center;
        .logo-light {
            @include transition(all 0.5s ease-in-out);
        }
        .logo-dark {
            position: absolute;
            left: 0;
            @include transition(all 0.5s ease-in-out);            
            opacity: 0;            
            transform: scale(0);
            rect,path {
                fill: #fff;
            }               
            mask {
                + g {
                    path {
                        stroke: #fff;
                        fill: unset;
                    }
                }
            }    
        }
    }
    .item--content {
        position: relative;
        z-index: 1;
    }
    .item--count {
        display: block;
        font-size: 15px;
        font-weight: 400;
        @include transition(all 0.3s linear);
        color: $third_color;
        margin-bottom: 15px;
    }
    .item--title {
        font-weight: 600;
        margin-bottom: 6px;        
        @include transition(all 0.3s linear);        
        a {
            color: inherit;
        }
    }
    .item--excerpt {
        margin-bottom: 4px;
        @extend .pxl-color-thi-fif;
    }
    .pxl-item--inner {
        position: relative;
        padding: 64px 52px 54px;
        width: 100%;
        background-color: rgba($fifth_color_hex,0.3);
        border: 1px solid $fifth_color;
        @include border-radius(35px);           
        @include transition(all 0.5s ease-in-out);
        @media #{$max-md} {
            padding: 50px 25px;
        }
        >a {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
        }
        &:hover {
            box-shadow: 0px 35px 40px 10px rgba(#000, 0.25);
            background-color: $secondary_color;
            border-color: $secondary_color;
            .item--icon {
                color: #fff;
                .logo-light {
                    opacity: 0;                    
                    transform: scale(0);
                }
                .logo-dark {
                    opacity: 1;                    
                    transform: scale(1);
                }
                svg {
                    rect,path {
                        fill: #fff;
                    }               
                    mask {
                        + g {
                            path {
                                stroke: #fff;
                                fill: unset;
                            }
                        }
                    }    
                }
            }
            .item--overlay {
                opacity: 1;
                @include transform(scaleY(1));                
                background-color: $secondary_color;
            }
            .item--title {
                color: $fourth_color;
            }
            .item--count {
                color: $fourth_color;
            }
        }
    }
}

.pxl-service-grid-layout2 {
    .item--icon {
        position: relative;
        line-height: 1;
        margin-bottom: 11px;
        @include transition(all 0.5s ease-in-out);
        z-index: 1;
        font-size: 42px;
        margin-bottom: 20px;
        color: $primary_color;
        max-height: 42px;
        display: flex;
        align-items: center;
        .logo-light {
            @include transition(all 0.5s ease-in-out);
        }
        .logo-dark {
            position: absolute;
            left: 0;
            @include transition(all 0.5s ease-in-out);            
            opacity: 0;            
            transform: scale(0);
        }
        svg {
            max-height: 42px;
            max-width: 52px;
            circle,rect,path {
                fill: $secondary_color;
            }               
            mask {
                + g {
                    path {
                        stroke: $secondary_color;
                        fill: unset;
                    }
                }
            }    
        }
    }
    .item--content {
        position: relative;
        z-index: 1;
    }
    .item--count {
        position: absolute;
        bottom: 36px;
        right: 31px;
        display: block;
        @include transition(all 0.5s ease-in-out);
        color: transparent !important;
        fill: transparent;
        margin-bottom: 5px;
        font-family: "DM Sans";
        font-size: 48px;
        font-weight: 700;
        line-height: 28px;
        .pxl-text-line-backdrop {
            position: relative;
            display: inline-flex;
            width: calc(100% + 9px);
            span {
                opacity: 0;
            }
            svg {
                position: absolute;
                top: 50%;
                left: 0;
                width: 100%;
                transform: translate(0, -50%);
                margin-top: 9px;
                stroke: $fifth_color;
            }
        }
        &.TextOutlineAnimation.animated {
            stroke-dasharray: 2000;
            stroke-dashoffset: 2000;
            animation: svg_text_outline 6s linear forwards;
        }
    }
    .item--title {
        position: relative;
        font-family: "DM Sans";
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 21px;        
        @include transition(all 0.5s ease-in-out);        
        a {
            display: block;
            color: inherit;
        }
        &:after {
            content: '';
            width: 67px;
            height: 1px;
            display: inline-block;
            background-color: rgba(#000, 0.1);
            @include transition(all 0.5s ease-in-out);
        }
    }
    .item--excerpt {
        font-size: 16px;
        @extend .pxl-color-thi-fif;
    }
    .pxl-item--inner {
        >div {
            position: relative;
            padding: 64px 31px;   
            @include transition(all 0.5s ease-in-out);
            @media #{$max-xs} {
                padding: 50px 25px;
            }   
            .pxl-overflow {
                position: absolute;
                top: 0;
                right: 0;
                width: 100%;
                height: 100%;
                background-color: #fff;
            }
        }
        &:hover {
            .item--title {
                &:after {
                    width: 100%;
                    background-color: $secondary_color;
                }
            }
            .item--count {
                .pxl-text-line-backdrop {
                    svg {
                        stroke: $secondary_color;
                    }
                }
                &.TextOutlineAnimation {
                    stroke-dasharray: 2000;
                    stroke-dashoffset: 2000;
                    animation: svg_text_outline 6s linear forwards;
                }
            }
            .item--icon {
                color: #fff;
                .logo-light {
                    opacity: 0;                    
                    transform: scale(0);
                }
                .logo-dark {
                    opacity: 1;                    
                    transform: scale(1);
                }
            }
            .item--overlay {
                opacity: 1;
                @include transform(scaleY(1));                
                background-color: $secondary_color;
            }
        }
    }
}

.pxl-service-carousel2 {
    .pxl-swiper-slide {
        border-left: 1px solid $fifth_color;
    }
    .item--icon {
        position: relative;
        line-height: 1;
        margin-bottom: 11px;
        @include transition(all 0.5s ease-in-out);
        z-index: 1;
        font-size: 67px;
        margin-bottom: 28px;
        color: $primary_color;
        max-height: 67px;
        display: flex;
        align-items: center;
        .logo-light {
            @include transition(all 0.5s ease-in-out);
            transform: scale(0.7);
        }
        .logo-dark {
            position: absolute;
            left: 0;
            @include transition(all 0.5s ease-in-out);            
            opacity: 0;            
            transform: scale(0);
        }
    }
    .item--content {
        position: relative;
        z-index: 1;
    }
    .item--title {
        font-family: 'DM Sans';
        font-weight: 500;
        font-size: 19px;
        letter-spacing: -0.38px;
        margin-bottom: 10px;        
        @include transition(all 0.5s ease-in-out);        
        a {
            color: inherit;
            &:hover {
                color: $secondary_color;
            }
        }
    }
    .pxl-post--content {
        font-family: 'DM Sans';
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 0px;
        @include transition(all 0.5s ease-in-out);  
    }
    .item--excerpt {
        margin-bottom: 4px;
        @extend .pxl-color-thi-fif;
    }
    .pxl-item--inner {
        position: relative;
        @include transition(all 0.5s ease-in-out);
        &:hover {            
            .item--overlay {
                opacity: 1;
                @include transform(scaleY(1));                
                background-color: $secondary_color;
            }
        }
    }
}

// Carousel