#qayem-course-feature{color-scheme:dark;--bg:#420b10;--surface:#591018;--fg:#fff8f5;--muted:#f3d5d5;--accent:#ffb3ad;--button:#ba2030;--line:#ffffff38;--flare:#e5223c66;--hero:linear-gradient(145deg,#6b1018,#2f080d)}
html[data-theme=white] #qayem-course-feature{color-scheme:light;--bg:#fff;--surface:#fff;--fg:#221317;--muted:#61464e;--accent:#952233;--button:#a91f32;--line:#1e101826;--flare:#aa20301c;--hero:linear-gradient(145deg,#fff,#faf5f6)}
html[data-theme=mixed] #qayem-course-feature{color-scheme:light;--bg:#fff8f6;--surface:#fff;--fg:#281418;--muted:#68414a;--accent:#a82032;--button:#a91f32;--line:#75192942;--flare:#a81d313e;--hero:linear-gradient(145deg,#720f1c,#34080d)}
#qayem-course-feature{margin-block-start:3rem;color:var(--fg);line-height:1.65}
#qayem-course-feature .hero{background:var(--hero);color:var(--fg)}
html[data-theme=mixed] #qayem-course-feature .hero{--fg:#fff8f5;--muted:#f3d5d5;--accent:#ffb3ad;--surface:#581019;--line:#ffffff50}
#qayem-course-feature [hidden]{display:none!important}
#qayem-course-feature .pill{border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);padding:.6rem 1rem}
#qayem-course-feature .pill.primary{background:var(--button);color:#fff}
#qayem-course-feature .qci-motion.qci-visible{animation:qci-in .55s both}
#qayem-course-feature .qci-motion:nth-child(2){animation-delay:.09s}
#qayem-course-feature .qci-motion:nth-child(3){animation-delay:.18s}
@keyframes qci-in{from{opacity:0;translate:0 13px}to{opacity:1;translate:0 0}}
#qci-settings{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
#qci-settings select{max-width:8rem;font:inherit;border:1px solid #ffb3ad55;border-radius:99px;padding:.28rem .5rem;background:#350c12;color:#fff6f3}
html[data-theme=white] :is(body,.site-header,.courses-section,.store-section,.contact-section){background:#fff;color:#29171a}
html[data-theme=mixed] :is(body,.courses-section,.store-section){background:#fff7f3;color:#29171a}
html:is([data-theme=white],[data-theme=mixed]) :is(.work-section,.about-section,.faq-section,.courses-section,.site-footer,.store-section) :is(.section-description,.about-text,.course-copy,.gallery-hint,.faq-list,.plugin-plans-status,.plugin-plan-how){color:#4b2a31}
html:is([data-theme=white],[data-theme=mixed]) :is(.work-section,.about-section,.faq-section,.courses-section,.store-section) :is(h2,.dim){color:#43171d}
html[data-theme=white] .site-header :is(.brand-word,.brand-caption,.main-nav a,.student-link){color:#471b23}
html[data-theme=white] .site-header .menu-toggle span{background:#471b23}
html[data-theme=white] .contact-section :is(h2,.contact-circle){color:#471b23}
html:is([data-theme=white],[data-theme=mixed]) .faq-list details{background:#fff2ef;color:#471b23}
@media(max-width:800px){#qci-settings select{font-size:.74rem}}
@media(prefers-reduced-motion:reduce){#qayem-course-feature .qci-motion{animation:none}}
#qayem-course-feature :is(.hero,.panel){padding:clamp(1.2rem,4vw,3.25rem);border:1px solid var(--line);border-radius:1.5rem;margin-block:1rem}
#qayem-course-feature .panel,#qayem-course-feature .stats>div{background:var(--surface)}
#qayem-course-feature :is(h2,h3,p){margin:0 0 .65rem;color:inherit}
#qayem-course-feature .hero h2{font-size:clamp(2rem,6vw,4rem);line-height:1.2}
#qayem-course-feature p{max-width:62ch;color:var(--muted)}
#qayem-course-feature :is(.eyebrow,.stats strong){color:var(--accent)}
#qayem-course-feature .eyebrow{font-size:.78rem;letter-spacing:.1em;text-align:left}
#qayem-course-feature[dir=rtl] .eyebrow{text-align:right}
#qayem-course-feature .actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.3rem}
#qayem-course-feature .pill{display:inline-block;text-decoration:none;font-weight:750;transition:transform .2s,box-shadow .2s}
#qayem-course-feature .pill:active{transform:scale(.96);box-shadow:0 0 25px var(--flare)}
#qayem-course-feature :is(.stats,.projects,.coach){display:grid;gap:.75rem}
#qayem-course-feature .stats{grid-template-columns:repeat(4,minmax(0,1fr));text-align:center}
#qayem-course-feature .stats strong{display:block;font-size:clamp(1.6rem,5vw,3.3rem);font-variant-numeric:tabular-nums}
#qayem-course-feature .projects{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
#qayem-course-feature :is(.stats>div,.projects>* ){margin:0;border:1px solid var(--line);border-radius:1rem;padding:1rem}
#qayem-course-feature .coach{grid-template-columns:1fr minmax(0,310px);align-items:center;gap:1.5rem}
#qayem-course-feature .coach img{display:block;width:100%;max-height:385px;object-fit:cover;object-position:center 30%;border-radius:1rem}
#qayem-course-feature iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:1rem}
@media(max-width:650px){#qayem-course-feature .stats{grid-template-columns:repeat(2,1fr)}#qayem-course-feature .coach{grid-template-columns:1fr}}
#siteHeader .header-inner:has(#qci-settings){height:auto;flex-wrap:wrap;padding-block:.45rem}
@media(max-width:650px){#siteHeader #qci-settings{flex-basis:100%}}

/* Isolate the course layout from the Viking homepage's existing hero grid. */
#qayem-course-feature{
  box-sizing:border-box;
  display:block;
  inline-size:min(1120px,calc(100% - 32px));
  max-inline-size:1120px;
  margin-inline:auto;
  padding-inline:0;
  font-size:clamp(1rem,1.5vw,1.125rem);
  line-height:1.8;
}
#qayem-course-feature>.hero{
  display:block;
  min-height:0;
  min-block-size:0;
  padding:clamp(1.25rem,4vw,3rem);
}
#qayem-course-feature>.hero h2{
  margin:0 0 .6rem;
  font-size:clamp(1.85rem,5vw,3.4rem);
  line-height:1.25;
}
#qayem-course-feature>.panel>h2,#qayem-course-feature .coach h2{
  font-size:clamp(1.45rem,3.3vw,2.1rem);
  line-height:1.35;
}
#qayem-course-feature .eyebrow{margin-block-end:.55rem;white-space:normal}
#qayem-course-feature .stats{gap:clamp(.5rem,1.3vw,1rem)}
#qayem-course-feature .stats>div,#qayem-course-feature .projects>*{
  min-inline-size:0;
  padding:clamp(.65rem,2vw,1.15rem);
}
#qayem-course-feature .coach{grid-template-columns:minmax(0,1fr) minmax(0,310px)}
#qayem-course-feature .coach>div{min-inline-size:0}
#qayem-course-feature .coach img{max-inline-size:100%}
@media(max-width:700px){
  #qayem-course-feature{inline-size:calc(100% - 24px)}
  #qayem-course-feature .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #qayem-course-feature .coach{grid-template-columns:minmax(0,1fr)}
  #qayem-course-feature .coach img{inline-size:min(100%,340px);justify-self:center}
}
