.servicecontainer {
    width: calc(100% + 24px);
    margin: 0 0 0 -12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /*padding-bottom:70px;*/
    padding-bottom: 0;
}
.servicecontainer li {
    list-style-type: none;
    display: contents;
}
a.servicebox {
    width: calc(25% - 24px);
    margin: 0 12px 24px;
    display: inline-block;
    position: relative;
    z-index: 0;
    border-radius: 5px;
    overflow: hidden;
}

a.servicebox .serviceimg img {
    transform: scale(1);
    transition: all ease-out 0.3s !important;
    -webkit-transition: all ease-out 0.3s !important;
    -moz-transition: all ease-out 0.3s !important;
    -ms-transition: all ease-out 0.3s !important;
}
a.servicebox:hover .serviceimg img {
    transform: scale(1.05);
    transition: all ease-out 0.3s !important;
    -webkit-transition: all ease-out 0.3s !important;
    -moz-transition: all ease-out 0.3s !important;
    -ms-transition: all ease-out 0.3s !important;
}
.servicecontainer a.servicebox.active h2.servicename,
.servicecontainer a.servicebox.active h3.servicename,
.servicecontainer a.servicebox.active span.servicename {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, #f44336 100%);
}
a.servicebox h2.servicename,
a.servicebox h3.servicename,
a.servicebox span.servicename {
    position: absolute;
    bottom: 0;
    font-size: 18px;
    width: 100%;
    line-height: 26px;
    color: #fff;
    padding: 150px 80px 24px 30px;
    font-family: "Fira Sans";
    font-weight: 800;
    text-transform: uppercase;
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.9) 100%);
}
a.servicebox h2.servicename:before,
a.servicebox h3.servicename:before,
a.servicebox span.servicename:before {
    content: "";
    position: absolute;
    z-index: 0;
    background: url("../images/service-arrow.svg") no-repeat 0 0;
    width: 30px;
    height: 30px;
    right: 30px;
    bottom: 22px;
    background-size: 100%;
}

@media (max-width: 1439px) {
    /*    .servicecontainer{padding-bottom:40px;}  */
    .servicecontainer {
        padding-bottom: 0px;
    }
}
@media (max-width: 1339px) {
}
@media (max-width: 1200px) {
    a.servicebox h2.servicename,
    a.servicebox h3.servicename,
    a.servicebox span.servicename {
        font-size: 20px;
        line-height: 110%;
    }
    /*    .servicecontainer{padding-bottom:30px;}*/
    .servicecontainer {
        padding-bottom: 0px;
    }
}
@media (max-width: 992px) {
    .servicecontainer {
        width: calc(100% + 10px);
        margin: 0 0 0 -5px;
    }
    a.servicebox {
        width: calc(33.33% - 10px);
        margin: 0 5px 10px;
    }
    /*    .servicecontainer{padding-bottom:20px;}*/
    .servicecontainer {
        padding-bottom: 0px;
    }
}
@media (max-width: 768px) {
    a.servicebox h2.servicename:before,
    a.servicebox h3.servicename:before,
    a.servicebox span.servicename:before {
        right: 0px;
        bottom: 5px;
        background-size: 60%;
    }
    a.servicebox h2.servicename,
    a.servicebox h3.servicename,
    a.servicebox span.servicename {
        font-size: 16px;
        line-height: 110%;
        padding: 150px 80px 10px 10px;
    }
}
@media (max-width: 576px) {
    a.servicebox {
        width: calc(50% - 10px);
        margin: 0 5px 10px;
    }
    .servicecontainer {
        padding-bottom: 0px;
    }
}
@media (max-width: 480px) {
    a.servicebox h2.servicename,
    a.servicebox h3.servicename,
    a.servicebox span.servicename {
        font-size: 14px;
        line-height: 110%;
        padding: 150px 80px 10px 10px;
    }
}
@media (max-width: 360px) {
    a.servicebox h2.servicename,
    a.servicebox h3.servicename,
    a.servicebox span.servicename {
        padding: 150px 20px 10px 10px;
    }
    a.servicebox h2.servicename:before,
    a.servicebox h3.servicename:before,
    a.servicebox span.servicename:before {
        display: none;
    }
}
