/* translate.css
   Custom globe-icon language switcher UI, backed by Google Translate.
   The real Google widget is kept functional but visually hidden; our
   own globe button + dropdown drive it programmatically.
*/

/* ---- Custom globe switcher ---- */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 14px;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.lang-switcher-toggle:hover,
.lang-switcher-toggle:focus-visible {
  background-color: rgba(248, 78, 29, 0.1);
}

.lang-switcher-toggle svg {
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--white-color, #fff);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(3, 35, 48, 0.18);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

.lang-switcher.open .lang-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher-menu li {
  margin: 0;
  padding: 0;
}

.lang-switcher-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--secondary-color, #032330);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switcher-menu li a:hover,
.lang-switcher-menu li a.is-active {
  background-color: rgba(248, 78, 29, 0.1);
  color: var(--primary-color, #f84e1d);
}

/* Visually hide the real Google widget without disabling it */
.lang-switcher-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hide the "Powered by Google" banner / branding wherever it injects */
.goog-logo-link,
.goog-logo-link img,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}
