/* RQ navigation: scoped to the existing header, preserving Phlox behavior. */
@media (min-width: 769px) {
  #site-elementor-header #menu-header-menu > li { position: relative !important; }
  #site-elementor-header #menu-header-menu > li > .aux-submenu {
    box-sizing: border-box;
    width: 290px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 40px);
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    padding: 12px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e9e4f0 !important;
    border-top: 3px solid #37205c !important;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 40px rgba(33,14,66,.14) !important;
    text-align: left !important;
  }
  #site-elementor-header #menu-header-menu > .menu-item-7877 > .aux-submenu {
    width: 320px !important;
    left: auto !important;
    right: 0 !important;
  }
  #site-elementor-header #menu-header-menu > .menu-item-7878 > .aux-submenu {
    width: 610px !important;
    left: auto !important;
    right: 0 !important;
    padding: 16px !important;
  }
  #site-elementor-header #menu-header-menu .aux-menu-row,
  #site-elementor-header #menu-header-menu .aux-menu-columns {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #site-elementor-header #menu-header-menu .aux-menu-columns {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  #site-elementor-header #menu-header-menu .menu-item-7878 .aux-menu-columns {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
  }
  #site-elementor-header #menu-header-menu .aux-menu-columns::before,
  #site-elementor-header #menu-header-menu .aux-menu-columns::after { display: none !important; }
  #site-elementor-header #menu-header-menu .aux-menu-column {
    box-sizing: border-box;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }
  #site-elementor-header #menu-header-menu .menu-item-7878 .aux-menu-column {
    background: #f8f6fb;
    border-radius: 10px;
    padding: 8px !important;
  }
  #site-elementor-header #menu-header-menu .aux-submenu .aux-item-content {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px !important;
    margin: 0 !important;
    min-height: 44px;
    height: auto !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: #382351 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
    transition: background-color .18s ease, color .18s ease;
  }
  #site-elementor-header #menu-header-menu .aux-submenu .aux-item-content:hover,
  #site-elementor-header #menu-header-menu .aux-submenu .aux-item-content:focus-visible {
    background: #eee8f6 !important;
    color: #210e42 !important;
  }
  #site-elementor-header #menu-header-menu .aux-submenu .aux-item-content:focus-visible {
    outline: 2px solid #70509d;
    outline-offset: -2px;
  }
  #site-elementor-header #menu-header-menu .aux-submenu .aux-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: #523375 !important;
    font-size: 18px !important;
  }
  #site-elementor-header #menu-header-menu .menu-item-7878 .aux-menu-column > .aux-item-content {
    font-weight: 700 !important;
    padding: 6px 4px 10px !important;
    font-size: 14px !important;
  }
  #site-elementor-header #menu-header-menu .aux-menu-list-container {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #site-elementor-header #menu-header-menu .aux-submenu .aux-menu-item { border: 0 !important; }
  #site-elementor-header #menu-header-menu .aux-submenu .aux-menu-label {
    line-height: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
  }
  #site-elementor-header #menu-header-menu .menu-item-17425 > .aux-item-content::before {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    height: 30px;
    background: transparent !important;
    border-radius: 8px;
    color: #523375;
    font-size: 17px;
    font-weight: 700;
  }
}

@media (max-width: 767px) {
  #site-elementor-header .elementor-element-5d402f3 > .elementor-widget-container > nav.elementor-nav-menu--dropdown {
    border: 1px solid #e9e4f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(33,14,66,.12);
    overflow: hidden;
  }
  #site-elementor-header .elementor-element-5d402f3 .elementor-nav-menu--dropdown a {
    min-height: 46px;
    color: #382351;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
  }
  #site-elementor-header .elementor-element-5d402f3 .elementor-nav-menu--dropdown a:hover,
  #site-elementor-header .elementor-element-5d402f3 .elementor-nav-menu--dropdown a:focus,
  #site-elementor-header .elementor-element-5d402f3 .elementor-nav-menu--dropdown a.highlighted {
    color: #210e42;
    background: #eee8f6;
  }
  #site-elementor-header .elementor-element-5d402f3 .sub-menu { background: #f8f6fb; }
}
