/* Layout */
.vga-hero-logo-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo and Home Link */
.vga-hero-logo a {
  position: relative;
  display: block;
}
.vga-hero-logo a:hover img {
  opacity: 0;
}
.vga-hero-logo a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://vga.virginia.gov/wp-content/themes/vga/images/vga-logomark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.vga-hero-logo a:hover::before {
  opacity: 1;
}
.vga-hero-logo,
.vga-hero-logo-capitol {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.vga-hero-logo img {
  height: 90px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.vga-hero-logo-capitol {
  text-align: center;
  justify-content: center;
}
.vga-hero-logo-capitol img {
  height: 90px;
  margin-top: 10px;
  margin-right: 37px;
  margin-left: 30px;
  width: auto;
}

/* Base Navigation Menu */
.vga-navigation {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  gap: 1rem;
  position: relative;
  z-index: 999999;
  margin-left: 4rem;
  list-style: none;
}
.vga-navigation > li {
  position: relative;
}
.vga-navigation > li > a {
  text-decoration: none;
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.075em;
  transition: color 0.2s;
  padding: 0.5em 1.25em;
  display: block;
}
.vga-navigation > li > a:hover,
.vga-navigation > li.current-menu-item > a {
  border-bottom: 2px solid var(--color-white);
}
.vga-navigation > li:hover > a,
.vga-navigation > li:focus-within > a {
  background: var(--color-colonial-yellow);
  color: #000;
  text-decoration: none;
  border-radius: 3px;
  border-bottom: none;
}

/* Submenus */
.vga-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  z-index: 999999;
}
.vga-navigation > li:hover > .sub-menu {
  display: block;
}
.vga-navigation .sub-menu li a {
  text-decoration: none;
  display: block;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
  color: #003366;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.7rem 1.2rem;
}
.vga-navigation .sub-menu li a:hover {
  color: var(--color-blue-ridge-blue);
  background-color: rgba(0, 146, 203, 0.1);
}
