/* Custom Language Selector Styles */
.lang-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(61, 56, 48, 0.2);
    border-radius: 4px;
    background: transparent;
    color: #3d3830;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    outline: none;
}

.lang-select:hover {
    background: rgba(61, 56, 48, 0.05);
    border-color: rgba(61, 56, 48, 0.4);
}

.lang-select option {
    background: #ffffff;
    color: #3d3830;
}

/* Specific styles for sticky header */
nav.pin .lang-select {
    border-color: rgba(27, 58, 40, 0.2);
    /* var(--g9) with opacity */
    color: #1b3a28;
    /* var(--g9) */
    background: rgba(27, 58, 40, 0.05);
}

nav.pin .lang-select:hover {
    background: rgba(27, 58, 40, 0.1);
    border-color: #1b3a28;
}

/* Mobile Menu Styles */
.mn-lang-select {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
}

/* HIDE GOOGLE TRANSLATE BANNER & ADS */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Hide the top frame */
body {
    top: 0px !important;
    position: static !important;
}

/* Hide the Google Translate Element itself if visible */
#google_translate_element {
    display: none !important;
}

/* Hide tooltips and hover effects */
.goog-tooltip {
    display: none !important;
}

.goog-te-balloon-frame {
    display: none !important;
}

/* Remove highlight on hover */
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hide "Powered by Google" branding */
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    height: 0 !important;
    overflow: hidden !important;
}

/* Aggressive hidden for the banner iframe container */
.skiptranslate iframe {
    display: none !important;
    visibility: hidden !important;
}

/* Hide the specific banner frame element by ID if it exists */
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
}

/* Attempt to hide the top spacer div Google injects */
body>.skiptranslate {
    display: none !important;
}

/* Ensure our content stays up */
nav.pin {
    top: 0 !important;
}