/* Featured Courses only: no other grids, Course Manager, hero or nav touched. */
body[data-home-experience] #courses:has(.az-featured-rail) { min-width:0; }
body[data-home-experience] #courses .az-featured-rail {
  display:flex!important; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden;
  gap:clamp(12px,1.6vw,22px); padding:9px max(16px,calc((100% - 1150px)/2)) 20px;
  margin-inline:0; scroll-snap-type:x mandatory; scroll-padding-inline:20px;
  scrollbar-width:thin; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y; align-items:stretch;
}
body[data-home-experience] #courses .az-featured-rail:focus-visible{outline:2px solid var(--primary,#e8c77a);outline-offset:2px}
body[data-home-experience] #courses .az-featured-rail>.public-course-card{
  flex:0 0 clamp(258px,28vw,350px); width:clamp(258px,28vw,350px); max-width:none;
  scroll-snap-align:center; scroll-snap-stop:normal; border-radius:20px;
  transition:transform .25s ease,border-color .25s ease;
}
body[data-home-experience] #courses .az-featured-rail .public-card-media{
  height:auto!important; min-height:0!important; max-height:none!important;
  aspect-ratio:auto!important; display:block; overflow:hidden;
}
body[data-home-experience] #courses .az-featured-rail .public-card-image-link{
  position:relative!important; inset:auto!important; display:block; width:100%; height:auto;
}
body[data-home-experience] #courses .az-featured-rail .public-card-image-link img{
  display:block; width:100%; height:auto!important; max-height:none!important;
  aspect-ratio:auto!important; object-fit:contain!important;
}
body[data-home-experience] #courses .az-featured-rail .public-card-body{padding:15px 16px 18px!important;gap:9px}
body[data-home-experience] #courses .az-featured-rail .public-card-body h3{
  font-family:Manrope,Inter,system-ui,sans-serif; font-weight:750!important;
  font-size:clamp(17px,1.5vw,21px);line-height:1.3;letter-spacing:-.025em;
}
body[data-home-experience] #courses .az-featured-rail .public-card-price strong{font-size:clamp(19px,1.6vw,23px)}
body[data-home-experience] #courses .az-featured-rail .public-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
body[data-home-experience] #courses .az-featured-rail .public-card-actions .btn{
  min-width:0;min-height:44px;padding:8px 5px;font-size:clamp(11px,1vw,13px);line-height:1.2;
  display:flex;align-items:center;justify-content:center;gap:4px;
}
body[data-home-experience] #courses .az-featured-rail .public-card-actions .buyer-icon{width:16px;height:16px;min-width:16px}
@media(min-width:768px){
 body[data-home-experience] #courses .az-featured-rail:has(>.public-course-card:only-child){justify-content:flex-start}
}
@media(max-width:767px){
 body[data-home-experience] #courses:has(.az-featured-rail) {padding-top:10px;padding-bottom:15px;margin-block:25px}
 body[data-home-experience] #courses .section-head{margin-bottom:13px}
 body[data-home-experience] #courses .section-head h2{font-size:clamp(23px,6.4vw,31px)}
 body[data-home-experience] #courses .az-featured-rail{
   --az-featured-width:min(84vw,365px);
   gap:14px; padding:8px calc((100% - var(--az-featured-width))/2) 19px;
   scroll-padding-inline:calc((100% - var(--az-featured-width))/2);
 }
 body[data-home-experience] #courses .az-featured-rail>.public-course-card{
   flex:0 0 var(--az-featured-width);width:var(--az-featured-width);min-width:0;max-width:var(--az-featured-width);
 }
 body[data-home-experience] #courses .az-featured-rail .public-card-body{padding:12px 13px 14px!important;gap:7px}
 body[data-home-experience] #courses .az-featured-rail .public-card-body h3{font-size:clamp(16px,4.25vw,19px)}
 body[data-home-experience] #courses .az-featured-rail .public-card-desc{font-size:12px;line-height:1.35}
 body[data-home-experience] #courses .az-featured-rail .public-card-price strong{font-size:clamp(18px,5vw,22px)}
 body[data-home-experience] #courses .az-featured-rail .public-card-actions .btn{font-size:clamp(11px,3.1vw,13px);min-height:44px}
}
@media(prefers-reduced-motion:reduce){body[data-home-experience] #courses .az-featured-rail{scroll-behavior:auto!important}body[data-home-experience] #courses .az-featured-rail>.public-course-card{transition:none!important}}

/* Desktop remains left-aligned even for a single featured course. */
@media(min-width:768px){
 body[data-home-experience] #courses .az-featured-rail{justify-content:flex-start!important;padding-left:clamp(12px,2vw,28px)!important;padding-right:clamp(12px,2vw,28px)!important}
 body[data-home-experience] #courses .az-featured-rail>.public-course-card{scroll-snap-align:start}
}
