* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Z-INDEX APPROACH: Hide banner (first line) with low z-index, keep dropdown (second line) with high z-index */

/* Google Translate Banner (first line) - COMPLETELY HIDE */
body > .goog-te-banner-frame,
body > .skiptranslate {
  z-index: 1 !important;
  position: relative !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  display: none !important;
}

/* Banner iframes - completely hidden */
body > .goog-te-banner-frame iframe,
body > .skiptranslate iframe {
  z-index: 1 !important;
  pointer-events: none !important;
  display: none !important;
}

/* Top Bar (second line) - HIGH z-index to cover banner */
.top-bar {
  position: relative;
  z-index: 1000 !important;
}

/* Google Translate Element in Top Bar - HIGH z-index */
#google_translate_element {
  position: relative;
  z-index: 1001 !important;
  display: inline-block;
  pointer-events: auto !important;
}

/* Google Translate Gadget - HIGH z-index */
#google_translate_element .goog-te-gadget {
  position: relative;
  z-index: 1002 !important;
  display: inline-block !important;
  pointer-events: auto !important;
}

/* Google Translate Dropdown Anchor - HIGH z-index */
#google_translate_element .goog-te-gadget a,
#google_translate_element a.VIpgJd-ZVi9od-xl07Ob-lTBxed {
  position: relative;
  z-index: 1003 !important;
  color: #000 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Top Black Bar */
.top-bar {
  background: #000000;
  color: #ffffff;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #333333;
  position: relative;
  z-index: 1000 !important;
}

.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
}

.top-link:hover {
  text-decoration: underline;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cccccc;
  font-size: 12px;
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

/* Google Translate in header - MINIMAL styling, let it work naturally */
#google_translate_element {
  display: inline-block;
  margin-right: 12px;
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

/* Google Translate uses a custom dropdown (anchor tag), not a select element */
/* Style the dropdown anchor and gadget */
#google_translate_element .goog-te-gadget,
#google_translate_element .goog-te-gadget-simple {
  display: inline-block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1000 !important;
  position: relative !important;
}

#google_translate_element .goog-te-gadget a,
#google_translate_element a.VIpgJd-ZVi9od-xl07Ob-lTBxed {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1001 !important;
  color: #000 !important;
  text-decoration: none !important;
}

/* Custom Language Selector */
.custom-language-selector {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  z-index: 1001;
  position: relative;
}

.custom-language-selector:hover {
  background-color: #333333;
}

.custom-language-selector option {
  background: #000000;
  color: #ffffff;
}

/* Language Controls Wrapper */
.language-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Language Reset Button */
.custom-language-reset {
  padding: 4px 16px;
  border: 2px solid #ffffff;
  background: #cc0000;
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-language-reset:hover {
  background-color: #ff0000;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* CRITICAL: Dropdown Menu Iframe - HIGHEST z-index to be on top and clickable */
iframe[src*="translate.google.com"] {
  z-index: 99999 !important;
  position: absolute !important;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Also style select if it exists (for compatibility) */
#google_translate_element select.goog-te-combo {
  padding: 4px 8px;
  border: 1px solid #666;
  border-radius: 3px;
  background: #000;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Hide "Powered by" text and logo only */
#google_translate_element .goog-te-gadget span[style*="white-space:nowrap"],
#google_translate_element .VIpgJd-ZVi9od-l4eHX-hSRGPd,
#google_translate_element a[href*="translate.google.com"],
#google_translate_element .goog-te-gadget > span:not([id]),
#google_translate_element .goog-te-gadget > a,
#google_translate_element .goog-te-gadget img {
  display: none !important;
}

/* Main Header */
.main-header {
  background: #000000;
  padding: 16px 0;
  border-bottom: 1px solid #333333;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-logo {
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -1px;
  margin: 0;
  font-family: "Times New Roman", Times, serif;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.header-btn:hover {
  background: #333333;
}

.header-btn.primary {
  background: #ffffff;
  color: #000000;
}

.header-btn.primary:hover {
  background: #cccccc;
}

/* Navigation Bar */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  overflow-x: auto;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}

.nav-link:hover {
  border-bottom-color: #000000;
}

/* Main Content */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Footer */
.footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: #666666;
  background: #ffffff;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  color: #666666;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar-container,
  .header-container,
  .nav-container,
  .main-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .top-links {
    gap: 12px;
    font-size: 11px;
  }
  
  .nav-container {
    gap: 16px;
  }
  
  .main-logo {
    font-size: 24px;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-left,
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

