/* ===== MuratSoft Multi-Language (Google Translate + RTL) ===== */

/* Google Translate varsayilan UI ve ust banner gizleme */
.ms-gt-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

body {
    top: 0 !important;
    position: static !important;
}

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

font {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Dil bazli tipografi (Google Fonts unicode-range ile yalnizca gerektiginde yuklenir) */
html[lang="ar"] body {
    font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}

html[lang="ru"] body {
    font-family: 'Noto Sans', 'Plus Jakarta Sans', sans-serif;
}

/* Dil Secici Bileseni (BEM) */
.ms-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    direction: ltr;
}

.ms-lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
    font-family: inherit;
}

.ms-lang-switcher__btn:hover,
.ms-lang-switcher__btn:focus-visible {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .36);
    outline: none;
}

.ms-lang-switcher__flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .14);
}

.ms-lang-switcher__flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ms-lang-switcher__caret {
    font-size: 10px;
    opacity: .8;
    transition: transform .2s ease;
}

.ms-lang-switcher.is-open .ms-lang-switcher__caret {
    transform: rotate(180deg);
}

.ms-lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(12, 69, 88, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1450;
}

.ms-lang-switcher.is-open .ms-lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ms-lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, color .15s ease;
}

.ms-lang-switcher__item:hover,
.ms-lang-switcher__item:focus-visible {
    background: rgba(0, 159, 211, .09);
    color: #0c4558;
    outline: none;
}

.ms-lang-switcher__item--active {
    background: rgba(0, 159, 211, .12);
    color: #0a5f78;
    font-weight: 700;
}

.ms-lang-switcher__code {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.ms-lang-switcher__item--active .ms-lang-switcher__code {
    color: #0a5f78;
}

/* Mobil Header Dil Secici (640px altinda topbar gizlendiginde gorunur) */
.ms-lang-switcher--header {
    display: none;
}

@media (max-width: 640px) {
    .ms-lang-switcher--header {
        display: inline-flex;
    }

    .ms-lang-switcher--header .ms-lang-switcher__btn {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #0c4558;
        padding: 7px 9px;
    }

    .ms-lang-switcher--header .ms-lang-switcher__btn:hover,
    .ms-lang-switcher--header .ms-lang-switcher__btn:focus-visible {
        background: #e2e8f0;
        border-color: #94a3b8;
    }

    body.ms-nav-open .ms-lang-switcher--header .ms-lang-switcher__btn {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .28);
        color: #fff;
    }
}

/* ===== RTL (Arapca) Uyum Kurallari ===== */
html[dir="rtl"] .ms-topbar-contact,
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] .ms-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="rtl"] .ms-header-actions {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .ms-lang-switcher__menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .ms-footer-links i,
html[dir="rtl"] .ms-footer-news i {
    transform: scaleX(-1);
}

html[dir="rtl"] .ms-back-to-top {
    right: auto;
    left: 16px;
}

@media (max-width: 992px) {
    html[dir="rtl"] .ms-nav {
        transform: translate3d(105%, 0, 0);
    }

    html[dir="rtl"] .ms-nav.active {
        transform: translate3d(0, 0, 0);
    }

    html[dir="rtl"] .ms-dropdown li a {
        padding: 12px 28px 12px 22px;
    }
}
