ul.teamul {
    margin: 0;
    list-style-type: none;

    & li {
        margin-bottom: 0;
    }

    & li:not(:last-child) {
        margin-bottom: 50px;
    }
}

.team-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    & .team-left {
        width: 700px;
    }

    & .team-right {
        width: calc(100% - 700px);
        max-width: 680px;
        padding-left: 10px;
    }
}

.teamli {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    & .teamimg {
        width: 200px;
        height: 200px;
        border: 8px solid var(--white);
        border-radius: 100%;
    }

    & .teamdtl {
        padding-left: 50px;
        width: calc(100% - 200px);

        & .team-name {
            font-size: 30px;
            color: var(--paragraph);
            margin-bottom: 14px;
            font-family: var(--font-head-family);
        }

        & .team-designation {
            font-size: 18px;
            color: var(--paragraph);
            line-height: 1;
        }
    }
}

.sec-team {
    padding-top: 100px;
}

.tphmimg-box {
    position: relative;

    & .btnlist-wrap {
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 0 20px 20px 0;
        background-color: var(--white);
        border-radius: 6px;
        padding: 20px 12px;
    }
}


/*-------- media query ------*/

@media (max-width: 1599.98px) {
    .team-wrap {
        & .team-left {
            width: 50%;
        }

        & .team-right {
            width: calc(100% - 50%);
            padding-left: 50px;
        }
    }

    ul.teamul {
        & li:not(:last-child) {
            margin-bottom: 20px;
        }
    }

    .teamli {
        & .teamdtl {
            padding-left: 30px;
            width: calc(100% - 180px);
        }

        & .teamimg {
            width: 180px;
            height: 180px;
        }
    }
}

@media (max-width: 1439.98px) {
    .sec-team {
        padding-top: 80px;
    }
}

@media (max-width: 1199.98px) {
    .teamli {
        & .teamdtl {
            & .team-name {
                font-size: 26px;
                margin-bottom: 10px;
            }
        }

        & .teamimg {
            width: 140px;
            height: 140px;
            border: 4px solid var(--white);
        }

        & .teamdtl {
            padding-left: 20px;
            width: calc(100% - 140px);
        }
    }
}

@media (max-width: 991.98px) {

    .team-wrap {
        & .team-left {
            width: 100%;
            order: 2;
            max-width: 380px;
            margin: 0 auto
        }

        & .team-right {
            padding-left: 0;
            width: 100%;
        }
    }

    ul.teamul {
        justify-content: space-between;
        display: flex;
        flex-wrap: wrap;

        & li {
            width: calc(50% - 5px);
        }
    }

    .teamli {
        & .teamimg {
            width: 100px;
            height: 100px;
            border: 4px solid var(--white);
        }

        & .teamdtl {
            padding-left: 10px;
            width: calc(100% - 100px);

            & .team-name {
                font-size: 22px;
                margin-bottom: 8px;
                line-height: 1.1;
            }
        }
    }

    .sec-team {
        padding-top: 60px;
    }
}

@media (max-width: 767.98px) {

    .teamli {
        & .teamdtl {
            & .team-name {
                font-size: 20px;
            }
        }
    }

}

@media (max-width: 575.98px) {
    ul.teamul {
        max-width: 350px;
        margin: 0 auto 30px;
        justify-content: center;

        & li {
            width: 100%;
        }

        & li:not(:last-child) {
            margin-bottom: 10px;
        }
    }

    .sec-team {
        padding-top: 40px;
    }
}