/*
|--------------------------------------------------------------------------
| TEAM PAGE - SMALL DISPLAY (DEFAULT/MOBILE)
|--------------------------------------------------------------------------
*/



/* TEAM GRID STYLES */
.team-grid-section {
    padding: 4rem 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
}

.team-grid-section h2 {
    padding-left: 0; 
    padding-right: 0;
    margin-bottom: 2rem;
    color: var(--nav);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 1.5rem;
}

.team-member-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center; 
    display: block;
}

.team-member-card .card-info {
    padding: 1rem 1.5rem 0;
}

.team-member-card h3 {
    font-size: 1.5rem;
    color: var(--nav);
    margin-bottom: 0.25rem;
    padding: 0;
}

.team-member-card h4 {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 0;
}

.team-member-card p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding: 0;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-social a {
    color: var(--nav);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: var(--accent);
}

/*
|--------------------------------------------------------------------------
| TEAM PAGE - LARGE DISPLAY (DESKTOP OVERRIDES)
|--------------------------------------------------------------------------
*/
@media (min-width: 1200px) {
    .team-grid-section {
        padding: 6rem 4rem;
        text-align: left;
    }
    .team-grid-section h2 {
        text-align: left;
    }
}