/* Header container */
header.site-header#masthead {
  background-image: url(bg-header.png);
  background-position: 100%;
  background-size: cover;
  height: 70px;
  padding: 10px !important;
}

/* Navbar layout */
header.site-header#masthead div.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between; 
  align-items: center;            
  position: relative;
  padding: 10px;                  
  height: 50px;
  width: auto;
}

/* Brand spacing */
header.site-header#masthead div.navbar .site-branding {
  margin-left: 0;
}

/* Logo sizing */
header.site-header#masthead .navbar-brand .logo img {
  height: 50px;
}

@media (max-width: 767.98px) {
  header.site-header#masthead .navbar-brand .logo img {
    height: 30px;
    margin-left: 10px;
  }
}

/* Main nav container */
header.site-header div.navbar #site-navigation {
  display: flex;
}

/* Audience menu container (base) */
header.site-header#masthead div.navbar #site-navigation .audience-menu-container {
  margin-right: 1rem;
  overflow: visible;
  box-shadow: none;
}

/* Audience menu container (desktop) */
@media (min-width: 992px) {
  header.site-header#masthead div.navbar #site-navigation .audience-menu-container {
    display: flex !important;
    flex-basis: auto;
  }
}

/* Allow the menu to grow and center items */
header.site-header#masthead div.navbar #site-navigation .audience-menu-container {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

/* Menu list */
header.site-header div.navbar #site-navigation .audience-menu-container ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Menu item spacing */
header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item {
  margin-left: 1rem;
}

@media (max-width: 991.98px) {
  header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item {
    margin-left: 0;
  }
}

/* General link styles (place BEFORE .btn-ask-us so button can override if needed) */
header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item a {
  background-color: #fff;
  color: #373a3b;
  text-decoration: none;
  font-size: 15px;
  padding-left: 10px;
  padding-right: 10px;
}

header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item a:hover {
  background-color: #e8e3d3;
}

/* Ask Us button (kept specific so it wins) */
header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item.btn-ask-us a {
  background-color: #85754d;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='30' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29.5 12.034v1.55l-.255 1.551c-2.013 8.516-12.477 12.137-20.313 9.033l-7.064 3.479h-.056l1.787-7.115C2.171 18.895 1.131 16.99.705 14.86L.51 13.363c.022-.437-.03-.893 0-1.329C.946 5.727 6.763 1.205 12.889.471c7.604-.912 15.821 3.557 16.558 11.475l.053.088Zm-4.663-6.126C19.342.358 8.853.77 4.144 7.09c-3.07 4.121-2.35 9.479 1.335 12.951l-1.12 4.45 4.507-2.159c4.232 1.826 9.287 1.711 13.31-.6 5.992-3.44 7.707-10.726 2.66-15.823Z' fill='%23fff'/%3E%3C/svg%3E");
  background-position-x: 15px;
  background-position-y: center;
  background-repeat: no-repeat;
  border: none;
  color: #fff;
  font-family: Encode Sans Compressed, Open Sans, sans-serif;
  font-weight: 600;
  height: 42px;
  line-height: 1;
  padding: 10px 1rem 10px 57px;
  transition: all .2s ease-in-out;
}

@media (max-width: 991.98px) {
  header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item.btn-ask-us a {
    background-position-x: 8px;
    background-size: 29px;
    padding: 10px 8px 10px 44px;
  }
}

header.site-header#masthead div.navbar #site-navigation .audience-menu-container .menu-item.btn-ask-us a:hover {
  background-color: #65593a;
}