/* --- Contact Page Styles --- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px; /* Space between cards */
    margin-top: 30px;
}

.team-card {
    background-color: #333;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
/* This targets the 'a' tag that is now our card */
a.team-card {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Resets the text color to not be blue */
    display: block; /* Ensures the link behaves like a block container */
}

.member-name {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 8px;
}

.member-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.member-affiliation {
    font-size: 1em;
    color: #ccc;
    line-height: 1.5;
}