/* Responsive homepage artwork: supplied panoramic banner on desktop, clean mobile composition. */
html body .hx .hx-hero.hx-hero-focus{
  position:relative!important;
  display:block!important;
  isolation:isolate!important;
  width:min(1440px,calc(100% - 32px))!important;
  min-height:0!important;
  margin:18px auto 0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(20,98,111,.14)!important;
  border-radius:26px!important;
  aspect-ratio:2048 / 1081!important;
  background:#0b6674!important;
  box-shadow:0 18px 46px rgba(15,67,80,.14)!important;
}
html body .hx .hx-hero.hx-hero-focus .hx-art-a{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  background:#0b6674!important;
}
html body .hx .hx-hero.hx-hero-focus .hx-art-a img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:none!important;
  transform:none!important;
}
html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  border:0!important;
}
@media(max-width:680px){
  html body .hx .hx-hero.hx-hero-focus{
    display:flex!important;
    flex-direction:column!important;
    width:calc(100% - 24px)!important;
    min-height:0!important;
    margin:12px auto 0!important;
    padding:0!important;
    aspect-ratio:auto!important;
    border-radius:22px!important;
    background:linear-gradient(160deg,#f8fcfb,#eaf6f2)!important;
    box-shadow:0 12px 32px rgba(17,55,70,.10)!important;
  }
  html body .hx .hx-hero.hx-hero-focus .hx-art-a{
    position:relative!important;
    inset:auto!important;
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:4 / 3!important;
    border-radius:0!important;
    background:#d9efec!important;
  }
  html body .hx .hx-hero.hx-hero-focus .hx-art-a img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy{
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:20px 19px 24px!important;
    overflow:visible!important;
    clip:auto!important;
    clip-path:none!important;
    white-space:normal!important;
    text-align:center!important;
  }
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-eyebrow{
    display:inline-flex!important;
    margin:0 0 9px!important;
    padding:5px 10px!important;
    border:1px solid #cfe7df!important;
    border-radius:999px!important;
    background:#eaf7f1!important;
    color:#178273!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  html body .hx .hx-hero.hx-hero-focus h1{
    margin:0 0 8px!important;
    color:#155b6c!important;
    font-family:var(--mj-font,'Almarai',Tahoma,sans-serif)!important;
    font-size:clamp(23px,6.5vw,29px)!important;
    font-weight:800!important;
    line-height:1.5!important;
    text-align:center!important;
    text-wrap:balance!important;
  }
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy p{
    margin:0!important;
    color:#58747b!important;
    font-size:13px!important;
    line-height:1.9!important;
    text-align:center!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body .hx .hx-hero.hx-hero-focus{scroll-behavior:auto!important}
}


/* Main hero: curated digital teaching library, with live readable copy. */
@media(min-width:681px){
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy{
    position:absolute!important;top:50%!important;right:4.5%!important;left:auto!important;z-index:2!important;
    width:min(42%,560px)!important;height:auto!important;margin:0!important;padding:clamp(20px,3vw,40px)!important;
    overflow:visible!important;clip:auto!important;clip-path:none!important;white-space:normal!important;
    transform:translateY(-50%)!important;text-align:right!important;border:1px solid rgba(255,255,255,.86)!important;
    border-radius:26px!important;background:rgba(255,255,255,.78)!important;
    box-shadow:0 16px 44px rgba(18,55,52,.10)!important;backdrop-filter:blur(12px)!important;
  }
  html body .hx .hx-hero.hx-hero-focus h1{
    margin:0 0 12px!important;color:#124f4c!important;font-family:var(--mj-font,'Almarai',Tahoma,sans-serif)!important;
    font-size:clamp(28px,3.1vw,46px)!important;font-weight:800!important;line-height:1.45!important;text-align:right!important;text-wrap:balance!important;
  }
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy p{
    margin:0!important;color:#4f6d68!important;font-size:clamp(14px,1.25vw,17px)!important;line-height:1.9!important;text-align:right!important;
  }
}

/* الواجهة: صورة الفصل الدراسي مع دمج العنوان داخلها عبر تدرّج لوني (لا بطاقة تغطي الوجوه) */
@media(min-width:681px){
  html body .hx .hx-hero.hx-hero-focus{aspect-ratio:1891 / 800!important;background:#0f4a57!important}
  html body .hx .hx-hero.hx-hero-focus .hx-art-a img{object-position:center 30%!important}
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy{
    top:auto!important;bottom:0!important;right:0!important;left:0!important;width:100%!important;margin:0!important;
    transform:none!important;padding:clamp(60px,7vw,100px) 6% clamp(18px,2.4vw,32px)!important;text-align:center!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;
    background:linear-gradient(0deg,rgba(8,50,62,.96) 0%,rgba(10,58,70,.86) 42%,rgba(12,70,84,.42) 74%,rgba(14,78,92,0) 100%)!important}
  html body .hx .hx-hero.hx-hero-focus h1{color:#fff!important;text-align:center!important;width:100%!important;max-width:none!important;font-size:clamp(26px,2.8vw,40px)!important;line-height:1.4!important;margin:0 0 6px!important;text-shadow:0 2px 14px rgba(0,30,40,.45)!important}
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy p{color:rgba(255,255,255,.93)!important;text-align:center!important;text-shadow:0 1px 10px rgba(0,30,40,.5)!important;max-width:820px;margin:0 auto!important}
}
@media(max-width:680px){
  html body .hx .hx-hero.hx-hero-focus{height:auto!important;min-height:0!important}
  html body .hx .hx-hero.hx-hero-focus .hx-art-a{aspect-ratio:1320 / 832!important}
  html body .hx .hx-hero.hx-hero-focus .hx-art-a{order:0!important}
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy{order:1!important;margin-top:-84px!important;z-index:2!important;padding:76px 19px 24px!important;
    background:linear-gradient(180deg,rgba(248,252,251,0) 0%,rgba(248,252,251,.94) 52%,#f8fcfb 100%)!important}
}


/* Mobile polish: remove account badges from the top menu and softly fade the hero image into the title surface. */
html body header.top .wrap .burger .bg-av,
html body header.top .wrap .burger .bg-pt{
  display:none!important;
}
html body header.top .wrap .burger.in{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  padding:0!important;
  gap:0!important;
}
@media(max-width:680px){
  html body .hx .hx-hero.hx-hero-focus .hx-mobile-copy{
    margin-top:-120px!important;
    padding:108px 19px 24px!important;
    background:linear-gradient(
      180deg,
      rgba(248,252,251,0) 0%,
      rgba(248,252,251,.30) 24%,
      rgba(248,252,251,.72) 48%,
      rgba(248,252,251,.96) 68%,
      #f8fcfb 100%
    )!important;
  }
}

/* Higher-specificity guard overrides account badge visibility rules. */
html body header.top .wrap .burger.in .bg-av:not([hidden]),
html body header.top .wrap .burger.in .bg-pt:not([hidden]){
  display:none!important;
}
