.team-member {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background-color: var(--white);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-bio {
    transition: max-height 0.6s ease, opacity 0.3s ease;
    max-height: 60px;
    overflow: hidden;
}

.team-member:hover .team-bio {
    max-height: 300px;
}

.team-avatar-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
}

.team-avatar-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 117, 255, 0.2), rgba(10, 37, 64, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 1;
}

.team-member:hover .team-avatar-container::after {
    opacity: 1;
}

.team-member:hover .team-avatar {
    transform: scale(1.05);
}

.team-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 0;
}

.team-linkedin {
    display: block;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #0077B5;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

/* Add responsive styles for the team grid */
@media screen and (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
                
@media screen and (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
} 