:root {
    --language-switcher-surface: rgba(255, 255, 255, 0.12);
    --language-switcher-border: rgba(255, 255, 255, 0.28);
    --language-switcher-shadow: 0 18px 45px rgba(5, 15, 35, 0.2);
}

.language-switcher {
    position: relative;
    z-index: 1001;
    font: 600 14px/1.2 "Kumbh Sans", "Inter", sans-serif;
    color: #fff;
}

html[dir="rtl"] .language-switcher {
    font-family: "Changa", sans-serif;
}

.language-switcher--compact > summary {
    list-style: none;
}

.language-switcher--compact > summary::-webkit-details-marker {
    display: none;
}

.language-switcher__trigger,
.language-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border-radius: 12px;
    text-decoration: none;
}

.language-switcher__trigger {
    min-width: 142px;
    padding: 8px 12px;
    color: #fff !important;
    cursor: pointer;
    border: 1px solid var(--language-switcher-border);
    background: var(--language-switcher-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.language-switcher__trigger:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.18);
}

/* Light navigation surfaces use a high-contrast control while overlay headers stay translucent. */
.header-area:not(.header-two-area) .language-switcher__trigger,
.navbar-top .language-switcher__trigger {
    color: #162033 !important;
    border-color: #dce3ee;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.header-area:not(.header-two-area) .language-switcher__trigger:hover,
.navbar-top .language-switcher__trigger:hover {
    border-color: #aebbd0;
    background: #f8fafc;
}

.language-switcher__trigger img,
.language-switcher__option img {
    width: 28px;
    height: 20px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 2px 7px rgba(15, 23, 42, 0.2);
}

.language-switcher__trigger > span {
    flex: 1 1 auto;
    white-space: nowrap;
    color: currentColor !important;
}

.language-switcher__chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.language-switcher[open] .language-switcher__chevron {
    transform: rotate(180deg);
}

.language-switcher__menu {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    width: 190px;
    padding: 7px;
    border: 1px solid #dce3ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--language-switcher-shadow);
    color: #162033;
}

.language-switcher__option {
    width: 100%;
    padding: 8px 10px;
    color: inherit;
    transition: color 160ms ease, background-color 160ms ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
    color: #174fc7;
    background: #eef4ff;
}

.language-switcher__option.is-active {
    color: #174fc7;
    background: #e8f0ff;
}

.language-switcher__option > span {
    flex: 1 1 auto;
    white-space: nowrap;
}

.language-switcher__check {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-switcher__trigger:focus-visible,
.language-switcher__option:focus-visible {
    outline: 3px solid rgba(74, 137, 255, 0.42);
    outline-offset: 2px;
}

.language-switcher--panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
}

.language-switcher--panel .language-switcher__option {
    justify-content: center;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
}

.language-switcher--panel .language-switcher__option:hover,
.language-switcher--panel .language-switcher__option.is-active {
    color: #fff;
    background: rgba(60, 114, 252, 0.88);
}

/* Keep inactive slider copies from painting over the active hero content. */
.banner__slider .swiper-slide:not(.swiper-slide-active) .banner-two__content,
.banner__slider .swiper-slide:not(.swiper-slide-active) .banner__content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.banner__slider .swiper-slide-active .banner-two__content,
.banner__slider .swiper-slide-active .banner__content {
    opacity: 1;
    visibility: visible;
}

.banner-two__content h2,
.banner__content h2 {
    max-width: 950px;
    margin-inline: auto;
    color: #fff;
    font-size: clamp(42px, 5.7vw, 82px);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
}

.banner-two__content h4 {
    max-width: min(100%, 760px);
    line-height: 1.55;
    text-wrap: balance;
}

.banner-two__content p {
    max-width: 820px;
    margin-inline: auto;
    text-wrap: balance;
}

@media (max-width: 1399.98px) {
    .header-two-area .header__main {
        gap: 20px;
        flex-wrap: nowrap;
    }

    .header-two-area .main-menu ul {
        gap: 26px;
    }
}

@media (max-width: 1199.98px) {
    .header-two-area .header__main {
        gap: 16px;
    }

    .header-two-area .main-menu ul {
        gap: 22px;
    }

    .header-language .language-switcher__trigger {
        min-width: 136px;
    }
}

@media (max-width: 991.98px) {
    .header-two-area .header__main {
        gap: 14px;
    }

    .header-two-area .logo {
        width: min(196px, 62vw);
    }
}

@media (max-width: 575.98px) {
    .banner-two__content {
        width: 100%;
        padding: 145px 8px 130px;
    }

    .banner-two__content h2,
    .banner__content h2 {
        font-size: clamp(30px, 9.2vw, 38px);
        line-height: 1.18;
    }

    .banner-two__content h4 {
        font-size: 13px;
        line-height: 1.65;
    }

    .banner-two__content p {
        font-size: 14px;
        line-height: 1.75;
    }

    .banner-two__dot-wrp {
        bottom: 72px;
    }

    .sidebar-area {
        width: min(350px, calc(100vw - 24px));
        padding-inline: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .language-switcher *,
    .banner__slider .slide-bg {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
