WordPress website – Mobile menu behavior help

The CSS isn’t the culprit here, there is an issue with your jQuery logic. Based on the provided jQuery it looks like you’re binding click events based on class names.

I would suggest binding the click event that triggers the initial navigation dropdown to the hamburger icon’s ID rather than class. And then binding a separate click event that triggers the drop downs.

It also appears that both the navigation and the submenu dropdowns share the same attribute: data-x-toggleable="x-nav-wrap-mobile" this may be the cause of the issue.