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;
}

.team-grid {
    display: grid;
    /* Forces exactly 3 equal columns across the row */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 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;
    text-transform: uppercase;

}

.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-category-wrapper {
    max-width: 1200px;
    margin: 0 auto 60px auto; /* Adds deep vertical breathing room between your categories */
    text-align: left; /* Aligns category headers to the left like your drawing */
    padding: 0 20px;
}

.category-header-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e62b1e; /* Core TED Red underline indicator */
    display: inline-block; /* Wraps the line directly to text length */
}

/* ===================================================
   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;
        text-transform:uppercase;
    }

    .team-category-wrapper {
        margin-bottom: 40px;
        text-align: center; /* Centers category lines neatly on mobile viewports */
    }

    .category-header-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}