/* Google Translate Custom Styling */
#google_translate_element {
    display: none;
    /* Hide the default widget */
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
    /* Hide Google Translate Top Bar */
}

body {
    top: 0 !important;
    /* Prevent body push down */
}

.skiptranslate[style*="top: 40px"] {
    top: 0 !important;
}

/* Custom Translator UI */
.custom-lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.global-translate-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-inline-start: 10px;
}

.global-translate-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-header {
    padding: 12px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-options {
    padding: 8px;
}

.lang-options a {
    display: block;
    padding: 10px 15px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-options a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-inline-start: 20px;
}

/* RTL Support for Dropdown */
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

/* Hide Google's native stuff */
.goog-te-menu-frame,
.goog-te-menu2 {
    display: none !important;
}