html[dir="rtl"], .culture-rtl { direction: rtl; text-align: right; }
html[dir="ltr"], .culture-ltr { direction: ltr; text-align: left; }

.header-language-switcher { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.language-option { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:4px 8px; border:1px solid rgba(255,255,255,.25); border-radius:999px; color:inherit; text-decoration:none; opacity:.8; transition:.2s ease; }
.language-option img { width:24px; height:24px; border-radius:50%; object-fit:cover; }
.language-option span { font-size:11px; white-space:nowrap; }
.language-option:hover, .language-option.active { color:inherit; opacity:1; border-color:#ffc107; background:rgba(255,255,255,.12); }
.patient-panel-link { display:inline-flex; align-items:center; gap:6px; }

.culture-ltr .navbar-nav { margin-left:auto !important; margin-right:0 !important; }
.culture-ltr .header-top-contact ul,
.culture-ltr .footer-list,
.culture-ltr .footer-contact,
.culture-ltr .footer-opening ul,
.culture-ltr .breadcrumb-menu { padding-left:0; }
.culture-ltr .fa-arrow-left,
.culture-ltr .fa-long-arrow-left,
.culture-ltr .fa-caret-left { transform:rotate(180deg); }
.culture-ltr .text-start { text-align:left !important; }
.culture-rtl .text-start { text-align:right !important; }
.culture-ltr input:not([dir]),
.culture-ltr textarea:not([dir]),
.culture-ltr select:not([dir]) { direction:ltr; text-align:left; }
.culture-rtl input:not([dir]),
.culture-rtl textarea:not([dir]),
.culture-rtl select:not([dir]) { direction:rtl; text-align:right; }

@media (max-width: 767.98px) {
    .header-top-wrapper, .header-top-right { gap:8px; }
    .language-option span { display:none; }
    .language-option { padding:4px; }
}
/* Main header language selector */
.mobile-menu-right { display:flex; align-items:center; gap:8px; }
.navbar-actions { align-items:center; margin-inline-start:18px; }
.site-language-dropdown { position:relative; }
.site-language-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:8px 14px;
    border:1px solid rgba(0, 0, 0, .12);
    border-radius:999px;
    background:#fff;
    color:#1f2937;
    font:inherit;
    line-height:1;
    box-shadow:0 4px 14px rgba(0, 0, 0, .06);
    transition:.2s ease;
}
.site-language-toggle:hover,
.site-language-toggle:focus,
.site-language-dropdown.show .site-language-toggle {
    color:var(--theme-color, #00a3c8);
    border-color:var(--theme-color, #00a3c8);
    box-shadow:0 6px 18px rgba(0, 0, 0, .1);
}
.site-language-toggle::after { margin-inline-start:2px; }
.site-language-dropdown .dropdown-menu {
    min-width:190px;
    padding:8px;
    border:0;
    border-radius:14px;
    box-shadow:0 14px 35px rgba(0, 0, 0, .14);
    text-align:start;
}
.language-dropdown-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 10px;
    border-radius:9px;
    color:#263238;
}
.language-dropdown-item img {
    width:24px;
    height:24px;
    flex:0 0 24px;
    border-radius:50%;
    object-fit:cover;
}
.language-dropdown-item:hover,
.language-dropdown-item:focus,
.language-dropdown-item.active {
    color:var(--theme-color, #00a3c8);
    background:rgba(0, 163, 200, .1);
}
.site-language-dropdown-mobile,
.mobile-language-nav { display:none; }

@media (max-width: 991.98px) {
    .site-language-dropdown-mobile { display:block; }
    .site-language-dropdown-mobile .site-language-toggle {
        width:46px;
        min-width:46px;
        min-height:42px;
        padding:6px;
        gap:3px;
    }
    .site-language-dropdown-mobile .site-language-toggle span { font-size:10px; font-weight:700; }
    .site-language-dropdown-mobile .site-language-toggle::after { display:none; }
    .site-language-dropdown-mobile .dropdown-menu {
        inset-inline-start:auto !important;
        inset-inline-end:0 !important;
        margin-top:8px !important;
    }
    .mobile-language-nav {
        display:block;
        margin-top:10px;
        padding-top:14px;
        border-top:1px solid rgba(0, 0, 0, .08);
    }
    .mobile-language-title {
        display:flex;
        align-items:center;
        gap:8px;
        margin-bottom:10px;
        padding-inline:12px;
        font-weight:700;
        color:#263238;
    }
    .mobile-language-options {
        display:grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:8px;
        padding:0 10px 10px;
    }
    .mobile-language-option {
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:5px;
        min-height:66px;
        padding:8px 5px;
        border:1px solid rgba(0, 0, 0, .09);
        border-radius:12px;
        color:#263238;
        background:#fff;
        text-decoration:none;
    }
    .mobile-language-option img {
        width:26px;
        height:26px;
        border-radius:50%;
        object-fit:cover;
    }
    .mobile-language-option span { font-size:11px; white-space:nowrap; }
    .mobile-language-option:hover,
    .mobile-language-option.active {
        color:var(--theme-color, #00a3c8);
        border-color:var(--theme-color, #00a3c8);
        background:rgba(0, 163, 200, .08);
    }
}