// Scroll to Top
window.onscroll = function() {
  const multi_review_blog_button = document.querySelector('.scroll-top-box');
  if (multi_review_blog_button) {
    if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
      multi_review_blog_button.style.display = "block";
    } else {
      multi_review_blog_button.style.display = "none";
    }
  }
};

const scrollTopLink = document.querySelector('.scroll-top-box a');
if (scrollTopLink) {
  scrollTopLink.onclick = function(event) {
    event.preventDefault();
    window.scrollTo({ top: 0, behavior: 'smooth' });
  };
}
