/* Positioning */
#google_translate_element {
  position:absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Dropdown Styling */
.goog-te-combo {
  padding: 10px 14px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #212529;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.goog-te-combo:hover {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Focus Effect */
.goog-te-combo:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Hide Google branding */
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

/* Dropdown Menu Styling */
.goog-te-menu-value span {
  color: #212529 !important;
}

.goog-te-menu2 {
  background: #ffffff !important;
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Dropdown Items */
.goog-te-menu2 div div:hover {
  background: #4facfe !important;
  color: white !important;
}

/* Ensure the language dropdown remains visible */
.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-combo {
  font-size: 16px !important;
  display: inline-block !important;
}

/* Hide Google Translate top bar */
body > .skiptranslate {
  display: none !important;
}

/* Ensure body margin remains unaffected */
body {
  top: 0px !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  #google_translate_element {
    top: 10px;
    right: 10px;
  }

  .goog-te-combo {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  #google_translate_element {
    top: 5px;
    right: 5px;
  }

  .goog-te-combo {
    padding: 6px 8px;
    font-size: 12px;
  }
}