/* Arab Gate unified mobile production layer */
html,body{max-width:100%;overflow-x:hidden}*,*:before,*:after{box-sizing:border-box}img,svg,video{max-width:100%}
.mobile-shop-nav,.mobile-drawer,.drawer-backdrop,.mobile-install-prompt{display:none}
@media(max-width:700px){
 body{width:100%;overflow-x:hidden!important;padding-bottom:84px}
 .shell,.wrap{max-width:100%!important}
 section,header,footer,main{max-width:100vw;overflow-x:hidden}
 .mobile-shop-nav{position:fixed!important;z-index:10030!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;right:8px!important;left:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;height:68px!important;padding:7px 6px!important;background:rgba(255,255,255,.97)!important;border:1px solid #dbe7eb!important;border-radius:22px!important;box-shadow:0 12px 38px rgba(5,45,64,.2)!important;direction:rtl}
 .mobile-shop-nav a,.mobile-shop-nav button{appearance:none;border:0;background:transparent;color:#66818c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:700 10px Tajawal,sans-serif;text-decoration:none;min-width:0}
 .mobile-shop-nav svg{width:21px;height:21px}.mobile-shop-nav .active{color:#08729f}.mobile-shop-nav span{white-space:nowrap}
 .mobile-drawer{display:block;position:fixed;z-index:10050;right:12px;left:12px;bottom:86px;background:#fff;border-radius:24px;padding:20px;box-shadow:0 25px 70px rgba(3,35,49,.28);transform:translateY(25px);opacity:0;visibility:hidden;pointer-events:none;transition:.22s ease}
 .mobile-drawer.open{transform:none;opacity:1;visibility:visible;pointer-events:auto}
 .drawer-backdrop{position:fixed;display:block;z-index:10040;inset:0;background:rgba(3,30,43,.38);opacity:0;visibility:hidden;pointer-events:none;transition:.2s}
 .drawer-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}
 .drawer-close{position:absolute;left:14px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#f2f6f7;font-size:25px}
 .drawer-brand{display:flex;align-items:center;gap:10px;padding:0 0 14px;border-bottom:1px solid #e5edef}.drawer-brand img{width:58px;height:48px;object-fit:contain}.drawer-brand div{display:flex;flex-direction:column}.drawer-brand span{font-size:11px;color:#78909a}
 .drawer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px}.drawer-grid a{display:flex;align-items:center;gap:7px;padding:11px 9px;border-radius:12px;background:#f6f9fa;color:#0a4058;text-decoration:none;font:800 11px Tajawal,sans-serif}.drawer-grid svg{width:17px;color:#dda21b}
 .mobile-install-prompt{position:fixed;z-index:10060;right:12px;left:12px;bottom:88px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px;background:#fff;border:1px solid #dce7ea;border-radius:18px;box-shadow:0 18px 55px rgba(4,43,60,.25);transform:translateY(18px);opacity:0;visibility:hidden;transition:.25s}
 .mobile-install-prompt[hidden]{display:none!important}.mobile-install-prompt.show{transform:none;opacity:1;visibility:visible}.mobile-install-prompt img{width:45px;height:45px;object-fit:contain}.mobile-install-prompt div{display:flex;flex-direction:column}.mobile-install-prompt b{font-size:13px}.mobile-install-prompt span{font-size:10px;color:#718791}.mip-install{border:0;border-radius:10px;background:#dda21b;color:#fff;padding:10px;font:800 11px Tajawal}.mip-close{position:absolute;left:5px;top:-13px;border:0;border-radius:50%;background:#0a3447;color:#fff;width:25px;height:25px}
 .premium-footer{padding-bottom:90px!important}
}

/* Mobile: bottom navigation is the only navigation */
@media(max-width:700px){
  header nav,header .nav,header .nav-links,header .links,
  .menu-toggle,.mobile-menu-toggle,.hamburger,.hamburger-btn,
  header button[aria-label*="menu" i],header button[aria-label*="القائمة"]{
    display:none!important;
  }
  header{min-height:82px!important;height:auto!important}
  header .head,header .shell,header .container,header .wrap{
    min-height:82px!important;height:auto!important;
  }
  header .logo,header .brand,header .brand-logo-image{
    margin-inline-start:auto!important;
  }
}

/* 2026-09-24 definitive mobile bottom navigation fix */
@media (max-width:900px){
  body{padding-bottom:92px!important;overflow-x:hidden!important}
  .mobile-shop-nav{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    position:fixed!important;
    right:10px!important;left:10px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    width:auto!important;max-width:none!important;
    height:70px!important;
    margin:0!important;
    transform:none!important;
    z-index:2147483000!important;
    overflow:visible!important;
    pointer-events:auto!important;
  }
  .mobile-shop-nav a,.mobile-shop-nav button{display:flex!important;visibility:visible!important;opacity:1!important}
  .floating-whatsapp{display:none!important}
  .premium-footer{padding-bottom:105px!important}
}

/* Mobile premium header navigation */
@media(max-width:900px){
  header{position:sticky!important;top:0!important;z-index:2147482000!important;background:#fff!important;overflow:visible!important;box-shadow:0 5px 20px rgba(5,45,64,.08)!important}
  header .mobile-menu,header .menu-toggle,header .mobile-menu-toggle,header .hamburger,header .hamburger-btn,
  header button[aria-controls="mobileHeaderMenu"]{
    display:flex!important;visibility:visible!important;opacity:1!important;
    width:44px!important;height:44px!important;align-items:center!important;justify-content:center!important;
    border:1px solid #dbe7eb!important;border-radius:13px!important;background:#f7fafb!important;color:#07638f!important;
    margin-inline-start:10px!important;cursor:pointer!important
  }
  header .logo img,header .brand img,header .real-logo img,header .brand-logo-image img{max-height:58px!important;width:auto!important;object-fit:contain!important}
  header nav#mobileHeaderMenu{
    display:none!important;position:absolute!important;top:100%!important;right:10px!important;left:10px!important;
    background:#fff!important;border:1px solid #dbe7eb!important;border-radius:0 0 20px 20px!important;
    padding:12px!important;box-shadow:0 22px 45px rgba(5,45,64,.18)!important;max-height:72vh!important;overflow-y:auto!important;
    grid-template-columns:1fr 1fr!important;gap:8px!important
  }
  header.mobile-nav-open nav#mobileHeaderMenu{display:grid!important}
  header nav#mobileHeaderMenu a{
    display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;
    padding:10px 8px!important;border-radius:11px!important;background:#f5f8f9!important;color:#0a4058!important;
    font:800 11px Tajawal,sans-serif!important;text-align:center!important
  }
  header nav#mobileHeaderMenu a:last-child{background:#dda21b!important;color:#fff!important}
  body.header-menu-open:before{content:"";position:fixed;z-index:2147481000;inset:0;background:rgba(3,30,43,.32)}
}

/* Hotfix: visible compact mobile header */
@media(max-width:900px){
  .top{height:30px!important;min-height:30px!important;padding:0!important;overflow:hidden!important}
  .top .shell{height:30px!important;min-height:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 12px!important}
  .top .shell span:first-child{display:block!important;font-size:10px!important;line-height:30px!important;white-space:nowrap!important}
  .top .shell span:not(:first-child){display:none!important}
  header{height:74px!important;min-height:74px!important;padding:0!important;background:#fff!important;overflow:visible!important}
  header>.shell.nav{height:74px!important;min-height:74px!important;width:100%!important;max-width:100%!important;padding:7px 14px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
  header .real-logo{display:flex!important;align-items:center!important;visibility:visible!important;opacity:1!important;margin:0!important;order:1!important;flex:0 0 auto!important}
  header .real-logo img{display:block!important;height:58px!important;max-height:58px!important;width:auto!important;max-width:165px!important;visibility:visible!important;opacity:1!important}
  header .mobile-menu{display:flex!important;order:3!important;flex:0 0 44px!important;margin:0!important}
  header>.shell.nav>.cta{display:none!important}
  header nav#mobileHeaderMenu{order:4!important}
}

/* Hamburger open-state hard override */
@media(max-width:900px){
 header.mobile-nav-open{overflow:visible!important}
 header.mobile-nav-open nav#mobileHeaderMenu{
  display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  position:absolute!important;top:74px!important;right:10px!important;left:10px!important;z-index:2147483640!important;
 }
 header .mobile-menu{position:relative!important;z-index:2147483641!important;pointer-events:auto!important}
}

/* Mobile gates cards readability */
@media(max-width:900px){
  #gates .gates-grid,#gates .grid,.gates-grid{
    gap:12px!important;
  }
  #gates article,#gates .gate-card,.gate-card{
    min-height:245px!important;
    height:auto!important;
    padding:20px 16px 18px!important;
    overflow:hidden!important;
  }
  #gates article h3,#gates .gate-card h3,.gate-card h3{
    font-size:18px!important;
    line-height:1.55!important;
    margin:12px 0 8px!important;
    min-height:auto!important;
  }
  #gates article p,#gates .gate-card p,.gate-card p{
    font-size:12px!important;
    line-height:1.9!important;
    margin:0 0 12px!important;
    min-height:46px!important;
    display:block!important;
  }
  #gates article a,#gates .gate-card a,.gate-card a{
    font-size:12px!important;
    line-height:1.4!important;
    margin-top:auto!important;
  }
}
@media(max-width:430px){
  #gates .gates-grid,#gates .grid,.gates-grid{grid-template-columns:1fr!important}
  #gates article,#gates .gate-card,.gate-card{min-height:220px!important}
}

/* Mobile popular courses: fixed 2-column grid, no horizontal slider */
@media(max-width:900px){
 #popular-courses{overflow:hidden!important}
 #popular-courses .shell{width:100%!important;padding:0 12px!important;overflow:visible!important}
 #popular-courses .popular-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;max-width:100%!important;
  overflow:visible!important;overflow-x:visible!important;
  scroll-snap-type:none!important;scroll-behavior:auto!important;
  padding:0!important;margin:18px 0 0!important;transform:none!important;
 }
 #popular-courses .popular-card{
  width:auto!important;min-width:0!important;max-width:none!important;
  min-height:245px!important;height:auto!important;margin:0!important;
  padding:16px 13px!important;scroll-snap-align:none!important;
  transform:none!important;border-radius:20px!important;
 }
 #popular-courses .popular-top{margin-bottom:14px!important}
 #popular-courses .popular-icon{width:48px!important;height:48px!important}
 #popular-courses .popular-card h3{font-size:16px!important;line-height:1.55!important;margin:12px 0!important}
 #popular-courses .popular-tag{font-size:10px!important}
 #popular-courses .popular-card p,#popular-courses .popular-card>a{font-size:11px!important}
 #popular-courses .popular-head{display:block!important}
 #popular-courses .popular-all{margin-top:10px!important}
}
@media(max-width:350px){
 #popular-courses .popular-grid{gap:7px!important}
 #popular-courses .popular-card{padding:14px 10px!important}
 #popular-courses .popular-card h3{font-size:14px!important}
}

/* Mobile team: two photos per row, no carousel */
@media(max-width:900px){
 #team{overflow:hidden!important}
 #team .shell{width:100%!important;padding:0 12px!important}
 #team .team-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;overflow:visible!important;overflow-x:visible!important;
  scroll-snap-type:none!important;padding:0!important;transform:none!important;
 }
 #team .team-card,#team .team-grid>article{
  width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;
  scroll-snap-align:none!important;transform:none!important;border-radius:18px!important;overflow:hidden!important;
 }
 #team .team-card img,#team .team-grid>article img{
  width:100%!important;height:210px!important;object-fit:cover!important;object-position:center top!important;display:block!important;
 }
 #team .team-card h3,#team .team-grid>article h3{font-size:14px!important;line-height:1.5!important}
 #team .team-card p,#team .team-grid>article p{font-size:10px!important;line-height:1.6!important}
}
@media(max-width:380px){
 #team .team-grid{gap:7px!important}
 #team .team-card img,#team .team-grid>article img{height:185px!important}
}

/* Gates mobile final: two-column cards with clean vertical rhythm */
@media (min-width:381px) and (max-width:900px){
 #gates .gates-grid,#gates .grid,.gates-grid{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:12px!important;overflow:visible!important;width:100%!important;
 }
}
@media(max-width:900px){
 #gates article,#gates .gate-card,.gate-card{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   min-height:285px!important;height:auto!important;padding:18px 15px 16px!important;
 }
 #gates .gate-card .gate-icon,#gates .gate-card .icon{
   flex:0 0 auto!important;margin-bottom:14px!important;
 }
 #gates .gate-card h3{
   flex:0 0 auto!important;font-size:18px!important;line-height:1.45!important;
   margin:0 0 10px!important;min-height:52px!important;
 }
 #gates .gate-card p{
   flex:1 1 auto!important;font-size:12px!important;line-height:1.75!important;
   margin:0 0 14px!important;min-height:0!important;max-height:none!important;
   overflow:visible!important;display:block!important;
 }
 #gates .gate-card>a{
   position:static!important;inset:auto!important;transform:none!important;
   flex:0 0 auto!important;margin-top:auto!important;padding-top:8px!important;
   font-size:12px!important;line-height:1.4!important;display:inline-flex!important;
   align-items:center!important;gap:5px!important;
 }
}
@media(max-width:380px){
 #gates .gates-grid,#gates .grid,.gates-grid{grid-template-columns:1fr!important}
 #gates article,#gates .gate-card,.gate-card{min-height:245px!important}
}

/* Mobile course discovery: fixed 2-column grid, no horizontal carousel */
@media(max-width:900px){
 #courses{overflow:hidden!important}
 #courses .shell{width:100%!important;padding-left:12px!important;padding-right:12px!important}
 #courses .course-grid{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:10px!important;
   width:100%!important;max-width:100%!important;
   overflow:visible!important;overflow-x:visible!important;
   scroll-snap-type:none!important;scroll-behavior:auto!important;
   padding:0!important;margin-top:16px!important;transform:none!important;
 }
 #courses .course-card{
   width:auto!important;min-width:0!important;max-width:none!important;
   min-height:245px!important;height:auto!important;margin:0!important;
   padding:15px 12px!important;scroll-snap-align:none!important;transform:none!important;
   border-radius:18px!important;overflow:hidden!important;
 }
 #courses .course-card h3{font-size:15px!important;line-height:1.55!important;margin:10px 0!important}
 #courses .course-card p,#courses .course-card span,#courses .course-card a{font-size:10px!important;line-height:1.6!important}
 #courses .course-card svg{max-width:19px!important;max-height:19px!important}
}
@media(max-width:350px){
 #courses .course-grid{gap:7px!important}
 #courses .course-card{padding:13px 9px!important}
 #courses .course-card h3{font-size:14px!important}
}
