.team_hero_wrapper{
    background-color: #F9F9F9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

.team_hero{
    justify-content: center;
    align-items: center;
}

.team_hero_content{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.team_hero_content p{
    width: 85%;
}


.mgmt_team{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.mgmt_team_title,.mgmt_content{
    text-align: center;
}
.mgmt_content{
    width: 50%;
    margin-bottom: 2rem;
}

.mgmt_block{
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}
.mgmt_block:nth-child(even){
    flex-direction: row-reverse;
}

.mgmt_team_title {
    margin-bottom: 30px;
}
.mgmt_member_content{
    display: flex;
    flex-direction: column;
    gap: .2rem;
    width: 100%;
}

.mgmt_member_img{
    width: 50%;
}
.mgmt_member_name{
    color: #343A40;;
}
.mgmt_member_role{
    color: #343A40;
}
.mgmnt_member_desc{
    color: #777777;
    margin-top: 1rem;
}
.specialists{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.specialists_desc{
    width: 40%;
}
.specialists_members{
    margin-top: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.specialist_card{
    background-color: #f7f6f6;
    width: 24%;
}
.specialist_data {
    text-align: center;
}
.specialist_data{
    padding: 14px 0;
}

.specialist_role{
    font-size: var(--small-font-size);
    color: #5663C1;
}

.team_membs_content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.team_membs{
    flex-direction: column;
    gap: 3rem;
}

.team_membs_desc{
    width: 50%;
}
.membs_wrapper
{
    grid-template-columns: repeat(5, 1fr);
    justify-content: space-around;
    align-items: center;
    grid-row-gap: 5rem;
    padding-bottom: 7rem;
}

.memb_name{
    text-align: center;
    font-weight: bold;
}
.memb_role{
    text-align: center;
    color: #5663C1;
}
.memb_card{
    text-align: center;
}

@media only screen and (max-width: 750px) {
    .team_hero{
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        min-height: calc(100vh - var(--header-height));
    }
    .mgmt_block{
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        gap: 1rem;
    }
    .mgmt_team{
        gap: 3rem;
    }
    .mgmt_block:nth-child(even){

        flex-direction: column;
    }
    .mgmt_member_img{
        text-align: center;
        max-width: 320px;
    }
    .team_hero_content{
        width: 100%;
    }
    .team_hero_gallery{
        width: 95%;
    }
    .mgmt_content{
        width: 100%;
    }
    .specialists_title{
        width: 100%;
        text-align: center;
    }
    .specialists_desc{
        width: 100%;
    }
    .specialists_members{
        flex-direction: column;
        margin: 0 3rem;
    }
    .specialist_card img{
        width: 100%;
    }
    .team_membs_desc{
        width: 100%;
    }
    .membs_wrapper{
        grid-template-columns: repeat(1, 1fr);
    }
    .memb_card{
        text-align: center;
    }

}
