.hm-services ul.services-grid {
    margin-right: calc(-100vw / 2 + (100% - 225px) / 2);
    margin-left: -17px;
    margin-bottom: -60px;
}

.services-grid.slick-initialized {
    display: block;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.services-page .no_why_choose.text-slider {
    background: #E0EDEA;
    padding: 50px 0;
}

.services-grid li {
    width: 25%;
    padding: 0 17px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.services-grid li .service-item {
    background: var(--white);
    border-radius: 20px;
    padding: 5px 5px 30px;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--white);
    width: 100%;
    height: 100%;

    & .ser-images {
        border-radius: 20px 20px 200px 200px;
        overflow: hidden;
        height: 285px;

        & img {
            transition: all 0.5s linear;
            -webkit-transition: all 0.5s linear;
            -o-transition: all 0.5s linear;
            -moz-transition: all 0.5s linear;
            object-fit: cover;
            height: 290px;
            width: 100%;
        }
    }
}

.services-grid li .service-item .ser-detail {
    text-align: center;
    padding-top: 25px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;

    & .heading-24 {
        margin-bottom: 10px;
        flex: 1;
    }

    & p {
        max-width: 260px;
        margin: 0 auto;
        display: block;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    & .button-outline {
        min-height: 46px;
        padding: 10px 18px;
        font-size: 16px;
        margin-top: 25px;
        border: 1px solid var(--secondary);
    }
}

.background-overlay .intro-column [class*="heading-"],
.background-overlay .intro-column p,
.background-overlay .intro-column .semi-head {
    color: var(--white);
}

.intro-column .intro-left {
    width: 480px;
}

.intro-column .intro-right {
    width: 375px;
}

.services-page .services-grid li .service-item {
    border-color: #D9D9D9;
}

.services-page .services-grid {
    margin-bottom: -60px;
}

.services-grid li .service-item:hover {
    box-shadow: 0 0 12px rgb(0 0 0 / 20%);

    & .ser-images {
        & img {
            transform: scale(1.2);
        }
    }


    & .heading-24 {
        color: var(--theme);
    }

    & .button {
        color: var(--white);
        border-color: var(--theme);
        background-position: right;
    }
}

.hm-services ul.services-grid:not(.slick-initialized) {
    margin-right: -17px;
}

.hm-services ul.services-grid:not(.slick-initialized) li:nth-child(n+5) {
    display: none;
}


.team_list .team-head {
    max-width: 760px;
    margin: 0 auto 60px;
}

.team_list .team-head .heading-40 {
    margin-bottom: 15px;
}

.team_list .team-list-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team_list .team-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 80px;
}

.team_list .team-row:last-child {
    margin-bottom: 0;
}

.team_list .team-row:nth-child(even) {
    flex-direction: row-reverse;
}

.team_list .team-image {
    width: calc(36% - 25px);
    border-radius: 20px;
    overflow: hidden;
    background: #f4f4f4;
    position: sticky;
    align-self: flex-start;
    top: 100px;
}

.team_list .team-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.team_list .team-row:hover .team-image img {
    transform: scale(1.04);
}

.team_list .team-content {
    width: calc(64% - 25px);
}

.team_list .team-role {
    display: inline-block;
    color: var(--theme);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.team_list .team-name {
    margin: 0 0 20px;
}

.team_list .team-bio {
    margin-bottom: 25px;
}

.team_list .team-bio p {
    margin-bottom: 14px;
}

.team_list .team-bio p:last-child {
    margin-bottom: 0;
}

.team_list .team-meta {
    list-style: none;
    padding: 25px 0 0;
    margin: 30px 0 0;
    border-top: 1px solid #EAEAEA;
}

.team_list .team-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
    margin: 0 0 15px;
    padding: 0;
}

.team_list .team-meta-item:last-child {
    margin-bottom: 0;
}

.team_list .team-meta-item i {
    color: var(--theme);
    font-size: 14px;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
}

.team_list .team-meta-item a,
.team_list .team-meta-item span {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.team_list .team-meta-item a {
    color: inherit;
    word-break: break-word;
    transition: color 0.2s ease;
}

.team_list .team-meta-item a:hover {
    color: var(--theme);
}


@media screen and (max-width: 1439.98px){
    .services-grid li .service-item .ser-detail {
        & .heading-24 {
            font-size: 20px;
        }
    }
}


@media screen and (max-width: 1199.98px) {
    .background-overlay .intro-column [class*="heading-"],
    .background-overlay .intro-column p,
    .background-overlay .intro-column .semi-head {
        margin-bottom: 5px;
    }

    .intro-column .intro-left,
    .intro-column .intro-right {
        width: 100%;
        text-align: center;
    }

    .hm-services ul.services-grid {
        margin: 0 -10px -30px;
    }

    .services-grid li {
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .services-grid li .service-item .ser-detail {
        padding: 20px 15px 0;

        & .button-outline {
            margin-top: 15px;
        }
    }

    .services-page .services-grid {
        margin-bottom: -30px;
    }

    .services-grid li {
        width: 33.33%;
    }

    .hm-services ul.services-grid:not(.slick-initialized) li:nth-child(n+4) {
        display: none;
    }
}

@media screen and (max-width: 991.98px) {
    .services-page .no_why_choose.text-slider {
        background: #E0EDEA;
        padding: 25px 0;
    }

    .hm-services ul.services-grid {
        margin: 0 -5px -30px;
    }

    .services-grid li {
        padding: 0 5px;
        margin-bottom: 10px;
    }


    .services-grid li .service-item .ser-detail {
        padding: 20px 0 0;

        & .button-outline {
            padding: 10px;
            min-height: 36px;
            font-size: 12px;

        }

        & .heading-24 {
            font-size: 18px;
            margin-bottom: 0;
        }
    }

    .services-grid li .service-item {
        & .ser-images {
            & img {
                width: 100%;
            }
        }
    }

    /*.team_list .team-row .team-content .team_cnt:has(+ .team-meta) {max-height: 135px;}
    .team_list .team-row .team-content .team_cnt {max-height: 200px;}
    .team_list .team-name {margin: 0 0 12px;}
    .team_list .team-role{margin-bottom: 4px;}
    .team_list .team-meta-item{margin: 0 0 8px;}
    .team_list .team-meta{padding: 15px 0 0;margin: 20px 0 0;}*/
}

@media screen and (max-width: 767.98px) {
    .services-grid li {
        width: 50%;
    }

    .hm-services ul.services-grid:not(.slick-initialized) li:nth-child(n+3) {
        display: none;
    }

    .team_list .team-head {
        margin-bottom: 30px;
    }

    .team_list .team-row {
        gap: 25px;
        margin-bottom: 40px;
    }
    .team_list .team-image{
        position: relative;
        top:0;
    }
    .team_list .team-row,
    .team_list .team-row:nth-child(even) {
        flex-direction: column;
    }

    .team_list .team-image,
    .team_list .team-content {
        width: 100%;
    }

    .team_list .team-image img {
        aspect-ratio: 16 / 10;
    }

    .team_list .team-name {
        margin-bottom: 15px;
    }

    .team_list .team-bio {
        margin-bottom: 20px;
    }

    /*.team_list .team-row .team-content .team_cnt:has(+ .team-meta) ,
    .team_list .team-row .team-content .team_cnt{
        max-height: 100%;
        padding-right: 0;
    }*/
}

@media screen and (max-width: 575.98px) {
    .services-grid li .service-item {
        & .ser-images {
            border-radius: 20px 20px 145px 145px;
            margin:0 auto;
            height: 150px;

            & img {
                height: 155px;
            }
        }
    }

   
}