/* Modern Mobile Dropdown Menu - For screens up to 599px */

/* Only apply these styles for screens up to 599px */
@media (max-width: 599px) {
    /* Mobile Menu Button Styling */
    .mobile-menu-toggle {
        position: fixed;
        top: 4px;
        left: 15px;
        z-index: 1002;
        width: 42px;
        height: 42px;
        background-color: var(--wfs-primary-color, #267dc9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Mobile Menu Container */
    .mobile-dropdown-menu {
        position: fixed;
        top: 0;
        left: -300px; /* Start off-screen */
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1004;
        transition: right 0.3s ease;
        padding: 70px 0 20px;
        overflow-y: auto;
    }

    .mobile-dropdown-menu.active {
        left: 0;
    }

    /* Menu Items */
    .mobile-menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-items li {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-items li a {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .mobile-menu-items li a:hover,
    .mobile-menu-items li a:focus {
        background-color: rgba(var(--wfs-primary-color-rgb, 38, 125, 201), 0.1);
        color: var(--wfs-primary-color, #267dc9);
    }

    /* Icons for menu items */
    .mobile-menu-items li a i,
    .mobile-menu-items li a svg {
        margin-right: 12px;
        font-size: 18px;
        width: 24px;
        height: 24px;
        text-align: center;
        color: var(--wfs-primary-color, #267dc9);
    }
    
    /* SVG specific styling */
    .mobile-menu-items li a svg {
        display: inline-block;
        vertical-align: middle;
    }
    
    .mobile-menu-items li a svg * {
        fill: var(--wfs-primary-color, #267dc9);
        color: var(--wfs-primary-color, #267dc9);
    }

    /* Overlay when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1003;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Close button */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #333;
        font-size: 24px;
        transition: all 0.2s ease;
    }

    .mobile-menu-close:hover {
        color: var(--wfs-primary-color, #267dc9);
        transform: rotate(90deg);
    }

    /* Animation for menu items */
    .mobile-menu-items li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
        transition-delay: calc(0.05s * var(--item-index, 0));
    }

    .mobile-dropdown-menu.active .mobile-menu-items li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Current page indicator */
    .mobile-menu-items li.current-page a {
        color: var(--wfs-primary-color, #267dc9);
        font-weight: 600;
        background-color: rgba(var(--wfs-primary-color-rgb, 38, 125, 201), 0.05);
        border-left: 3px solid var(--wfs-primary-color, #267dc9);
        padding-left: 22px; /* Adjust for the border */
    }
}
