/* Refined Laravel header: balanced desktop navigation and clearer mobile controls. */
#header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #e5eaf2;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

#header .header__inner {
  min-height: 72px;
  padding: 10px 0;
  gap: 28px;
}

#header .header__logo {
  flex: 0 0 auto;
  line-height: 0;
}

#header .header__logo img {
  display: block;
  height: 44px;
  width: auto;
}

#header .header__nav {
  margin-left: auto;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e5eaf2;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#header .header__nav > a,
#header .header-quiz-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

#header .header__nav > a::after { display: none; }

#header .header__nav > a:hover,
#header .header-quiz-menu summary:hover {
  background: #eaf2ff;
  color: #0b5ec9;
}

#header .header__nav > a[href*="store.topperssky.com"] {
  background: #eaf2ff;
  color: #0757bd;
}

#header .header__nav > a[href*="store.topperssky.com"]:hover {
  background: #dbeafe;
  color: #06489d;
}

#header .header-quiz-menu {
  display: flex;
  align-items: center;
}

#header .header-quiz-menu summary {
  cursor: pointer;
  list-style: none;
}

#header .header-quiz-menu summary::-webkit-details-marker { display: none; }
#header .header-quiz-menu summary i { margin-left: 7px; font-size: 9px; }

#header .header-quiz-menu__items {
  top: calc(100% + 12px);
  left: 50%;
  min-width: 238px;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
}

#header .header-quiz-menu__items a {
  min-height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  color: #334155;
  font-size: 12.5px !important;
  font-weight: 650;
}

#header .header-quiz-menu__items a:hover {
  background: #eff6ff;
  color: #0757bd;
}

#header .header__cta {
  margin-left: 2px;
  gap: 0;
}

#header .hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: #f8fafc;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

#header .hamburger:hover {
  border-color: #b9c9dd;
  background: #eef4ff;
  transform: translateY(-1px);
}

#header .hamburger span {
  width: 18px;
  height: 2px;
  background: #1e3a5f;
}

@media (max-width: 1080px) {
  #header .header__inner { gap: 16px; }
  #header .header__nav > a,
  #header .header-quiz-menu summary { padding: 0 9px; }
}

@media (max-width: 768px) {
  #header .header__inner {
    min-height: 64px;
    padding: 8px 0;
  }
  #header .header__logo img { height: 39px; }
  #header .header__nav { display: none; }
  #header .hamburger { display: inline-flex; }
}

/* Keep the desktop navigation visually centered, independent of logo/control widths. */
@media (min-width: 769px) {
  #header .header__inner {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(40px, 1fr);
  }

  #header .header__logo {
    grid-column: 1;
    justify-self: start;
  }

  #header .header__nav {
    grid-column: 2;
    margin-left: 0;
    justify-self: center;
  }

  #header .header__cta {
    grid-column: 3;
    justify-self: end;
  }
}

#header .header__nav > a.is-active {
  background: #eaf2ff;
  color: #0757bd;
  box-shadow: inset 0 0 0 1px rgba(7, 87, 189, .08);
}

/* Clean navigation refinement: calm, centered text navigation without a heavy container. */
#header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
  backdrop-filter: none;
}

#header .header__inner {
  min-height: 76px;
  gap: 26px;
}

#header .header__logo img { height: 46px; }

#header .header__nav {
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#header .header__nav > a,
#header .header-quiz-menu summary {
  min-height: 42px;
  padding: 0 1px;
  border-radius: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

#header .header__nav > a:hover,
#header .header-quiz-menu summary:hover {
  background: transparent;
  color: #0757bd;
}

#header .header__nav > a[href*="store.topperssky.com"] {
  background: transparent;
  color: #1f2937;
}

#header .header__nav > a[href*="store.topperssky.com"]:hover { color: #0757bd; }

#header .header__nav > a.is-active {
  position: relative;
  background: transparent;
  color: #0757bd;
  box-shadow: none;
}

#header .header__nav > a.is-active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #0757bd;
}

#header .header-quiz-menu__items {
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

#header .hamburger {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: transparent;
}

#header .hamburger:hover { background: #f1f5f9; transform: none; }

@media (max-width: 1080px) {
  #header .header__nav { gap: 15px; }
  #header .header__nav > a,
  #header .header-quiz-menu summary { font-size: 13px; }
}

@media (max-width: 768px) {
  #header .header__inner { min-height: 64px; }
  #header .header__logo img { height: 40px; }
}

/* Match the WordPress header at tablet widths and browser zoom levels. */
@media (min-width:769px) and (max-width:1080px) {
  #header .header__inner { min-height:64px; padding:8px 0; }
  #header .header__logo img { height:39px; }
  #header .header__nav { display:none; }
  #header .hamburger { display:inline-flex; }
}
