/*********************
START: TEAM SECTION STYLES
*********************/
.team {
    position: relative;
    min-height: 500px;
    overflow-y: hidden;
    margin-block-end: 3rem;
}

.team::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: -20%;
    left: 0;
    background-image: url(../img/bg-team.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.team--title {
    width: 50%;
    text-align: center;
    margin-inline: auto;
    color: var(--white);
}

.team--title h3 {
    font-size: 40px;
    margin-block-end: 0.5rem;
    margin-top: 5rem;
}

.team ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 80%;
    margin-inline: auto;
    margin-block-start: 40px;
}

.team ul li {
    margin: 20px;
    flex-basis: calc(33.33% - 40px);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
}

.team ul li :is(h4, span) {
    font-size: 18px;
}


.team ul li p {
    color: var(--text-color2);
    margin-block-start: 0.5rem;
}

.team ul li img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/*********************
  END: TEAM SECTION STYLES
*********************/


/*********************
START: MEDIA QUERY
*********************/
@media screen and (max-width: 1200px) {
    .team--title {
        width: 60%;
    }

    .team ul {
        width: 90%;
    }

    .team ul li {
        margin: 15px;
        flex-basis: calc(33.33% - 30px);
    }
}

@media screen and (max-width: 992px) {
    .team--title {
        width: 70%;
    }

    .team ul {
        width: 100%;
    }

    .team ul li {
        margin: 10px;
        flex-basis: calc(33.33% - 20px);
    }
}


@media screen and (max-width: 768px) {
    .team--title {
        width: 90%;
    }

    .team ul li {
        margin: 5px;
        flex-basis: calc(33.33% - 10px);
    }

}


@media screen and (max-width: 576px) {
    .team ul li {
        margin: 5px;
        flex-basis: calc(50% - 10px);
    }
}

@media screen and (max-width: 375px) {
    .team ul li {
        margin: 5px;
        flex-basis: calc(100% - 10px);
    }
}