.horizontal-submenu {
    display: flex;
    background-color: #f8f9fa;
    padding: 10px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    white-space: nowrap; /* Prevent wrapping */
}

.horizontal-submenu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Edge */
}

.horizontal-submenu a {
    margin: 0 15px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    flex-shrink: 0; /* Prevent links from shrinking */
    display: inline-block; /* Make links inline for white-space */
}

.horizontal-submenu a:hover {
    color: #007bff;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .horizontal-submenu {
        display: flex;
        justify-content: flex-start; /* Align links to the start for scrolling */
        overflow-x: scroll; /* Horizontal scroll for smaller screens */
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .horizontal-submenu {
        justify-content: center; /* Center links for desktop view */
        overflow-x: hidden; /* Disable horizontal scrolling */
    }
}