/* V57: usable area + Arabic RTL academy cards on HOME ONLY.
   Preserve the 3-column player hero, store cards, other modules and site settings. */
body.portal-home .dual-academy-home .dual-academy-cards{
 gap:clamp(16px,1.45vw,25px);
 align-items:stretch;
}
body.portal-home .dual-academy-home .dual-academy-panel{
 box-sizing:border-box;min-width:0;min-height:355px;overflow:hidden;
 display:grid!important;
 grid-template-columns:minmax(0,1fr) clamp(125px,13vw,185px);
 grid-template-rows:auto auto minmax(82px,1fr) auto;
 grid-template-areas:"eyebrow art" "title art" "desc art" "links links";
 column-gap:clamp(12px,1.3vw,24px);row-gap:10px;
 padding:clamp(22px,2vw,34px)!important;
 text-align:start;
 align-content:start;
}
body.portal-home .dual-academy-home .dual-academy-eyebrow{
 grid-area:eyebrow;min-width:0;align-self:end;
 font-size:clamp(11px,.9vw,13px);
 letter-spacing:0;
}
body.portal-home .dual-academy-home .dual-academy-panel h3{
 grid-area:title;min-width:0;max-width:none!important;width:auto;
 font-size:clamp(25px,2.3vw,36px);line-height:1.23;
 overflow-wrap:normal;word-break:normal;
 margin:3px 0!important;align-self:center;
}
body.portal-home .dual-academy-home .dual-academy-panel p{
 grid-area:desc;min-width:0;max-width:none!important;
 min-height:0!important;margin:0!important;
 font-size:clamp(13px,1.02vw,16px);
 line-height:1.8;align-self:start;
}
body.portal-home .dual-academy-home .dual-academy-panel-art{
 grid-area:art;
 position:relative!important;inset:auto!important;
 float:none!important;justify-self:center;align-self:center;
 width:clamp(125px,13vw,185px)!important;
 height:clamp(125px,13vw,185px)!important;
 margin:0!important;
 z-index:0;box-sizing:border-box;
}
body.portal-home .dual-academy-home .dual-academy-panel-art.sudoku-art{
 box-shadow:0 10px 23px #234d7a22;
 transform:rotate(-5deg);
}
body.portal-home .dual-academy-home .dual-academy-panel-art.rubik-3d-art{
 display:grid!important;grid-template-columns:none!important;
 padding:0!important;gap:0!important;
 transform:none!important;
 background:none!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;
 aspect-ratio:1;
}
body.portal-home .dual-academy-home .rubik-3d-art img{
 display:block;
 width:100%;height:100%;max-width:none;
 object-fit:contain;filter:drop-shadow(6px 11px 13px #193b6525);
 transform:scale(1.14);
 transform-origin:center;
}
body.portal-home .dual-academy-home .dual-academy-links{
 grid-area:links;display:flex;align-items:center;
 justify-content:flex-start;gap:9px;
 min-width:0;margin:11px 0 0!important;
 flex-wrap:wrap;
}
body.portal-home .dual-academy-home .dual-academy-links a{
 display:inline-flex;justify-content:center;align-items:center;
 min-height:43px;padding:9px 13px;
 box-sizing:border-box;white-space:nowrap;
 font-size:clamp(11px,.86vw,13px);
}
html[dir="rtl"] body.portal-home .dual-academy-home .dual-academy-panel{
 direction:rtl;text-align:right;
}
html[dir="rtl"] body.portal-home .dual-academy-home .dual-academy-links{
 direction:rtl;justify-content:flex-start;
}
html[dir="rtl"] body.portal-home .dual-academy-home .dual-academy-panel-art{
 /* Explicit grid areas reserve a real column, preventing RTL overlap. */
 right:auto!important;left:auto!important;
}
@media (max-width:1100px){
 body.portal-home .dual-academy-home .dual-academy-panel{
  grid-template-columns:minmax(0,1fr) 132px;
  padding:22px!important;
  min-height:365px;
 }
 body.portal-home .dual-academy-home .dual-academy-panel-art{
  width:132px!important;height:132px!important;
 }
 body.portal-home .dual-academy-home .dual-academy-panel h3{font-size:clamp(22px,2.4vw,29px)}
 body.portal-home .dual-academy-home .dual-academy-panel p{font-size:13px}
}
@media(max-width:800px){
 body.portal-home .dual-academy-home .dual-academy-cards{
  grid-template-columns:1fr;
 }
 body.portal-home .dual-academy-home .dual-academy-panel{
  min-height:0!important;
  grid-template-columns:minmax(0,1fr) 135px;
  padding:22px!important;
 }
 body.portal-home .dual-academy-home .dual-academy-panel-art{
  width:130px!important;height:130px!important
 }
}
@media(max-width:480px){
 body.portal-home .dual-academy-home .dual-academy-panel{
  grid-template-columns:minmax(0,1fr) 85px;
  grid-template-rows:auto auto auto auto;
  grid-template-areas:"eyebrow art" "title art" "desc desc" "links links";
  column-gap:11px;row-gap:9px;
  padding:18px!important;
 }
 body.portal-home .dual-academy-home .dual-academy-panel-art{
  width:84px!important;height:84px!important;
 }
 body.portal-home .dual-academy-home .dual-academy-panel h3{font-size:clamp(21px,5.6vw,28px);line-height:1.3}
 body.portal-home .dual-academy-home .dual-academy-panel p{font-size:13px}
 body.portal-home .dual-academy-home .dual-academy-links a{flex:1 1 auto;white-space:normal;text-align:center}
}
