/* ============================================
   course-details.html only — extends details.css
   ============================================ */

/* This page uses a divided-list feature style instead of details.css's
   default gap-separated one, and adds a two-line title/subtitle per item. */
.details-features {
  gap: 0;
}
.details-features li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.details-features li:last-child { border-bottom: none; }
.details-features svg { margin-top: 2px; }
.feature-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
}
.feature-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Plan toggle (monthly / 6-month) */
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-option label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.plan-option input:checked + label { border-color: var(--teal); background: var(--teal-light); }
.plan-option input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.plan-option-name { font-size: 0.86rem; font-weight: 700; color: var(--navy-mid); display: flex; align-items: center; gap: 6px; }
.plan-option-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.plan-option-price small { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }
.plan-badge { background: var(--orange); color: var(--white); font-size: 0.64rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.03em; }
.enrollment-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(233, 78, 60, 0.3);
  border-radius: var(--radius-md);
  background: rgba(233, 78, 60, 0.07);
  color: var(--navy-mid);
  font-size: 0.88rem;
  line-height: 1.45;
}
.enrollment-notice-icon { display: grid; place-items: center; flex: 0 0 auto; color: var(--orange); }
@media (max-width: 480px) {
  .plan-toggle { grid-template-columns: 1fr; }
}

/* "How it works" 3-step explainer */
.how-step { margin-top: 28px; }
.how-step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.how-step-icon { flex-shrink: 0; display: flex; }
.how-step p:last-child { margin-bottom: 0; }

/* OSE sales page */
.course-hero {
  position: relative;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 72px);
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  background: linear-gradient(135deg, #fff 55%, #f4fbfa 100%);
}
.course-hero::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 48px solid rgba(25, 151, 144, 0.06);
  pointer-events: none;
}
.course-hero > * { position: relative; z-index: 1; }
.details-content h1 { font-size: clamp(2.2rem, 4vw, 3.35rem); letter-spacing: -0.035em; }
.details-intro { max-width: 590px; }

.program-overview {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.14) 0 90px, transparent 91px),
    linear-gradient(150deg, var(--navy), #123f57 70%, #176c6d);
  box-shadow: 0 24px 50px rgba(6, 29, 51, 0.2);
}
.program-overview-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.program-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: var(--navy);
  background: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.program-overview-label { max-width: 120px; text-align: right; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.program-overview-title { max-width: 360px; margin: 48px 0; font-family: var(--font-head); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.program-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.program-stats div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.program-stats strong { display: block; font-family: var(--font-head); font-size: 1.55rem; line-height: 1; }
.program-stats span { display: block; margin-top: 7px; color: rgba(255, 255, 255, 0.68); font-size: 0.7rem; line-height: 1.25; }
.program-path { display: flex; align-items: center; gap: 8px; margin-top: 34px; color: rgba(255, 255, 255, 0.64); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.program-path span.active { color: #85ded8; }
.program-path i { height: 1px; flex: 1; background: rgba(255, 255, 255, 0.2); }

.hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 24px 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--navy-mid); font-size: 0.86rem; font-weight: 650; }
.hero-check { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; color: var(--teal-dark); background: var(--teal-light); font-size: 0.75rem; font-weight: 900; }
.course-hero .enrollment-notice { border-color: rgba(25, 151, 144, 0.22); background: var(--teal-light); }
.course-hero .enrollment-notice-icon { color: var(--teal-dark); }

.program-sections { margin-top: 64px; }
.program-section { padding: clamp(60px, 8vw, 92px) clamp(24px, 6vw, 68px); }
.section-heading { max-width: 560px; margin-bottom: 38px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--orange); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.11em; }
.program-section h2,
.final-offer h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.12; letter-spacing: -0.03em; }
.section-heading p { margin: 16px auto 0; color: var(--text-muted); line-height: 1.65; }

.transformation-section { border: 1px solid #dcebea; border-radius: 28px; background: #f4faf9; }
.transformation-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.state-card { min-height: 250px; padding: 30px; border-radius: 22px; }
.state-card-before { background: var(--white); border: 1px solid #dcebea; }
.state-card-after { background: var(--navy); color: var(--white); box-shadow: 0 18px 36px rgba(6, 29, 51, 0.14); }
.state-label { display: inline-block; margin-bottom: 20px; color: var(--orange); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.state-card-after .state-label { color: #85ded8; }
.state-card ul { display: grid; gap: 14px; }
.state-card li { position: relative; padding-left: 24px; line-height: 1.4; }
.state-card li::before { content: '—'; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.state-card-after li::before { content: '✓'; color: #85ded8; }
.transformation-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--white); background: var(--orange); font-size: 1.3rem; box-shadow: 0 10px 22px rgba(233, 78, 60, 0.23); }

.pillars-section { padding-right: 0; padding-left: 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 29, 51, 0.055);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}
.pillar-card:nth-child(even) { transform: translateY(18px); }
.pillar-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: 13px;
  color: var(--teal-dark);
  background: var(--teal-light);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}
.pillar-card h3 { margin-bottom: 9px; color: var(--navy); font-size: 1.08rem; }
.pillar-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

@media (hover: hover) {
  .pillar-card:hover {
    transform: translateY(-7px);
    border-color: rgba(25, 151, 144, 0.42);
    background: #f5fbfa;
    box-shadow: 0 20px 40px rgba(6, 29, 51, 0.12);
  }
  .pillar-card:nth-child(even):hover { transform: translateY(11px); }
  .pillar-card:hover .pillar-number { color: var(--white); background: var(--teal); transform: rotate(-4deg) scale(1.06); }
}

.steps-section { margin-top: 18px; border-radius: 28px; background: #edf8f7; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps-grid::before { content: ''; position: absolute; top: 27px; left: 16%; right: 16%; height: 2px; background: rgba(25, 151, 144, 0.22); }
.step-card { position: relative; z-index: 1; text-align: center; }
.step-card > span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border: 6px solid #edf8f7; border-radius: 50%; color: var(--white); background: var(--teal); font-family: var(--font-head); font-size: 0.76rem; font-weight: 800; box-shadow: 0 0 0 1px rgba(25, 151, 144, 0.18); }
.step-card h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.04rem; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

.fit-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; margin: 72px 0; border-radius: 28px; color: var(--white); background: linear-gradient(135deg, var(--navy), #123f57); }
.fit-section h2 { color: var(--white); }
.fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fit-list li { position: relative; padding: 16px 16px 16px 44px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; background: rgba(255, 255, 255, 0.06); font-size: 0.86rem; line-height: 1.4; }
.fit-list li::before { content: '✓'; position: absolute; left: 16px; top: 15px; color: #85ded8; font-weight: 900; }

.faq-section { padding-top: 16px; }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border-soft); }
.faq-list details { border-bottom: 1px solid var(--border-soft); }
.faq-list summary { position: relative; padding: 22px 48px 22px 4px; color: var(--navy); cursor: pointer; list-style: none; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 8px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--teal-dark); background: var(--teal-light); font-size: 1.2rem; font-weight: 500; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { max-width: 650px; padding: 0 48px 22px 4px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

.final-offer { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; margin-top: 54px; padding: clamp(40px, 7vw, 70px); border-radius: 28px; color: var(--white); background: var(--navy); overflow: hidden; }
.final-offer h2 { color: var(--white); }
.final-offer p { max-width: 560px; margin-top: 18px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.final-offer-action { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
.final-offer-action strong { font-family: var(--font-head); font-size: 2rem; }
.final-offer-action strong small { font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.final-offer-action > span { color: rgba(255, 255, 255, 0.58); font-size: 0.72rem; }

@media (max-width: 860px) {
  .course-hero { grid-template-columns: 1fr; }
  .program-overview { min-height: 420px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-card:nth-child(even) { transform: none; }
  .fit-section,
  .final-offer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .details-container { padding: 0 14px; }
  .course-hero { padding: 18px; border-radius: 20px; }
  .program-overview { min-height: 390px; padding: 24px; border-radius: 20px; }
  .program-overview-title { margin: 36px 0; }
  .hero-points { grid-template-columns: 1fr; }
  .program-sections { margin-top: 36px; }
  .program-section { padding: 52px 20px; }
  .transformation-grid { grid-template-columns: 1fr; }
  .transformation-arrow { margin: -8px auto; transform: rotate(90deg); }
  .state-card { min-height: auto; padding: 24px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: auto; }
  .pillar-number { margin-bottom: 20px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .step-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; }
  .step-card > span { grid-row: 1 / 3; margin: 0; }
  .step-card h3 { align-self: end; }
  .fit-section { gap: 34px; margin: 44px 0; }
  .fit-list { grid-template-columns: 1fr; }
  .final-offer { gap: 34px; border-radius: 22px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-card,
  .pillar-number { transition: none; }
}
