Hello,
Secondary menu has vertical flex direction, main menu – horizontal.
If you want to have horizontal columns I would recommend you to use Static Blocks to create your mega menu. For example
Step 1 – Static block http://prntscr.com/iki03a
Step 2 – Choose block in the menu options http://prntscr.com/iki0kb
Regards