/* ─── PAGE HERO (Interior) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  overflow: hidden;
  padding: 40px 0 50px;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(232,100,44,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb .sep {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}
.breadcrumb .current {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

/* ─── PAGE HEADER ─── */
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.meta-badge {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.meta-badge.runtime {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
}
.meta-badge.lang {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
}
.meta-badge.category {
  background: var(--teal);
  color: var(--white);
}
.meta-badge.category:hover {
  background: #158a7a;
}
.meta-badge.regulation {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.72rem;
  font-weight: 500;
}

/* ─── QUICK ANSWER ─── */
.quick-answer-section {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.quick-answer-inner {
  padding: 28px 0;
}
.quick-answer-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 900px;
}
.quick-answer-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.quick-answer-block p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.65;
}

/* ─── TWO-COLUMN LAYOUT ─── */
.course-detail-section {
  padding: 48px 0 100px;
  background: var(--white);
}
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* ─── LEFT COLUMN ─── */
.course-content-column h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  margin-top: 48px;
}
.course-content-column h2:first-child {
  margin-top: 0;
}
.course-content-column > div:first-child h2:first-child {
  margin-top: 0;
}
.course-content-column p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 16px;
}
.content-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 48px 0;
}

/* What You'll Learn */
.learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.55;
}
.learn-list li .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.learn-list li .check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Who Needs This */
.who-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.who-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.55;
}
.who-list li .role-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 8px;
  opacity: 0.6;
}

/* Regulatory Background */
.regulatory-block {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.regulatory-block p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ─── FAQ ACCORDION ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.active {
  border-color: var(--orange);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s;
}
.faq-question:hover {
  background: var(--off-white);
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.faq-item.active .faq-icon {
  background: var(--orange-light);
  transform: rotate(45deg);
}
.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-600);
  transition: stroke 0.3s;
}
.faq-item.active .faq-icon svg {
  stroke: var(--orange);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 20px 20px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ─── BUNDLE CALLOUT ─── */
.bundle-callout {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s;
  margin-bottom: 16px;
}
.bundle-callout:last-child {
  margin-bottom: 0;
}
.bundle-callout:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bundle-callout-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--orange-light);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bundle-callout-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--orange);
  fill: none;
}
.bundle-callout-text h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.bundle-callout-text p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.55;
}
.bundle-callout-text .bundle-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.bundle-callout-text .bundle-link:hover { gap: 8px; }
.bundle-callout-text .bundle-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--orange);
  fill: none;
}

/* ─── RELATED COURSES ─── */
.related-courses-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 24px;
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  background: var(--white);
  transition: all 0.3s;
}
.related-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.related-card .rc-category {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.related-card .rc-meta {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.related-card .rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.related-card .rc-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}
.related-card .rc-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.related-card .rc-link:hover { gap: 8px; }

/* ─── PURCHASE PANEL (RIGHT COLUMN) ─── */
.purchase-panel-wrapper {
  position: sticky;
  top: 96px;
}
.purchase-panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.purchase-panel-header {
  padding: 28px 28px 0;
}
.purchase-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.purchase-price-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-top: 2px;
  margin-bottom: 24px;
}
.purchase-panel-body {
  padding: 0 28px;
}

/* Volume Pricing Table */
.volume-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.volume-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.volume-table th,
.volume-table td {
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.volume-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gray-600);
  text-align: left;
  font-size: 0.78rem;
}
.volume-table td {
  color: var(--gray-800);
}
.volume-table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
}
.volume-table tr.active-tier td {
  color: var(--navy);
  font-weight: 600;
}
.volume-table tr.active-tier td:last-child {
  color: var(--orange);
}
.volume-table .quote-link {
  color: var(--orange);
  font-weight: 600;
}

/* Quantity & Cart */
.quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.quantity-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  max-width: 140px;
}
.qty-btn {
  width: 40px;
  height: 42px;
  border: none;
  background: var(--off-white);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover {
  background: var(--gray-100);
  color: var(--navy);
}
.qty-input {
  width: 60px;
  height: 42px;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.subtotal-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
}
.subtotal-amount {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.add-to-cart-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Language Selector */
.language-select-row {
  margin-bottom: 20px;
}
.lang-select-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.lang-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c95a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Bilingual Callout */
.bilingual-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--teal-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.bilingual-callout svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  margin-top: 1px;
}
.bilingual-callout p {
  font-size: 0.82rem;
  color: var(--teal);
  line-height: 1.5;
  font-weight: 500;
}

/* Certificate callout */
.cert-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.cert-callout svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--teal);
}
.cert-callout p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* Need Help */
.purchase-panel-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--gray-100);
  margin-top: 4px;
}
.need-help-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.need-help-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.need-help-phone svg {
  width: 16px; height: 16px;
  stroke: var(--orange);
}
.need-help-quote {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.need-help-quote:hover { gap: 8px; }

/* ─── MOBILE STICKY ADD TO CART ─── */
.mobile-cart-bar { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .course-detail-grid {
    grid-template-columns: 1fr 340px;
    gap: 36px;
  }
  .related-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero { padding: 28px 0 40px; }
  .page-hero h1 { font-size: 1.6rem; }

  .course-meta-row { gap: 8px; }
  .meta-badge { font-size: 0.72rem; padding: 4px 10px; }

  .quick-answer-block { padding: 20px; }

  .course-detail-section { padding: 32px 0 80px; }
  .course-detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .course-content-column h2 {
    font-size: 1.2rem;
    margin-top: 36px;
  }

  .purchase-panel-wrapper {
    position: static;
    order: -1;
    margin-bottom: 36px;
  }

  .related-cards {
    grid-template-columns: 1fr;
  }

  .bundle-callout {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .regulatory-block { padding: 20px 24px; }

  .mobile-cart-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: opacity 0.3s;
  }
  .mobile-cart-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--orange);
  }
  .mobile-cart-label {
    font-size: 0.72rem;
    color: var(--gray-400);
  }
  .mobile-cart-bar .btn-primary {
    padding: 14px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.4rem; }
  .meta-badge.regulation { display: none; }
}
