/* Mobile Navigation Fix for All Templates */

@media (max-width: 768px) {
    /* Ensure header has proper height and flex properties */
    .header {
        min-height: 100px !important;
        max-height: none !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px !important;
    }
    
    .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    /* Logo should shrink if needed */
    .logo {
        font-size: 20px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    /* Navigation container must be visible */
    .nav-pills {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        gap: 3px !important;
        flex-shrink: 0 !important;
        padding: 5px !important;
    }
    
    /* First 4 nav pills visible */
    .nav-pill {
        display: flex !important;
        width: 50px !important;
        height: 50px !important;
        padding: 6px !important;
        font-size: 10px !important;
    }
    
    .nav-pill svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .nav-pill-text {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    
    /* Hide pills 5+ */
    .nav-pill:nth-child(n+5) {
        display: none !important;
    }
    
    /* Remove duplicate label from pseudo-element */
    .nav-pill::after {
        display: none !important;
        content: none !important;
    }
    
    /* Show hamburger */
    .nav-fab {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        margin-left: 4px !important;
    }
}