/************************ Team List ***************************/
.category_banner {
    display: flex;
    align-items: center;
    padding: 40px 0;
    border-bottom: 2px solid var(--black);
}

.category_banner .button_2 {
    background-color: transparent;
    border: 2px solid var(--black);
    color: var(--black);
    margin-right: 15px;
}

.category_banner .button_2:last-of-type {
    margin-right: 0;
}

.category_banner .button_2:hover,
.category_banner .selected {
    background-color: var(--black);
    color: var(--white);
}

#team,
#management,
#committee {
    display: none;
    opacity: 0;
	transition: all 1.5s cubic-bezier(0.35, 1, 0.45, 1) .3s;
}

.show {
    display: block !important;
    opacity: 1 !important;
    transition: all 1.5s cubic-bezier(0.35, 1, 0.45, 1) .3s;
}

.team_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 100px;
}

.team_card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 45px) / 4);
    box-sizing: border-box;
    margin-right: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    /* transition: 0.2s all ease-in-out; */
}

.team_card:nth-of-type(4n) {
    margin-right: 0;
}

.team_card .team_image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.team_card .team_image h3 {
    position: absolute;
    top: 3px;
    left: 15px;
    margin: 0;
    color: var(--white);
}

.team_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: all 0.25s;
}

.team_card:hover {
    box-shadow: 0px 3px 5px 1px rgba(0,0,0, 0.1);
}

.team_card:hover .team_image img {
    transform: scale(1.06);
}

.team_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-grow: 1;
    text-align: left !important;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    background-color: var(--white);
    text-align: center;
    transition: all 0.25s;
}

.team_card:hover .team_content {
    background-color: var(--red);
    transition: all 0.25s;
}

.team_content h4 {
    color: var(--red);
    margin: 0;
}

.team_content h3 {
    margin: 0;
}

.team_content .position {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 5px 0;
}

.team_content .sponsor {
    font-weight: 500;
    opacity: 0.5;
    margin: 0;
    color: var(--grey);
}

.team_card:hover h4 {
    color: var(--black);
}

.team_card:hover h3 {
    color: var(--white);
}

.team_card:hover .position,
.team_card:hover .sponsor {
    color: var(--white);
}

@media (max-width: 1350px) {
    .team_card {
        width: calc((100% - 30px) / 3);
    }

    .team_card:nth-of-type(4n) {
        margin-right: 15px;
    }
    
    .team_card:nth-of-type(3n) {
        margin-right: 0;
    }
}

@media (max-width: 1000px) {
    .team_card {
        width: calc((100% - 15px) / 2);
    }

    .team_card:nth-of-type(4n),
    .team_card:nth-of-type(3n) {
        margin-right: 15px;
    }
    
    .team_card:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media (max-width: 650px) {
    .team_card {
        width: 100%;
        margin-right: 0 !important;
    }

    .team_card:nth-of-type(4n),
    .team_card:nth-of-type(3n),
    .team_card:nth-of-type(2n) {
        margin-right: 0 !important;
    }

    .category_banner {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .category_banner {
        flex-direction: column;
        padding: 20px 0;
    }

    .category_banner .button_2 {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .category_banner .button_2:last-of-type {
        margin-bottom: 0;
    }
}