.single-product {
  background: var(--surface);
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
  margin: 0;
  list-style: none;
  border-radius: var(--r16);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--s2);
  padding: 16px 18px;
}

.single-product .woocommerce-message li,
.single-product .woocommerce-info li,
.single-product .woocommerce-error li {
  margin: 0;
}

.csp-page {
  --course-sec-py: clamp(56px, 6vw, 80px);
  background: var(--surface);
  color: var(--ink-2);
}

.csp-notices {
  padding: 18px 0 0;
}

.csp-notices .woocommerce-notices-wrapper {
  display: grid;
  gap: 14px;
}

.csp-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 42px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12) 0%, transparent 28%),
    radial-gradient(circle at bottom left, rgba(147,197,253,0.12) 0%, transparent 24%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 52%, var(--navy-800) 100%);
}

.csp-hero::before,
.csp-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.csp-hero::before {
  width: 380px;
  height: 380px;
  right: -160px;
  top: -200px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
}

.csp-hero::after {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(219,232,251,0.14) 0%, transparent 70%);
}

.csp-crumb {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.csp-crumb,
.csp-crumb a {
  color: rgba(255,255,255,0.72);
}

.csp-crumb span:last-child {
  color: #fff;
}

.csp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 390px);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.csp-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.csp-pill-row {
  margin-bottom: 18px;
}

.csp-title {
  max-width: 11ch;
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.055em;
  color: #fff;
}

.csp-subtitle {
  max-width: 58ch;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(255,255,255,0.78);
}

.csp-hero-course-line {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.csp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.csp-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--rpill);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}

.csp-hero-chip .material-icons-round {
  font-size: 16px !important;
  color: rgba(255,255,255,0.74);
}

.csp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.csp-cta-form {
  margin: 0;
}

.csp-cta-form .btn {
  width: 100%;
}

.csp-cta-form--hero .btn,
.csp-cta-form--anchor .btn {
  width: auto;
}

.csp-cta-form--mobile {
  flex: 1;
}

.csp-hero-side {
  display: flex;
  justify-content: flex-end;
}

.csp-course-card {
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  border-color: rgba(33, 88, 178, 0.12);
  box-shadow: var(--s5);
  position: sticky;
  top: calc(var(--nav-h) + 88px);
}

body.admin-bar .csp-course-card {
  top: calc(var(--nav-h) + 120px);
}

.csp-course-card:hover {
  transform: none;
  box-shadow: var(--s5);
}

.csp-course-card:hover .cc-img img {
  transform: none;
}

.csp-course-card-media {
  height: 236px;
}

.csp-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csp-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 34px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.14) 0%, transparent 38%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: #fff;
}

.csp-media-fallback .material-icons-round {
  font-size: 40px !important;
  color: #dbe8fb;
}

.csp-media-fallback strong {
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.csp-media-fallback span:last-child {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

.csp-course-card-body {
  padding: 22px 22px 24px;
}

.csp-course-card-title {
  font-size: 1.2rem;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}

.csp-card-instructor {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.csp-card-instructor strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.csp-card-instructor span {
  font-size: 12px;
  color: var(--ink-4);
}

.csp-course-card-foot {
  align-items: center;
  gap: 14px;
}

.csp-course-card-form {
  flex: 1;
  margin: 0;
}

.csp-card-button {
  width: 100%;
  min-height: 44px;
  border-color: rgba(33, 88, 178, 0.12);
}

.csp-anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(217,227,239,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.admin-bar .csp-anchor-bar {
  top: calc(var(--nav-h) + 32px);
}

.csp-anchor-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.csp-anchor-links {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.csp-anchor-links::-webkit-scrollbar {
  display: none;
}

.csp-anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--rpill);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
  transition: background var(--t1), color var(--t1), box-shadow var(--t1);
}

.csp-anchor-link:hover {
  background: var(--navy-50);
  color: var(--navy-700);
}

.csp-anchor-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.csp-anchor-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.csp-anchor-price span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.csp-anchor-price strong {
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.csp-anchor-button {
  min-width: 138px;
}

.csp-section {
  padding: var(--course-sec-py) 0;
  background: #fff;
}

.csp-section--first {
  padding-top: 40px;
}

.csp-section--tone {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.csp-section--soft {
  background: linear-gradient(180deg, var(--navy-50) 0%, #fff 100%);
}

.csp-section + .csp-section {
  border-top: 1px solid rgba(217,227,239,0.7);
}

.csp-section-head {
  margin-bottom: 28px;
}

.csp-overview-section {
  max-width: 1120px;
  margin: 0 auto;
}

.csp-overview-lead {
  max-width: 760px;
  margin: 14px auto 0;
}

.csp-overview-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.csp-overview-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 84px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--s1);
}

.csp-overview-fact .material-icons-round {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--navy-50);
  color: var(--navy-700);
  flex-shrink: 0;
}

.csp-overview-fact-copy {
  min-width: 0;
}

.csp-overview-fact-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.csp-overview-fact-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.csp-overview-body {
  max-width: 860px;
  margin: 0 auto;
}

.csp-richtext {
  color: var(--ink-3);
}

.csp-richtext > * + * {
  margin-top: 16px;
}

.csp-richtext p,
.csp-richtext li {
  font-size: 16px;
  line-height: 1.9;
}

.csp-richtext ul,
.csp-richtext ol {
  padding-left: 22px;
}

.csp-richtext ul {
  list-style: disc;
}

.csp-richtext ol {
  list-style: decimal;
}

.csp-outcomes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.csp-outcome-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(33, 88, 178, 0.12);
}

.csp-outcome-item:nth-child(-n+2) {
  padding-top: 0;
  border-top: 0;
}

.csp-outcome-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(33, 88, 178, 0.12);
  color: var(--navy-700);
  flex-shrink: 0;
}

.csp-outcome-copy {
  min-width: 0;
}

.csp-outcome-index {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.csp-outcome-text {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-2);
}

.csp-curriculum-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.csp-curriculum-intro {
  position: sticky;
  top: calc(var(--nav-h) + 88px);
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(219,232,251,0.16) 0%, transparent 34%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  box-shadow: var(--s4);
}

body.admin-bar .csp-curriculum-intro {
  top: calc(var(--nav-h) + 120px);
}

.csp-curriculum-title {
  margin-top: 14px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #fff;
}

.csp-curriculum-copy {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.74);
}

.csp-dark-stats {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.csp-dark-stat {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
}

.csp-dark-stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.csp-dark-stat strong {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
}

.csp-curriculum-list .cur-list {
  max-width: none;
}

.csp-curriculum-list .cur-mod {
  margin-bottom: 12px;
  border-radius: 22px;
  border-color: var(--line);
  box-shadow: var(--s1);
}

.csp-curriculum-list .cur-head {
  padding: 18px 22px;
  font-size: 15px;
}

.csp-curriculum-list .cur-head:hover {
  background: var(--navy-50);
}

.csp-curriculum-list .cur-num {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy-700);
}

.csp-curriculum-list .cur-lessons {
  padding: 0 22px 22px;
  gap: 10px;
}

.csp-curriculum-list .cur-lesson {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 12px 14px;
}

.csp-related-head {
  margin-bottom: 32px;
}

.csp-mobile-bar {
  display: none;
}

.csp-mobile-bar-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}

.csp-mobile-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.csp-mobile-price span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.csp-mobile-price strong {
  font-size: 1.08rem;
  color: #fff;
  letter-spacing: -0.04em;
}

.csp-mobile-button {
  flex: 1;
}

@media (max-width: 1200px) {
  .csp-overview-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .csp-hero-grid,
  .csp-curriculum-grid {
    grid-template-columns: 1fr;
  }

  .csp-hero-side {
    justify-content: flex-start;
  }

  .csp-course-card,
  .csp-curriculum-intro {
    position: static;
    margin-left: 0;
  }

  .csp-course-card {
    max-width: 420px;
  }
}

@media (max-width: 1024px) {
  .csp-anchor-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }

  .csp-anchor-cta {
    width: 100%;
    justify-content: flex-start;
  }

  .csp-outcomes-list {
    gap: 0 22px;
  }
}

@media (max-width: 820px) {
  body.admin-bar .csp-anchor-bar {
    top: calc(var(--nav-h) + 46px);
  }

  .csp-mobile-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 120;
    display: block;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(23,57,97,0.96);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--s5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.single-product {
    padding-bottom: 98px;
  }
}

@media (max-width: 768px) {
  .csp-hero {
    padding: 20px 0 36px;
  }

  .csp-title {
    max-width: none;
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .csp-subtitle,
  .csp-richtext p,
  .csp-richtext li {
    font-size: 15px;
  }

  .csp-overview-facts,
  .csp-outcomes-list {
    grid-template-columns: 1fr;
  }

  .csp-outcome-item:nth-child(-n+2) {
    padding-top: 22px;
    border-top: 1px solid rgba(33, 88, 178, 0.12);
  }

  .csp-outcome-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .csp-hero-actions,
  .csp-course-card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .csp-hero-actions .btn,
  .csp-hero-actions .csp-cta-form--hero .btn {
    width: 100%;
  }

  .csp-anchor-price {
    display: none;
  }

  .csp-section {
    padding: 56px 0;
  }

  .csp-section--first {
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .csp-anchor-inner {
    min-height: 64px;
  }

  .csp-anchor-cta {
    display: none;
  }

  .csp-course-card {
    max-width: none;
  }

  .csp-course-card-media {
    height: 220px;
  }
}
