/* ============================================================
   DT v1.0.7 — Compact header (switcher lives in the nav menu)
   Single language switcher: nav dropdown (FA/EN/AR + mobile drawer)
   Old topbar switcher hidden to stop header over-height.
   ============================================================ */

/* ---------- 1. old topbar switcher: OFF (nav dropdown is the switcher now) ---------- */
html body .dayantak-lang-switcher{display:none!important}
#dayantak-lang-switcher{display:none!important}

/* ---------- 2. topbar: compact one-row strip ---------- */
.elementor-location-header{position:relative!important}
html body .elementor-element-8d748e1{padding-top:6px!important;padding-bottom:6px!important;min-height:0!important;box-shadow:inset 0 -1px 0 rgba(255,255,255,.08)!important}
.elementor-element-8d748e1 > .elementor-container > .elementor-column > .elementor-widget-wrap{
  position:relative!important;padding:0 10px!important;row-gap:0!important}
html body .elementor-element-8d748e1 .pxl-button .btn{padding:4px 14px!important;font-size:13px!important;line-height:1.6!important}
html body .elementor-element-8d748e1 .pxl-icon-list a{padding:2px 4px!important}
html body .elementor-element-8d748e1 .pxl-link a{padding:2px 6px!important;font-size:13px!important}
html body .elementor-element-8d748e1 .pxl-icon-list,
html body .elementor-element-8d748e1 .pxl-link{gap:6px!important}

/* ---------- 3. main bar: compact ---------- */
html body .elementor-element-7cffdf3{padding-top:6px!important;padding-bottom:6px!important;min-height:0!important}
.elementor-element-7cffdf3 > .elementor-container > .elementor-column > .elementor-widget-wrap{padding:0 10px!important;row-gap:0!important}
html body .elementor-location-header .pxl-logo img{max-height:62px!important;width:auto!important}
html body .elementor-location-header .pxl-logo a{display:inline-flex!important;align-items:center!important}
html body .elementor-location-header .pxl-menu-primary > li > a{padding-top:12px!important;padding-bottom:12px!important;line-height:1.4!important;height:auto!important}
html body .elementor-location-header .pxl-menu-primary > li{min-height:0!important;height:auto!important}
html body .elementor-location-header .elementor-element-69242e8 .elementor-icon-box-icon a{font-size:28px!important}
html body .elementor-location-header .elementor-element-69242e8 .elementor-icon-box-icon a i{font-size:26px!important}

/* ---------- 3b. nav language dropdown polish ---------- */
html body .pxl-menu-primary li.dt-lang-item > a{display:flex!important;align-items:center!important;gap:7px!important}
html body .pxl-menu-primary li.dt-lang-item > a::after{
  content:"▾";font-size:10px;opacity:.75;margin-inline-start:auto}
html body .pxl-menu-primary li.dt-lang-item ul.sub-menu a{font-size:14px!important;padding:9px 18px!important}
html body .pxl-menu-primary li.dt-lang-item ul.sub-menu a.dt-lang-current{font-weight:800;color:#8733C7!important}

/* ---------- 4. sticky: whole header compact on scroll ---------- */
html body .elementor-location-header{position:sticky!important;top:0!important;z-index:99990}
.elementor-location-header .elementor-element-8d748e1{transition:max-height .3s ease,padding .3s ease}
html body .elementor-location-header.dt-scrolled .elementor-element-8d748e1{
  max-height:0!important;min-height:0!important;height:0!important;
  padding-top:0!important;padding-bottom:0!important;margin:0!important;
  border:0!important;box-shadow:none!important;overflow:hidden!important;
  pointer-events:none!important}
html body .elementor-location-header.dt-scrolled{box-shadow:0 14px 38px rgba(22,40,66,.18)!important}
html body .elementor-location-header.dt-scrolled .pxl-logo img{max-height:50px!important}

/* ---------- 5. tablet 1025-1199px: menu must be horizontal ---------- */
@media (min-width:1025px) and (max-width:1199px){
  .elementor-location-header .pxl-nav-menu .menu-menu-1-container{display:block!important}
  .elementor-location-header .pxl-menu-primary{display:flex!important;flex-direction:row!important;align-items:center!important;gap:0!important}
  .elementor-location-header .pxl-menu-primary > li{border:0!important;background:none!important;width:auto!important;min-height:0!important}
  html body .elementor-location-header .pxl-menu-primary > li > a{padding:10px 11px!important;white-space:nowrap;font-size:13px!important;line-height:1.4!important;height:auto!important}
  .elementor-location-header .pxl-menu-primary > li > a::before,
  .elementor-location-header .pxl-menu-primary > li > a::after{display:none!important}
}

/* ---------- 6. beauty: menu underline sweep (desktop) ---------- */
@media (min-width:1200px){
  .elementor-location-header .pxl-menu-primary > li > a{position:relative!important}
  .elementor-location-header .pxl-menu-primary > li > a::after{
    content:"";position:absolute;bottom:6px;inset-inline-start:50%;
    width:0;height:2px;border-radius:2px;
    background:linear-gradient(90deg,#8733C7,#A45CFF);
    transition:width .28s ease,inset-inline-start .28s ease;pointer-events:none}
  .elementor-location-header .pxl-menu-primary > li > a:hover::after,
  .elementor-location-header .pxl-menu-primary > li.current-menu-item > a::after,
  .elementor-location-header .pxl-menu-primary > li.current_page_item > a::after{
    width:52%;inset-inline-start:24%}
  .elementor-location-header .pxl-menu-primary > li > a{transition:color .2s ease}
  .elementor-location-header .pxl-menu-primary > li > a:hover{color:#8733C7!important}
}

/* ---------- 7. FA hero junk camouflage (regex artifact; real fix via file access pending) ---------- */
html[lang*="fa"] body.home .pxl-item--subtext{font-size:0!important;line-height:0!important}
html[lang*="fa"] body.home .pxl-item--subtext::before{
  content:"به دایان تک خوش آمدید؛ خدمات کامل مهاجرت، ویزا و گردشگری برای آمریکا، کانادا، استرالیا و اروپا — تحصیل، کار، تور و رزرو اقامت با مشاوره اولیه رایگان.";
  font-size:15px!important;line-height:1.95!important;display:inline-block;letter-spacing:0}
