.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    width: 300px;
    display: flex;
    flex-direction: column;
}

.team-image-link {
    display: block;
}

.team-image-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-image-link:hover img {
    transform: scale(1.05);
}

.team-info {
    padding: 15px;
    text-align: center;
    --icon-size: 18px;
    --icon-gap: 6px;
}

.team-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-link {
    display: inline-block;
    position: relative;
    margin-top: 10px;
    color: rgb(42, 64, 42);
    text-decoration: none;
    font-weight: bold;
}

.profile-link:hover {
    text-decoration: underline;
}

.profile-link::before {
    content: "";
    position: absolute;
    left: calc(-1 * (var(--icon-size) + var(--icon-gap) + 6px));
    width: calc(var(--icon-size) + var(--icon-gap) + 12px);
    top: -6px; bottom: -6px;
}

.external-icon {
    position: absolute;
    width: var(--icon-size);
    height: var(--icon-size);
    left: calc(-1 * (var(--icon-size) + var(--icon-gap)));
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

@media (max-width: 768px) {
    .team-card {
        width: 80vw;
    }
}