/* Trang chi tiết khóa học (v2) */
.lms-single-course { background: var(--brand-bg); padding: 28px 0 72px; }
.lms-course-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.lms-course-breadcrumb { font-size: .9rem; color: #7a8a80; margin-bottom: 14px; }
.lms-course-breadcrumb a { color: var(--brand-green); text-decoration: none; }
.lms-course-breadcrumb span { color: #4a5a50; }

.lms-course-header { margin-bottom: 28px; }
.lms-course-title { margin: 0 0 14px; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--brand-green-dark); }
.lms-course-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: #4a5a50; font-size: .98rem; }
.lms-course-facts i { color: var(--brand-green); margin-right: 6px; }

.lms-course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.lms-course-layout .lms-course-main { grid-column: 1; grid-row: 1; }
.lms-course-layout .lms-course-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 90px; }

.lms-buy-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 4px 22px rgba(33, 53, 38, .12); }
.lms-buy-thumb { margin: -20px -20px 16px; border-radius: 18px 18px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #e3ede5; }
.lms-buy-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lms-buy-price { font-size: 2rem; font-weight: 800; color: var(--brand-cta); line-height: 1.1; }
.lms-buy-price.is-free { color: var(--brand-green); }
.lms-buy-note { margin: 6px 0 16px; color: #5b6770; font-size: .94rem; }
.lms-buy-cta { margin-bottom: 16px; }
.lms-buy-cta .lms-btn { width: 100%; justify-content: center; text-align: center; padding: 14px 18px; font-size: 1.02rem; font-weight: 700; }
.lms-buy-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--brand-line); display: grid; gap: 8px; font-size: .94rem; color: #3a4a40; }
.lms-buy-list i { color: var(--brand-green); margin-right: 8px; }

.lms-course-section { background: #fff; border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(33, 53, 38, .06); }
.lms-course-section h2 { margin: 0 0 14px; font-size: 1.3rem; color: var(--brand-green-dark); }
.lms-course-section h2 small { font-weight: 500; color: #7a8a80; font-size: .85rem; margin-left: 8px; }
.lms-course-description { color: #34423a; line-height: 1.75; }
.lms-course-description > *:last-child { margin-bottom: 0; }

.lms-curriculum { list-style: none; margin: 0; padding: 0; }
.lms-curriculum-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--brand-line); }
.lms-curriculum-item:last-child { border-bottom: 0; }
.lms-curriculum-icon { width: 30px; height: 30px; border-radius: 50%; background: #eaf3ec; color: var(--brand-green); display: grid; place-items: center; font-size: .75rem; flex: none; }
.lms-curriculum-name { flex: 1; color: #1d2b22; }
.lms-curriculum-free { background: #D84315; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.lms-curriculum-time { color: #7a8a80; font-size: .88rem; }

.lms-course-teacher { display: flex; gap: 18px; align-items: center; }
.lms-course-teacher img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.lms-course-teacher h2 { margin-bottom: 6px; }
.lms-course-teacher p { margin: 0; color: #34423a; line-height: 1.65; }

@media (max-width: 900px) {
	.lms-course-layout { grid-template-columns: 1fr; gap: 20px; }
	/* Khung mua hàng lên ngay dưới tiêu đề để dễ bấm trên điện thoại */
	.lms-course-layout .lms-course-sidebar { grid-column: 1; grid-row: 1; position: static; }
	.lms-course-layout .lms-course-main { grid-column: 1; grid-row: 2; }
	.lms-course-section { padding: 20px; }
	.lms-course-teacher { flex-direction: column; text-align: center; }
}

/* Gỡ nền xanh/đổ bóng của .lms-course-header cũ (single.css) */
.lms-single-course .lms-course-header { background: none; padding: 0; box-shadow: none; border: 0; border-radius: 0; color: inherit; text-align: left; margin-bottom: 28px; }
.lms-single-course .lms-course-header::before { display: none; }
.lms-single-course .lms-course-title { color: var(--brand-green-dark); text-shadow: none; }

.lms-buy-price.is-soon { color: #8a6d1d; font-size: 1.6rem; }
