Optimize nav bar collapse for responsive layout