// BYF — make mobile submenu arrows work (Elementor free) document.addEventListener('DOMContentLoaded', function(){ const nav = document.querySelector('.elementor-nav-menu--dropdown, .main-nav'); // handles both cases if(!nav) return; nav.addEventListener('click', function(e){ // Only intercept taps on parent links on small screens const isSmall = window.matchMedia('(max-width: 1024px)').matches; const link = e.target.closest('.menu-item-has-children > a'); if (!isSmallLink) return; // Toggle open state instead of following the link e.preventDefault(); const li = link.parentElement; li.classList.toggle('bef-open'); }); }); /* BE(YOU)FULL — kill extra bottom space under "Read more" */ #byf-blog-cards .card { padding: 0 !important; } #byf-blog-cards .text{ padding: 18px 24px 0 ! important; /* no bottom padding */ gap: 10px; /* tidy spacing between elements */ } #byf-blog-cards h3 { margin: 0 !important; } #byf-blog-cards p { margin: 0 !important; } #byf-blog-cards . read-more{ margin: 0 !important; padding: 0 0 10px ! important; / * tiny breathing room only */ line-height: 1.2; }