/* ==========================================================
   Course pages (course-*.html) — builds on index.css
   ========================================================== */
.course-hero{margin-bottom:52px;padding:56px 0 48px;border-bottom:1px solid var(--line)}
.course-hero .hero-badge{margin-bottom:26px}
.course-hero-top{display:flex;align-items:flex-start;gap:28px}
.course-hero-icon{display:grid;place-items:center;flex-shrink:0;width:76px;height:76px;background:var(--red-tint);border-radius:50%;font-size:34px}
.course-hero h1{margin-bottom:18px;font-size:clamp(34px,4.8vw,60px);font-weight:500;line-height:1.05;letter-spacing:-.025em}
.course-hero-subtitle{max-width:680px;font-size:18px;line-height:1.8;color:var(--text-muted)}

.course-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:64px;align-items:start}
.course-main{display:grid;gap:56px}
.course-aside{display:grid;gap:20px}
.section-heading{margin-bottom:22px;font-family:var(--serif);font-size:28px;font-weight:400;letter-spacing:-.01em}
.course-lead{font-size:18px;line-height:1.85;color:var(--text-body)}

.learn-list{display:grid;grid-template-columns:1fr 1fr;gap:0 36px;border-bottom:1px solid var(--line);list-style:none}
.learn-list li{position:relative;padding:22px 0 24px 24px;border-top:1px solid var(--line);font-size:15px;line-height:1.7;color:var(--text-body)}
.learn-list li::before{content:'';position:absolute;top:31px;left:0;width:8px;height:8px;border-radius:50%;background:var(--red)}
.learn-list strong{display:block;margin-bottom:4px;font-size:16px;font-weight:600;color:var(--ink)}

.teacher-card{padding:32px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}
.teacher-card .section-heading{margin-bottom:24px;font-size:22px}
.teacher-top{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.teacher-avatar{display:grid;place-items:center;flex-shrink:0;width:70px;height:84px;padding-top:8px;background:linear-gradient(160deg,var(--navy-2),var(--navy));border-radius:999px 999px 6px 6px;color:#fff;font-family:var(--serif);font-size:24px;letter-spacing:.02em}
.teacher-name{margin-bottom:6px;font-family:var(--serif);font-size:22px;line-height:1.2}
.teacher-role{font-size:13px;font-weight:600;line-height:1.4;color:var(--red)}
.teacher-stats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.teacher-stat{padding:6px 12px;background:var(--red-tint);border-radius:999px;font-size:13px;font-weight:600;color:var(--red-dark)}
.teacher-bio{font-size:15px;line-height:1.75;color:var(--text-body)}

.course-cta{padding:32px;background:var(--navy);border-radius:var(--radius);color:#fff}
.course-cta h2{margin-bottom:10px;font-family:var(--serif);font-size:24px;font-weight:400;line-height:1.3}
.course-cta p{margin-bottom:24px;font-size:15px;line-height:1.6;color:#b6c0d1}
.course-cta .btn-primary{width:100%}

@media(max-width:960px){
  .course-layout{grid-template-columns:1fr;gap:56px}
  .course-aside{grid-template-columns:1fr 1fr;align-items:start}
}
@media(max-width:700px){
  .course-aside{grid-template-columns:1fr}
}
@media(max-width:640px){
  .course-hero{margin-bottom:36px;padding:36px 0 32px}
  .course-hero-top{flex-direction:column;gap:18px}
  .course-hero-icon{width:62px;height:62px;font-size:28px}
  .course-hero-subtitle,.course-lead{font-size:16px}
  .course-main{gap:44px}
  .learn-list{grid-template-columns:1fr}
  .teacher-card,.course-cta{padding:26px 22px}
}

/* a real photo of the teacher replaces the initials */
.teacher-avatar.has-photo{background-size:cover;background-position:center;color:transparent}
.photo-change{margin:-6px 0 18px;height:40px;font-size:14px;cursor:pointer}
