.team-filter-container {
    margin-bottom: 40px;
    text-align: center;
}

.team-filter-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-filter-menu li {
    margin: 0;
}

.team-filter-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.team-filter-menu li a:hover,
.team-filter-menu li a.active {
    color: #000;
    border-bottom-color: #000;
}

/* Query Loop specific styling for filtering */
/* Assuming the Query Loop uses a grid layout */
.wp-block-post-template {
    transition: opacity 0.3s ease;
}

/* Hide items that don't match the filter */
.wp-block-post-template .wp-block-post.is-hidden {
    display: none;
}

/* Optional: Fade effect for better UX */
.wp-block-post-template .wp-block-post {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wp-block-post-template .wp-block-post.is-fading-out {
    opacity: 0;
    transform: scale(0.95);
}
