/* Language Switcher */
.um-lang-switcher {
    position: relative;
    display: inline-block;
    font-family: inherit;
    z-index: 100;
}

.um-lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.um-lang-switcher__toggle:hover {
    background: rgba(255,255,255,.25);
}

.um-lang-switcher__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 120px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
}
.um-lang-switcher__menu[hidden] { display: none; }
.um-lang-switcher__menu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.um-lang-switcher__menu li a:hover { background: #f0f0f0; }
.um-lang-switcher__menu li.is-active a {
    font-weight: 700;
    color: #135e96;
}

.um-lang-switcher__inline {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.um-lang-switcher__inline li a {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    opacity: .7;
    transition: opacity .2s;
}
.um-lang-switcher__inline li.is-active a,
.um-lang-switcher__inline li a:hover {
    opacity: 1;
    background: rgba(255,255,255,.15);
}

.um-header-date {
    font-size: inherit;
    font-weight: inherit;
}

/* LTR support for English */
body.um-ltr {
    direction: ltr;
    text-align: left;
}
body.um-ltr .elementor-section-wrap,
body.um-ltr .elementor-widget-wrap,
body.um-ltr .elementor-element {
    direction: ltr;
}
body.um-ltr .elementor-widget-heading,
body.um-ltr .elementor-widget-text-editor,
body.um-ltr .elementor-widget-icon-box {
    text-align: left;
}
body.um-ltr .um-lang-switcher__menu {
    right: auto;
    left: 0;
}

/* RTL preserved for Arabic */
body.um-lang-ar {
    direction: rtl;
    text-align: right;
}
