/**
 * Custom Dropdown Menu Fix
 * Adds proper background and styling to dropdown submenus
 */

/* Main dropdown submenu styling */
.dropdown.menu .is-dropdown-submenu {
    background-color: #ffffff;
    border: 0.0625rem solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 12.5rem;
    padding: 0.5rem 0;
}

/* Submenu items styling */
.dropdown.menu .is-dropdown-submenu li {
    background: transparent;
}

.dropdown.menu .is-dropdown-submenu li a {
    padding: 0.75rem 1rem;
    color: #333333;
    border-bottom: none;
    transition: background-color 0.2s ease;
}

/* Ensure proper positioning and visibility */
.dropdown.menu .is-dropdown-submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.dropdown.menu .is-dropdown-submenu.js-dropdown-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* For nested submenus */
.dropdown.menu .is-dropdown-submenu .is-dropdown-submenu {
    border-left: 0.125rem solid #e6e6e6;
    margin-left: 0;
    margin-top: -0.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 63.9375em) {
    .dropdown.menu .is-dropdown-submenu {
        position: relative !important;
        box-shadow: inset 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
        border: none;
        border-top: 0.0625rem solid #e6e6e6;
        border-radius: 0;
        min-width: auto;
        width: 100%;
    }
}

/* Ensure dropdown arrows are visible against white background */
.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
    border-color: #6d8a2b transparent transparent;
}

/* Mobile menu adjustments */
.mobile-menu .dropdown.menu .is-dropdown-submenu {
    background-color: #f8f8f8;
    border-left: 0.25rem solid #6d8a2b;
    margin-left: 1rem;
} 