@use "../utilities" as *;

/**----------------------------------------
    START: Feature CSS
----------------------------------------*/

.feature-section{
    position: relative;
    z-index: 1;
    .bg-shape{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}

.feature-item{
    background-color: var(--bz-color-common-white);
    padding: 50px;
    border: 1px solid var(--bz-color-border-1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    @include transition(all 0.3s ease-in-out);
    @include breakpoint(md){
        padding: 30px;
    }
    &:before{
        background-color: var(--bz-color-theme-primary);
        content: "";
        width: 0;
        height: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: -1;
        @include transition(all 0.4s ease-in-out);
    }
    .bg-img{
        position: absolute;
        top: 0;
        left: 0;
        z-index: -2;
        width: 100%;
        height: 90px;
        @include breakpoint(md){
            height: 75px;
        }
        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
    .icon{
        background-color: #F5F7F8;
        height: 80px;
        width: 80px;
        @include flex-center;
        border-radius: 50%;
        margin-bottom: 25px;
        img{
            width: 40px;
            height: 40px;
        }
    }
    .feature-content{
        .title{
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 20px;
            @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;
            i{
                
            @include transition(all 0.3s ease-in-out);
            }
            &:hover{
                i{
                    margin-left: 5px;
                }
            }
        }
    }
    &:hover{
        margin-top: -10px;
        &:before{
            width: 100%;
        }
        .feature-content{
            a,
            p,
            .title{
                color: var(--bz-color-common-white);
            }
        }
    }
}

/* !END: Feature CSS */
