.home-header {
  --gx-blue: #1e5fa8;
  --gx-green: #168145;
  --gx-line: #e4eaf1;
  --gx-white: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 8px max(24px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--gx-line);
  box-shadow: 0 4px 14px rgba(20, 60, 110, 0.2);
  backdrop-filter: blur(12px);
}

.home-brand {
  position: relative;
  left: -56px;
  display: inline-flex;
  justify-self: start;
}

.home-brand img {
  width: 96px;
  height: 52px;
  object-fit: contain;
}

.home-navigation {
  position: relative;
  left: -56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.home-navigation a {
  position: relative;
  padding: 8px 0;
  color: #475467;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.home-navigation a:hover,
.home-navigation a[aria-current="page"] { color: var(--gx-blue); }

.home-navigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gx-green);
  border-radius: 999px;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475467;
  background: transparent;
  border: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"],
.nav-dropdown-toggle[aria-current="page"] {
  color: var(--gx-blue);
}

.nav-dropdown-toggle[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gx-green);
  border-radius: 999px;
}

.nav-dropdown-toggle:focus-visible {
  outline: 2px solid rgba(30, 95, 168, 0.3);
  outline-offset: 4px;
  border-radius: 3px;
}

.nav-dropdown-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu[hidden] { display: none; }

.nav-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  left: 50%;
  width: 248px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(20, 60, 110, 0.16);
  transform: translateX(-50%);
}

.home-navigation .nav-dropdown-menu a {
  padding: 11px 12px;
  display: block;
  color: #344054;
  border-radius: 8px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  transition: color 160ms ease, background 160ms ease;
}

.home-navigation .nav-dropdown-menu a::after { display: none; }

.home-navigation .nav-dropdown-menu a:hover,
.home-navigation .nav-dropdown-menu a:focus-visible {
  color: var(--gx-blue);
  background: #f1f7fc;
  outline: none;
}

.header-login {
  position: relative;
  left: -56px;
  min-height: 40px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: end;
  color: #ffffff;
  background: #142033;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(20, 32, 51, 0.18);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.header-login svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.header-login:hover {
  background: #1d2d45;
  box-shadow: 0 8px 20px rgba(20, 32, 51, 0.24);
  transform: translateY(-1px);
}

.header-action {
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-white);
  background: linear-gradient(135deg, var(--gx-green), #1b9955);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(22, 129, 69, 0.2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action:hover { transform: translateY(-2px); }

@media (max-width: 1040px) {
  .home-header {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  .home-navigation {
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .home-header {
    grid-template-columns: 1fr auto;
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 3px 0 2px;
    scrollbar-width: none;
  }

  .home-navigation::-webkit-scrollbar { display: none; }

  .home-navigation a { flex: 0 0 auto; }

  .home-navigation.dropdown-open { overflow: visible; }

  .nav-dropdown-menu {
    left: 0;
    transform: none;
  }

  .home-brand,
  .home-navigation,
  .header-login {
    left: 0;
  }

  .header-login {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .header-action {
    min-height: 44px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .home-brand img {
    width: 78px;
    height: 44px;
  }

  .header-action {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-navigation a,
  .header-action {
    transition-duration: 1ms !important;
  }
}
