.header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: none;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
  pointer-events: none;
  z-index: -1;
}
.header#header-main,
.header#is-header-main::after {
  backdrop-filter: blur(24px);
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
}

body.mega-open .header,
body.mega-open .header::after {
  background-color: #ffffff !important;
  backdrop-filter: none !important;
}

.mega-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(160, 216, 236, 0.3);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

.mega-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu-panel {
  display: none;
  width: 100%;
  justify-content: center;
}
