/* Team Page Styles — Montserrat loaded globally via functions.php */
.page-template-page-pedagogy-team-php * {
    font-family: 'Montserrat', sans-serif;
}

/* Restore accent font on all Comic-Sans-styled elements */
.page-template-page-pedagogy-team-php .cat-section-title,
.page-template-page-pedagogy-team-php .team-level-title,
.page-template-page-pedagogy-team-php .font-accent {
    font-family: var(--font-accent) !important;
}

body.page-template-page-pedagogy-team-php,
body.page-template-page-pedagogy-team-php .site,
body.page-template-page-pedagogy-team-php #page,
body.page-template-page-pedagogy-team-php .entry-content,
body.page-template-page-pedagogy-team-php .ast-container,
body.page-template-page-pedagogy-team-php #content {
    background-color: #faf7f2 !important;
}

.team-hero {
    background: linear-gradient(135deg, rgba(0,156,142,0.05) 0%, rgba(72,123,255,0.05) 100%);
}

.team-filters {
    background: #fefcf9;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.team-filters__select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    min-width: 150px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-filters__select:focus {
    outline: none;
    border-color: #009c8e;
    box-shadow: 0 0 0 3px rgba(0,156,142,0.1);
}

.team-level-title {
    font-family: var(--font-accent) !important;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    margin: 0 0 1rem;
    line-height: 1.3;
    text-align: center;
}

.team-level-subtitle {
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

.team-member-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.team-member-card:hover .team-member-photo img {
    transform: scale(1.05);
}

.team-member-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.team-member-role {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.team-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.team-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.team-detail-photo img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.team-detail-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.team-detail-role {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-detail-description {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.team-detail-languages,
.team-detail-specialties {
    margin-bottom: 1rem;
}

.team-detail-languages strong,
.team-detail-specialties strong {
    color: #111827;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-filters__container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .team-filters__group {
        width: 100%;
    }
    
    .team-filters__select {
        width: 100%;
    }
    
    .team-detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-level-title {
        font-size: 1.5rem;
    }
    
    .team-hero .section-title {
        font-size: 2rem;
    }
    
    .team-hero .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Animation for detail expansion */
.team-member-detail {
    display: none;
    grid-column: 1 / -1;
    margin-top: 2rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for images */
.team-member-photo img {
    background: #f3f4f6;
}

/* Focus states for accessibility */
.team-member-card:focus {
    outline: 2px solid #009c8e;
    outline-offset: 2px;
}

/* School and level color variations */
.team-badge--school {
    background: var(--school-color, #009c8e20);
    color: var(--school-color-text, #009c8e);
}

.team-badge--level {
    background: var(--level-color, #ffb41520);
    color: var(--level-color-text, #ffb415);
}

