.course-hero{--hero-image:none;padding:56px 0 58px;background-image:linear-gradient(100deg,rgba(7,27,45,.99),rgba(15,42,68,.92),rgba(15,42,68,.66)),var(--hero-image);background-position:center;background-size:cover;color:#fff}.course-hero .display{color:#fff}.course-hero .lead{color:rgba(255,255,255,.82)}.course-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);gap:42px;align-items:center}.course-hero-copy{min-width:0}.course-hero-copy .display{max-width:780px}.course-hero-copy .lead{max-width:720px}.hero-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;max-width:780px;margin-top:30px;padding-top:25px;border-top:1px solid rgba(255,255,255,.18)}.hero-fact{padding:0;background:transparent}.hero-fact strong{display:block;font-size:21px}.hero-fact span{color:rgba(255,255,255,.66);font-size:11px}.journey-glance{padding:27px;border:1px solid rgba(255,255,255,.18);border-radius:28px;background:rgba(255,255,255,.09);box-shadow:0 22px 55px rgba(0,0,0,.16);backdrop-filter:blur(10px)}.journey-glance h2{margin:0 0 5px;color:#fff;font-family:"Playfair Display",Georgia,serif;font-size:29px}.journey-glance>p{margin:0 0 20px;color:rgba(255,255,255,.72);font-size:13px}.glance-list{display:grid;gap:9px}.glance-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(4,24,43,.34)}.glance-number{display:grid;place-items:center;width:42px;height:38px;border-radius:10px;background:var(--blue);color:#fff;font-size:22px;font-weight:900}.glance-copy strong{display:block;color:#fff;font-size:12px}.glance-copy small{display:block;margin-top:3px;color:rgba(255,255,255,.66);font-size:9px}.glance-action{color:#e4b94f;font-size:10px;font-weight:900}.journey-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}.stage{padding:22px;text-align:left}.stage-head{display:flex;align-items:center;gap:11px}.stage-number{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--sky);color:var(--blue-dark);font-weight:900}.stage h3{margin:0;color:var(--navy);font-size:19px}.stage-meta{display:block;margin-top:2px;color:var(--muted);font-size:10px}.stage p{color:var(--muted);font-size:13px}.stage ul{margin:13px 0 0;padding-left:18px;color:#506173;font-size:12px}.stage li{margin:6px 0}.stage-outcome{margin-top:14px;padding:12px;border-left:3px solid var(--blue);background:#f3f9fd;color:#3d5266;font-size:12px}.cycle-grid,.outcome-grid,.support-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:30px}.compact-card{padding:21px;text-align:left}.compact-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--navy);color:#fff;font-weight:900}.compact-card h3{margin:14px 0 6px;color:var(--navy);font-size:17px}.compact-card p{margin:0;color:var(--muted);font-size:12px}.lesson-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:26px;align-items:center}.lesson-steps{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lesson-step{padding:18px}.lesson-step b{display:block;color:var(--blue-dark);font-size:12px}.lesson-step strong{display:block;margin:5px 0;color:var(--navy)}.lesson-step span{color:var(--muted);font-size:11px}.routine-shell{display:grid;grid-template-columns:.9fr 1.1fr;overflow:hidden;margin-top:30px}.routine-controls{padding:28px;background:var(--navy);color:#fff;text-align:left}.routine-controls h3{margin:0 0 5px;font-family:"Playfair Display",Georgia,serif;font-size:28px}.routine-controls p{margin:0 0 20px;color:rgba(255,255,255,.7);font-size:12px}.control-label{display:block;margin:16px 0 8px;color:#a9e7ff;font-size:11px;font-weight:900;text-transform:uppercase}.option-row{display:flex;flex-wrap:wrap;gap:8px}.option{min-width:47px;border:1px solid rgba(255,255,255,.28);border-radius:12px;padding:9px 11px;background:transparent;color:#fff;font-weight:850;cursor:pointer}.option[aria-pressed="true"]{border-color:var(--blue);background:var(--blue)}.routine-result{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:28px;align-content:center}.routine-result div{padding:18px;border:1px solid var(--line);border-radius:16px;background:#f8fbfd;text-align:left}.routine-result span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.routine-result strong{display:block;margin-top:5px;color:var(--navy);font-size:19px}.system-note{max-width:850px;margin:24px auto 0;color:var(--muted);font-size:12px}.course-source{margin-top:18px;color:var(--muted);font-size:11px}@media(max-width:980px){.course-hero-grid{grid-template-columns:1fr}.journey-glance{max-width:760px}.course-hero{padding-top:42px}}@media(max-width:620px){.glance-item{grid-template-columns:40px minmax(0,1fr)}.glance-action{grid-column:2}.hero-facts{grid-template-columns:1fr 1fr 1fr}.journey-glance{padding:19px}.journey-glance h2{font-size:25px}}
@media(max-width:950px){.journey-grid{grid-template-columns:1fr 1fr}.cycle-grid,.outcome-grid,.support-grid{grid-template-columns:1fr 1fr}.lesson-layout,.routine-shell{grid-template-columns:1fr}.hero-facts{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.journey-grid,.cycle-grid,.outcome-grid,.support-grid,.lesson-steps,.routine-result,.hero-facts{grid-template-columns:1fr}}
.milestone-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:32px 0 20px;padding:8px;border:1px solid var(--line);border-radius:20px;background:#f5f8fa}.milestone-tab{display:flex;flex-direction:column;align-items:center;gap:2px;padding:13px 8px;border:0;border-radius:14px;background:transparent;color:var(--muted);font-weight:850;cursor:pointer}.milestone-tab strong{font-size:17px}.milestone-tab small{font-size:9px}.milestone-tab[aria-selected="true"]{background:var(--navy);color:#fff;box-shadow:0 10px 24px rgba(15,42,68,.18)}.milestone-panel{padding:28px;border:1px solid var(--line);border-radius:27px;background:linear-gradient(145deg,#fff,#f8fbfd);box-shadow:var(--shadow);text-align:left}.milestone-panel[hidden]{display:none}.milestone-summary{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:start;margin-bottom:22px}.milestone-heading{display:flex;gap:15px;align-items:start}.milestone-code{display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;border-radius:20px;background:var(--navy);color:#fff;font:800 24px "Playfair Display",Georgia,serif}.milestone-heading h3{margin:2px 0 6px;color:var(--navy);font:800 27px "Playfair Display",Georgia,serif}.milestone-heading p{margin:0;color:var(--muted);font-size:13px}.milestone-outcome{padding:17px;border:1px solid #cfe4ef;border-radius:18px;background:var(--sky)}.milestone-outcome small{display:block;margin-bottom:5px;color:var(--blue-dark);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.milestone-outcome strong{color:var(--navy);font-size:13px}.milestone-skills{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.milestone-skills div{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.milestone-skills span{display:block;margin-bottom:6px;color:var(--blue-dark);font-size:9px;font-weight:900;text-transform:uppercase}.milestone-skills strong{color:var(--navy);font-size:12px}@media(max-width:760px){.milestone-summary,.milestone-skills{grid-template-columns:1fr}.milestone-tabs{grid-template-columns:repeat(2,1fr)}.milestone-panel{padding:20px}.milestone-heading h3{font-size:23px}}

/* --------------------------------------------------------------------------
   Generic course single polish
   Keeps the existing PHP/HTML structure intact and only improves presentation.
   Journey courses (Arabic / Quran) use .course-hero and are intentionally untouched.
   -------------------------------------------------------------------------- */
body.single-course .kc-public-page{overflow:hidden;background:#fff}
body.single-course .kc-public-page>.kc-section:first-child{position:relative;padding-block:72px 78px;background:linear-gradient(180deg,#f5f9fc 0%,#fff 100%)}
body.single-course .kc-public-page>.kc-section:first-child::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(61,179,232,.35),transparent);pointer-events:none}
body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center}
body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap:has(>img){grid-template-columns:minmax(0,.88fr) minmax(360px,1.12fr);column-gap:52px}
body.single-course .kc-public-page>.kc-section:first-child .kc-center{text-align:start;align-self:center}
body.single-course .kc-public-page>.kc-section:first-child .kc-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:7px}
body.single-course .kc-public-page>.kc-section:first-child .kc-eyebrow::before{content:"";width:28px;height:2px;border-radius:999px;background:var(--blue)}
body.single-course .kc-public-page>.kc-section:first-child .kc-h2{max-width:720px;margin:8px 0 16px;font-size:clamp(38px,4.7vw,62px);line-height:1.02;text-wrap:balance}
body.single-course .kc-public-page>.kc-section:first-child .kc-lead{max-width:680px;margin:0;color:#52657a;font-size:17px;line-height:1.75}
body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap>img{width:100%;aspect-ratio:16/10;object-fit:cover;border:1px solid rgba(15,42,68,.08);border-radius:28px;box-shadow:0 24px 58px rgba(15,42,68,.14)}
body.single-course .kc-public-page>.kc-section:first-child .rich-text{grid-column:1/-1;max-width:980px;width:100%;margin:4px auto 0;padding:34px 38px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 36px rgba(15,42,68,.06);font-size:15px;line-height:1.85}
body.single-course .kc-public-page>.kc-section:first-child .rich-text h2{margin-top:32px;font-size:30px;line-height:1.18}
body.single-course .kc-public-page>.kc-section:first-child .rich-text h3{margin-top:26px;font-size:22px;line-height:1.25}
body.single-course .kc-public-page>.kc-section:first-child .rich-text p:last-child{margin-bottom:0}

/* Make the general evidence sections feel like one coherent course page. */
body.single-course .kc-public-page>#teachers,
body.single-course .kc-public-page>#testimonials,
body.single-course #course-videos{border-top:1px solid rgba(15,42,68,.055)}
body.single-course .kc-public-page>#testimonials{background:#fbfdff}
body.single-course #course-videos{padding-block:72px;background:linear-gradient(180deg,#fff 0%,#f7fafc 100%)}
body.single-course #course-videos .container{width:min(1180px,92%);margin-inline:auto}
body.single-course #course-videos .section-title{margin:8px 0 14px;color:var(--navy);font-family:"Playfair Display",Georgia,serif;font-size:clamp(30px,3.6vw,44px);line-height:1.08}
body.single-course #course-videos .kc-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:34px;text-align:start}
body.single-course #course-videos .kc-evidence-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 14px 34px rgba(15,42,68,.07);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body.single-course #course-videos .kc-evidence-card:hover{transform:translateY(-3px);border-color:#cbdde9;box-shadow:0 20px 42px rgba(15,42,68,.11)}
body.single-course #course-videos .kc-evidence-video{position:relative;aspect-ratio:16/9;overflow:hidden;background:#071a2b}
body.single-course #course-videos .kc-evidence-video video{display:block;width:100%;height:100%;object-fit:contain;background:#071a2b}
body.single-course #course-videos .kc-evidence-body{padding:21px 22px 23px}
body.single-course #course-videos .kc-evidence-meta{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--sky);color:var(--navy);font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
body.single-course #course-videos .kc-evidence-card h3{margin:12px 0 7px;color:var(--navy);font-size:20px;line-height:1.25}
body.single-course #course-videos .kc-evidence-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}

/* Consistent card rhythm across general course proof sections. */
body.single-course .kc-public-page .kc-teachers,
body.single-course .kc-public-page .kc-reviews,
body.single-course .kc-public-page .program-grid{gap:20px;margin-top:34px}
body.single-course .kc-public-page .kc-teacher,
body.single-course .kc-public-page .kc-review,
body.single-course .kc-public-page .program{border-radius:22px;box-shadow:0 12px 30px rgba(15,42,68,.055)}
body.single-course .kc-public-page .program{height:100%;padding:24px}
body.single-course .kc-public-page .program h3{font-size:23px;line-height:1.2}
body.single-course .kc-public-page .program p{font-size:14px;line-height:1.7}

@media(max-width:980px){
  body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap:has(>img){grid-template-columns:1fr;gap:28px}
  body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap>img{max-height:520px}
  body.single-course #course-videos .kc-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  body.single-course .kc-public-page>.kc-section:first-child{padding-block:48px 56px}
  body.single-course .kc-public-page>.kc-section:first-child .kc-h2{font-size:clamp(34px,11vw,46px)}
  body.single-course .kc-public-page>.kc-section:first-child .kc-lead{font-size:16px}
  body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap>img{border-radius:20px}
  body.single-course .kc-public-page>.kc-section:first-child .rich-text{padding:24px 20px;border-radius:18px}
  body.single-course .kc-public-page>.kc-section:first-child .rich-text h2{font-size:26px}
  body.single-course #course-videos .kc-evidence-grid{grid-template-columns:1fr;gap:16px}
  body.single-course #course-videos .kc-evidence-body{padding:19px}
}
@media(prefers-reduced-motion:reduce){
  body.single-course #course-videos .kc-evidence-card{transition:none}
  body.single-course #course-videos .kc-evidence-card:hover{transform:none}
}

/* --------------------------------------------------------------------------
   Course single hero + "Learning in action" refinement
   CSS-only: no template/data changes.
   -------------------------------------------------------------------------- */
body.single-course .kc-public-page>.kc-section:first-child{
  isolation:isolate;
  overflow:hidden;
  padding-block:84px 82px;
  background:
    radial-gradient(circle at 82% 12%,rgba(83,196,240,.18),transparent 32%),
    radial-gradient(circle at 12% 88%,rgba(228,185,79,.10),transparent 30%),
    linear-gradient(118deg,#071b2d 0%,#0f2a44 54%,#143a5d 100%);
}
body.single-course .kc-public-page>.kc-section:first-child::before{
  inset:0;
  height:auto;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:44px 44px;
  opacity:.55;
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 92%);
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 92%);
}
body.single-course .kc-public-page>.kc-section:first-child::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:340px;
  height:340px;
  right:-120px;
  top:-130px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018);
  pointer-events:none;
}
body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap{
  position:relative;
  z-index:1;
}
body.single-course .kc-public-page>.kc-section:first-child .kc-eyebrow{
  min-height:34px;
  padding:7px 13px;
  border:1px solid rgba(159,228,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#a9e7ff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
}
body.single-course .kc-public-page>.kc-section:first-child .kc-eyebrow::before{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#53c4f0;
  box-shadow:0 0 0 5px rgba(83,196,240,.12);
}
body.single-course .kc-public-page>.kc-section:first-child .kc-h2{
  max-width:760px;
  margin:15px 0 20px;
  color:#fff;
  font-size:clamp(42px,5.2vw,70px);
  line-height:.99;
  letter-spacing:-.035em;
}
body.single-course .kc-public-page>.kc-section:first-child .kc-lead{
  max-width:700px;
  color:rgba(255,255,255,.76);
  font-size:18px;
  line-height:1.75;
}
body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap>img{
  position:relative;
  min-height:360px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:30px;
  box-shadow:0 28px 70px rgba(0,0,0,.32);
  outline:8px solid rgba(255,255,255,.045);
  outline-offset:-8px;
}
body.single-course .kc-public-page>.kc-section:first-child .rich-text{
  margin-top:22px;
  padding:38px 42px;
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.97);
  box-shadow:0 24px 64px rgba(0,0,0,.18);
}

/* "Learning in action" becomes a deliberate visual proof block rather than
   a plain section heading. */
body.single-course #course-videos{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding-block:82px 88px;
  background:
    radial-gradient(circle at 14% 8%,rgba(83,196,240,.16),transparent 27%),
    linear-gradient(180deg,#f7fbfe 0%,#fff 48%,#f7fafc 100%);
}
body.single-course #course-videos::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 auto;
  height:290px;
  background:linear-gradient(125deg,#071b2d 0%,#0f2a44 58%,#123754 100%);
}
body.single-course #course-videos::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:0;
  right:0;
  width:42%;
  height:290px;
  background:
    radial-gradient(circle at 75% 30%,rgba(83,196,240,.22),transparent 33%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:auto,38px 38px,38px 38px;
  pointer-events:none;
}
body.single-course #course-videos .container{
  position:relative;
  z-index:1;
}
body.single-course #course-videos .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:34px;
  margin:0 0 12px;
  padding:7px 13px;
  border:1px solid rgba(159,228,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#a9e7ff;
  font-size:11px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
}
body.single-course #course-videos .eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#53c4f0;
  box-shadow:0 0 0 5px rgba(83,196,240,.12);
}
body.single-course #course-videos .section-title{
  max-width:760px;
  margin:0 auto;
  color:#fff;
  font-size:clamp(34px,4.4vw,52px);
  line-height:1.02;
  letter-spacing:-.025em;
  text-wrap:balance;
}
body.single-course #course-videos .section-title::after{
  content:"";
  display:block;
  width:64px;
  height:3px;
  margin:20px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,#53c4f0,#e4b94f);
}
body.single-course #course-videos .kc-evidence-grid{
  margin-top:58px;
  align-items:stretch;
}
body.single-course #course-videos .kc-evidence-card{
  border-color:rgba(15,42,68,.09);
  border-radius:24px;
  box-shadow:0 18px 45px rgba(15,42,68,.10);
}
body.single-course #course-videos .kc-evidence-video{
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#071b2d,#102f4d);
}
body.single-course #course-videos .kc-evidence-body{
  min-height:165px;
  padding:23px 24px 25px;
}
body.single-course #course-videos .kc-evidence-card h3{
  margin-top:13px;
  font-size:21px;
}

@media(max-width:980px){
  body.single-course .kc-public-page>.kc-section:first-child{padding-block:66px 70px}
  body.single-course .kc-public-page>.kc-section:first-child>.kc-wrap>img{min-height:0}
  body.single-course #course-videos::before,
  body.single-course #course-videos::after{height:270px}
}
@media(max-width:640px){
  body.single-course .kc-public-page>.kc-section:first-child{padding-block:52px 58px}
  body.single-course .kc-public-page>.kc-section:first-child .kc-h2{font-size:clamp(38px,12vw,50px)}
  body.single-course .kc-public-page>.kc-section:first-child .kc-lead{font-size:16px}
  body.single-course .kc-public-page>.kc-section:first-child .rich-text{padding:26px 21px}
  body.single-course #course-videos{padding-block:62px 68px}
  body.single-course #course-videos::before,
  body.single-course #course-videos::after{height:245px}
  body.single-course #course-videos .section-title{font-size:clamp(31px,10vw,41px)}
  body.single-course #course-videos .kc-evidence-grid{margin-top:42px}
}
