nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background: #222;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav a {
  display: block;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  background: #444;
}

nav ul ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #333;
  flex-direction: column;
  min-width: 200px;
  z-index: 1000;
}

nav ul li:hover > ul {
  display: flex;
}

nav ul li > a.toggle {
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  nav ul ul {
    position: static;
    width: 100%;
  }
}

.lang-switch {
  position: relative;
  margin-left: 10px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
}
.lang-btn .badge {
  background: #e6e6e6;
  color: #444;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 8px;
  vertical-align: middle;
}