/* ==========================================================================
   Ali v12.26 - REAL Mobile Header/Nav Fix
   Base: v12.24. Additive only. Fixes mobile menu/nav collapse caused by old CSS.
   ========================================================================== */

@media (max-width: 920px){
  html,body{overflow-x:hidden!important;max-width:100%!important;}
  body{padding-bottom:88px!important;}

  body.b4883-v1226-real-mobile-fix .v8-newsbar{
    position:relative!important;
    z-index:50!important;
    padding:8px 10px!important;
    overflow:hidden!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-newsbar__inner{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    align-items:center!important;
    padding:0!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-newsbar__inner strong,
  body.b4883-v1226-real-mobile-fix .v8-newsbar__inner span{
    display:none!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-newsbar__inner a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
    padding:10px 12px!important;
    border-radius:999px!important;
    color:#fff!important;
    background:rgba(255,255,255,.12)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    font-size:14px!important;
    font-weight:900!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }

  body.b4883-v1226-real-mobile-fix .v11-header.v8-header{
    position:sticky!important;
    top:0!important;
    z-index:9990!important;
    background:#fff!important;
    border-bottom:1px solid rgba(15,35,70,.08)!important;
    box-shadow:0 8px 24px rgba(15,35,70,.08)!important;
  }
  body.admin-bar.b4883-v1226-real-mobile-fix .v11-header.v8-header{top:0!important;}

  body.b4883-v1226-real-mobile-fix .v11-header__inner.v8-header__inner{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    min-height:74px!important;
    padding:10px 14px!important;
    max-width:100%!important;
  }

  body.b4883-v1226-real-mobile-fix .v8-brand,
  body.b4883-v1226-real-mobile-fix .v10-brand{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    text-decoration:none!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-brand__logo{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    border-radius:18px!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-brand__logo img,
  body.b4883-v1226-real-mobile-fix .v8-brand__logo svg{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-brand__text{
    min-width:0!important;
    display:block!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-brand__text strong{
    display:block!important;
    font-size:20px!important;
    line-height:1.25!important;
    color:#10233f!important;
    white-space:nowrap!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-brand__text small{
    display:block!important;
    max-width:210px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1.45!important;
    color:#6c7d95!important;
  }

  body.b4883-v1226-real-mobile-fix .v8-header__actions{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:0!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-header__actions .v8-header__call,
  body.b4883-v1226-real-mobile-fix .v8-header__actions .v8-header__whatsapp,
  body.b4883-v1226-real-mobile-fix .v8-header__actions .b4883-v1221-header-chip{
    display:none!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-menu-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-direction:column!important;
    gap:5px!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    padding:0!important;
    border-radius:16px!important;
    background:#f7fafc!important;
    border:1px solid rgba(16,35,63,.12)!important;
    box-shadow:none!important;
    z-index:10001!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-menu-toggle span{
    display:block!important;
    width:22px!important;
    height:2.5px!important;
    border-radius:999px!important;
    background:#10233f!important;
    transition:transform .2s ease,opacity .2s ease!important;
  }
  body.b4883-v1226-real-mobile-fix.v8-menu-open .v8-menu-toggle span:nth-child(1){transform:translateY(7.5px) rotate(45deg)!important;}
  body.b4883-v1226-real-mobile-fix.v8-menu-open .v8-menu-toggle span:nth-child(2){opacity:0!important;}
  body.b4883-v1226-real-mobile-fix.v8-menu-open .v8-menu-toggle span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)!important;}

  /* Critical fix: force desktop nav closed on mobile unless menu is really open */
  body.b4883-v1226-real-mobile-fix .v11-nav.v8-nav,
  body.b4883-v1226-real-mobile-fix .v8-nav{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    position:fixed!important;
    inset:82px 12px auto 12px!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100vh - 118px)!important;
    overflow:auto!important;
    padding:12px!important;
    border-radius:24px!important;
    background:#fff!important;
    border:1px solid rgba(16,35,63,.10)!important;
    box-shadow:0 24px 60px rgba(6,27,61,.24)!important;
    z-index:9999!important;
    transform:translateY(-8px)!important;
  }
  body.b4883-v1226-real-mobile-fix.v8-menu-open .v11-nav.v8-nav,
  body.b4883-v1226-real-mobile-fix.v8-menu-open .v8-nav,
  body.b4883-v1226-real-mobile-fix .v11-nav.v8-nav.is-open,
  body.b4883-v1226-real-mobile-fix .v8-nav.is-open{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:translateY(0)!important;
  }

  body.b4883-v1226-real-mobile-fix .v8-menu,
  body.b4883-v1226-real-mobile-fix .v8-nav > ul,
  body.b4883-v1226-real-mobile-fix .v11-nav.v8-nav > ul{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
    list-style:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-menu li{display:block!important;width:100%!important;margin:0!important;padding:0!important;}
  body.b4883-v1226-real-mobile-fix .v8-nav a,
  body.b4883-v1226-real-mobile-fix .v8-menu a,
  body.b4883-v1226-real-mobile-fix .v8-menu > li > a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:52px!important;
    padding:12px 14px!important;
    border-radius:16px!important;
    background:#f6f9fc!important;
    color:#24354f!important;
    font-size:16px!important;
    line-height:1.4!important;
    font-weight:900!important;
    text-decoration:none!important;
    white-space:normal!important;
    box-shadow:none!important;
    transform:none!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-nav a::after,
  body.b4883-v1226-real-mobile-fix .v8-menu a::after{display:none!important;content:none!important;}

  body.b4883-v1226-real-mobile-fix.v8-menu-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(8,20,38,.32);
    backdrop-filter:blur(3px);
    z-index:9991;
  }
  body.b4883-v1226-real-mobile-fix .v11-header.v8-header{z-index:10000!important;}
  body.b4883-v1226-real-mobile-fix .v11-nav.v8-nav{z-index:10002!important;}

  body.b4883-v1226-real-mobile-fix .v8-mobile-cta{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    padding:8px!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.82)!important;
    border:1px solid rgba(16,35,63,.10)!important;
    box-shadow:0 14px 34px rgba(6,27,61,.18)!important;
    backdrop-filter:blur(14px)!important;
    z-index:9000!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-mobile-cta a{
    min-height:56px!important;
    border-radius:16px!important;
    padding:8px 10px!important;
    text-align:center!important;
    line-height:1.35!important;
  }
  body.b4883-v1226-real-mobile-fix .v8-mobile-cta b{font-size:14px!important;line-height:1.25!important;}
  body.b4883-v1226-real-mobile-fix .v8-mobile-cta small{font-size:11px!important;line-height:1.25!important;}

  body.b4883-v1226-real-mobile-fix .v8-main{padding-top:0!important;}
}

@media (min-width: 921px){
  body.b4883-v1226-real-mobile-fix .v11-nav.v8-nav,
  body.b4883-v1226-real-mobile-fix .v8-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
}
