.podcast-filter-container {
    margin-bottom: 2.5rem;
    scroll-margin-top: 150px; /* Offset for sticky headers */
}

.podcast-filter-menu {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-end; /* Align filters to the right */
}

.podcast-filter-menu::-webkit-scrollbar {
    display: none;
}

.podcast-filter-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1px solid #e1f0ff;
    color: #4a4a4a;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Added for link structure */
    display: inline-block; /* Added for link structure */
}

.filter-btn:hover {
    border-color: #256ab5;
    color: #256ab5;
}

.filter-btn.active {
    background-color: #0d3d6d;
    color: #ffffff;
    border-color: #0d3d6d;
}

/* Query Loop filtering */
.wp-block-post-template {
    display: grid; /* Ensure it stays a grid even when items are hidden */
    transition: opacity 0.3s ease;
}

.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);
}

.wp-block-post-template .wp-block-post.is-hidden {
    display: none !important;
}
