/* Language Selector */
#language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-link {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-link:hover {
  color: #3E8E4D;
}

.lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s;
}

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

.lang-btn .fi {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: block; /* Ensure it takes up space */
  line-height: 40px; /* Vertically center if it was text */
}

/* Override flag-icons default rectangle shape if needed,
   but since we put it in a circular container with overflow hidden,
   it should be fine. We might need to scale it to cover. */
.lang-btn .fi.fis {
    width: 140%; /* Make it slightly larger to cover circle without borders if aspect ratio differs */
    height: 140%;
    margin-left: -20%;
    margin-top: -20%;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 150px;
  overflow: hidden;
  flex-direction: column;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.lang-option:hover {
  background-color: #f0f0f0;
}

.lang-option .fi {
  width: 20px;
  border-radius: 2px;
}
