/* Single course: hero, tabs, lessons, faq, related slider. Palette #2e1758 / #f3edfc / #fef3de / #d3923a. */
.nhb-course-tabs__bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.nhb-course-tabs__item { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; border: 1px solid #e2e8f0; background: #ffffff; font-size: 14.5px; font-weight: 600; color: #475569; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: color .2s ease, background .2s ease, border-color .2s ease; }
.nhb-course-tabs__item:hover, .nhb-course-tabs__item.is-active { color: #2e1758; background: #f3edfc; border-color: #c9b8ea; }
.nhb-course-tabs__item.is-active { font-weight: 700; }
.nhb-course-tabs__text p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #374151; }
.nhb-course-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nhb-course-lessons__item { border: 1px solid #eceef6; border-radius: 12px; padding: 16px 18px; background: #f7f8fc; }
.nhb-course-lessons__title { margin: 0 0 6px; font-size: 16px; color: #2e1758; }
.nhb-course-lessons__desc { margin: 0 0 8px; font-size: 14px; color: #475569; }
.nhb-course-lessons__video { font-size: 14px; font-weight: 600; color: #2e1758; }
.nhb-course-faq { display: grid; gap: 12px; }
.nhb-course-faq__item { border: 1px solid #eceef6; border-radius: 12px; padding: 14px 18px; background: #fff; }
.nhb-course-faq__q { font-weight: 700; color: #2e1758; cursor: pointer; }
.nhb-course-faq__a { font-size: 14px; color: #475569; }
.nhb-course-related { padding: 40px 0; }
.nhb-course-related__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nhb-course-related__head h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; color: #2e1758; }
.nhb-course-related__head a { color: #2e1758; font-weight: 600; text-decoration: none; }
.nhb-course-related__wrap { display: flex; align-items: center; gap: 12px; }
.nhb-course-related__nav { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #2e1758; font-size: 22px; cursor: pointer; }
.nhb-course-related__nav:hover { background: #2e1758; color: #fff; border-color: #2e1758; }
.nhb-course-related__track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; }
.nhb-course-related__card { flex: 0 0 240px; background: #fff; border: 1px solid #eceef6; border-radius: 12px; overflow: hidden; }
.nhb-course-related__cover { display: block; aspect-ratio: 16/9; background: #f3edfc; }
.nhb-course-related__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nhb-course-related__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; text-align: center; font-size: 14px; font-weight: 700; color: #2e1758; }
.nhb-course-related__body { padding: 14px 16px; }
.nhb-course-related__title { margin: 0 0 8px; font-size: 15px; }
.nhb-course-related__title a { color: #2e1758; text-decoration: none; }
.nhb-course-related__price { font-weight: 800; color: #b91c1c; }
@media (max-width: 1024px) { .nhb-course-hero-single__grid { grid-template-columns: 1fr; gap: 36px; } }

/* Học thử: ảnh đại diện làm nền, nút mở link YouTube */
.nhb-course-hero-single__demo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(46,23,88,.45); color: #fff; text-decoration: none; transition: background .2s ease; }
.nhb-course-hero-single__demo:hover { background: rgba(46,23,88,.6); color: #fff; }
.nhb-course-hero-single__demo-play { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #2e1758; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nhb-course-hero-single__demo-play svg { width: 30px; height: 30px; margin-left: 4px; }
.nhb-course-hero-single__demo-text { font-size: 15px; font-weight: 700; letter-spacing: .02em; }

/* Badge "Nổi bật" trong hero trang đơn: nằm trong luồng, không đè tiêu đề */
.nhb-course-badge--single { position: static; display: inline-block; margin: 0 0 12px; }

/* ===== Hero trang chi tiết (bố cục mẫu thiết kế) ===== */
.nhb-course-hero-single { position: relative; margin: 0 -48px; padding: 28px 48px 36px; min-height: 420px; background: #fdf8f0; border-radius: 18px; overflow: hidden; isolation: isolate; }
.nhb-course-hero-single__inner { position: relative; z-index: 1; }
.nhb-course-hero-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: stretch; gap: 32px; }
.nhb-course-hero-single__text { min-width: 0; padding-top: 12px; }
.nhb-course-hero-single__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #c3791a; }
.nhb-course-hero-single__eyebrow::before, .nhb-course-hero-single__eyebrow::after { content: ""; width: 60px; height: 1px; background: #d3923a; }
.nhb-course-hero-single__title { margin: 0 0 16px; font-family: "Playfair Display", Georgia, serif; font-weight: 800; line-height: 1.08; color: #2e1758; font-size: clamp(38px, 4.4vw, 62px); }
.nhb-course-hero-single__title-main { display: block; }
.nhb-course-hero-single__title-sub { display: block; font-style: italic; font-weight: 700; color: #d3923a; }
.nhb-course-hero-single__subtitle { margin: 0 0 22px; max-width: 520px; font-size: 16.5px; line-height: 1.65; color: #334e8f; }
.nhb-course-hero-single__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.nhb-course-hero-single__points li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; color: #2e1758; }
.nhb-course-hero-single__icon { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #e6c48e; background: #fff; color: #d3923a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nhb-course-hero-single__icon svg { width: 20px; height: 20px; }
.nhb-course-hero-single__bgwrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nhb-course-hero-single__bg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.nhb-course-hero-single__bgwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253,248,240,1) 0%, rgba(253,248,240,.94) 38%, rgba(253,248,240,.45) 62%, rgba(253,248,240,0) 85%); }
@media (max-width: 1024px) {
	.nhb-course-hero-single__grid { grid-template-columns: 1fr; }
}

/* ===== Thân trang: video + tab (trái), danh sách bài học (phải) ===== */
.nhb-course-tabs { padding: 40px 0 56px; background: #fff; }
.nhb-course-tabs__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 28px;
    align-items: start;
}
.nhb-course-tabs__video { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(46,23,88,.12); margin-bottom: 28px; }
.nhb-course-tabs__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nhb-course-tabs__panel { padding-top: 4px; }
.nhb-course-tabs__side { border: 1px solid #eceef6; border-radius: 14px; background: #fff; overflow: hidden; }
.nhb-course-tabs__side-head { padding: 16px 18px; border-bottom: 1px solid #eceef6; background: #faf6ff; }
.nhb-course-tabs__side-head h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 20px; color: #2e1758; }
.nhb-course-side-list { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; }
.nhb-course-side-list__item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f1f2f8; }
.nhb-course-side-list__item:last-child { border-bottom: 0; }
.nhb-course-side-list__num { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #d3923a; padding-top: 2px; }
.nhb-course-side-list__body { min-width: 0; flex: 1; }
.nhb-course-side-list__body strong { display: block; font-size: 14.5px; line-height: 1.35; color: #2e1758; }
.nhb-course-side-list__body small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: #646da0; }
@media (max-width: 1024px) {
	.nhb-course-tabs__layout { grid-template-columns: 1fr; }
}

/* Thumbnail YouTube trong danh sách bài học (trước tiêu đề) */
.nhb-course-side-list__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nhb-course-side-list__text strong { display: block; }

/* Danh sách bài học: số, thumbnail nhỏ bên trái, tiêu đề bên phải */
.nhb-course-side-list__item { display: flex; align-items: center; gap: 12px; }
.nhb-course-side-list__body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nhb-course-side-list__thumb { display: block; flex-shrink: 0; width: 96px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #000; }
.nhb-course-side-list__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nhb-course-side-list__text { min-width: 0; }

/* Tham khảo: danh sách mỗi dòng một tài liệu */
.nhb-course-refs { margin: 0; padding: 0 0 0 20px; font-size: 15px; line-height: 1.7; color: #374151; }
.nhb-course-refs li { margin-bottom: 8px; }

/* ===== Về giảng viên: luôn hiển thị dưới tab nội dung ===== */
.nhb-course-instructor { margin-top: 40px; padding-top: 32px; border-top: 1px solid #f1f2f8; }
.nhb-course-instructor__heading { margin: 0 0 20px; font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 800; color: #2e1758; }
.nhb-course-instructor__card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.nhb-course-instructor__photo-wrap { border-radius: 16px; overflow: hidden; background: #fbf8f3; border: 1px solid #f1f2f8; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; box-shadow: 0 4px 14px rgba(46, 23, 88, 0.04); }
.nhb-course-instructor__photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.nhb-course-instructor__info { min-width: 0; }
.nhb-course-instructor__name { margin: 0 0 16px; font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 800; color: #2e1758; }
.nhb-course-instructor__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nhb-course-instructor__item { display: flex; align-items: flex-start; gap: 14px; }
.nhb-course-instructor__icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 6px; border: 1.5px solid #d3923a; background: #fffdf9; color: #d3923a; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.nhb-course-instructor__icon svg { width: 18px; height: 18px; }
.nhb-course-instructor__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #374151; }
@media (max-width: 768px) {
	.nhb-course-instructor__card { grid-template-columns: 1fr; gap: 20px; }
	.nhb-course-instructor__photo-wrap { max-width: 220px; margin: 0 auto; }
	.nhb-course-instructor__name { text-align: center; }
}

