/* Global Navigation Shared Styles */

/* Global Overflow Fix to prevent layout break on mobile */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Mobile Menu Specific Styles */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 9999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active,
    .nav-menu.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 10000;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    /* Dropdown behavior for Mobile */
    .nav-item.dropdown-open .dropdown {
        display: block !important;
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0;
    }

    /* Indent dropdown items for hierarchy */
    .nav-item.dropdown-open .dropdown-content {
        display: block !important;
        grid-template-columns: 1fr !important;
        /* Force single column on mobile */
    }

    /* Active State for Menu Links */
    .nav-link.active {
        color: #6366f1 !important;
        font-weight: 700;
    }

    /* Fix for dropdown alignment in standard page templates */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-link {
        padding: 15px 20px !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
}