/* Language switcher — overrides header line-height and Bootstrap .dropdown */

.header-middle .offset-menu-wrapper {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    line-height: 1.4 !important;
    height: auto;
    vertical-align: middle;
}

.header-middle .offset-menu-wrapper > li,
.header-middle .offset-menu-wrapper .lang-switcher {
    line-height: 1.4 !important;
    height: auto;
    vertical-align: middle;
}

.home .header-middle {
    z-index: 1100;
    overflow: visible;
}

.header-middle .container,
.header-middle .row,
.header-middle [class*="col-"],
.header-middle .offset-menu-wrapper {
    overflow: visible;
}

.lang-switcher {
    position: relative;
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 0 18px 0 0 !important;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.lang-switcher::after {
    content: '\e64b';
    font-family: themify;
    font-size: 10px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.lang-switcher-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    padding: 6px 0;
}

.lang-switcher-label {
    font-size: 16px;
    font-weight: 400;
}

.lang-switcher-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 160px;
    margin: 0;
    padding: 8px 0 !important;
    background-color: #2c3a41;
    border: 1px solid #2c3a41;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
    line-height: normal;
    text-align: left;
    list-style: none;
}

.lang-switcher:hover .lang-switcher-panel,
.lang-switcher:focus-within .lang-switcher-panel {
    opacity: 1;
    visibility: visible;
}

.lang-switcher-panel a {
    display: block;
    padding: 10px 16px;
    color: #f5f6f7 !important;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.lang-switcher-panel a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}
