.faq-category-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 18px 20px;
    background-color: #F3F3F3;
}

.faq-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.faq-category-item {
    margin: 0;
}

.faq-category-link {
    display: inline-block;
    padding: 7px 23px;
    background-color: #fff;
    color: #021E4B;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-category-link:hover {
    border-color: #021E4B;
    color: #021E4B;
}

.faq-category-item.active .faq-category-link {
    background-color: #021E4B;
    color: #fff;
    border-color: #021E4B;
}

@media (max-width: 768px) {
    .faq-category-filter{
        margin-top: 20px;
        justify-content: flex-start; /* Align to start for scrolling */
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding-left: 0; /* Remove padding to maximize space */
        padding-right: 0;
        background-color: transparent; /* Transparent bg for cleaner look */
    }
    
    .faq-category-list {
        gap: 10px;
        justify-content: flex-start; /* Align items to start */
        flex-wrap: nowrap; /* Prevent wrapping */
        padding-left: 20px; /* Add side padding for better UX */
        padding-right: 20px;
        width: auto; /* Ensure list takes full width */
    }
    
    .faq-category-item {
        flex-shrink: 0; /* Prevent items from shrinking */
    }
    
    .faq-category-link {
        padding: 8px 20px;
        font-size: 14px;
        white-space: nowrap; /* Prevent text wrapping inside button */
    }
    
    /* Hide scrollbar for cleaner look but keep functionality */
    .faq-category-filter::-webkit-scrollbar {
        display: none;
    }
    .faq-category-filter {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}
