/* EduNizam Phase 26 — final homepage desktop/mobile consistency layer.
   Presentation only: preserve all existing links, copy, controls and behavior. */
html body.gold-home.page-home .public-hero.premium-public-hero .hero-visual{
  min-width:0!important;
  max-width:100%!important;
}
html body.gold-home.page-home .public-hero.premium-public-hero .hero-image-wrap{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
}
html body.gold-home.page-home .public-hero.premium-public-hero .hero-image-wrap img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
html body.gold-home.page-home .public-hero.premium-public-hero .quick-access-card{
  box-sizing:border-box!important;
  min-width:0!important;
}
html body.gold-home.page-home .public-hero.premium-public-hero .quick-actions :is(a,button){
  box-sizing:border-box!important;
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
@media (min-width:721px) and (max-width:1000px){
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-visual{
    display:grid!important;
    grid-template-columns:minmax(0,1.12fr) minmax(230px,.88fr)!important;
    align-items:stretch!important;
    gap:14px!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-image-wrap{
    height:clamp(300px,42vw,420px)!important;
    min-height:300px!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .quick-access-card{
    position:relative!important;
    inset:auto!important;
    align-self:center!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-role-badge{
    position:static!important;
    grid-column:1/-1!important;
    justify-self:end!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
  }
}
@media (max-width:720px){
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-visual{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:11px!important;
    width:100%!important;
    min-width:0!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-image-wrap{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:4/3!important;
    border-radius:19px!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .portrait-caption{
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    max-width:calc(100% - 24px)!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .quick-access-card{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:14px!important;
    border-radius:17px!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-role-badge{
    position:static!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:7px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:9px!important;
    border:1px solid rgba(164,224,255,.42)!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,rgba(14,69,130,.92),rgba(3,24,62,.96))!important;
    box-shadow:0 12px 28px rgba(0,8,35,.24),inset 0 1px 0 rgba(255,255,255,.16)!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-role-badge span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:31px!important;
    padding:6px 8px!important;
    border:1px solid rgba(164,224,255,.22)!important;
    border-radius:9px!important;
    background:rgba(83,151,210,.16)!important;
    color:#eaf7ff!important;
    -webkit-text-fill-color:#eaf7ff!important;
    font-size:10px!important;
    letter-spacing:.07em!important;
    text-align:center!important;
  }
}
@media (max-width:430px){
  /* Align the complete hero visual to the hero's inner content width. */
  html body.gold-home.page-home .public-hero.premium-public-hero .hero-visual{
    width:calc(100% + 32px)!important;
    max-width:none!important;
    margin-left:-16px!important;
  }
}
@media (max-width:380px){
  html body.gold-home.page-home .public-hero.premium-public-hero .quick-access-card{
    padding:12px!important;
  }
  html body.gold-home.page-home .public-hero.premium-public-hero .quick-actions :is(a,button){
    min-height:43px!important;
    padding:9px 10px!important;
    font-size:12px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body.gold-home.page-home .public-hero.premium-public-hero :is(.hero-image-wrap,.quick-access-card,.hero-role-badge){
    transition:none!important;
    animation:none!important;
  }
}
