/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/lato/v23/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/lato/v23/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

/* Hide dropdown content by default */
.w3-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Disable hover behavior - dropdowns should only open on click */
.w3-dropdown-hover:hover .w3-dropdown-content {
  display: none !important;
}

/* On large screens (min-width: 769px), also disable hover */
@media screen and (min-width: 769px) {
  .w3-dropdown-hover:hover .w3-dropdown-content {
    display: none !important;
  }
  .w3-dropdown-click .w3-dropdown-content:not(.w3-show) {
      display: none !important; /* Hide JS-toggled content unless w3-show class is present */
  }
  .w3-dropdown-click .w3-dropdown-content.w3-show {
      display: block !important; /* Show when w3-show class is present */
  }
}

/* On small screens (max-width: 768px), override hover and rely on JS toggle */
@media screen and (max-width: 768px) {
  .w3-dropdown-hover:hover .w3-dropdown-content {
    display: none; /* Disable hover effect */
  }
  /* The w3-show class will be toggled by JS on click */
  .w3-show {
    display: block !important;
  }
}

/* Ensure nested mobile menu items show when w3-show is added */
.w3-hide.w3-show {
  display: block !important;
}
