.team-section {
    padding: 6rem 0 3rem 0;
    background: var(--bg-white);
}

/* Loading and error states */
.loading-message,
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-medium);
    font-size: 1rem;
}

.error-message {
    color: #cc0000;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pi-grid {
    margin-bottom: 1.5rem;
}

.members-grid {
    gap: 2rem;
}

/* Team Member Card - Circular Image Style */
.team-member {
    text-align: center;
    max-width: 200px;
}

.member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
    border: 3px solid var(--bg-white);
    outline: 2px solid var(--border);
}

.team-member:hover .member-photo {
    outline-color: #000000;
}

.member-photo-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.member-photo-link .member-photo {
    transition: transform 0.2s ease;
}

.member-photo-link:hover .member-photo {
    transform: scale(1.05);
    outline-color: #000000;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.member-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.member-role {
    color: #555555;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.member-email {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.member-email a {
    color: #555555;
    text-decoration: none;
}

.member-email a:hover {
    color: #3498db;
    text-decoration: underline;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-medium);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-decoration: none;
}

.team-social:hover:not(.disabled) {
    background: #000000;
    color: white;
    border-color: #000000;
}

.team-social.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.team-social svg {
    display: block;
}

.pi-grid .team-member {
    max-width: 240px;
}

.pi-grid .member-photo {
    width: 200px;
    height: 200px;
}

.pi-grid .member-name {
    font-size: 1.35rem;
}

/* Alumni Section */
.alumni-section {
    padding: 3rem 0;
    background: var(--bg-white);
}

#alumni-container {
    margin-top: 1.5rem;
}

#alumni-container .loading-message {
    text-align: left;
    padding: 1rem 0;
    color: var(--text-light);
}

.alumni-table-section {
    margin-bottom: 2.5rem;
}

.alumni-table-section:last-child {
    margin-bottom: 0;
}

.alumni-table-section h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.alumni-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
}

.alumni-table th,
.alumni-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #d0d0d0;
}

.alumni-table th {
    font-weight: 600;
    color: #000000;
    background: #f5f5f5;
    border-bottom: 2px solid #d0d0d0;
}

.alumni-table td {
    color: var(--text-medium);
    background: #ffffff;
}

.alumni-table tbody tr:hover {
    background: #fafafa;
}

.alumni-table tbody tr:hover td {
    background: #fafafa;
}

@media (max-width: 768px) {
    .team-grid {
        gap: 2rem;
    }
    
    .member-photo {
        width: 140px;
        height: 140px;
    }
    
    .pi-grid .member-photo {
        width: 160px;
        height: 160px;
    }
    
    .member-name {
        font-size: 1.05rem;
    }
    
    .pi-grid .member-name {
        font-size: 1.2rem;
    }
    
    .alumni-table {
        font-size: 0.9rem;
    }
    
    .alumni-table th,
    .alumni-table td {
        padding: 0.5rem 0.5rem;
    }
}
