.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.team-card-modern {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 25px;
    max-width: 600px;
    width: 100%;
}

.team-card-image {
    flex-shrink: 0;
    width: 150px;
}

.team-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.team-card-info {
    flex: 1;
}

.team-card-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
}

.team-role {
    color: #f40000;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.team-description {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.team-education {
    margin: 0 0 14px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

.team-contact-links {
    display: flex;
    gap: 10px;
}

.team-contact-links a {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid #f40000;
    border-radius: 5px;
    color: #f40000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s, color 0.3s;
}

.team-contact-links a:hover {
    background-color: #f40000;
    color: white;
}

@media (max-width: 500px) {
    .team-card-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-card-image {
        width: 120px;
    }

    .team-contact-links {
        justify-content: center;
    }
}
