.header {
  background-color: rgb(246, 246, 246);
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);
  top: 0px;
  left: 0px;
  right: 0px;
  padding-left: 4vw;
  padding-right: 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 100;
}

.ADV-logo {
  margin: max(10px, 1%);
  margin-top: max(12px, 1.5%);
  margin-left: max(12px, 4%);
  height: max(80px, 6vw);
  object-position: bottom;
}

#lang-btn {
  position: relative;
  border: none;
  background-color: rgb(246, 246, 246);
  padding: 0 6px 0 0;
  display: flex;
  align-items: center;
  margin: 0 1.5vw 0 1.5vw;
  gap: 4px;
  cursor: pointer;
}

#lang-btn::after {
  content: "⌄";
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  color: rgb(28, 64, 115);
  display: block;

  transform: translateY(-6px);
  transition: color 0.3s ease;
}

.lang-dropdown:hover #lang-btn::after {
  color: rgb(82, 143, 228);
}

#lang-flag {
  margin-right: 7px;
}

#lang-flag,
.lang-menu img {
  width: 35px;
  height: auto;
  display: block;
}

.lang-dropdown {
  position: relative;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 6px;
  left: 50%;
  transform: translateX(-60%);
  min-width: 70px;
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  z-index: 999;
}

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: none;
  border: none;
  padding: 8px 14px;
  width: 100%;
  cursor: pointer;
  text-align: right;
}

.lang-menu button:hover {
  background: rgba(0,0,0,0.05);
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

.lang-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.lang-menu button.active {
  background: rgba(0, 0, 0, 0.1);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 2vw;
}

.header-link {
  position: relative;
  margin: 1.5vw;
  font-size: clamp(1.2rem, 1.6vw, 3rem);
  color: rgb(28, 64, 115);
  font-weight: 600;
  transition: color 0.2s;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: rgb(82, 143, 228);
  transition: width 0.5s ease, left 0.5s ease;
  transform: translateX(-50%);
}

.header-link:hover::after {
  width: 100%;
}

.header-link:hover {
  cursor: pointer;
  color: rgb(82, 143, 228);
}

.header-link:active {
  color: rgb(28, 64, 115);
}
