/* Custom Language Switcher */
.cm-lang-switcher-wrap {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.cm-lang-switcher-btn {
    background: #0a2540;
    border: 1px solid #0a2540;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: max-content;
}

.cm-lang-switcher-btn span {
    display: inline-block;
    white-space: nowrap;
}

.cm-lang-switcher-btn:hover {
    background: #113458;
    border-color: #113458;
}

.cm-lang-switcher-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cm-lang-switcher-wrap.active .cm-lang-switcher-btn svg {
    transform: rotate(180deg);
}

/* Dropdown */
.cm-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0a2540;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cm-lang-switcher-wrap.active .cm-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cm-lang-dropdown-header {
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    font-weight: 700;
}

.cm-lang-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    max-height: 350px;
    overflow-y: auto;
}

/* Custom Webkit Scrollbar for Dropdown */
.cm-lang-dropdown ul::-webkit-scrollbar {
    width: 6px;
}
.cm-lang-dropdown ul::-webkit-scrollbar-track {
    background: transparent;
}
.cm-lang-dropdown ul::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.cm-lang-dropdown li {
    margin: 0 !important;
    padding: 0 !important;
}

.cm-lang-dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.cm-lang-dropdown a:hover,
.cm-lang-dropdown a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.cm-lang-code {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 700;
}

/* Hide Default Google Widget */
.skiptranslate iframe,
.goog-te-banner-frame,
#goog-te-setup {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}
#google_translate_element {
    display: none !important;
}
