jQuery(document).ready(function($) {
$('.elementor-nav-menu--dropdown .menu-item-has-children > a').on('click', function(e) {
// Check if the click was specifically on or near the sub-arrow indicator
var target = $(e.target);
if (!target.hasClass('sub-arrow') && !target.closest('.sub-arrow').length) {
// Let the main parent link work normally, or prevent it if it shouldn't navigate:
return true;
} else {
e.preventDefault();
$(this).parent().toggleClass('submenu-open');
$(this).next('.sub-menu').slideToggle(200);
}
});
});