.tf-services-wrap.no-carousel {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
}

.tf-services-wrap.no-carousel .item {
    padding: 15px 15px 15px 15px;
}

.tf-services-wrap.no-carousel.column-1 .item {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.tf-services-wrap.no-carousel.column-2 .item {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.tf-services-wrap.no-carousel.column-3 .item {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.tf-services-wrap.no-carousel.column-4 .item {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

/* style 1 */
.tf-services-wrap.style1 .item {
    padding: 0px;
}

.tf-services-wrap.style1 .services-post {
    position: relative;
}

.tf-services-wrap.style1 .services-post .content .featured-post {
    position: relative;
}

.tf-services-wrap.style1 .services-post .content .featured-post img {
    min-height: 634px;
    width: 100%;
    object-fit: cover;
}

.tf-services-wrap.style1 .services-post .content .featured-post::before {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    content: '';
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 90%);
}

.tf-services-wrap.style1 .services-post .content .inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    margin: 30px 30px;
    padding: 20px 20px 20px 30px;
    background: #fff;
    border-radius: 15px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.tf-services-wrap.style1 .services-post:hover .content .inner {
    transform: translateY(-15px);
}

.tf-services-wrap.style1 .services-post .content .inner .title {
    font-size: 32px;
    font-weight: 600;
    line-height: 44px;
    font-family: 'Roboto';
    text-transform: capitalize;
    margin: 0;
}

/* style 2 */

.tf-services-wrap.style2 .services-post {
    padding: 40px 40px 40px 40px;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 10px 60px 0px rgba(149, 149, 149, 0.1);
}

.tf-services-wrap.style2 .services-post .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(2, 6, 38, 0.1);
    padding-bottom: 30px;
    position: relative;
}

.tf-services-wrap.style2 .services-post .icon-services {
    font-size: 40px;
    color: var(--theme-primary-color);
}

.tf-services-wrap.style2 .services-post .counter-number {
    font-family: 'Inter';
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.03em;
    color: #B9B9B9;
}

.tf-services-wrap.style2 .services-post .title {
    font-family: 'Inter';
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.03em;
    margin-bottom: 0px;
    position: relative;
}

.tf-services-wrap.style2 .services-post .inner-bottom {
    margin-top: 43px;
    margin-bottom: -59px;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.tf-services-wrap.style2 .services-post .description {
    margin-bottom: 18px;
}

.tf-services-wrap.style2 .services-post .tf-button-container {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.tf-services-wrap.style2 .services-post .tf-button-container a {
    font-size: 22px;
}

.tf-services-wrap.style2 .services-post:hover .inner-bottom {
    transform: translateY(-29px);
}

.tf-services-wrap.style2 .services-post:hover .tf-button-container {
    opacity: 1;
    visibility: visible;
}

.tf-services-wrap.style2 .services-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--theme-primary-color);
    transform: scaleY(0);
    transition: transform .5s ease;
    transform-origin: bottom center;
}

.tf-services-wrap.style2 .services-post:hover::before {
    transform: scale(1);
    transform-origin: top center;
}

.tf-services-wrap.style2 .services-post:hover,
.tf-services-wrap.style2 .services-post:hover .title a,
.tf-services-wrap.style2 .services-post:hover .counter-number,
.tf-services-wrap.style2 .services-post:hover .icon-services,
.tf-services-wrap.style2 .services-post:hover .tf-button-container a {
    color: #fff;
}

.tf-services-wrap.style2 .services-post:hover .inner {
    border-color: #fff;
}

@keyframes toRight {
    49% {
        transform: translate(100%);
    }

    50% {
        opacity: 0;
        transform: translate(-100%);
    }

    51% {
        opacity: 1;
    }
}

@media (max-width: 991px) {

    .tf-services-wrap.no-carousel.tablet-column-1 .item {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tf-services-wrap.no-carousel.tablet-column-2 .item {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .tf-services-wrap.no-carousel.tablet-column-3 .item {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .tf-services-wrap.style5 .services-post .featured-post,
    .tf-services-wrap.style5 .services-post .inner {
        margin-right: 30px;
    }

    .tf-services-wrap.style5 .services-post .featured-post {
        margin-right: 30px;
    }

    .tf-services-wrap.style5 .services-post .featured-post img {
        width: 100%;
    }

    .tf-services-wrap.style5 .services-post:hover {
        padding-left: 0px;
        padding-right: 0px;
        background: transparent;
        box-shadow: unset;
    }

}

@media (max-width: 767px) {
    .tf-services-wrap.style5 .services-post .featured-post {
        height: 100%;
    }

    .tf-services-wrap.style5 .services-post .featured-post a {
        display: block;
        width: 100%;
    }

    .tf-services-wrap.no-carousel.mobile-column-1 .item {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tf-services-wrap.style5 .services-post .content {
        flex-direction: column;
        align-items: unset;
    }

    .tf-services-wrap.style5 .services-post .inner,
    .tf-services-wrap.style5 .services-post .description,
    .tf-services-wrap.style5 .services-post .featured-post {
        margin-right: 0;
        width: 100%;
    }

    .tf-services-wrap.style5 .services-post .featured-post,
    .tf-services-wrap.style5 .services-post .inner,
    .tf-services-wrap.style5 .services-post .tf-button-container {
        margin: 0;
    }

    .tf-services-wrap.style5 .services-post .content {
        row-gap: 15px;
    }
}