/* Category Nav Styles */
.blog-category-nav-wrapper {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    /* Adjust if main navbar is sticky, typically navbar is 80px or so */
    /* z-index needs to be high but below navbar if navbar is sticky overlay */
    z-index: 90;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.blog-category-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-cat-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
    /* Space for underline */
}

.blog-cat-link:hover,
.blog-cat-link.active {
    color: var(--primary-color, #d9534f);
}

.blog-cat-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #d9534f);
}

@media (max-width: 768px) {
    .blog-category-nav {
        gap: 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        /* Horiz scroll on mobile */
    }

    .blog-cat-link {
        white-space: nowrap;
        font-size: 0.85rem;
    }
}