.language-switcher-wrapper {
    margin-inline-start: 16px;
}

.header-top-wrapper .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-top-wrapper .topbar-language {
    margin-inline-start: 0;
}

.header-top-wrapper .topbar-language .language-switcher {
    min-width: 88px;
    height: 34px;
    padding: 0 28px 0 12px;
    font-size: 12px;
    border-color: rgba(255, 255, 255, 0.16);
}

.header-main .main-menu ul li .has-homemenu {
    left: -210px;
}

.header-main .main-menu ul li.service-mega-item:hover > .submenu.service-mega-menu {
    transform: translateX(-50%) translateY(0);
}

.header-main .main-menu ul li .submenu.service-mega-menu {
    top: 100%;
    left: 50%;
    width: min(1120px, calc(100vw - 56px));
    min-width: 1120px;
    padding: 34px 38px 38px;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
}

.service-mega-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 54px;
}

.service-mega-orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(241, 88, 34, 0.08) 0, rgba(241, 88, 34, 0.03) 58%, rgba(241, 88, 34, 0) 72%),
        linear-gradient(180deg, #f5f4f7 0%, #eceaed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.service-mega-orb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}

.testimonial-section,
.testimonial-section-2,
.testimonial-section-3,
.testimonial-section-4 {
    display: none !important;
}

.team-section {
    display: none !important;
}

.pricing-section-2 .row > [class*="col-"] {
    display: flex;
}

.pricing-section-2 .pricing-box-items {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.pricing-section-2 .pricing-header {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    margin-bottom: 0;
}

.pricing-section-2 .pricing-header span {
    display: block;
    min-height: 88px;
}

.pricing-section-2 .pricing-header h3 {
    min-height: 112px;
}

.pricing-section-2 .pricing-header p {
    min-height: 104px;
    margin-bottom: 0;
}

.pricing-section-2 .theme-btn {
    margin-top: 30px;
}

.pricing-section-2 .pricing-list {
    margin-top: auto;
}

.service-mega-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.service-mega-group h5 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.header-main .main-menu ul li .service-mega-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 0 !important;
    color: #111827 !important;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
}

.header-main .main-menu ul li .service-mega-links a::before,
.header-main .main-menu ul li .service-mega-links a::after {
    display: none !important;
}

.header-main .main-menu ul li .service-mega-links a:hover {
    color: #f15822 !important;
    transform: translateX(4px);
}

.header-main .main-menu ul li .service-mega-links a i {
    width: 20px;
    margin-left: 0;
    font-size: 18px;
    color: #6b7280;
    transition: color 0.25s ease;
}

.header-main .main-menu ul li .service-mega-links a:hover i {
    color: #f15822;
}

.offcanvas__logo img,
.header-logo img,
.header-logo-2 img,
.header-logo-4 img,
.search_logo img,
.footer-logo img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.offcanvas__logo img,
.search_logo img {
    max-height: 58px;
}

.header-logo img,
.header-logo-2 img,
.header-logo-4 img {
    max-height: 54px;
}

.footer-logo img {
    max-height: 64px;
}

.preloader .animation-preloader .preloader-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.75rem;
    animation: preloaderLogoPulse 2.2s ease-in-out infinite;
}

.preloader .animation-preloader .preloader-brand img {
    display: block;
    width: min(420px, 62vw);
    height: auto;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.14));
}

.header-logo img,
.search_logo img,
.footer-logo img {
    filter: brightness(0) invert(1);
}

.offcanvas__logo img,
.header-logo-2 img,
.header-logo-4 img {
    filter: none;
}

.language-switcher {
    min-width: 122px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 40px 0 18px;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.sticky .language-switcher,
.header-2 .language-switcher,
.header-3 .language-switcher,
.header-4 .language-switcher,
.header-logo-2 ~ .language-switcher {
    border-color: rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.language-switcher option {
    color: #111827;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .header-top-wrapper,
html[dir="rtl"] .header-main,
html[dir="rtl"] .header-right,
html[dir="rtl"] .hero-btn,
html[dir="rtl"] .footer-bottom-wrapper,
html[dir="rtl"] .contact-left-item,
html[dir="rtl"] .breadcrumb-items,
html[dir="rtl"] .social-icon,
html[dir="rtl"] .list {
    direction: rtl;
}

html[dir="rtl"] .header-btn h6 i,
html[dir="rtl"] .theme-btn i,
html[dir="rtl"] .link-btn i,
html[dir="rtl"] .footer-list li i,
html[dir="rtl"] .breadcrumb-items i {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="rtl"] .language-switcher-wrapper {
    margin-inline-start: 0;
    margin-inline-end: 16px;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[lang="ar"] body {
    font-family: "Tahoma", "Arial", sans-serif;
}

@media (max-width: 1199px) {
    .language-switcher {
        min-width: 104px;
        height: 42px;
        padding-inline: 14px 34px;
        font-size: 13px;
    }

    .header-main .main-menu ul li .submenu.service-mega-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .header-top-wrapper .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .preloader .animation-preloader .preloader-brand img {
        width: min(280px, 76vw);
    }

    .language-switcher-wrapper {
        margin-inline-start: 10px;
    }

    .language-switcher {
        min-width: 92px;
        height: 38px;
        font-size: 12px;
    }

    .offcanvas__logo img,
    .search_logo img,
    .footer-logo img {
        max-height: 52px;
    }

    .header-logo img,
    .header-logo-2 img,
    .header-logo-4 img {
        max-height: 46px;
    }
}

@keyframes preloaderLogoPulse {
    0%, 100% {
        opacity: 0.72;
        transform: translateY(0) scale(0.985);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px) scale(1);
    }
}
