.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 .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 .services-post .featured-post>a {
    display: block;
    overflow: hidden;
}

.tf-services-wrap .services-post:hover .featured-post img {
    transform: scale(1.05);
}

/* hover button */

.tf-services-wrap .services-post .tf-button {
    display: inline-flex;
    align-items: center;
}

.tf-services-wrap .services-post .tf-button i {
    margin-left: 4px;
}

.tf-services-wrap .services-post .tf-button .info-label {
    position: relative;
}

.tf-services-wrap .services-post .tf-button .info-label:after {
    content: attr(data-text);
    left: 0;
    top: 0;
    opacity: 0;
    position: absolute;
    transform: rotateX(90deg);
}

.tf-services-wrap .services-post .tf-button .info-label .label-inner,
.tf-services-wrap .services-post .tf-button .info-label:after {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-origin: 50% 50% .55em;
    transition: transform .4s cubic-bezier(.43,.05,.2,1), opacity .6s cubic-bezier(.43,.05,.2,1);
    display: inline-block;
}

.tf-services-wrap .services-post .tf-button:hover .info-label .label-inner {
    opacity: 0;
    transform: rotateX(-90deg);
}

.tf-services-wrap .services-post .tf-button:hover .info-label:after {
    opacity: 1;
    transform: rotateX(0);
}

.tf-services-wrap .services-post .tf-button:hover i {
    -webkit-animation: toRight 0.3s forwards;
    -moz-animation: toRight 0.3s forwards;
    animation: toRight 0.3s forwards;
}

.tf-services-wrap.style1 .content .icon-services {
    width: 85px;
    height: 85px;
    background: var(--theme-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -42px;
    position: relative;
    margin-bottom: 33px;
}

.tf-services-wrap.style1 .content .icon-services > * {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tf-services-wrap.style1 .content .icon-services i,
.tf-services-wrap.style1 .content .icon-services svg path {
    color: #fff;
    fill: #fff;
}

.tf-services-wrap.style1 .services-post:hover .icon-services > * {
    transform: scale(1.05);
}

.tf-services-wrap.style1 .content .icon-services i {
    font-size: 50px;
}

.tf-services-wrap.style1 .content .icon-services svg {
    width: 50px;
    height: 50px;
}

.tf-services-wrap.style1 .content .title {
font-size: 24px;
font-weight: 700;
line-height: 30.24px;
color: #0A1C26;
margin-bottom: 15px;
}

.tf-services-wrap.style1 .content .description {
font-size: 16px;
font-weight: 400;
line-height: 32px;
color: #5E5F63;
}

.tf-services-wrap.style1 .content .tf-button {
    font-size: 16px;
    font-weight: 600;
    line-height: 20.16px;
    color: #5E5F63;
    text-transform: capitalize;
    position: relative;
}

.tf-services-wrap.style1 .content .tf-button:hover {
    color: var(--theme-primary-color);
}

.tf-services-wrap.style1 .content .tf-button:hover i {
    color: currentColor;
}

.tf-services-wrap.style1 .content .tf-button i {
    color: #000000;
}

.tf-services-wrap.style1 .services-post .tf-button::before {
    background: currentcolor;
    bottom: -2px;
    content: "";
    height: 1.5px;
    left: 0px;
    position: absolute;
    transform: scaleX(0);
    transform-origin: 0px 0px;
    transition: transform 300ms ease-in-out;
    width: 100%;
}

.tf-services-wrap.style1 .content .tf-button:hover::before {
    transform: scaleX(1);
}

.tf-services-wrap.style1 .services-post .tf-button-container {
    margin-top: 14px;
}

.tf-services-wrap.style1 .services-post .tf-button svg {
    flex-shrink: 0;
    height: 12px;
    width: 18px;
    margin-left: 7px;
}

.tf-services-wrap.style1 .services-post .tf-button svg path {
    transition: transform 300ms ease-in-out;
}

.tf-services-wrap.style1 .services-post .tf-button svg path:nth-child(1) {
    transform: translateX(-5px);
}

.tf-services-wrap.style1 .services-post .tf-button svg path:nth-child(2) {
    transform: scaleX(0.633333);
    transform-origin: 0px 0px;
}

.tf-services-wrap.style1 .services-post .tf-button:hover path:nth-child(2),
.tf-services-wrap.style1 .services-post .tf-button:focus path:nth-child(2) {
    transform: scaleX(1);
}

.tf-services-wrap.style1 .services-post .tf-button:hover svg path:nth-child(1) {
    transform: translateX(0px);
}

/* style 2 */

.tf-services-wrap.style2 .featured-post {
    position: relative;
}

.tf-services-wrap.style2 .featured-post::after {
    content: '';
    background: linear-gradient(180deg, rgba(9, 10, 10, 0) 0%, rgba(9, 10, 10, 0.85) 100%);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
}

.tf-services-wrap.style2 .featured-post::before {
    content: '';
    background: linear-gradient(180deg, rgba(9, 10, 10, 0) 0%, var(--theme-primary-color) 100%);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.tf-services-wrap.style2 .services-post:hover .featured-post::after {
    opacity: 0;
    visibility: hidden;
}

.tf-services-wrap.style2 .services-post:hover .featured-post::before {
    opacity: 1;
    visibility: visible;
}


.tf-services-wrap.style2 .featured-post img {
    height: 550px;
    object-fit: cover;
    width: 100%;
}

.tf-services-wrap.style2 .title {
    font-size: 27px;
    font-weight: 600;
    line-height: 34.02px;
    margin-bottom: 3px;
}

.tf-services-wrap.style2 .title a,
.tf-services-wrap.style2 .services-category a {
    color: #fff;
}

.tf-services-wrap.style2 .services-category a:hover {
    opacity: 0.7;
}

.tf-services-wrap.style2 .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.style2 .title a:hover {
    background-size: 100% 100%;
    transition-delay: 0.3s;
}

.tf-services-wrap.style2 .services-category a {
    font-size: 16px;
    font-weight: 600;
    line-height: 20.16px;
}

.tf-services-wrap.style2 .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px 100px 31px 50px;
    z-index: 5;
}

.tf-services-wrap.style2 .content .tf-button-container {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.tf-services-wrap.style2 .services-post:hover .tf-button-container {
    opacity: 1;
    visibility: visible;
}

.tf-services-wrap.style2 .content .tf-button-container a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--theme-primary-color);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tf-services-wrap.style2 .content .tf-button-container a i {
    margin: 0;
}

/* style 3 */

.tf-services-wrap.style3 .featured-post {
    position: relative;
}

.tf-services-wrap.style3 .featured-post img {
    height: 420px;
    object-fit: cover;
    width: 100%;
}

.tf-services-wrap.style3 .title {
    font-size: 24px;
    font-weight: 600;
    line-height: 30.24px;
    margin-bottom: 0px;
}

.tf-services-wrap.style3 .title a,
.tf-services-wrap.style3 .services-category a {
    color: #fff;
}

.tf-services-wrap.style3 .services-category a:hover {
    opacity: 0.7;
}

.tf-services-wrap.style3 .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.style3 .title a:hover {
    background-size: 100% 100%;
    transition-delay: 0.3s;
}

.tf-services-wrap.style3 .services-category a {
    font-size: 16px;
    font-weight: 500;
    line-height: 20.16px;
}

.tf-services-wrap.style3 .content {
    position: absolute;
    left: 50px;
    right: 60px;
    bottom: 30px;
    padding: 13px 30px 20px 30px;
    padding-right: 100px;
    z-index: 5;
    background: var(--theme-primary-color);
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.tf-services-wrap.style3 .content .tf-button-container {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tf-services-wrap.style3 .content .tf-button-container a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--theme-primary-color);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tf-services-wrap.style3 .content .tf-button-container a i {
    margin: 0;
}

.tf-services-wrap.no-carousel.style3 .item {
    flex: 1 !important;
    max-width: unset !important;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tf-services-wrap.no-carousel.style3 .item:hover,
.tf-services-wrap.no-carousel.style3 .item.active {
    flex: 2.1 !important;
}

.tf-services-wrap.no-carousel.style3 .item:hover .content,
.tf-services-wrap.no-carousel.style3 .item.active .content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s;
}

.tf-services-wrap.style3.has-carousel .owl-stage .owl-item:hover .content {
    opacity: 1;
    visibility: visible;
}

/* style 4 */

.tf-services-wrap.style4 .services-post .content {
    width: 50%;
    padding: 19px 20px 10px 19px;
}

.tf-services-wrap.style4 .services-post  .featured-post {
    width: 52%;
}

.tf-services-wrap.style4 .services-post {
    border: 1px solid #E7E7E7;
    background: #F5F5F5;
    padding: 30px 30px 28px 30px;
    display: flex;
}

.tf-services-wrap.style4 .services-post .icon-services {
    margin-bottom: 26px;
}

.tf-services-wrap.style4 .services-post .icon-services svg path {
    fill: var(--theme-primary-color);
}

.tf-services-wrap.style4 .services-post .icon-services svg {
    max-width: 60px;
}

.tf-services-wrap.style4 .services-post .title {
    font-size: 27px;
    font-weight: 600;
    line-height: 32.4px;
    margin-bottom: 36px;
}

.tf-services-wrap.style4 .services-post .description {
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    color: #5E5F63;
    margin-bottom: 29px;
}

.tf-services-wrap.style4 .services-post .tf-button  {
font-size: 16px;
font-weight: 600;
line-height: 20.16px;
color: #0A1C26;
}

.tf-services-wrap.style4 .services-post .tf-button:hover {
    color: var(--theme-primary-color);
}

.tf-services-wrap.has-carousel .owl-dots .owl-dot {
    width: 7px;
    height: 7px;
    line-height: 7px;
    background-color: var(--theme-primary-color);
    border-radius: 50%;
    margin: 0 13px;
}

.tf-services-wrap.has-carousel .owl-carousel .owl-dots {
    bottom: -64px;
}

.tf-services-wrap.has-carousel .owl-dots .owl-dot::after {
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    padding: 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 50%;
}

.has-carousel .owl-dots .owl-dot.active::after {
    border-color: var(--theme-primary-color);
}

.tf-services-wrap.has-carousel .owl-dots .owl-dot.active {
    background-color: var(--theme-primary-color);
}

@keyframes toRight {
    49% {
        transform: translate(100%);
    }
    50% {
        opacity: 0;
        transform: translate(-100%);
    }
    51% {
        opacity: 1;
    }
}

@media (max-width: 991px) {

    .tf-services-wrap.no-carousel.style3 .item,
    .tf-services-wrap.no-carousel.style3 .item:hover,
    .tf-services-wrap.no-carousel.style3 .item.active {
        flex: unset !important;
    }
    .tf-services-wrap.style3 .content {
        opacity: 1;
        visibility: visible;
    }

    .tf-services-wrap.no-carousel.tablet-column-1 .item,
    .tf-services-wrap.no-carousel.tablet-column-1.style3 .item:hover,
    .tf-services-wrap.no-carousel.tablet-column-1.style3 .item.active  {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .tf-services-wrap.no-carousel.tablet-column-2 .item,
    .tf-services-wrap.no-carousel.tablet-column-2.style3 .item:hover,
    .tf-services-wrap.no-carousel.tablet-column-2.style3 .item.active {
        -ms-flex: 0 0 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .tf-services-wrap.no-carousel.tablet-column-3 .item,
    .tf-services-wrap.no-carousel.tablet-column-3.style3 .item:hover,
    .tf-services-wrap.no-carousel.tablet-column-3.style3 .item.active {
        -ms-flex: 0 0 33.333333% !important;
        flex: 0 0 33.333333%  !important;
        max-width: 33.333333% !important;
    }
}

@media (max-width: 767px) {
    .tf-services-wrap.no-carousel.mobile-column-1 .item,
    .tf-services-wrap.no-carousel.mobile-column-3.style3 .item:hover,
    .tf-services-wrap.no-carousel.mobile-column-3.style3 .item.active {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tf-services-wrap.style2 .content {
        padding: 15px 50px 31px 20px;
    }
    .tf-services-wrap.style2 .content .tf-button-container {
        right: 10px;
    }
    .tf-services-wrap.style2 .content .tf-button-container a {
        width: 40px;
        height: 40px;
    }
    .tf-services-wrap.style3 .content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .tf-services-wrap.style4 .services-post {
        flex-direction: column;
        gap: 30px;
    }
    .tf-services-wrap.style4 .services-post .content {
        width: 100%;
        padding: 0;
        order: 2;
    }
    .tf-services-wrap.style4 .services-post .featured-post {
        width: 100%;
        order: 1;
    }
}
