/* Team Grid & Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 0 15px;
}

.team-card {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    background: #f8f8f8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    min-height: 320px;
}

.team-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.team-card.role-director {
    border: 1px solid #0052cc;
}

.team-card.role-fellow {
    border: 1px solid #008a00;
}

.team-card.role-intern {
    border: 1px solid #f5a623;
}

.team-card.role-assistant {
    border: 1px solid #6200ea;
}

.team-card.role-alumni {
    border: 1px solid #4a4a4a;
}

.team-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.team-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.team-card:hover .team-card-img {
    filter: grayscale(0%);
}

.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-card-role {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

.team-card-body {
    padding: 0.5rem;
    height: auto;
}

.team-card-title {
    font-family: 'Montserrat';
    font-weight: bold;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.team-card-links {
    display: flex;
    justify-content: center;
    gap: 0px;
}

.team-card-links .social-icon {
    font-size: 1.0rem;
    margin: 0 0.5rem;
    color: #000000;
}

.team-card-links .social-icon:hover {
    color: #f5a623;
}

.team-card-bio {
    font-size: 0.95rem;
    color: #f5a623;
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.team-card-bio:hover {
    color: #000;
}

.team-card-bio i {
    margin-left: 0.3rem;
}