.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: 0;
}

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

.tf-services-wrap.style1 .services-post .content.side-front {
    padding: 47px 120px 65px 50px;
    background: #fff;
    border: 1px solid rgba(2, 1, 1, 0.1);
    position: relative;
    /* transform: rotateY(0); */
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease-in-out;
    margin-bottom: -1px;
    margin-left: -1px;
}

.tf-services-wrap.style1 .services-post:hover .content.side-front {
    /* transform: rotateY(180deg); */
    opacity: 0;
    visibility: hidden;
}

.tf-services-wrap.style1 .services-post .content.side-front .counter-number {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;
    letter-spacing: -0.03em;
    color: var(--theme-primary-color);
    margin-bottom: 15px;
}

.tf-services-wrap.style1 .services-post .content.side-front .title {
    margin-bottom: 50px;
}

.tf-services-wrap.style1 .services-post .content.side-front .icon-services {
    font-size: 55px;
    color: var(--theme-primary-color);
    display: inline-block;
    position: relative;
}

.tf-services-wrap.style1 .services-post .content.side-front .icon-services > * {
    position: relative;
    z-index: 10;
}

.tf-services-wrap.style1 .services-post .content.side-front .icon-services::after {
    content: '';
    width: 60px;
    height: 60px;
    background: var(--theme-primary-color);
    border-radius: 50%;
    position: absolute;
    bottom: -38%;
    right: -30%;
    opacity: 0.1;
}

.tf-services-wrap.style1 .services-post .content.side-front .tf-button-container a {
    width: 60px;
    height: 135px;
    border-radius: 30px;
    color: #222;
    background: #F6F2ED;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 51px;
    transform: translateY(-50%);
    font-size: 20px;
}

.tf-services-wrap.style1 .services-post .content.side-front .tf-button-container a:hover {
    background: var(--theme-primary-color);
    color: #fff;
}

.tf-services-wrap.style1 .services-post .content.side-back {
    color: #fff;
    padding: 50px 50px 42px 50px;
    position: relative;
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    /* transform: rotateY(-180deg); */
    overflow: hidden;
}

.tf-services-wrap.style1 .services-post .content.side-back::after {
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    visibility: hidden;
    opacity: 0;
    transition: all .7s ease-in-out;
    position: absolute;
    height: 100%;
    content: "";
    z-index: -1;
    top: 0;
    right: -5%;
    bottom: 0;
}

.tf-services-wrap.style1 .services-post:hover .content.side-back::after {
    right: 0%;
    visibility: visible;
    opacity: 1;
}

.tf-services-wrap.style1 .services-post:hover .content.side-back {
    opacity: 1;
    visibility: visible;
    top: -23px;
    /* transform: rotateY(0); */
    background: var(--theme-primary-color);
}

.tf-services-wrap.style1 .services-post .content.side-back .title a,
.tf-services-wrap.style1 .services-post .content.side-back .tf-button-container a {
    color: #fff;
}

.tf-services-wrap.style1 .services-post .content.side-back .tf-button-container a {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;
}

.tf-services-wrap.style1 .services-post .content.side-back .tf-button-container span {
    position: relative;
    display: inline-block;
}

.tf-services-wrap.style1 .services-post .content.side-back .tf-button-container span::after {
    position: absolute;
    content: "";
    bottom: 0;
    height: 1px;
    width: 0;
    left: auto;
    right: 0;
    -webkit-transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    -o-transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    background: #fff;
}

.tf-services-wrap.style1 .services-post:hover .content.side-back .tf-button-container span::after {
    width: 100%;
    left: 0;
    right: auto;
    transition-delay: 0.5s;
}

.tf-services-wrap.style1 .services-post .content.side-back .tf-button-container a i {
    font-weight: 700;
    vertical-align: middle;
    font-size: 13px;
    display: inline-block;
}

.tf-services-wrap.style1 .services-post .content.side-back .counter-number {
    font-family: 'Inter';
    font-size: 100px;
    font-weight: 600;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
    opacity: 0.2;
    position: absolute;
    top: 22%;
    right: 12%;
}

.tf-services-wrap.style1 .services-post .content.side-back .icon-services {
    display: inline-block;
    font-size: 55px;
    margin-bottom: 31px;
}

.tf-services-wrap.style1 .services-post .content.side-back .title {
    margin-bottom: 20px;
}

.tf-services-wrap.style1 .services-post .content.side-back .description {
    margin-bottom: 22px;    
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* 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;
}

/* style 3 */

.tf-services-wrap.style3 .services-post {
    padding: 60px 60px 60px 60px;
    -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.style3 .services-post:hover {
    background: #fff;
}

.tf-services-wrap.style3 .services-post .icon-services {
    font-size: 55px;
    color: #002FF5;
    margin-bottom: 33px;
}

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

.tf-services-wrap.style3 .services-post .title a {
    color: #18185E;
}

.tf-services-wrap.style3 .services-post .title a:hover {
    color: #002FF5;
}

.tf-services-wrap.style3 .services-post .tf-button-container a i {
    vertical-align: middle;
    font-size: 13px;
    display: inline-block;
    font-weight: 900;
}

.tf-services-wrap.style3 .services-post .tf-button-container a {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 700;
    line-height: 19.36px;
}

.tf-services-wrap.style3 .services-post:hover .tf-button-container a i {
    -webkit-animation: toRight 0.3s forwards;
    -moz-animation: toRight 0.3s forwards;
    animation: toRight 0.3s forwards;
}

.tf-services-wrap.style3 .services-post .description {
    margin-bottom: 22px;
}

.tf-services-wrap:not(.style2) .services-post .title a {
    display: inline !important;
    width: 100%;
    background-repeat: no-repeat;
    background-position-y: 0px;
    background-image: linear-gradient(transparent calc(100% - 2px), currentColor 1px);
    transition: 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    background-size: 0 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tf-services-wrap:not(.style2) .services-post:hover .title a {
    background-size: 100% 100%;
    transition-delay: 0.3s;
}

/* style 4 */

.tf-services-wrap.style4 .services-post {
    position: relative;
    padding: 40px 40px 32px 50px;
    background: #fff;
    -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;
    overflow: hidden;
    border-radius: 10px;
}

.tf-services-wrap.style4 .services-post:hover {
    border-radius: 10px;
}

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

.tf-services-wrap.style4 .services-post .title::after {
    width: 78px;
    height: 3px;
    content: '';
    position: absolute;
    left: 0;
    bottom: -36px;
    background: #008DF3;
}

.tf-services-wrap.style4 .services-post .icon-services {
    font-size: 70px;
    color: var(--theme-primary-color);
    display: inline-block;
    position: relative;
    margin-bottom: 46px;
}

.tf-services-wrap.style4 .services-post .icon-services > * {
    position: relative;
    z-index: 10;
}

.tf-services-wrap.style4 .services-post .icon-services::after {
    content: '';
    width: 55px;
    height: 55px;
    background: #002FF5;
    border-radius: 50%;
    position: absolute;
    bottom: -19%;
    right: 4%;
    opacity: 0.1;
    -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.style4 .services-post:hover .icon-services::after {
    background: #fff;
    opacity: 0.1;
}

.tf-services-wrap.style4 .services-post .tf-button-container .tf-button-container i {
    vertical-align: middle;
    display: inline-block;
}

.tf-services-wrap.style4 .services-post .tf-button-container .arrow-show i {
    vertical-align: middle;
    font-size: 18px;
    font-weight: 900;
}

.tf-services-wrap.style4 .services-post .tf-button-container a {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 700;
    line-height: 19.36px;
    color: #696969;
    position: relative;
    display: inline-block;
}

.tf-services-wrap.style4 .services-post .tf-button-container a span {
    display: inline-block;
}

.tf-services-wrap.style4 .services-post .description {
    margin-bottom: 22px;
}

.tf-services-wrap.style4 .services-post .tf-button-container .arrow-show {
    position: absolute;
    top: 0;
    left: -4px;
    -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.style4 .services-post .tf-button-container .text-show {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    -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.style4 .services-post .tf-button-container .text-show i {
    display: inline-block;
}

.tf-services-wrap.style4 .services-post:hover .tf-button-container .arrow-show {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
}

.tf-services-wrap.style4 .services-post:hover .tf-button-container .text-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px);
}

.tf-services-wrap.style4 .services-post:hover .tf-button-container .text-show i {
    vertical-align: middle;
}

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

.tf-services-wrap.style4 .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 .6s ease;
    transform-origin: bottom center;
}

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


.tf-services-wrap.style4 .services-post .description {
    -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.style4 .services-post:hover .title a {
    -webkit-transition: all 0.1s ease;
    -moz-transition: all 0.1s ease;
    -ms-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

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

.tf-services-wrap.style4 .services-post .tf-button-container .text-show {
    position: relative;
    display: inline-block;
}

.tf-services-wrap.style4 .services-post .tf-button-container .text-show::after {
    position: absolute;
    content: "";
    bottom: 0;
    height: 1px;
    width: 0;
    left: 0;
    -webkit-transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    -o-transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    background-color: currentColor;
}

.tf-services-wrap.style4 .services-post:hover .tf-button-container .text-show::after {
    width: calc(100% - 20px);
}

.tf-services-wrap.style4 .services-post .tf-button-container:hover .text-show i {
    -webkit-animation: toRight 0.3s forwards;
    -moz-animation: toRight 0.3s forwards;
    animation: toRight 0.3s forwards;
}

/* style 5 */

.tf-services-wrap.style5 .item {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.tf-services-wrap.style5 .services-post .content {
    display: flex;
    align-items: center;
}

.tf-services-wrap.style5 .services-post {
    border-bottom: 1px solid rgba(2, 6, 38, 0.1);
    padding-bottom: 30px;
    padding-top: 20px;
    -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.style5 .services-post:hover {
    background: #fff;
    padding-left: 30px;
    padding-right: 30px;
    border-color: transparent;
    box-shadow: 0px 10px 60px 0px #A5A5A540;
}

.tf-services-wrap.style5 .services-post .inner {
    margin-right: 70px;
    width: 300px;
}

.tf-services-wrap.style5 .services-post .description {
    width: 25%;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    margin-right: 30px;
}

.tf-services-wrap.style5 .services-post .title {
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.03em;
    margin: 0;
}

.tf-services-wrap.style5 .services-post .tf-button-container {
    margin-left: auto;
}    

.tf-services-wrap.style5 .services-post .featured-post {
    width: 300px;
    height: 140px;
    border-radius: 70px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 70px;
}

.tf-services-wrap.style5 .services-post .featured-post img {
    transition: clip-path 1s cubic-bezier(.12,.76,.36,1), opacity .3s, transform 1.5s cubic-bezier(.12,.76,.36,1);
}

.tf-services-wrap.style5 .services-post:hover .featured-post img {
    transform: scale(1.07);
}

.tf-services-wrap.style5 .services-post .inner-category {
    display: flex;
    align-items: center;
    column-gap: 7px;
    margin-bottom: 10px;
}

.tf-services-wrap.style5 .services-post .services-category a {
    color: #696969;
}    

.tf-services-wrap.style5 .services-post .services-category a:hover {
    color: #222;
}

.tf-services-wrap.style5 .services-post .inner-category .counter-number {
    position: relative;
    color: #696969;
    flex-shrink: 0;
}

.tf-services-wrap.style5 .services-post:hover .inner-category .counter-number,
.tf-services-wrap.style5 .services-post:hover .services-category a {
    color: var(--theme-primary-color);
}

.tf-services-wrap.style5 .services-post .inner-category .counter-number::before {
    content: '';
    width: 35px;
    height: 1.4px;
    display: inline-block;
    background: rgba(2, 6, 38, 0.1);
    margin-right: 7px;
    -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.style5 .services-post:hover .inner-category .counter-number::before {
    background: var(--theme-primary-color);
}

.tf-services-wrap.style5 .services-post .tf-button-container a {
    border: 1.2px solid #002FF51A;
    color: var(--theme-primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tf-services-wrap.style5 .services-post:hover .tf-button-container a {
    background: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
    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;
    }
}
