/* Filter Dropdown Styling */
.filter-dropdown {
    position: relative;
    display: inline-block;
    margin: 1.5rem 0;
    min-width: 220px;
    border-bottom: 0;
}

.filter-toggle {
    background-color: transparent;
    min-width: 135px;
    height: 51px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    border: 1px solid var(--color-neutral-darkest);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    gap: 24px;
    font-family: 'Outfit', sans-serif;
}

.filter-toggle:hover {
    background-color: var(--color-neutral-light);
}

.filter-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.filter-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: var(--color-white);
    border-top: none;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-dropdown.open .filter-menu {
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown.open .filter-icon {
    transform: rotate(180deg);
}

.filter-link {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-neutral-darkest);
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--color-neutral-light);
}

.filter-link:hover,
.filter-link:focus {
    background-color: var(--color-neutral-light);
    text-decoration: none;
}

.filter-link.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Loading state */
#blogPosts.loading {
    position: relative;
    min-height: 300px;
}

#blogPosts.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

#blogPosts.loading .row {
    opacity: 0.5;
}
