/* Force mobile header to be horizontal */
@media screen and (max-width: 768px) {
    /* Hide any duplicate navigation */
    body > #navi-wrap,
    #wrapper > #navi-wrap {
        display: none !important;
    }
    
    /* Ensure header has navigation inside */
    #header .main-navigation {
        display: flex !important;
        position: relative !important;
        margin-left: auto !important;
        align-items: center !important;
    }
    
    /* Fix header layout */
    #header {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 55px !important;
        padding: 10px 15px !important;
    }
    
    /* Logo sizing */
    #header #logo {
        width: auto !important;
        max-width: 60% !important;
        flex: 0 0 auto !important;
    }
    
    #header #logo .site-title {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }
    
    #header #logo img {
        max-height: 35px !important;
        width: auto !important;
    }
    
    /* Menu button visible */
    #header .menu-toggle {
        display: inline-block !important;
        position: relative !important;
        z-index: 999 !important;
        background: #1f3371 !important;
        border: 1px solid #1f3371 !important;
        color: #ffffff !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        font-size: 14px !important;
    }
    
    /* When menu is toggled */
    .toggled-on .nav-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border: 1px solid #ddd !important;
        margin-top: 55px !important;
    }
}