.team-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.team-container h2 {
    line-height: 80%;
}

.team {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4rem;
    margin-block: 4rem;
}   

.team-card, .team-card-last {
    background: #3D6582;
    border-radius: 4vh;
    color: #ffffff;
    height: 100%;
    max-height: 300px;
}

.team-card:hover {
    box-shadow: inset 0 20px 100px  #232c33;
}
.team-card:hover .team-card-text .first-name {
    transform: translateX(-5%);
}

.team-card:hover .last-name {
    transform: translateX(5%);
}

.team-card:hover .team-card-img img {
    transform: scale(105%);
    transform-origin: bottom;
}
.team-card-img img {
    overflow: visible;
    transition: all 0.3s ease;
}


.team-container p {
    font-weight: 300;
}

.team-card h2 {
    font-weight: 900;
}
.first-name {
    display: inline-block;
    color: white;
    transition: all 0.3s ease;
}
.last-name {
    color: #f3604d;
    display: inline-block;
    transition: all 0.3s ease;
}

.team-card-last {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2vw;
    height: 200px;
}
.team-card-last h2 {
    color: white;
}
.team-card-last button {
    outline: none;
    background: #ffffff;
    border: none;
    border-radius: 3vh;
    cursor: pointer;
    display: flex;
    padding: 0.5vh 2vw;
    gap: 1rem;
    transition: all 2s ease;
    align-items: center;
    justify-content: space-between;
}

.team-card-last p {
    font-weight: 600;
}

.team-card {
    cursor: pointer;
    text-align: left;
    display: flex;
    padding: 0;
    overflow: visible;
    transition: all 0.3s ease;
    height: 200px;
    position: relative;
}

.team-card-text {
    padding: 2rem 0px 2rem 2rem;
    display: flex;
    height: 100%;
    width: auto;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    align-self: self-end;
    z-index: 2;
}

.team-card-img {
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom-right-radius: 4vh;
    z-index: 1;
    max-height: 225px;
    max-width: 225px;
    overflow: visible;
}

.team-card-join {
    color: black;
    background-color: #ffffff;
}



.join-us-btn {
    outline: none;
    background: #ffffff;
    border: none;
    border-radius: 3vh;
    cursor: pointer;
    display: flex;
    padding: 0.5em 1em;
    gap: 1rem;
    transition: all 0.3s ease;
    align-items: center;
    color: #000000;
    justify-content: space-between;
}

.join-us-btn svg {
    max-height: 100%;
    transition: all 0.3s ease;
}

.join-us-btn rect {
    transition: all 0.3s ease;
}

.join-us-btn:hover {
    color: #ffffff;
    background: #f3604d;
}

.join-us-btn:hover svg {
    fill: white;
    stroke: white;
}

.join-us-btn:hover rect {
    fill: #f3604d;
}

.team-card-img img {
    max-height: 225px;
    max-width: 225px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
    transform-origin: bottom;
}

@media (min-width: 360px) {
}   
@media (min-width: 480px) {
}
@media (min-width: 768px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .team-container {
        gap: 2rem;
    }
    .team-card {
        height: 350px;
    }
    .team-card-last {
        height: 350px;
    }
    .team-card-img {
        max-height: 350px;
        max-width: 350px;
    }
    .team-card-img img {
        max-height: 350px;
        max-width: 350px;
    }
}
@media (min-width: 1280px) {
}
@media (min-width: 1440px) {
}

@media (min-width: 1920px) {
    .team-card-text {
        padding: 5% 0 5% 5%;
    }
}