/* HEADER */

header {
    width: 100%;
    background: #0a2a43;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999 !important;
    /* z-index: 10001; */
    box-sizing: border-box;
}



.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 34px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
}

/* HIDE DESKTOP NAV */
nav {
    display: none !important;
}

.header-cta {
    background: #fff;
    color: #0A2A43;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 16px;
    transition: .2s ease;
}

.header-cta:hover {
    background: #e4edf5;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 8px;
    background: none !important;
    border: none;
}

.header-icon-btn i {
    color: #ffffff;
    font-size: 20px;
    opacity: 1; /* likt hele tiden */
}

.header-icon-btn:hover i {
    opacity: 1; /* subtil hover-effekt */
}

.header-icon-btn:hover {
    background: rgba(255,255,255,0.28);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* avstand mellom ikon og hamburger */
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform .2s ease;
}

.lang-btn:hover {
  transform: scale(1.1);
}

/* DROPDOWN PANEL */
.lang-menu {
  position: absolute;
  right: 0;
  top: 36px;
  display: none;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  padding: 8px 0;
  min-width: 160px;
  animation: slideDown .18s ease-out;
  z-index: 9999;
}

.lang-menu.open {
  display: block;
}

/* DROPDOWN ITEMS */
.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #0B2545; /* matches your header tone */
}

.lang-menu button:hover {
  background: #EFF4FF;
}

/* OPTIONAL: flag styling */
.lang-menu button img,
.lang-menu button span {
  pointer-events: none;
}

/* ANIMATION */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
