/* =====================================================
   PP ROLE DRILL-DOWN PAGE — Shared styles for all role pages
   Reuses design tokens from pp-courses.css
   ===================================================== */

/* ── Role Hero — dark, role-specific ── */
.role-hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--deep-1);
  overflow: hidden;
}
.role-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(167,139,250,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.role-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(20,184,166,0.10) 0%, transparent 45%);
}
.role-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.role-hero__text { max-width: 540px; }
.role-hero__breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-light-40);
  margin-bottom: 20px;
}
.role-hero__breadcrumb a {
  color: var(--text-light-40); text-decoration: none;
  transition: color 0.25s;
}
.role-hero__breadcrumb a:hover { color: var(--text-light); }
.role-hero__breadcrumb svg { width: 14px; height: 14px; }
.role-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15;
  color: var(--text-light); letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.role-hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem); line-height: 1.65;
  color: var(--text-light-60); max-width: 460px;
  margin-bottom: 28px;
}
.role-hero__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.role-hero__prereq {
  font-size: 0.78rem; color: var(--text-light-40);
  margin-top: 14px;
}
.role-hero__prereq a {
  color: var(--accent-light); text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.role-hero__prereq a:hover { color: #fff; }
.role-hero__visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.role-hero__img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 60px rgba(59,130,246,0.15);
}
.role-hero__img-wrapper::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.role-hero__img-wrapper img {
  display: block; width: 100%; height: 340px;
  object-fit: cover;
}
.role-hero__visual::before {
  content: ''; position: absolute;
  width: 80%; height: 80%; top: 10%; left: 10%;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

@media (max-width: 767px) {
  .role-hero { padding: 120px 0 60px; }
  .role-hero__inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .role-hero__text { max-width: none; margin: 0 auto; }
  .role-hero__sub { max-width: none; margin: 0 auto 24px; }
  .role-hero__cta { justify-content: center; }
  .role-hero__img-wrapper img { height: 220px; }
}

/* ── Challenge ↔ Advantage Swap Section ── */

.swap {
  position: relative;
  background: var(--deep-2);
  padding: 80px 0;
  overflow: hidden;
}

/* Radial wipe — warm circle expands from button position */
.swap__wipe {
  position: absolute;
  border-radius: 50%;
  background: var(--warm-bg);
  pointer-events: none;
  z-index: 1;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  transition: none;
}
.swap.is-animating .swap__wipe {
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
/* After flip, fill the whole section with warm bg */
.swap.is-flipped {
  background: var(--warm-bg);
}
.swap.is-flipped .swap__wipe { display: none; }

/* Reverse wipe: dark circle expands back */
.swap__wipe--reverse {
  background: var(--deep-2);
}

/* Layout: content left, trigger right */
.swap__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  position: relative; z-index: 3;
}

/* Content area — holds both states */
.swap__content {
  position: relative;
  min-height: 400px;
}
.swap__state {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
  position: absolute; top: 0; left: 0; right: 0;
}
.swap__state.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
/* Exiting state fades out instantly */
.swap__state.is-exiting {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

/* Header text */
.swap__header { margin-bottom: 32px; }
.swap__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2;
  margin-bottom: 12px;
}
.swap__title--dark { color: var(--text-dark); }
.swap__title--light { color: var(--text-light); }
.swap__sub { font-size: 1rem; line-height: 1.65; }
.swap__sub--dark { color: var(--text-dark-70); }
.swap__sub--light { color: var(--text-light-60); }

/* Problem cards (3-col grid) — dark bg */
.swap__cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.swap__problem-card {
  background: rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1px solid rgba(255,255,255,0.10);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.swap__problem-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(96,165,250,0.25);
}
.swap__problem-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(59,130,246,0.15); color: #60A5FA;
}
.swap__problem-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--text-light); margin-bottom: 10px;
  line-height: 1.3;
}
.swap__problem-desc {
  font-size: 0.95rem; line-height: 1.6; color: var(--text-light-60);
}

/* Solution items (2-col grid) — warm bg */
.swap__solutions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.swap__solution-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--warm-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.swap__solution-item:hover {
  box-shadow: 0 4px 20px rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.3);
}
.swap__solution-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.12); color: var(--success);
}
.swap__solution-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text-dark); margin-bottom: 6px;
  line-height: 1.3;
}
.swap__solution-desc {
  font-size: 0.95rem; line-height: 1.55; color: var(--text-dark-70);
}

/* Right trigger column */
.swap__trigger {
  display: flex; align-items: center; min-height: 400px;
}
.swap__trigger-sticky {
  position: sticky; top: 50%;
  transform: translateY(-50%);
  text-align: center;
}
.swap__trigger-state {
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  position: absolute; top: 0; left: 0; right: 0;
}
.swap__trigger-state.is-active {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
  position: relative;
}
.swap__trigger-label {
  font-size: 0.92rem; line-height: 1.5; font-weight: 500;
  color: var(--text-light-60); margin-bottom: 20px;
}
.swap__trigger-label--dark { color: var(--text-dark-70); }

/* Gradient CTA button */
.swap__trigger-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 18px 36px; border-radius: 9999px; border: none; cursor: pointer;
  background: var(--gradient-accent); color: #fff; text-decoration: none;
  box-shadow: 0 0 40px rgba(167,139,250,0.3), 0 0 80px rgba(34,211,238,0.15);
  transition: all 0.3s var(--ease-out);
  animation: swap-glow 3s ease-in-out infinite;
}
.swap__trigger-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 60px rgba(167,139,250,0.45), 0 0 120px rgba(34,211,238,0.25);
}
@keyframes swap-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(167,139,250,0.3), 0 0 80px rgba(34,211,238,0.15); }
  50% { box-shadow: 0 0 60px rgba(167,139,250,0.5), 0 0 100px rgba(34,211,238,0.3); }
}

/* Solutions state button — teal gradient */
.swap__trigger-btn--teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--success) 100%);
  box-shadow: 0 0 40px rgba(20,184,166,0.3), 0 0 80px rgba(34,197,94,0.15);
  animation: swap-glow-teal 3s ease-in-out infinite;
}
.swap__trigger-btn--teal:hover {
  box-shadow: 0 0 60px rgba(20,184,166,0.45), 0 0 120px rgba(34,197,94,0.25);
}
@keyframes swap-glow-teal {
  0%, 100% { box-shadow: 0 0 40px rgba(20,184,166,0.3), 0 0 80px rgba(34,197,94,0.15); }
  50% { box-shadow: 0 0 60px rgba(20,184,166,0.5), 0 0 100px rgba(34,197,94,0.3); }
}

.swap__trigger-back {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 16px auto 0; padding: 0; border: none; background: none;
  width: fit-content;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  color: var(--text-dark-50); cursor: pointer;
  transition: color 0.2s;
}
.swap__trigger-back:hover { color: var(--text-dark); }

/* Responsive */
@media (max-width: 1023px) {
  .swap__layout { grid-template-columns: 1fr; gap: 40px; }
  .swap__trigger { min-height: auto; }
  .swap__trigger-sticky { position: static; transform: none; text-align: center; }
  .swap__trigger-state { position: relative; }
}
@media (max-width: 767px) {
  .swap__cards-grid { grid-template-columns: 1fr; }
  .swap__solutions-grid { grid-template-columns: 1fr; }
  .swap__trigger-btn {
    display: flex;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 24px;
    justify-content: space-between;
    text-align: left;
  }
  .swap__trigger-btn > span {
    flex: 1;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swap__state { transition: none; }
  .swap__trigger-state { transition: none; }
  .swap__trigger-btn { animation: none; }
  .swap__trigger-btn--teal { animation: none; }
  .swap__wipe { display: none; }
}

/* ── Cost of Waiting — dark bg ── */
.cost {
  background: var(--deep-2); padding: 80px 0;
}
.cost__inner {
  max-width: 800px; margin: 0 auto;
  padding: 48px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.cost__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.2;
  color: var(--text-light); margin-bottom: 16px;
}
.cost__desc {
  font-size: 1rem; line-height: 1.7; color: var(--text-light-60);
  max-width: 600px; margin: 0 auto 32px;
}
.cost__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  text-align: center; margin-bottom: 32px;
}
.cost__point-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--accent-light);
  line-height: 1; margin-bottom: 6px;
}
.cost__point-label {
  font-size: 0.82rem; line-height: 1.45; color: var(--text-light-60);
}

@media (max-width: 767px) {
  .cost__inner { padding: 32px 24px; }
  .cost__points { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Learning Path — warm bg (alternates after dark cost) ── */
.role-path {
  background: var(--warm-bg); padding: 80px 0;
}
.role-path__header {
  text-align: center; margin-bottom: 48px;
}
.role-path__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2;
  color: var(--text-dark); margin-bottom: 10px;
}
.role-path__sub {
  font-size: 1rem; line-height: 1.6; color: var(--text-dark-70);
  max-width: 500px; margin: 0 auto;
}
.role-path__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative; max-width: 900px; margin: 0 auto;
}
.role-path__steps::before {
  content: ''; position: absolute;
  top: 40px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 50%, var(--success) 100%);
  opacity: 0.3;
}
.role-path__step {
  text-align: center; position: relative; padding: 0 20px;
}
.role-path__step-number {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; color: var(--text-light);
  position: relative; z-index: 1;
}
.role-path__step:nth-child(1) .role-path__step-number {
  background: linear-gradient(135deg, var(--accent) 0%, #9333EA 100%);
  box-shadow: 0 8px 32px rgba(124,58,237,0.3);
}
.role-path__step:nth-child(2) .role-path__step-number {
  background: linear-gradient(135deg, #6D28D9 0%, var(--teal) 100%);
  box-shadow: 0 8px 32px rgba(20,184,166,0.25);
}
.role-path__step:nth-child(3) .role-path__step-number {
  background: linear-gradient(135deg, var(--teal) 0%, var(--success) 100%);
  box-shadow: 0 8px 32px rgba(34,197,94,0.25);
}
.role-path__step-badge {
  display: inline-block; padding: 3px 10px; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.role-path__step-badge--required {
  background: rgba(124,58,237,0.12); color: var(--accent);
}
.role-path__step-badge--current {
  background: rgba(20,184,166,0.12); color: #0D9488;
}
.role-path__step-badge--certificate {
  background: rgba(34,197,94,0.12); color: #16A34A;
}
.role-path__step-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text-dark); margin-bottom: 8px;
}
.role-path__step-desc {
  font-size: 0.85rem; line-height: 1.55; color: var(--text-dark-70);
  max-width: 240px; margin: 0 auto;
}
.role-path__step-cta {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.role-path__step-cta:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .role-path__steps { grid-template-columns: 1fr; gap: 40px; }
  /* Draw a short connector inside the gap between adjacent circles instead
     of one continuous rail — the old full-height line ran through the step
     title and description at left:50%. */
  .role-path__steps::before { display: none; }
  .role-path__step + .role-path__step::before {
    content: ''; position: absolute;
    top: -40px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 40px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--teal) 50%, var(--success) 100%);
    opacity: 0.3;
  }
}

/* ── Course Details — 3-column hybrid layout ── */

/* Full-width dark banner at top */
.course-details__banner {
  background: var(--deep-2); padding: 48px 0 40px;
}
.course-details__banner-inner { max-width: 700px; }
.course-details__badge {
  display: inline-block; padding: 4px 14px; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.course-details__badge--free { background: var(--success); color: #fff; }
.course-details__badge--coming { background: rgba(124,58,237,0.2); color: var(--accent-light); }
.course-details__banner-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2;
  color: var(--text-light); margin-bottom: 12px;
}
.course-details__banner-desc {
  font-size: 0.95rem; line-height: 1.65; color: var(--text-light-80);
  max-width: 560px;
}
.course-details__meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px;
}
.course-details__meta span {
  font-size: 0.78rem; font-weight: 600; color: var(--text-light-40);
  padding: 4px 12px; border-radius: 9999px;
  background: rgba(255,255,255,0.06);
}

/* 2-column grid (sidebar + main), aligned with .container */
.course-details__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  min-height: 400px;
}

/* Left sidebar */
.course-details__sidebar {
  background: var(--deep-1);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.course-details__sidebar-sticky {
  position: sticky; top: 80px;
  padding: 32px 0;
}
.course-details__sidebar-heading {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-light-40);
  padding: 0 24px; margin-bottom: 16px;
}
.course-details__sidebar-nav {
  display: flex; flex-direction: column;
}
.course-details__sidebar-link {
  display: block; padding: 10px 24px;
  font-size: 0.85rem; font-weight: 400;
  color: var(--text-light-60);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.course-details__sidebar-link:hover {
  color: var(--text-light);
  background: rgba(255,255,255,0.03);
}
.course-details__sidebar-link.is-active {
  color: var(--accent-light);
  border-left-color: var(--accent);
  font-weight: 600;
  background: rgba(124,58,237,0.06);
}
.course-details__sidebar-cta {
  padding: 24px;
}
.course-details__sidebar-cta .btn-primary--sm {
  width: 100%; justify-content: center;
}

/* Main content area */
.course-details__main {
  background: var(--warm-bg);
  padding: 0;
}
.course-details__section {
  padding: 32px 40px;
  border-bottom: 1px solid var(--warm-border);
  scroll-margin-top: 96px;
}
.course-details__section:last-child { border-bottom: none; }
.course-details__section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--text-dark); margin-bottom: 16px;
}
.course-details__learn-list {
  list-style: none; padding: 0;
}
.course-details__learn-list li {
  position: relative; padding-left: 28px;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-dark-70);
  margin-bottom: 10px;
}
.course-details__learn-list li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(124,58,237,0.1);
  border: 2px solid var(--accent);
}
.course-details__who {
  font-size: 0.9rem; line-height: 1.65; color: var(--text-dark-70);
}
/* Prerequisite note in course details */
.course-details__prereq-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.12);
}
.course-details__prereq-note svg {
  flex-shrink: 0; color: var(--accent); margin-top: 1px;
}
.course-details__prereq-note p {
  font-size: 0.82rem; line-height: 1.55; color: var(--text-dark-70); margin: 0;
}
.course-details__prereq-note strong { color: var(--text-dark); }
.course-details__prereq-note a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
}
.course-details__prereq-note a:hover { color: var(--accent-light); }

.course-details__outline-note {
  font-size: 0.85rem; line-height: 1.6; color: var(--text-dark-50);
  margin-bottom: 20px; font-style: italic;
}
.course-details__cert {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-md);
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.1);
}
.course-details__cert svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.course-details__cert strong {
  font-family: var(--font-display); font-size: 0.95rem;
  color: var(--text-dark); display: block; margin-bottom: 4px;
}
.course-details__cert p {
  font-size: 0.82rem; line-height: 1.5; color: var(--text-dark-70); margin: 0;
}

/* Course outline accordion */
.course-details__outline-module {
  border: 1px solid var(--warm-border); border-radius: var(--radius-md);
  margin-bottom: 8px; overflow: hidden;
}
.course-details__outline-header {
  width: 100%; padding: 14px 16px;
  background: #fff; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; color: var(--text-dark);
  transition: background 0.2s;
}
.course-details__outline-header:hover { background: var(--warm-bg-2); }
.course-details__outline-arrow {
  transition: transform 0.3s var(--ease-out);
  color: var(--accent);
}
.course-details__outline-module.is-open .course-details__outline-arrow {
  transform: rotate(180deg);
}
.course-details__outline-lessons {
  max-height: 0; overflow: hidden;
  background: var(--warm-bg-2);
  transition: max-height 0.4s var(--ease-out);
}
.course-details__outline-module.is-open .course-details__outline-lessons {
  max-height: 600px;
}
.course-details__outline-lesson {
  display: flex; gap: 10px;
  padding: 4px 16px 4px 28px;
  font-size: 0.82rem; line-height: 1.5;
  color: var(--text-dark-70);
}
.course-details__outline-lesson::before {
  content: ''; flex: 0 0 auto;
  width: 4px; height: 4px; margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent); opacity: 0.55;
}
.course-details__outline-lesson:first-child { padding-top: 12px; }
.course-details__outline-lesson:last-child { padding-bottom: 14px; }

/* Responsive: collapse to single column */
@media (max-width: 1023px) {
  .course-details__layout {
    grid-template-columns: 1fr;
  }
  .course-details__sidebar { display: none; }
  .course-details__section { padding: 28px 24px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .course-details__layout {
    grid-template-columns: 220px 1fr;
  }
}

/* ── Resources CTA — dark banner ── */
.resources-cta {
  background: var(--deep-1); padding: 64px 0;
}
.resources-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; max-width: 1200px; margin: 0 auto;
  padding: 40px 48px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.resources-cta__text { flex: 1; }
.resources-cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3;
  color: var(--text-light); margin-bottom: 8px;
}
.resources-cta__desc {
  font-size: 0.9rem; line-height: 1.6; color: var(--text-light-60);
  max-width: 440px;
}

@media (max-width: 767px) {
  .resources-cta__inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .resources-cta__desc { max-width: none; margin-bottom: 20px; }
}

/* ── Notify Section — warm bg ── */
.role-notify {
  background: var(--warm-bg); padding: 80px 0;
}
.role-notify__inner {
  max-width: 520px; margin: 0 auto; text-align: center;
}
.role-notify__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.2;
  color: var(--text-dark); margin-bottom: 8px;
}
.role-notify__desc {
  font-size: 0.92rem; line-height: 1.6; color: var(--text-dark-70);
  margin-bottom: 28px;
}
.role-notify__hs-form { margin: 0 auto; max-width: 480px; }
.role-notify #hs-notify-form form {
  display: flex !important; gap: 10px; align-items: flex-end;
  justify-content: center; flex-wrap: wrap;
}
.role-notify #hs-notify-form fieldset {
  flex: 1 1 0; min-width: 260px; max-width: none;
  margin: 0; padding: 0; border: none;
}
.role-notify #hs-notify-form .hs_submit { flex: 0 0 auto; }
.role-notify #hs-notify-form .hs-input {
  width: 100% !important;
  padding: 14px 20px; border-radius: 9999px;
  border: 1px solid var(--warm-border);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-dark); background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.role-notify #hs-notify-form .hs-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  outline: none;
}
.role-notify #hs-notify-form .hs-input::placeholder { color: var(--text-dark-50); }
@media (max-width: 560px) {
  .role-notify #hs-notify-form form { flex-direction: column; align-items: stretch; }
  .role-notify #hs-notify-form fieldset { min-width: 100%; }
}
.role-notify__note {
  font-size: 0.75rem; color: var(--text-dark-50);
  margin-top: 14px;
}
