@use "../utilities" as *;

/**----------------------------------------
    START: Service CSS
----------------------------------------*/

.service-section{
    @include background;
    width: 100%;
    height: 100%;
}

.service-item{
    background-color: var(--bz-color-common-white);
    padding: 40px 35px;
    box-shadow: 0px 8px 38px rgba(20, 27, 36, 0.05);
    border-radius: 12px;
    @include transition(all 0.3s ease-in-out);
    @include breakpoint(sm){
        padding: 30px 20px;
    }
    .icon{
        height: 80px;
        width: 80px;
        @include flex-center;
        border: 1px solid var(--bz-color-border-1);
        border-radius: 10px;
        margin-bottom: 30px;
        img{
            height: 42px;
            width: 42px;
            margin: 0 auto;
        }
    }
    .service-content{
        .title{
            color: var(--bz-color-heading-primary);
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
        }
        p{
            font-size: 14px;
            margin-bottom: 25px;
        }
    }
    &:hover{
        margin-top: -5px;
    }
}

// Service 2

.service-left-content{
    .section-heading{
        margin-bottom: 30px;
        .section-title{
            margin-bottom: 20px;
        }
    }
}

.service-items{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    padding-left: 30px;
    @include breakpoint(md){
        margin-top: 40px;
        padding-left: 0;
    }
    @include breakpoint(sm){
        grid-template-columns: 1fr;
    }
}

.service-item-2{
    background: linear-gradient(180deg, #E2EEFF 0%, rgba(255, 255, 255, 0) 50%);
    border: 1px solid #E2E8EF;
    border-radius: 15px;
    padding: 40px;
    filter: drop-shadow(0px 16px 42px rgba(66, 107, 155, 0.15));
    @include breakpoint(sm){
        padding: 30px 20px;
    }
    .icon{
        background-color: var(--bz-color-common-white);
        border: 1px solid var(--bz-color-border-1);
        @include flex-center;
        border-radius: 10px;
        height: 80px;
        width: 80px;
        margin-bottom: 30px;
    }
    .content{
        .title{
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
        }
        p{
            &:last-child{
                margin-bottom: 0;
            }
        }
    }
    &:hover{
        filter: drop-shadow(0px 16px 42px rgba(66, 107, 155, 0.15));
    }
}


// Service 3

.service-section-3{
    position: relative;
    z-index: 1;
    .bg-shape{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
}

.service-item-3{
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ECE7E7;
    box-shadow: 0px 4px 44px rgba(0, 0, 0, 0.08);
    .service-thumb{
        position: relative;
        height: 150px;
        width: 100%;
        overflow: hidden;
        .img-item{
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(0) contrast(110%);
            @include transition(all 0.3s ease-in-out);
        }
        .icon{
            background-color: #FEEFEE;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 150px;
            @include flex-center;
            @include transition(all 0.3s ease-in-out);
            img{
                @include transition(all 0.3s ease-in-out);
            }
            @include breakpoint(sm){
                width: 120px;
                img{
                    width: 45%;
                }
            }
        }
    }
    .service-content{
        background-color: var(--bz-color-common-white);
        padding: 40px;
        @include breakpoint(sm){
            padding: 30px;
        }
        .title{
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
        }
        p{
            font-size: 14px;
            margin-bottom: 20px;
        }
        .bz-primary-btn{
            font-size: 14px;
            padding: 16px 30px;
        }
    }
    &:hover{
        .service-thumb{
            .img-item{
                transform: scale(1.02);
            }
            .icon{
                background-color: var(--bz-color-theme-red);
                img{
                    filter: brightness(0) invert(1);
                }
            }
        }
    }
}

.service-item-4{
    border-radius: 15px;
    overflow: hidden;
    .service-thumb{
        height: 240px;
        width: 100%;
        position: relative;
        .main-img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
        .icon{
            background-color: var(--bz-color-common-white);
            height: 80px;
            width: 80px;
            @include flex-center;
            box-shadow: 0px 16px 20px rgba(20, 31, 54, 0.03);
            border-radius: 10px;
            position: absolute;
            bottom: -40px;
            left: 40px;
            z-index: 10;
            @include breakpoint(sm){
                left: 30px;
            }
        }
    }
    .service-content{
        background-color: #F3F4F6;
        padding: 65px 40px 40px 40px;
        position: relative;
        z-index: 1;
        @include breakpoint(sm){
            padding: 65px 30px 30px 30px;
        }
        &:before{
            background-color: var(--bz-color-theme-primary);
            content: "";
            height: 0;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: -1;
            @include transition(all 0.4s ease-in-out);
        }
        .title{
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #D0D6E1;
            @include transition(all 0.3s ease-in-out);
        }
        p{
            margin-bottom: 20px;
            @include transition(all 0.3s ease-in-out);
        }
        .read-more{
            color: var(--bz-color-theme-primary);
            font-size: 16px;
            font-weight: 600;
            text-transform: uppercase;
            @include transition(all 0.3s ease-in-out);
            i{
                @include transition(all 0.2s ease-in-out);
            }
            &:hover{
                i{
                    margin-left: 5px;
                }
            }
        }
    }
    &:hover{
        .service-content{
            &:before{
                height: 100%;
            }
            a,
            p,
            .title{
                color: var(--bz-color-common-white);
            }
        }
    }
}



/* !END: Service CSS */
