.team-section {
    width: 100%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-container {
    width: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 678px) {
    .team-container {
        width: 100%;
    }
}

.team-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-title h1 {
    font-size: 25px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.team-title p {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.team-members {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px;
}

.member {
    margin: 0px 15px;
    width: calc(33% - 30px);
    padding: 15px;
    border-radius: 12.5px;
    border: 1px solid var(--border-light-color);
    box-shadow: 0 0 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

@media screen and (max-width: 900px) {
    .member {
        width: calc(50% - 30px);
    }
}

@media screen and (max-width: 715px) {
    .team-members {
        flex-direction: column;
        align-items: center;
    }
    .member {
        width: 100%;
        min-width: auto;
        margin: 0px;
        margin-bottom: 30px;
    }
}

.member-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 7.5px;
}

.member-info {
    padding-top: 15px;
}

.member-info h3 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.25px;
    color: var(--title-color);
    text-align: center;
}

.member-info p {
    font-size: 14px;
    color: var(--title-color);
    line-height: 1.5;
    margin-bottom: 5px;
}

.member-info>p:nth-child(2) {
    color: var(--primary-color);
    margin-bottom: 12.5px;
    text-align: center;
}