.team-vertical-section {
    padding: 80px 0 120px 0;
    background-color: var(--bs-extralight);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-top: 48px;
}

.team-grid > * {
    flex: 0 0 min(280px, 100%);
}

.team-card {
    background-color: var(--bs-light);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 32px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.team-card.highlighted-card {
    background-color: var(--bs-main-500);
}

.team-card.highlighted-card img {
    background-color: var(--bs-main-200);
}

.team-card.highlighted-card svg {
    fill: var(--bs-secondary-500);
}

.team-card.highlighted-card:hover {
    background-color: var(--bs-main-200);
    
    img {
        background-color: var(--bs-main-500);
    }

    svg {
        fill: var(--bs-secondary-500);
    }
}

.team-card.highlighted-card .team-name,
.team-card.highlighted-card .team-role small {
    color: var(--bs-secondary-500);
}

.team-card:hover {
    img {
        background-color: var(--bs-main-500);
    }
    .info-role-span {
        color: var(--bs-main-500);
    }

    svg {
        fill: var(--bs-main-500);
    }
}

.team-image {
    width: 5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bs-medium);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    text-align: left;
    width: 70%;
}

.team-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--bs-dark);
    margin-bottom: 0;
}

.team-role {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-role {
    width: min-content;
    display: flex;
    gap: 8px;
    align-items: center;
}

.team-card.highlighted-card .info-role-span {
    color: var(--bs-secondary-500);
}

.team-role svg {
    fill: var(--bs-dark);
    transition: fill 0.3s ease;
}

.team-card:hover .team-role small {
    color: var(--bs-main-500);
}

.team-card:hover .team-role svg {
    fill: var(--bs-main-500);
}

@media screen and (max-width: 992px) {
    .team-vertical-section {
        padding: 48px 0;
    }

    .info-role svg {
        display: none;
    }
    
    .team-card.highlighted-card {
        display: flex;
    }

    .team-grid {
        gap: 16px;
    }

    .team-card {
        width: 100%;
        border-radius: 999px;
        padding: 8px 8px 8px 24px;
    }

    .team-image {
        width: 3.5rem;
    }
    
    .info-role-span {
        font-size: 14px;
        line-height: 20px;
    }
}

.team-vertical-section a,
.team-vertical-section a:visited {
    color: inherit;
}

.team-vertical-section .role-name {
    line-height: 1;
    margin-bottom: 5px;
}

.team-vertical-section .info-role {
    font-size: 85%;
    line-height: 1;
    width: 95%;
}

.team-card.highlighted-card .info-role-span {
    color: var(--bs-secondary-500);
    line-height: 1;
}

@media (min-width: 992px) {
    .team-vertical-section .team-info {
        width: 65%;
    }
}