/* ============================================
   Header dropdown fix (hover menu on each item)
   ============================================ */
.header-nav { position: relative; }

.header-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.header-nav-item > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.header-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
}

.header-nav-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.header-nav-item:hover .header-nav-dropdown,
.header-nav-item:focus-within .header-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}

.header-nav-dropdown a::after { display: none !important; }

.header-nav-dropdown a:hover {
  background: #f5fafc;
  color: #36bdef;
}

@media (max-width: 980px) {
  .header-nav-dropdown { display: none; }
}
