.event-page-header-menu {
  display: flex;
  flex-direction: column;
  background: #0000003d;
  transition: background 0.2s;
}
.event-page-header-menu .upper-row {
  max-width: var(--container-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  padding: 10px 20px;
}
.event-page-header-menu .event-logo-image {
  width: 100%;
  max-width: 200px;
}
.event-page-header-menu .event-dates {
  color: #ffffff;
  font-weight: 500;
  border-style: solid;
  border-color: var(--secondary-color);
  border-width: 0 0 0 2px;
  padding: 15px;
}
.event-page-header-menu .cta-items {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  justify-content: flex-end;
}
.event-page-header-menu .menu-row {
  border-style: solid;
  border-color: #ffffff;
  border-width: 2px 0 2px 0;
  background-color: #00000015;
  padding: 5px;
}
.event-page-header-menu .live-notice-row {
  border-style: solid;
  border-color: #ffffff;
  border-width: 0 0 2px 0;
  background-color: #e03722;
  padding: 5px;
}
.event-page-header-menu .live-notice-row .live-notice-wrapper {
  text-align: center;
}
.event-page-header-menu .live-notice-row .live-notice-wrapper .live-notice-text {
  color: #ffffff;
  line-height: 1.5em;
  font-weight: 500;
  font-size: 0.9em;
}
.event-page-header-menu .menu-items {
  max-width: var(--container-max-width);
  display: flex;
  gap: 40px;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
}

/* HubSpot Menu Styling */
.event-page-header-menu .hs-menu-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.event-page-header-menu .hs-menu-wrapper ul {
  padding: 0;
  margin: 0;
  list-style: none;
  line-height: 2em;
  padding: 0px 8px;
  font-weight: 500;
  font-size: 1em;
}

.event-page-header-menu .hs-menu-wrapper > ul {
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}

.event-page-header-menu .hs-menu-wrapper > ul > li {
  padding: 4px 20px;
  position: relative;
}

/* Common menu item styles */
.event-page-header-menu .menu-items .menu-item,
.event-page-header-menu .hs-menu-wrapper .menu-item {
  display: inline-block;
  color: #ffffff;
  line-height: 2em;
  padding: 0 20px;
  font-weight: 500;
  font-size: 1em;
}

/* Dropdown specific styles */
.event-page-header-menu .hs-menu-wrapper .dropdown-item {
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure all links in the custom menu have consistent styling */
.event-page-header-menu .hs-menu-wrapper a {
  color: #ffffff;
  text-decoration: none;
}

/* Hover states for all menu items */
.event-page-header-menu .menu-items .menu-item:hover,
.event-page-header-menu .hs-menu-wrapper .menu-item:hover,
.event-page-header-menu .hs-menu-wrapper .dropdown-item:hover,
.event-page-header-menu .hs-menu-wrapper a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

/* Dropdown styling */
/* Desktop dropdown arrow styling */
.event-page-header-menu .hs-menu-wrapper > ul > li.hs-item-has-children > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  font-size: 0.7em;
  position: relative;
  top: -1px;
}

.event-page-header-menu .hs-menu-wrapper > ul > li > ul {
  z-index: 10;
  display: none;
  gap: 0.6rem;
  min-width: 230px;
  position: absolute;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5em;
}

/* Show dropdown on hover for desktop */
.event-page-header-menu .hs-menu-wrapper > ul > li:hover > ul {
  display: flex;
}

/* Show dropdown on tap for touch devices (controlled by JS) */
.touch-device .event-page-header-menu .hs-menu-wrapper > ul > li.dropdown-open > ul {
  display: flex;
}

/* Visual indicator for active dropdown on touch devices */
.touch-device .event-page-header-menu .hs-menu-wrapper > ul > li.dropdown-open > a {
  color: var(--secondary-color);
}

.event-page-header-menu .hs-menu-wrapper > ul > li > ul > li {
  width: 100%;
}

@media screen and (max-width: 767.98px) {
  .event-page-header-menu .cta-items {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .event-page-header-menu .menu-row {
    padding: 0;
  }
  .event-page-header-menu .menu-items {
    gap: 0.8rem;
  }
  
  /* Mobile menu styling */
  .event-page-header-menu .hs-menu-wrapper > ul {
    flex-direction: row;
    gap: 0.9rem;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
    max-width: 100vw;
    padding: 15px 8px;
    font-size: 1em;
  }
  
  .event-page-header-menu .hs-menu-wrapper > ul > li {
    min-width: auto;
    flex: 1;
    white-space: nowrap;
    max-width: 25%;
    box-sizing: border-box;
    padding: 0px 20px;
  }
  
  /* Adjust main menu items font size for better mobile fit */
  .event-page-header-menu .hs-menu-wrapper > ul > li > a {
    padding: 15px 5px;
  }
  
  .event-page-header-menu .hs-menu-wrapper .dropdown-item {
    padding: 15px 20px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
    margin: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  /* Mobile menu item styling */
  .event-page-header-menu .menu-items .menu-item,
  .event-page-header-menu .hs-menu-wrapper .menu-item {
    padding: 15px 8px;
    text-align: center;
    width: auto;
    box-sizing: border-box;
    line-height: 1.3;
  }
  
  /* Mobile-specific dropdown arrow adjustments if needed */
  .event-page-header-menu .hs-menu-wrapper > ul > li.hs-item-has-children > a::after {
    /* Inherits from desktop, only add overrides if needed */
    margin-left: 4px;
  }
  
  /* Last items in mobile view */
  .event-page-header-menu .menu-items .menu-item:last-child,
  .event-page-header-menu .hs-menu-wrapper .menu-item:last-child,
  .event-page-header-menu .hs-menu-wrapper > ul > li:last-child > a {
    border-bottom-style: none;
  }
}
  
  /* Additional mobile styling if needed */
}

@media screen and (min-width: 768px) {
  #event-page-header-menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 100;
  }
}

@media screen and (max-width: 500px) {
  /* Position the menu row as a containment for absolute positioning */
  .event-page-header-menu .menu-row {
    position: relative;
    overflow: visible;
  }
  
  /* Make the dropdown show in relation to the menu row, not individual items */
  .event-page-header-menu .hs-menu-wrapper > ul > li.hs-item-has-children {
    position: static;
  }
  
  /* Apply these styles when dropdown is displayed */
  .event-page-header-menu .menu-row .hs-menu-wrapper > ul > li:hover > ul,
  .event-page-header-menu .menu-row .hs-menu-wrapper > ul > li.hs-item-has-children:hover > ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
  }
  
  /* Base style for dropdown menus */
  .event-page-header-menu .hs-menu-wrapper > ul > li > ul {
    position: absolute;
    top: 100%;
    width: 250px; /* Wider dropdown to fit content */
    max-height: 80vh;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 5px;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* Special styling for dropdown of What's On menu (usually the rightmost item) */
  .event-page-header-menu .hs-menu-wrapper > ul > li.active-branch > ul,
  .event-page-header-menu .hs-menu-wrapper > ul > li:nth-last-child(1) > ul,
  .event-page-header-menu .hs-menu-wrapper > ul > li:nth-last-child(2) > ul {
    right: 0;
    left: auto;
  }
  
  /* Ensure all other dropdowns align with their parent menu item */
  .event-page-header-menu .hs-menu-wrapper > ul > li:not(:nth-last-child(1)):not(:nth-last-child(2)):not(.active-branch) > ul {
    left: 0;
    right: auto;
  }

  /* Improve dropdown items appearance */
  .event-page-header-menu .hs-menu-wrapper .dropdown-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
  }
  
  /* Ensure parent menu items have proper positioning context */
  .event-page-header-menu .hs-menu-wrapper > ul > li {
    position: relative;
  }
}

@media screen and (max-width: 475px) {
  .event-page-header-menu .hs-menu-wrapper > ul > li {
    padding: 0px;
  }

  /* Mobile menu item styling */
  .event-page-header-menu .menu-items .menu-item,
  .event-page-header-menu .hs-menu-wrapper .menu-item {
    padding: 15px 13px;
  }
}