/* SIMPLE MOBILE MENU - SLIDES FROM LEFT */
@media screen and (max-width: 1300px) {

    /* Hamburger button */
    .navbar-toggle {
        display: flex !important;
        cursor: pointer;
        z-index: 1001;
    }

    /* Hide desktop menu */
    .navbar-actions {
        display: none !important;
    }

    /* Mobile menu - FULL SCREEN SPLIT VIEW */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 70vh;
        /* 70% Height */
        background: #000000;
        display: flex;
        /* Ensure Flexbox */
        flex-direction: column;
        padding: 4rem 0 0 0;
        /* Compact top padding */
        margin: 0 !important;
        /* STRICT RESET */
        list-style: none !important;
        gap: 0 !important;
        /* REMOVE FLEX GAPS */
        transition: left 0.3s ease;
        z-index: 1000;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 100vh 0 100vh rgba(0, 0, 0, 0.8);
    }

    .navbar-menu.active {
        left: 0;
    }

    /* Main Menu Items (Left Column) */
    .navbar-menu>li {
        width: 100%;
        border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
        border-right: 0.0625rem solid rgba(255, 255, 255, 0.1);
        background: #000000;
        position: static;
        box-sizing: border-box;
        transition: width 0.3s ease, opacity 0.3s ease;
        margin: 0 !important;
        /* STRICT RESET */
        padding: 0 !important;
        /* STRICT RESET */
        display: block;
        /* No flex gaps here */
    }

    /* Shrink Main Menu when Submenu is Open */
    .navbar-menu.submenu-open>li {
        width: 30%;
        /* 30% width */
    }

    /* Opacity Reduction for inactive areas */
    .navbar-menu.submenu-open>li:not(.active) {
        opacity: 0.4;
    }

    /* Active State for Parent Link */
    .navbar-menu>li.active>a,
    .navbar-menu>li.active>.dropdown-toggle {
        background: #111;
        color: #00d9ff;
        border-right: none;
        opacity: 1;
    }

    .navbar-menu>li>a,
    .navbar-menu>li>.dropdown-toggle {
        display: block;
        padding: 0.75rem 0.5rem;
        /* Controlled compact padding */
        margin: 0 !important;
        /* Reset */
        color: rgba(255, 255, 255, 0.9);
        width: 100%;
        text-align: left;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1.1;
        /* Tighter line height */
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* DROPDOWN PANEL */
    .navbar-menu .dropdown-menu,
    .navbar-menu .dropdown-menu.split-menu,
    .navbar-menu .dropdown .dropdown-menu {
        position: absolute !important;
        top: 4rem !important;
        /* Matches top padding */
        left: 100% !important;
        width: 70% !important;
        height: auto !important;
        max-height: 85% !important;
        background: #0a0a0a !important;
        display: none !important;
        /* Ensures NO vertical space is taken */
        overflow-y: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-left: 0.0625rem solid rgba(255, 255, 255, 0.1) !important;
        opacity: 0 !important;
        z-index: 2005 !important;
        transition: left 0.3s ease, opacity 0.3s ease;
    }

    /* Show when active AND submenu-open */
    .navbar-menu.submenu-open .dropdown.active .dropdown-menu,
    .navbar-menu.submenu-open .dropdown.active .dropdown-menu.split-menu {
        display: block !important;
        left: 30% !important;
        opacity: 1 !important;
    }

    /* Dropdown items */
    .dropdown-menu a,
    .dropdown-list a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        /* Comfortable but compact */
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05) !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

    .dropdown-menu a:hover,
    .dropdown-list a:hover {
        background: rgba(0, 217, 255, 0.1) !important;
        color: #00d9ff !important;
        padding-left: 1.25rem !important;
        /* 20px -> 1.25rem */
        /* Slide effect */
        transition: padding 0.2s ease;
    }
}