/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

/* Language bar styling */
.language-bar {
  background-color: #f8f9fa;
  padding: 5px 0;
  text-align: right;
  border-bottom: 1px solid #eaeaea;
}

.language-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Custom language selector styling */
.language-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.lang-btn {
  background-color: transparent;
  border: none;
  padding: 2px 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  font-weight: bold;
  text-decoration: underline;
}

.lang-flag {
  font-size: 14px;
  margin-right: 4px;
  display: inline-block;
}

/* Hide original Google translate widget */
.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  display: none !important;
}

#google_translate_element {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .language-selector {
    justify-content: center;
  }
  
  .language-bar .container {
    justify-content: center;
  }
  
  .lang-btn {
    padding: 5px;
  }
  
  .lang-btn span {
    display: none;
  }
  
  .lang-flag {
    margin-right: 0;
    width: 20px;
    height: 15px;
  }
}
