/* ==========================================================================
   Tàu Hũ Tươi Phúc An — course.css
   Khu vực "Khoá học Tàu Hũ Tươi" — GIỚI THIỆU + TƯ VẤN, hoàn toàn tách biệt
   với hệ thống bán hàng (không giỏ hàng/đặt hàng/thanh toán/SALES_MODE).
   Phong cách: editorial/premium — tiêu đề lớn, khoảng trắng rộng, card tinh tế.
   ========================================================================== */

.course-section__head h2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-section__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Video (poster + nút Play, KHÔNG tự phát âm thanh) ---------- */
.course-video {
  position: relative;
  max-width: 380px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.course-video__player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background-color: #000;
}

.course-video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.course-video__play::before {
  content: '';
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--metallic-jade);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.course-video__play svg {
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--color-on-jade);
  margin-left: 4px;
}

.course-video__play:hover::before {
  transform: scale(1.08);
}

.course-video:hover .course-video__play {
  background: rgba(0, 0, 0, 0.28);
}

.course-section.is-playing .course-video__play {
  display: none;
}

/* ---------- Giới thiệu (editorial: nhiều đoạn ngắn, khoảng trắng rộng) ---------- */
.course-intro {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.course-intro p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.course-intro__lead {
  color: var(--color-heading) !important;
  font-family: var(--font-heading);
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.5 !important;
}

/* ---------- 5 bài học (card) ---------- */
.course-lessons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.course-lesson {
  padding: var(--space-lg) var(--space-md);
}

.course-lesson:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-jade);
}

.course-lesson__index {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-jade);
  margin-bottom: var(--space-xs);
}

.course-lesson__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.course-lesson__desc p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 10px;
}

.course-lesson__desc p:last-child {
  margin-bottom: 0;
}

/* ---------- Câu highlight ---------- */
.course-highlight {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid rgba(var(--color-jade-rgb), 0.35);
  border-bottom: 1px solid rgba(var(--color-jade-rgb), 0.35);
}

.course-highlight p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-heading);
  margin: 0;
}

/* ---------- Đối tượng phù hợp ---------- */
.course-audience {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.course-audience__title {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.course-audience__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-audience__list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-audience__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--metallic-jade);
}

/* ---------- Lưu ý ---------- */
.course-note {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ---------- Tư vấn (KHÔNG đặt hàng — chỉ mở Chat) ---------- */
.course-cta {
  text-align: center;
}

@media (min-width: 768px) {
  .course-video {
    max-width: 420px;
  }

  .course-lessons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .course-lessons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
  }
}
