.single-service-style-one {
    margin: 0 10px;
    margin-bottom: 50px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 15%);
}

.single-service-style-one .top-box {
    position: relative;
    padding: 15px 10px;
    background-color: #fff;
    overflow: hidden;
}

.single-service-style-one .top-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center;
    transition: -webkit-transform .4s ease;
    transition: transform .4s ease;
    transition: transform .4s ease, -webkit-transform .4s ease;
}

.single-service-style-one .top-box .inner-content {
    position: relative;
}

.single-service-style-one .top-box i.box-icon {
    display: block;
    font-size: 2.875rem;
    color: #000;
    transition: all .4s ease;
}

.single-service-style-one .top-box h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    transition: all .4s ease;
}

.single-service-style-one .image-block {
    position: relative;
    margin: auto;
    height: 363px;
    overflow: hidden;
}

.single-service-style-one .image-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.6);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    transition: .5s ease;
    z-index: 1;
}

.single-service-style-one .image-block>img {
    height: 100%;
    width: 100%;
    object-position: center;
    object-fit: contain;
}

.single-service-style-one .image-block .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: scale(0);
    transform: scale(0);
    transition: all 900ms ease;
    transition-delay: .1s;
    z-index: 2;
}

.single-service-style-one .image-block .overlay .box {
    display: table;
    height: 100%;
    width: 100%;
}

.single-service-style-one .image-block .overlay .box .content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.single-service-style-one .image-block .overlay .box .content .dotted {
    position: relative;
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
}

.single-service-style-one .image-block .overlay .box .content .dotted:before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
}

.single-service-style-one .image-block .overlay .box .content .dotted:after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
}

.single-service-style-one:hover .top-box:before {
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
}

.single-service-style-one:hover .top-box i.box-icon {
    color: #fff;
}

.single-service-style-one:hover .top-box h3 {
    color: #fff;
}

.single-service-style-one:hover .image-block:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    transition: .5s ease;
}

.single-service-style-one:hover .image-block .overlay {
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: all 900ms ease;
    transition-delay: .5s;
}

@media (max-width: 1200px) {
    .single-service-style-one .image-block {
        height: 275px;
    }
}

@media (max-width: 767px) {
    .service-page-one {
        padding: 60px 0;
    }

    .single-service-style-one .image-block {
        height: 319px;
    }
}

@media (max-width: 575px) {
    .service-page-one .container {
        max-width: 480px;
    }

    .single-service-style-one .image-block {
        height: 275px;
    }

    .single-service-style-one .top-box h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .service-page-one {
        padding: 40px 0;
    }

    .service-page-one .container {
        max-width: 400px;
    }
    
    .single-service-style-one .image-block {
        height: 217px;
    }
}

@media (max-width: 400px) {
    .service-page-one .container {
        max-width: unset;
    }

    .service-page-one .col-6 {
        -ms-flex: unset;
        flex: unset;
        max-width: unset;
    }
    
    .single-service-style-one .image-block {
        width: 100%;
        height: auto;
    }

    .single-service-style-one .top-box h3 {
        font-size: 1.25rem;
    }
}
