Style applies to submenu but I want only in main menu

I gave some styles in main menu by this selector (ul.nav-links > li:hover ) . But this also gets applied to submenu when i hover on main menu. But i want to give different style on menu and submenu. How do i do that? Here is my code Gist Link