.services-title h2{
    margin-bottom: 22px;
    color: var(--primary--color);
}
.services-title p{
    margin-bottom: 70px;
}
.services-con{
    padding-left: 30px;
    padding-right: 30px;
}
.services-box {
    gap: 27px;
    display: grid;
    justify-content: center;
    grid-template-columns: 23.9% 23.9% 23.9% 23.9%;
}
.services-box-item > figure img{
    width: 100%;
}
.services-box .services-box-outer:nth-child(even) .services-box-item{
    margin-top: 60px;
}
.services-box-item{
    position: relative;
}
.services-box-content {
    bottom: 0;
    z-index: 1;
    padding: 40px;
    overflow: hidden;
    position: absolute;
    transition: all 0.8s ease-in-out;
}
.services-box-content p{
    opacity: 0;
    height: 0;
}
.services-box-item:after {
    top: 0;
    left: 0;
    width: 100%;
    content: "";
    height: 100%;
    position: absolute;
    background: rgb(0 0 0 / 20%);
}
.services-box-content *{
    color: var(--white-color);
}
.services-box-content figure{
    margin-bottom: 24px;
}
.services-box-content p{
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 0;
}
.services-box-content h3{
    margin-bottom: 20px;
}
.services-box-item::before{
    left: 0;
    bottom: 0;
    width: 100%;
    content: "";
    height: 0%;
    position: absolute;
    transition: all 0.5s ease-in-out;
    background: url(../images/overlay-img.png) repeat center;
}
.services-box-item:hover::before{
    height: 100%;
}
.services-box-item:hover .services-box-content p{
    opacity: 1;
    height: 100%;
}
@media only screen and (max-width: 1440px) {
    .services-title p {
        margin-bottom: 60px;
    }
    .services-box-content {
        padding: 15px;
    }
    .services-box-content h3 {
        margin-bottom: 10px;
    }
    .services-box-content figure {
        margin-bottom: 10px;
    }
    .services-box {
        gap: 8px;
        grid-template-columns: 24.4% 24.4% 24.4% 24.4%;
    }
    .services-box-content p {
        font-size: 14px;
        line-height: 20px;
    }
    
}
@media only screen and (max-width: 1199px) {
    .services-box .services-box-outer:nth-child(even) .services-box-item {
        margin-top: 0;
    }
    .services-box {
        gap: 15px;
        grid-template-columns: 48% 48%;
    }
    .services-title p {
        margin-bottom: 50px;
    }
    .services-title p br {
        display: none;
    }
    .services-title h2 {
        margin-bottom: 12px;
    }
}
@media only screen and (max-width: 991px) {
    .services-title h2 {
        margin-bottom: 10px;
    }
    .services-title p {
        margin-bottom: 30px;
    }
}
@media only screen and (max-width: 767px) {
    .services-box {
        grid-template-columns: 48% 48%;
    }
    .services-box-content p {
        font-size: 14px;
        line-height: 20px;
    }
}
@media only screen and (max-width: 575px) {
    .services-box {
        grid-template-columns: 92%;
    }
    .services-title p {
        margin-bottom: 20px;
    }
}