/* Masthead redesign: logo left, search right, no hamburger on desktop,
   secondary "About Us / Submissions / ..." row, and a dark mobile drawer */

/* Desktop: the always-visible nav bar (.header-menu) replaces the need for
   the hamburger "Menu" toggle, so hide it above the .header-menu breakpoint */
@media (min-width: 62em) {
  .header__menu-toggle {
    display: none;
  }

  .header {
    padding: 0.9rem 0;
  }

  .header .container,
  .header-menu .container,
  .header-secondary-nav .container {
    width: min(100% - 4rem, 1440px);
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
  }

  .header__container {
    position: relative;
    min-height: 5rem;
  }

  .header__logo {
    max-height: 72px;
  }

  .header__actions {
    position: absolute;
    top: 26px;
    right:25px;
    
  }

  .header__more {
    position: absolute;
    top: 20px;
        left: 25px;
  }

  .header__brand {
  position: absolute;
  top: 50%;
  left: 50%;
 transform: translate(-50%, -50%);
}

  .header__search-toggle {
    display: flex;
    align-items: center;
    min-width: 15rem;
    min-height: 2.8rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    color: #666;
    opacity: 1;
  }

  .header__search-toggle span {
    display: inline;
    margin-left: 0.45rem;
  }

  .header .btn.signin-link,
  .header .btn.signup-link {
    font-size: 0.889rem;
    font-size: 0.889rem;
      /*  color: #000 !important; */
        font-weight: 600;
  }

  .header-menu .container {
   /* justify-content: flex-start; */
  }

  .header-menu-nav ul {
    gap: 1.25rem;
  }

  .header-secondary-nav .container {
    justify-content: flex-start;
  }
}

/* Remove the active-page line under Home */
.header-menu .header-menu-nav li.nav-current > a,
.header-menu .header-menu-nav li.nav-current:not(.is-mainitem) > a {
  border-bottom: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Primary nav row (Home / Topics / Sections / Events / Summit / Membership) */
.header-menu-nav a {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  opacity: 1;
}

.header-menu-nav a:hover {
  color: #d20001;
}

/* Secondary row (About Us / Submissions / e-Magazine / Webinars / ...) */
.header-secondary-nav {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-secondary-nav .container {
  justify-content: center; /* flex-start; */
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.header-secondary-nav-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0px 0px 0px 10px;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.header-secondary-nav-nav a {
  font-size: 0.889rem;
  font-weight: 500;
  color: #000;
  font-family: 'Poppins';
}

.header-secondary-nav-nav a:hover,
.header-secondary-nav-nav .nav-current a {
  color: #d20001;
}

@media (min-width: 62em) {
  .header-secondary-nav-nav li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-left: 1.25rem;
    vertical-align: middle;
    background: #d20001;
  }
}

@media (max-width: 61.9375em) {
  .header-secondary-nav .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Mobile hamburger drawer: dark full-screen style, single-column list */
@media (max-width: 61.9375em) {
  .menu {
    background-color: #14162b;
    color: #fff;
    max-height: calc(100% - var(--global-header-height));
  }

  .menu__navigation {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .menu .nav {
    gap: 0;
  }

  .menu .nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .menu .nav a {
    display: block;
    width: 100%;
    padding: 0.9em 0;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
  }

  .menu .nav a:hover {
    color: #d20001;
    text-decoration: none;
  }

  .menu .menu__posts {
    display: none;
  }

  .menu .signin-link,
  .menu .signup-link {
    color: #fff;
  }
}
