/* Language selector + translated-page cleanup */

/* Language menu */
.lang-menu {
  width: 14rem;
  padding: 0.5rem;
}

.lang-item small { margin-left: 0.35rem; opacity: 0.55; font-size: 10.5px; }
.lang-code { font-size: 10px; opacity: 0.7; flex-shrink: 0; }

/* Hide Google's own UI: we drive it from our menu */
#google_translate_element { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
[class*="VIpgJd-ZVi9od"] { display: none !important; }
.skiptranslate iframe,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-spinner-pos { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; }
font { vertical-align: inherit !important; }

/* Right-to-left languages (Arabic, Hebrew, Persian, Urdu ...) */
[dir='rtl'] .client-marquee { direction: ltr; }
[dir='rtl'] .hero-art { inset: 0 36% 0 0; }
[dir='rtl'] .dropdown-menu-left { left: auto; right: 0; }
[dir='rtl'] .dropdown-menu-right { right: auto; left: 0; }
[dir='rtl'] .dropdown-item,
[dir='rtl'] .lang-item,
[dir='rtl'] .footer-list-btn { text-align: right; }
[dir='rtl'] .breadcrumb,
[dir='rtl'] .faq-list summary { direction: rtl; }

/* Translated text rarely matches English line lengths: let headings and labels balance themselves */
h1, h2, h3, .text-center { text-wrap: balance; }
.expertise-practice-card h3,
.solution-card h3 { min-height: 2.52em; }

/* Translations are often longer than the English: never clip a headline or button label */
html:not([lang="en"]) .whitespace-nowrap { white-space: normal !important; }
