/* ==========================================================================
   TEMPLATE: page-team.php (Definitieve Team Layout)
   ========================================================================== */

.team-page-layout {
    width: 100%;
    background-color: #f9fbfd;
    padding-bottom: 5rem;
}

/* 1. Hero Setup (Identiek aan je Agenda-structuur) */
.team-hero-bg {
    background-size: cover;
    background-position: center center;
    padding: 11rem 0 14rem 0;
    position: relative;
    color: #FFFFFF;
    box-sizing: border-box;
}

.team-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.team-hero-bg .corporate-hero-angle {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 80px;
    background: #f9fbfd;
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
    z-index: 3;
    pointer-events: none;
}

/* 2. Grid & Kaarten uit de screenshots */
.unique-team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-member-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(15, 32, 66, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Zorgt dat de pasfoto's altijd perfect rond en dekkend zijn */
.team-avatar-wrap {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f6;
    border: 3px solid #f4f4f4;
}

.team-avatar-wrap img, 
.team-avatar-wrap .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Naamgeving */
.team-member-name {
    font-family: var(--font-headings), sans-serif;
    color: #0f2042;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

/* De ontbrekende functies */
.team-member-role {
    font-family: var(--font-body), sans-serif;
    color: #FF5500; /* Je corporate accentkleur */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Responsive optimalisatie */
@media (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TEAM FILTER BALK STYLING
   ========================================================================== */

.team-filter-bar-wrap {
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #eef2f6;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(15, 32, 66, 0.02);
    position: relative;
    z-index: 10;
}

.team-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f1f4f8;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    font-family: var(--font-body), sans-serif;
}

/* Hover effect */
.filter-btn:hover {
    background: #e2e8f0;
    color: #0f2042;
}

/* Actieve knop stijl (Oranje / Accentkleur van Media Zoetermeer) */
.filter-btn.active {
    background: #FF5500;
    border-color: #FF5500;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.25);
}

/* Zorg voor soepele overgang bij het filteren */
.team-member-card {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Responsive aanpassing voor mobiel */
@media (max-width: 650px) {
    .team-filter-bar {
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex-grow: 1;
        text-align: center;
    }
}

/* ==========================================================================
   TEAM MEMBER CARD LINKS & HOVER EFFECT
   ========================================================================== */

.team-member-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.team-member-card-link:hover .team-member-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 32, 66, 0.1);
}

.team-member-card-link:hover .team-member-btn {
    background-color: #FF5500;
    color: #FFFFFF;
}

.team-member-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f2042;
    background-color: #f1f4f8;
    border-radius: 20px;
    transition: all 0.25s ease;
}