/* Mobile-specific fixes */
@media only screen and (max-width: 768px) {
    /* Force unified header structure on mobile */
    #wrapper > #header-wrap {
        display: block !important;
    }
    
    #wrapper > #header-wrap > #header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Make header horizontal on mobile */
    #header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
    }
    
    /* Fix logo size and position */
    #logo {
        max-width: 60% !important;
        margin: 0 !important;
        float: none !important;
        display: inline-block !important;
    }
    
    #logo .site-title {
        font-size: 1.2rem !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }
    
    #logo img,
    #logo .site-logo {
        max-height: 35px !important;
        width: auto !important;
    }
    
    /* Hide site description on mobile */
    #logo .site-description {
        display: none !important;
    }
    
    /* Position navigation inline with logo */
    #navi-wrap {
        position: absolute !important;
        top: 0 !important;
        right: 15px !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
    }
    
    .main-navigation {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 !important;
    }
    
    /* Style menu toggle button */
    .menu-toggle {
        background: #f0f0f0 !important;
        border: 1px solid #ddd !important;
        color: #333 !important;
        padding: 6px 12px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
        display: block !important;
    }
    
    /* Fix navigation dropdown colors */
    .nav-menu {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }
    
    .nav-menu li a {
        color: #333 !important;
        background: #fff !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a:focus {
        background-color: #f5f5f5 !important;
        color: #0066cc !important;
    }
    
    /* Ensure header wrapper has proper height */
    #header-wrap {
        min-height: 55px !important;
        position: relative !important;
    }
}