/*
Theme Name: Consalt 
Theme URI: https://demo.themexbd.com/wpi/consalt/
Author: codexpert
Author URI: https://www.templatemonster.com/authors/codexpert/
Description: Consalt - Consulting Responsive WordPress Theme
Version: 1.0.4
Tested up to: 6.7
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready
Text Domain: consalt
*/
/*----------------------------------------
 Don't change any css from here. If you need to change, Please use child theme.
------------------------------------------*/


<script>
document.addEventListener('DOMContentLoaded', function() {
  document.querySelectorAll('.twr_feature_three').forEach(function(box) {
    const link = box.querySelector('a.witr_btn_all_color'); // koristi link iz "Detaljnije"
    if (link) {
      box.addEventListener('click', function(e) {
        if (!e.target.closest('a')) {
          window.location.href = link.href;
        }
      });
    }
  });
});
</script>