/* --== Service Main ==-- */
.service-main{
    margin-top: 0;
    background: lightgray;
    padding: 10px;
    display: grid;
    gap: 10px;
}

/* --== Section Wise Design ==-- */

/* ---=== Service Section ===--- */
#service{
    background: var(--light);
    padding: 50px 20px;
    /* display: none; */
}
.service{
    padding: 40px 10px 10px 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    /* background: var(--secondary); */
}

.service-card{
    background: rgba(128, 128, 128, 0.954);
    border-radius: 10px;
    padding: 30px 20px 20px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.service-bg{
    width: 100%;
    height: 100%;
    border-top-right-radius: 400px;
    position: absolute;
    bottom: -320px;
    left: -200px;
    background-image: linear-gradient(to right bottom, var(--primary), var(--info));
    transition: all 0.8s ease-in-out;
}
.service-card:hover .service-bg{
    bottom: 0;
    left: 0;
    border-top-right-radius: 0;
}

.service-fg{
    background: transparent;
    position: relative;
    z-index: 1;
}

.service-img{
    height: 150px;
    width: 200px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(253, 253, 253, 0.509);
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
.service-img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.service-card h3{
    margin: 25px 0 10px 0;
    font-size: 22px;
    font-weight: 400;
    color: var(--secondary);
}
.service-card p{
    font-size: 14px;
    font-weight: 400;
    color: var(--light);
}

.service-card:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.509);
}
.service-card:hover .service-img{
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.509);
    transform: scale(1.08);
}


/* --== Mobile Design ==-- */
@media(max-width: 768px){
    .service{
        padding: 10px;
    }
    .service-card{
        padding: 20px 10px;
    }
    .service-img{
        height: 100px;
        width: 150px;
    }
    .service-card h3{
        font-size: 18px;
    }
    .service-card p{
        font-size: 12px;
        text-align: center;
    }
}
/* --== End of Service Section ==-- */