/* Sticky Submenu - Below the Main Navigation */
.sticky-submenu {
    position: sticky;
    top: 50px; /* Adjust based on the height of the main menu */
    background-color: #3e3e3e; /* Dark background to match */
    padding: 5px 15px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* Keep it compact */
}

/* Content Wrapper */
.submenu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

/* Navigation Links */
.submenu-navigation {
    display: flex;
    gap: 15px;
}

.submenu-navigation a {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s, transform 0.2s;
}

.submenu-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    transform: scale(1.05);
}

/* Pattern Dropdown */
.submenu-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submenu-dropdown label {
    color: white;
    font-size: 14px;
}

.submenu-dropdown select {
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sticky-submenu {
        position: static; /* Removes sticky behavior on mobile */
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .submenu-content {
        flex-direction: column;
        gap: 10px;
    }

    .submenu-navigation {
        display: flex;
        flex-wrap: wrap; /* Allows wrapping to next line if space is limited */
        justify-content: center; /* Centers the links */
        gap: 10px; /* Adds spacing between links */
    }

    .submenu-navigation a {
        white-space: nowrap; /* Prevents links from breaking into multiple lines */
        flex: 1 1 auto; /* Allows them to grow while keeping their width flexible */
        text-align: center; /* Ensures they are centered if wrapping occurs */
    }
}
