/* ============================================================
   COURSE.CSS — Course landing page
   Warm, light, thin-line icon system
   ============================================================ */

.course-page { background: var(--surface); }

/* ── Hero ─────────────────────────────────────────────────── */
.course-hero {
  background: linear-gradient(180deg, var(--brand-50) 0%, #f7fbf5 55%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-6) var(--space-12);
}
.course-hero .ad-breadcrumb { margin-bottom: var(--space-5); }
.course-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: var(--space-10);
  align-items: start;
}
.course-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.course-h1 {
  max-width: 780px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--neutral-950);
}
.course-sub {
  max-width: 720px;
  margin-top: var(--space-3);
  font-size: var(--text-md);
  line-height: var(--line-height-loose);
  color: var(--neutral-700);
}
.course-outcomes {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: var(--space-6) 0 var(--space-5);
  padding: 0;
}
.course-outcome {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--neutral-800);
}
.course-outcome svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--neutral-700);
}
.course-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--brand-600);
  flex: none;
}

/* ── Purchase card ────────────────────────────────────────── */
.course-buy {
  position: sticky;
  top: 88px;
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 48px -30px rgba(22, 69, 22, 0.48);
}
.course-buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.course-buy-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.course-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 10px 0 4px;
}
.course-price {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.course-prev {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  text-decoration: line-through;
}
.course-includes {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: var(--space-4) 0 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.course-includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--neutral-700);
}
.course-includes svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--brand-600);
}
.course-buy-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--space-4) 0;
}
.course-buy-instructor-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
}
.course-buy-instructor-text { display: flex; flex-direction: column; gap: 1px; }
.course-buy-instructor-name { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); }
.course-buy-instructor-role { font-size: 10.5px; color: var(--text-muted); }

.course-cta { min-height: 48px; }
.course-pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}
.course-pricing-note svg { flex: none; width: 13px; height: 13px; color: var(--brand-600); }
.course-buy-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.course-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-muted);
}
.course-trust-item svg { width: 14px; height: 14px; color: var(--brand-600); flex: none; }

/* ── Body sections ────────────────────────────────────────── */
.course-body { padding-block: var(--space-16); }
.course-section { margin-bottom: var(--space-16); }
.course-section:last-of-type { margin-bottom: 0; }

.course-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.course-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-700);
}
.course-kicker svg { width: 14px; height: 14px; }
.course-section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  color: var(--neutral-950);
}
.course-section-note {
  max-width: 340px;
  margin-bottom: 3px;
  font-size: var(--text-xs);
  line-height: 1.8;
  color: var(--text-muted);
  text-align: start;
}
.course-section-head--center {
  justify-content: center;
  text-align: center;
}
.course-section-head--center .course-section-note { margin-inline: auto; }

/* ── What you learn ───────────────────────────────────────── */
.course-learn {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.course-learn-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.course-learn-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.course-learn-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 11px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}
.course-learn-icon svg { width: 19px; height: 19px; }
.course-learn-emoji { font-size: 20px; line-height: 1; }
.course-learn-card h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  color: var(--neutral-900);
}
.course-learn-card p {
  font-size: var(--text-xs);
  line-height: 1.9;
  color: var(--text-muted);
}

/* ── Curriculum accordion ─────────────────────────────────── */
.course-acc {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.course-acc-item + .course-acc-item { border-top: 1px solid var(--border); }
.course-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: start;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.course-acc-head:hover { background: var(--brand-50); }
.course-acc-head:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.course-acc-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}
.course-acc-title {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.7;
}
.course-acc-duration {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.course-acc-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--neutral-500);
  transition: transform var(--transition-base);
}
.course-acc-head[aria-expanded="true"] .course-acc-chevron { transform: rotate(180deg); }
.course-acc-body {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 28px;
  padding-block: 0 var(--space-5);
  padding-inline: 60px var(--space-5);
}
.course-acc-body.is-open { display: grid; }
.course-lesson {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--neutral-700);
}
.course-lesson svg {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  color: var(--brand-500);
}

/* ── Instructor ───────────────────────────────────────────── */
.course-instructor {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
}
.course-instructor-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
}
.course-instructor-body { flex: 1; min-width: 0; }
.course-instructor-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
}
.course-instructor-name svg { width: 17px; height: 17px; color: var(--brand-600); }
.course-instructor-role {
  margin-top: 3px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.7;
}
.course-instructor-bio {
  max-width: 860px;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--neutral-700);
}
.course-instructor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.course-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 10.5px;
  color: var(--neutral-700);
  background: var(--surface);
}
.course-stat svg { width: 13px; height: 13px; color: var(--brand-600); flex: none; }
.course-instructor-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}
.course-instructor-link svg { width: 13px; height: 13px; }
.course-instructor-link:hover { background: var(--brand-100); }

/* ── Free samples ─────────────────────────────────────────── */
.course-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.course-sample {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.course-sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 2px;
}
.course-sample-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-700);
}
.course-sample-icon svg { width: 17px; height: 17px; }
.course-sample-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
}
.course-sample h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.7;
}
.course-sample p {
  font-size: var(--text-xs);
  line-height: 1.85;
  color: var(--text-muted);
}
.course-sample .btn {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.course-sample .btn svg { width: 13px; height: 13px; }
.course-sample-type {
  margin-inline-start: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Audience + guarantee ─────────────────────────────────── */
.course-audience-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}
.course-panel {
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.course-panel--brand {
  background: var(--brand-50);
  border-color: var(--brand-200);
}
.course-panel-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-md);
  font-weight: var(--font-weight-bold);
  color: var(--neutral-900);
}
.course-panel-title svg { flex: none; width: 19px; height: 19px; color: var(--brand-700); }
.course-guarantee {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--neutral-700);
}
.course-check-list {
  list-style: none;
  display: grid;
  gap: 9px;
  padding: 0;
}
.course-check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.8;
  color: var(--neutral-700);
}
.course-check-list svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--brand-600);
}
.course-check-list--muted li { color: var(--text-muted); }

/* ── Testimonials ─────────────────────────────────────────── */
.course-testis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.course-testi {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.course-testi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.course-stars { display: inline-flex; gap: 2px; color: var(--accent-400); }
.course-stars svg { width: 14px; height: 14px; }
.course-testi-top > svg { flex: none; width: 17px; height: 17px; color: var(--brand-300); }
.course-testi-text {
  flex: 1;
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--neutral-700);
}
.course-testi-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.course-testi-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
}
.course-testi-name { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); }

/* ── FAQ ──────────────────────────────────────────────────── */
.course-faq-section { margin-bottom: var(--space-16); }
.course-faq {
  display: grid;
  gap: var(--space-2);
  max-width: 820px;
  margin-inline: auto;
}
.course-faq-item {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.course-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  color: var(--neutral-900);
}
.course-faq-q:hover { background: var(--surface); }
.course-faq-q:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.course-faq-q span:first-child {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.7;
}
.course-faq-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--neutral-500);
  transition: transform var(--transition-base);
}
.course-faq-q[aria-expanded="true"] .course-faq-chevron { transform: rotate(180deg); }
.course-faq-a {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  font-size: 13px;
  line-height: 2;
  color: var(--text-muted);
}
.course-faq-a.is-open { display: block; }

/* ── Final CTA ────────────────────────────────────────────── */
.course-final {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  background: linear-gradient(120deg, var(--brand-900), var(--brand-800));
  color: var(--text-inverse);
}
.course-final::after {
  content: "";
  position: absolute;
  top: -130px;
  left: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}
.course-final-text { position: relative; z-index: 1; }
.course-final-kicker {
  display: inline-block;
  margin-bottom: 5px;
  font-size: var(--text-xs);
  color: var(--brand-200);
}
.course-final h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
}
.course-final p {
  margin-top: 7px;
  font-size: var(--text-sm);
  line-height: 1.9;
  color: var(--text-inverse-muted);
}
.course-final-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}
.course-final-actions .btn { min-width: 190px; }
.course-final-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-inverse-muted);
}
.course-final-note svg { width: 13px; height: 13px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .course-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .course-buy { position: static; max-width: 560px; }
  .course-learn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .course-hero { padding-block: var(--space-4) var(--space-10); }
  .course-body { padding-block: var(--space-12); }
  .course-section { margin-bottom: var(--space-12); }
  .course-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
  }
  .course-section-note { max-width: none; }
  .course-learn { grid-template-columns: minmax(0, 1fr); }
  .course-samples,
  .course-testis { grid-template-columns: minmax(0, 1fr); }
  .course-audience-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-12); }
  .course-acc-body { grid-template-columns: minmax(0, 1fr); padding-inline: var(--space-5); }
  .course-instructor { flex-direction: column; gap: var(--space-4); }
  .course-final {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-8) var(--space-6);
  }
  .course-final-actions { align-items: stretch; width: 100%; }
  .course-final-actions .btn { width: 100%; }
  .course-final-note { justify-content: center; }
}
@media (max-width: 520px) {
  .course-h1 { font-size: 1.55rem; }
  .course-sub { font-size: var(--text-base); }
  .course-buy { padding: var(--space-5); }
  .course-panel,
  .course-instructor { padding: var(--space-5); }
  .course-instructor-avatar { width: 56px; height: 56px; font-size: var(--text-base); }
  .course-acc-duration { display: none; }
  .course-acc-head { padding: var(--space-3) var(--space-4); gap: var(--space-2); }
  .course-acc-body { padding-inline: var(--space-4); }
  .course-meta-item { font-size: 10.5px; }
}

/* ── HTML5 video player (intro + lesson videos) ── */
.course-player {
  margin: var(--space-4) 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}
.course-player video {
  display: block;
  width: 100%;
  max-height: 380px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.course-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
}
.course-player-tag {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.course-lesson-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  color: var(--brand-700, #2d6f99);
  border-radius: 999px;
  padding: 3px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.course-lesson-play:hover { background: var(--brand-50, #eef6fb); }

/* Soft entrance for content sections; JS adds the class only after data loads. */
.course-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.course-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .course-reveal, .course-reveal.is-visible { opacity: 1; transform: none; transition: none; }
}
