/*
 * BAIHANGDA V8.6.6 — Arabic Header RTL + ES/AR Hero Alignment Final Stability
 * Frontend geometry only. No image transform/mirroring. English is intentionally untouched.
 *//* -------------------------------------------------------------------------
 * ARABIC HEADER — deterministic physical order + BiDi isolation
 * Right-to-left desktop order:
 * Logo -> Home -> Products -> Solutions -> Projects -> Factory -> Contact
 * -> About -> language switcher -> Request Quote.
 * ---------------------------------------------------------------------- */@media (min-width:901px){body.bhd-lang-ar .bd-header .bd-container,body.bhd-rtl .bd-header .bd-container,html[dir="rtl"] body .bd-header .bd-container{display:flex!important;align-items:center!important;direction:rtl!important;flex-direction:row!important}body.bhd-lang-ar .bd-header .bd-logo,body.bhd-rtl .bd-header .bd-logo,html[dir="rtl"] body .bd-header .bd-logo{order:0!important;flex:0 0 190px!important}body.bhd-lang-ar .bd-header .baihangda-menu-toggle,body.bhd-rtl .bd-header .baihangda-menu-toggle,html[dir="rtl"] body .bd-header .baihangda-menu-toggle{order:1!important}body.bhd-lang-ar .bd-header .main-navigation,body.bhd-rtl .bd-header .main-navigation,html[dir="rtl"] body .bd-header .main-navigation{order:2!important;flex:1 1 auto!important;min-width:0!important;direction:rtl!important;text-align:right!important;margin-left:0!important;margin-right:clamp(24px,3vw,48px) !important}body.bhd-lang-ar .bd-header .main-navigation ul.mingda-menu,body.bhd-rtl .bd-header .main-navigation ul.mingda-menu,html[dir="rtl"] body .bd-header .main-navigation ul.mingda-menu{display:flex!important;align-items:stretch!important;justify-content:flex-start!important;direction:rtl!important;flex-direction:row!important;gap:clamp(18px,1.65vw,30px) !important;width:100%!important}body.bhd-lang-ar .bd-header .main-navigation ul.mingda-menu > li,body.bhd-rtl .bd-header .main-navigation ul.mingda-menu > li,html[dir="rtl"] body .bd-header .main-navigation ul.mingda-menu > li{flex:0 0 auto!important;margin:0!important;direction:rtl!important}body.bhd-lang-ar .bd-header .main-navigation ul.mingda-menu > li > a,body.bhd-rtl .bd-header .main-navigation ul.mingda-menu > li > a,html[dir="rtl"] body .bd-header .main-navigation ul.mingda-menu > li > a{direction:rtl!important;text-align:right!important;unicode-bidi:plaintext;white-space:nowrap!important}body.bhd-lang-ar .bd-header .main-navigation ul.sub-menu,body.bhd-rtl .bd-header .main-navigation ul.sub-menu,html[dir="rtl"] body .bd-header .main-navigation ul.sub-menu,body.bhd-lang-ar .bd-header .main-navigation ul.sub-menu a,body.bhd-rtl .bd-header .main-navigation ul.sub-menu a,html[dir="rtl"] body .bd-header .main-navigation ul.sub-menu a{direction:rtl!important;text-align:right!important}body.bhd-lang-ar .bd-header .bhd-v8-language-switcher,body.bhd-rtl .bd-header .bhd-v8-language-switcher,html[dir="rtl"] body .bd-header .bhd-v8-language-switcher{order:3!important;flex:0 0 auto!important;direction:rtl!important;unicode-bidi:isolate!important;margin-left:18px!important;margin-right:22px!important;white-space:nowrap!important}body.bhd-lang-ar .bd-header .bhd-v8-language-switcher a,body.bhd-rtl .bd-header .bhd-v8-language-switcher a,html[dir="rtl"] body .bd-header .bhd-v8-language-switcher a{unicode-bidi:isolate!important}body.bhd-lang-ar .bd-header .bhd-v8-language-switcher a[lang="en"],body.bhd-lang-ar .bd-header .bhd-v8-language-switcher a[lang="es"],body.bhd-rtl .bd-header .bhd-v8-language-switcher a[lang="en"],body.bhd-rtl .bd-header .bhd-v8-language-switcher a[lang="es"],html[dir="rtl"] body .bd-header .bhd-v8-language-switcher a[lang="en"],html[dir="rtl"] body .bd-header .bhd-v8-language-switcher a[lang="es"]{direction:ltr!important}body.bhd-lang-ar .bd-header .bhd-v8-language-switcher a[lang="ar"],body.bhd-rtl .bd-header .bhd-v8-language-switcher a[lang="ar"],html[dir="rtl"] body .bd-header .bhd-v8-language-switcher a[lang="ar"]{direction:rtl!important}body.bhd-lang-ar .bd-header .bd-header-quote,body.bhd-rtl .bd-header .bd-header-quote,html[dir="rtl"] body .bd-header .bd-header-quote{order:4!important;flex:0 0 auto!important;direction:rtl!important;text-align:right!important}}/* Arabic mobile/tablet navigation keeps RTL reading order and right alignment. */@media (max-width:900px){body.bhd-lang-ar .bd-header .bd-container,body.bhd-rtl .bd-header .bd-container,html[dir="rtl"] body .bd-header .bd-container{direction:rtl!important;flex-direction:row!important}body.bhd-lang-ar .bd-header .bd-logo,body.bhd-rtl .bd-header .bd-logo,html[dir="rtl"] body .bd-header .bd-logo{order:0!important}body.bhd-lang-ar .bd-header .baihangda-menu-toggle,body.bhd-rtl .bd-header .baihangda-menu-toggle,html[dir="rtl"] body .bd-header .baihangda-menu-toggle{order:1!important}body.bhd-lang-ar .bd-header .main-navigation,body.bhd-rtl .bd-header .main-navigation,html[dir="rtl"] body .bd-header .main-navigation,body.bhd-lang-ar .bd-header .main-navigation ul.mingda-menu,body.bhd-rtl .bd-header .main-navigation ul.mingda-menu,html[dir="rtl"] body .bd-header .main-navigation ul.mingda-menu{direction:rtl!important;text-align:right!important;margin-left:0!important;margin-right:0!important}body.bhd-lang-ar .bd-header .main-navigation a,body.bhd-rtl .bd-header .main-navigation a,html[dir="rtl"] body .bd-header .main-navigation a{direction:rtl!important;text-align:right!important;unicode-bidi:plaintext}body.bhd-lang-ar .bd-header .main-navigation li.menu-item-has-children > a,body.bhd-rtl .bd-header .main-navigation li.menu-item-has-children > a,html[dir="rtl"] body .bd-header .main-navigation li.menu-item-has-children > a{padding-right:0!important;padding-left:50px!important}body.bhd-lang-ar .bd-header .main-navigation .submenu-toggle,body.bhd-rtl .bd-header .main-navigation .submenu-toggle,html[dir="rtl"] body .bd-header .main-navigation .submenu-toggle{right:auto!important;left:2px!important}}/* -------------------------------------------------------------------------
 * SPANISH HOMEPAGE HERO — balanced translated copy inside the right image
 * half without touching the viewport edge.
 * ---------------------------------------------------------------------- */@media (min-width:901px){body.bhd-lang-es .v6-hero{direction:ltr!important;justify-content:flex-end!important}body.bhd-lang-es .v6-hero-content{width:min(600px,44vw) !important;max-width:600px!important;margin-left:auto!important;margin-right:clamp(72px,6vw,112px) !important;padding:0!important;box-sizing:border-box!important;text-align:center!important}body.bhd-lang-es .v6-hero h1{max-width:600px!important;margin:0 auto 22px!important;font-size:clamp(40px,3.1vw,50px) !important;line-height:1.1!important;text-align:center!important;text-wrap:balance}body.bhd-lang-es .v6-hero p{max-width:560px!important;margin:0 auto 24px!important;font-size:clamp(18px,1.35vw,22px) !important;line-height:1.55!important;text-align:center!important;text-wrap:balance}body.bhd-lang-es .v6-hero .v6-btn{margin-left:auto!important;margin-right:auto!important}}/* -------------------------------------------------------------------------
 * ARABIC HOMEPAGE HERO — preserve true RTL text, but move the whole copy block
 * away from the viewport edge and keep H1/subtitle/CTA on one right-hand axis.
 * ---------------------------------------------------------------------- */@media (min-width:901px){body.bhd-lang-ar .v6-hero,body.bhd-rtl .v6-hero,html[dir="rtl"] body .v6-hero{direction:rtl!important;justify-content:flex-start!important}body.bhd-lang-ar .v6-hero-content,body.bhd-rtl .v6-hero-content,html[dir="rtl"] body .v6-hero-content{width:min(620px,46vw) !important;max-width:620px!important;margin-left:0!important;margin-right:clamp(72px,6vw,112px) !important;padding:0!important;box-sizing:border-box!important;direction:rtl!important;text-align:right!important}body.bhd-lang-ar .v6-hero h1,body.bhd-rtl .v6-hero h1,html[dir="rtl"] body .v6-hero h1{max-width:620px!important;margin:0 0 22px!important;font-size:clamp(40px,3.05vw,50px) !important;line-height:1.16!important;direction:rtl!important;text-align:right!important;unicode-bidi:plaintext;text-wrap:balance}body.bhd-lang-ar .v6-hero p,body.bhd-rtl .v6-hero p,html[dir="rtl"] body .v6-hero p{max-width:560px!important;margin:0 0 24px auto!important;font-size:clamp(18px,1.3vw,21px) !important;line-height:1.7!important;direction:rtl!important;text-align:right!important;unicode-bidi:plaintext;text-wrap:balance}body.bhd-lang-ar .v6-hero .v6-btn,body.bhd-rtl .v6-hero .v6-btn,html[dir="rtl"] body .v6-hero .v6-btn{direction:rtl!important;text-align:center!important}}/* Tablet/mobile: center the physical Hero content box safely; Spanish remains
 * visually centered while Arabic remains linguistically RTL/right-aligned. */@media (max-width:900px){body.bhd-lang-es .v6-hero,body.bhd-lang-ar .v6-hero,body.bhd-rtl .v6-hero,html[dir="rtl"] body .v6-hero{justify-content:center!important}body.bhd-lang-es .v6-hero-content,body.bhd-lang-ar .v6-hero-content,body.bhd-rtl .v6-hero-content,html[dir="rtl"] body .v6-hero-content{width:min(620px,calc(100% - 48px)) !important;max-width:620px!important;margin-left:auto!important;margin-right:auto!important;padding:0!important;box-sizing:border-box!important}body.bhd-lang-es .v6-hero-content,body.bhd-lang-es .v6-hero h1,body.bhd-lang-es .v6-hero p{text-align:center!important}body.bhd-lang-ar .v6-hero-content,body.bhd-lang-ar .v6-hero h1,body.bhd-lang-ar .v6-hero p,body.bhd-rtl .v6-hero-content,body.bhd-rtl .v6-hero h1,body.bhd-rtl .v6-hero p,html[dir="rtl"] body .v6-hero-content,html[dir="rtl"] body .v6-hero h1,html[dir="rtl"] body .v6-hero p{direction:rtl!important;text-align:right!important}body.bhd-lang-es .v6-hero h1,body.bhd-lang-ar .v6-hero h1,body.bhd-rtl .v6-hero h1,html[dir="rtl"] body .v6-hero h1{font-size:clamp(32px,6vw,38px) !important;line-height:1.18!important;text-wrap:balance}}@media (max-width:600px){body.bhd-lang-es .v6-hero-content,body.bhd-lang-ar .v6-hero-content,body.bhd-rtl .v6-hero-content,html[dir="rtl"] body .v6-hero-content{width:calc(100% - 32px) !important}}