/* StudyBFA Academic Course Layout — November 2026 (clean version) */
body[data-matiere] .sb-course-shell{
  box-sizing:border-box;isolation:isolate;position:relative;direction:inherit;
  width:100%;max-width:100%;margin:8px 0 22px!important;
  padding:29px clamp(18px,3.4vw,39px) 27px!important;
  background:linear-gradient(125deg,#1b3b59 0%,#112d47 55%,#10283e 100%)!important;
  border:1px solid #385a73!important;border-radius:16px!important;
  box-shadow:0 10px 26px -22px #061b33b0!important;color:#f5faff!important;
}
body[data-matiere] .sb-course-shell *{box-sizing:border-box}
body[data-matiere] .sb-course-heading{
  display:flex;flex-direction:column;align-items:center;gap:0;
  width:100%;max-width:100%;margin:0 auto!important;text-align:center!important;
}
body[data-matiere] .sb-course-identity{
  display:block;direction:ltr!important;text-align:center!important;
  font:750 11px/1.4 Arial,Helvetica,sans-serif!important;
  letter-spacing:.15em!important;color:#a9cce7!important;
  margin:0 0 10px!important;padding:0!important;
}
body[data-matiere] .sb-course-shell :is(.ai-hero,.intro.be-intro,.subject-intro){
  width:100%!important;max-width:100%!important;min-height:0!important;
  background:transparent!important;box-shadow:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  color:#f6faff!important;text-align:center!important;
}
body[data-matiere] .sb-course-shell :is(.ai-kicker,.kicker,.subject-kicker){
  display:none!important;
}
body[data-matiere] .sb-course-shell :is(.ai-hero,.intro.be-intro,.subject-intro) h1{
  display:block!important;max-width:100%;margin:0 auto!important;padding:0!important;
  font-family:"Times New Roman",Times,Georgia,serif!important;
  font-size:clamp(32px,4.3vw,52px)!important;font-weight:700!important;
  line-height:1.21!important;letter-spacing:-.02em!important;
  text-align:center!important;color:#f8fbff!important;text-shadow:none!important;
}
body[data-matiere="institutions-politiques-maroc"] .sb-course-shell .ai-hero h1{
  font-family:"Noto Naskh Arabic",Tahoma,"Times New Roman",serif!important;
  font-size:clamp(27px,4vw,43px)!important;line-height:1.65!important;
  letter-spacing:0!important;
}
body[data-matiere] .sb-course-shell :is(.schedule,.sb-course-prof){
  display:block;margin:7px auto 0!important;padding:0!important;
  color:#c6d9e9!important;border:0!important;background:transparent!important;
  box-shadow:none!important;font:500 12px/1.6 Arial,Helvetica,sans-serif!important;
  text-align:center!important;
}
body[data-matiere] .sb-course-controls{
  display:grid;grid-template-columns:minmax(0,1fr) max-content;
  align-items:end;gap:16px;direction:inherit;
  width:100%;max-width:100%;padding:21px 0 0!important;margin:24px 0 0!important;
  border:0!important;border-top:1px solid #a8c5dd38!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body[data-matiere] .sb-course-controls--video-only{
  display:flex;align-items:center;justify-content:center;
}
body[data-matiere] .sb-course-shell .sb-chapter-picker{
  position:relative!important;display:flex!important;flex-direction:column!important;
  align-items:stretch!important;gap:7px!important;min-width:0!important;
  width:100%!important;max-width:100%!important;
  margin:0!important;padding:0!important;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  color:#f8fbff!important;direction:inherit!important;
}
body[data-matiere] .sb-course-shell .sb-chapter-picker label{
  display:block!important;margin:0!important;padding:0 1px!important;
  font:700 12px/1.5 Arial,Helvetica,sans-serif!important;
  letter-spacing:.01em!important;color:#cfdfeb!important;
  text-align:start!important;direction:inherit!important;
}
body[data-matiere] .sb-course-select-wrap{
  position:relative;width:100%;min-width:0;
}
body[data-matiere] .sb-course-select-wrap::after{
  content:"";position:absolute;right:20px;top:50%;pointer-events:none;
  width:8px;height:8px;border-right:2px solid #a7c5dd;border-bottom:2px solid #a7c5dd;
  transform:translateY(-70%) rotate(45deg);
}
body[data-matiere="institutions-politiques-maroc"] .sb-course-select-wrap::after{
  left:20px;right:auto;
}
body[data-matiere] .sb-course-shell .sb-chapter-picker select{
  box-sizing:border-box;display:block!important;width:100%!important;max-width:100%!important;
  height:51px!important;min-height:51px!important;margin:0!important;
  padding:10px 43px 10px 16px!important;appearance:none!important;-webkit-appearance:none!important;
  background:#0c263e!important;border:1px solid #5c7e98!important;
  border-radius:10px!important;box-shadow:none!important;
  font-family:inherit!important;font-size:clamp(13px,1.3vw,15px)!important;
  font-weight:500!important;line-height:1.3!important;color:#f5f9fc!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  cursor:pointer!important;direction:inherit!important;
  transition:background-color .16s,border-color .16s;
}
body[data-matiere] .sb-course-shell .sb-chapter-picker select:hover{
  background:#123451!important;border-color:#a1c4dd!important;
}
body[data-matiere] .sb-course-shell .sb-chapter-picker select:focus-visible{
  outline:2px solid #83c5f5!important;outline-offset:2px!important;
  box-shadow:none!important;border-color:#a6d2f0!important;
}
body[data-matiere="institutions-politiques-maroc"] .sb-course-shell .sb-chapter-picker select{
  direction:rtl!important;text-align:right!important;padding:10px 16px 10px 43px!important;
}
body[data-matiere] .sb-course-shell .sb-video-inline{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  justify-self:end!important;align-self:end!important;gap:9px!important;
  min-height:51px!important;max-width:100%;margin:0!important;padding:11px 16px!important;
  border:1px solid #6d95b1!important;border-radius:10px!important;
  background:#244761!important;color:#f2f9ff!important;
  font-family:inherit!important;font-size:13px!important;font-weight:700!important;
  text-decoration:none!important;white-space:nowrap!important;
  box-shadow:none!important;transition:background .15s,border-color .15s;
  cursor:pointer!important;
}
body[data-matiere] .sb-course-shell .sb-video-inline:hover{
  transform:none!important;background:#305878!important;border-color:#a8cee8!important;
  color:#fff!important;
}
body[data-matiere] .sb-course-shell .sb-video-inline:focus-visible{
  outline:2px solid #9bd2f7!important;outline-offset:3px!important;
}
body[data-matiere] .sb-course-shell .sb-video-icon{
  width:22px!important;height:22px!important;color:#cce6f9!important;
}
body[data-matiere] .sb-course-shell .sb-video-availability{
  border-color:#8eacc0!important;color:#d1e1ec!important;font-weight:500!important;
}
body[data-matiere] .sb-course-shell .sb-video-inline::after{display:none!important}
body[data-matiere] .sb-course-shell .sb-course-identity img,
body[data-matiere] .sb-course-shell .sb-course-school{display:none!important}
@media(max-width:720px){
  body[data-matiere] .sb-course-shell{padding:22px 17px 19px!important;margin-top:4px!important}
  body[data-matiere] .sb-course-controls{
    grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
    margin-top:16px!important;padding-top:17px!important;
  }
  body[data-matiere] .sb-course-shell .sb-video-inline{
    min-height:44px!important;justify-self:center!important;padding:9px 15px!important;
  }
  body[data-matiere] .sb-course-shell .sb-chapter-picker select{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){
  body[data-matiere] .sb-course-shell .sb-video-inline{transition:none!important}
}