body{
    background-image:url(../resources/Background.png)
}
.team-section {
    padding: 60px 20px;
    text-align: center;
}

.team-page-title {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #fff;
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

/* THE GRID CONTAINER */
.team-grid {
    display: grid;
    /* Automatically creates columns that are at least 280px wide */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 30px;
}

/* INDIVIDUAL TEAM CARDS */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-img-container {
    width: 100%;
    max-width: 260px; 
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    margin-bottom: 20px;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.member-name {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.member-role {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #e62b1e; 
    font-size: 1.2rem; /*Adjusted sizing from 1.4 - 1.2*/
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.member-info {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 4px;
}

.member-fact {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #aaa; 
    font-size: 0.7rem;
    font-style: italic;
}

/* ===================================================
   TEAM PAGE MOBILE OPTIMIZATIONS
   =================================================== */
@media (max-width: 768px) {
    .team-page-title {
        font-size: 2.2rem; 
        margin-bottom: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
        gap: 25px; 
        padding: 10px 10px;
    }

    .team-img-container {
        max-width: 220px; /* Restricts profile frame size to match mobile grids */
    }

    .member-name {
        font-size: 1.3rem;
    }

    .member-role {
        font-size: 1.1rem;
    }
}