.nav-hover {
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.nav-hover::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.164); /* semi-transparent background */
  z-index: -1;
  transition: height 0.3s ease;
}

.nav-hover:hover::before {
  height: 100%;
}

.nav-hover:hover {
  color: white !important;
}

.nav-hover.active::before {
  height: 100%;
}

.nav-hover.active {
  color: white !important;
}
