/* Container for team members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Card styling */
.team-card {
    background: var(--dark);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Image styling */
.team-image {
    width: 100%;
    padding: 0;
    background: var(--light);
}

.team-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

/* Info section */
.team-info {
    padding: 15px;
}

.team-info h3 {
    font-size: 1.2rem;
    margin: 8px 0 5px;
    color: var(--accent);
}

.team-info .scientific {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 5px;
}

.team-info p {
    color: var(--light);
    font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 500px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}