/* VDH Khoá Học — dùng màu và font sẵn có của site (Elementor global). */
.vdhc {
	--vdhc-brand: var(--e-global-color-primary, #ff7700);
	--vdhc-brand-dark: #d96200;
	--vdhc-ink: var(--e-global-color-accent, #000927);
	--vdhc-text: #2b3440;
	--vdhc-muted: #6b7480;
	--vdhc-line: #e8eaee;
	--vdhc-soft: #fff6ec;
	--vdhc-bg: #f6f7f9;
	--vdhc-radius: 14px;
	color: var(--vdhc-text);
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	line-height: 1.6;
}
.vdhc *, .vdhc *::before, .vdhc *::after { box-sizing: border-box; }
.vdhc h1, .vdhc h2, .vdhc h3 { color: var(--vdhc-ink); font-family: var(--e-global-typography-primary-font-family, inherit), sans-serif; line-height: 1.25; }
.vdhc a { color: var(--vdhc-brand-dark); }
.vdhc-ic { flex: none; vertical-align: middle; }
.vdhc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Đầu trang khoá học */
.vdhc-hero { background: var(--vdhc-bg); border-bottom: 1px solid var(--vdhc-line); padding: 28px 0 36px; }
.vdhc-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; color: var(--vdhc-muted); }
.vdhc-crumbs a { color: var(--vdhc-muted); text-decoration: none; }
.vdhc-crumbs a:hover { color: var(--vdhc-brand-dark); }
.vdhc-crumbs .vdhc-ic { width: 14px; height: 14px; }
.vdhc-hero__title { font-size: clamp(26px, 3.6vw, 40px); margin: 14px 0 10px; max-width: 760px; }
.vdhc-hero__lead { font-size: 17px; max-width: 760px; margin: 0 0 12px; }
.vdhc-hero__meta { color: var(--vdhc-muted); margin: 0; }
.vdhc-hero__meta strong { color: var(--vdhc-ink); }

/* Bố cục hai cột: nội dung + khung mua */
.vdhc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 56px; }
.vdhc-side { position: sticky; top: 24px; margin-top: -140px; }
.admin-bar .vdhc-side { top: 56px; }
.vdhc-card { background: #fff; border: 1px solid var(--vdhc-line); border-radius: var(--vdhc-radius); box-shadow: 0 10px 30px rgba(0, 9, 39, .08); overflow: hidden; }
.vdhc-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vdhc-card__body { padding: 22px; }
.vdhc-card__price { font-size: 26px; font-weight: 700; color: var(--vdhc-ink); margin-bottom: 14px; }
.vdhc-card__price del { font-size: 17px; font-weight: 400; color: var(--vdhc-muted); margin-right: 6px; }
.vdhc-card__price ins { text-decoration: none; }
.vdhc-card__login { text-align: center; font-size: 15px; color: var(--vdhc-muted); margin: 12px 0 0; }
.vdhc-facts { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--vdhc-line); }
.vdhc-facts li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.vdhc-facts .vdhc-ic { color: var(--vdhc-brand); }
.vdhc-facts strong { margin-left: auto; color: var(--vdhc-ink); }

/* Nút */
.vdhc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; border: 2px solid var(--vdhc-brand); border-radius: 10px; background: var(--vdhc-brand); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.vdhc-btn:hover { background: var(--vdhc-brand-dark); border-color: var(--vdhc-brand-dark); }
.vdhc-btn + .vdhc-btn { margin-top: 10px; }
.vdhc-btn--ghost { background: #fff; color: var(--vdhc-brand-dark) !important; }
.vdhc-btn--ghost:hover { background: var(--vdhc-soft); }
.vdhc-btn .vdhc-ic { width: 18px; height: 18px; }

/* Tiến độ */
.vdhc-progress { height: 8px; border-radius: 99px; background: var(--vdhc-line); overflow: hidden; }
.vdhc-progress span { display: block; height: 100%; background: var(--vdhc-brand); border-radius: inherit; }
.vdhc-progress__label { font-size: 14px; color: var(--vdhc-muted); margin: 8px 0 14px; }

/* Thông báo */
.vdhc-notice { padding: 14px 18px; border-radius: 10px; background: var(--vdhc-soft); border: 1px solid #ffd9b0; margin-bottom: 24px; }
.vdhc-notice--ok { background: #ecfdf3; border-color: #a6f4c5; }

/* Chương trình học */
.vdhc-curriculum { margin-top: 40px; }
.vdhc-curriculum__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vdhc-curriculum__head h2 { margin: 0; font-size: 26px; }
.vdhc-curriculum__sum { color: var(--vdhc-muted); margin: 6px 0 18px; }
.vdhc-expand { background: none; border: 0; padding: 6px 0; color: var(--vdhc-brand-dark); font: inherit; font-weight: 600; cursor: pointer; }
.vdhc-section { border: 1px solid var(--vdhc-line); border-radius: 10px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.vdhc-section summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--vdhc-bg); cursor: pointer; list-style: none; font-weight: 600; color: var(--vdhc-ink); }
.vdhc-section summary::-webkit-details-marker { display: none; }
.vdhc-section__title { flex: 1; }
.vdhc-section__count { color: var(--vdhc-muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
.vdhc-section summary .vdhc-ic { transition: transform .2s; color: var(--vdhc-muted); }
.vdhc-section[open] summary .vdhc-ic { transform: rotate(180deg); }
.vdhc-lessons { list-style: none; margin: 0; padding: 0; }
.vdhc-lesson { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--vdhc-line); }
.vdhc-lesson > .vdhc-ic { color: var(--vdhc-muted); width: 18px; height: 18px; }
.vdhc-lesson > a, .vdhc-lesson > span:not(.vdhc-lesson__meta) { flex: 1; color: var(--vdhc-text); text-decoration: none; }
.vdhc-lesson > a:hover { color: var(--vdhc-brand-dark); }
.vdhc-lesson__meta { display: flex; align-items: center; gap: 10px; color: var(--vdhc-muted); font-size: 14px; white-space: nowrap; }
.vdhc-lesson__meta .vdhc-ic { width: 16px; height: 16px; }
.vdhc-lesson.is-done > .vdhc-ic { color: #12b76a; }
.vdhc-lesson.is-current { background: var(--vdhc-soft); }
.vdhc-lesson.is-current > a { color: var(--vdhc-brand-dark); font-weight: 600; }
.vdhc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--vdhc-soft); color: var(--vdhc-brand-dark) !important; font-size: 13px; font-weight: 600; text-decoration: none; }

/* Giảng viên */
.vdhc-teacher { margin-top: 44px; }
.vdhc-teacher h2 { font-size: 26px; }
.vdhc-teacher__card { display: flex; gap: 24px; align-items: flex-start; }
.vdhc-teacher__avatar { width: 120px; height: 120px; border-radius: var(--vdhc-radius); object-fit: cover; flex: none; }
.vdhc-teacher h3 { margin: 4px 0 8px; font-size: 22px; }

/* Trang học bài */
.vdhc-learn { background: var(--vdhc-bg); }
.vdhc-learn__bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--vdhc-ink); color: #fff; }
.vdhc-learn__back { display: flex; align-items: center; gap: 6px; color: #fff !important; text-decoration: none; font-weight: 600; min-width: 0; }
.vdhc-learn__back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdhc-learn__progress { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; }
.vdhc-learn__progress .vdhc-progress { width: 140px; background: rgba(255, 255, 255, .2); }
.vdhc-learn__toggle { display: none; align-items: center; gap: 6px; background: none; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; color: #fff; padding: 6px 12px; font: inherit; cursor: pointer; }
.vdhc-learn__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.vdhc-learn__main { padding: 24px clamp(16px, 3vw, 40px) 48px; min-width: 0; }
.vdhc-learn__side { background: #fff; border-left: 1px solid var(--vdhc-line); max-height: calc(100vh - 0px); overflow: auto; position: sticky; top: 0; }
.vdhc-learn__side .vdhc-section { border-radius: 0; border-width: 0 0 1px; margin: 0; }
.vdhc-learn__side .vdhc-lesson { padding: 11px 18px; font-size: 15px; }
.vdhc-learn__section { color: var(--vdhc-muted); margin: 20px 0 4px; font-size: 15px; }
.vdhc-learn__title { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 16px; }
.vdhc-learn__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--vdhc-line); }
.vdhc-learn__nav .vdhc-btn { width: auto; }
.vdhc-learn__nav form { margin: 0; }
.vdhc-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.vdhc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vdhc-video--error { display: flex; align-items: center; justify-content: center; padding: 24px; color: #fff; text-align: center; }
.vdhc-video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.vdhc-video--oembed > :first-child, .vdhc-video--oembed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* Chữ chìm cho video YouTube/Vimeo/Drive/mp4: trôi chậm qua lại, không chặn thao tác bấm. */
.vdhc-wm { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.vdhc-wm span { position: absolute; left: 4%; top: 8%; padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .7); font-size: clamp(11px, 1.4vw, 14px); white-space: nowrap; animation: vdhc-wm 36s linear infinite; }
@keyframes vdhc-wm {
	0% { left: 4%; top: 8%; }
	25% { left: 55%; top: 30%; }
	50% { left: 10%; top: 62%; }
	75% { left: 50%; top: 84%; }
	100% { left: 4%; top: 8%; }
}
@media (prefers-reduced-motion: reduce) { .vdhc-wm span { animation: none; } }

/* Khoá học của tôi */
.vdhc-mine { display: grid; gap: 16px; }
.vdhc-mine__item { display: flex; gap: 18px; padding: 16px; border: 1px solid var(--vdhc-line); border-radius: var(--vdhc-radius); background: #fff; }
.vdhc-mine__thumb { flex: none; width: 200px; }
.vdhc-mine__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.vdhc-mine__body { flex: 1; min-width: 0; }
.vdhc-mine__body h3 { margin: 0 0 12px; font-size: 19px; }
.vdhc-mine__body h3 a { color: var(--vdhc-ink); text-decoration: none; }
.vdhc-mine .vdhc-btn { width: auto; display: inline-flex; padding: 10px 22px; }
.vdhc-empty { padding: 24px; text-align: center; border: 1px dashed var(--vdhc-line); border-radius: var(--vdhc-radius); }
.vdhc-empty .vdhc-btn { width: auto; display: inline-flex; }
/* Danh sách khoá học [vdh_khoa_hoc] */
.vdhc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 8px 0 40px; }
.vdhc-list__item { display: flex; flex-direction: column; border: 1px solid var(--vdhc-line); border-radius: var(--vdhc-radius); background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 9, 39, .06); }
.vdhc-list__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vdhc-list__noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--vdhc-brand), var(--vdhc-brand-dark)); color: #fff; }
.vdhc-list__noimg .vdhc-ic { width: 56px; height: 56px; stroke-width: 1.5; }
.vdhc-list__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.vdhc-list__body h3 { margin: 0 0 8px; font-size: 20px; }
.vdhc-list__body h3 a { color: var(--vdhc-ink); text-decoration: none; }
.vdhc-list__lead { margin: 0 0 12px; color: var(--vdhc-muted); font-size: 15px; }
.vdhc-list__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; font-size: 14px; color: var(--vdhc-muted); }
.vdhc-list__meta .vdhc-ic { width: 16px; height: 16px; color: var(--vdhc-brand); }
.vdhc-list__owned { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #16a34a; font-weight: 600; }
.vdhc-list__owned .vdhc-ic { color: #16a34a; }
.vdhc-list__foot { margin-top: auto; }
.vdhc-list .vdhc-card__price { font-size: 22px; margin-bottom: 12px; }
.vdhc-thankyou { margin: 0 0 32px; padding: 20px; border: 1px solid #ffd9b0; border-radius: 12px; background: #fff6ec; }

/* v1.6 – Khu học (Tài khoản + [vdh_khu_hoc]) */
.vdhc-hub { margin: 0 0 32px; }
.vdhc-hub__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.vdhc-hub__head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.vdhc-tier { display: inline-flex; padding: 4px 12px; border-radius: 99px; background: var(--vdhc-soft); color: var(--vdhc-brand-dark); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.vdhc-tier.is-pro { background: var(--vdhc-ink); color: #ffc46b; }
.vdhc-hub__group { margin: 28px 0 6px; font-size: 20px; }
.vdhc-hub__hint { margin: 0 0 16px; color: var(--vdhc-muted); font-size: 15px; }
.vdhc-hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 12px; }
.vdhc-hub__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vdhc-line); border-radius: var(--vdhc-radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 9, 39, .06); transition: transform .15s, box-shadow .15s; }
.vdhc-hub__card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 9, 39, .12); }
.vdhc-hub__thumb { position: relative; display: block; }
.vdhc-hub__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vdhc-flag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 8px; background: var(--vdhc-brand); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.vdhc-flag .vdhc-ic { width: 15px; height: 15px; }
.vdhc-flag.is-owned { background: #16a34a; }
.vdhc-hub__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.vdhc-hub__body h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.vdhc-hub__body h4 a { color: var(--vdhc-ink); text-decoration: none; }
.vdhc-hub__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; color: var(--vdhc-muted); }
.vdhc-hub__meta .vdhc-ic { width: 16px; height: 16px; color: var(--vdhc-brand); }
.vdhc-hub__body .vdhc-btn { margin-top: auto; padding: 11px 16px; font-size: 15px; }
.vdhc-hub .vdhc-progress__label { margin: 6px 0 12px; }

/* v1.6 – Nhãn bài và màn hình "Nâng cấp ngay" trong trình học */
.vdhc-badge--pro { background: var(--vdhc-ink); color: #ffc46b !important; }
.vdhc-lesson.is-locked > a { color: var(--vdhc-muted); }
.vdhc-learn__title .vdhc-badge { vertical-align: middle; margin-left: 8px; font-size: 12px; }
.vdhc-paywall { position: relative; aspect-ratio: 16 / 9; min-height: 300px; border-radius: 12px; overflow: hidden; background: var(--vdhc-ink); display: flex; align-items: center; justify-content: center; }
.vdhc-paywall__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.35); transform: scale(1.08); }
.vdhc-paywall__box { position: relative; z-index: 1; max-width: 460px; padding: 24px; text-align: center; color: #fff; }
.vdhc-paywall__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); margin-bottom: 10px; }
.vdhc-paywall__icon .vdhc-ic { width: 26px; height: 26px; color: #ffc46b; }
.vdhc-paywall__title { margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; line-height: 1.3; color: #fff; }
.vdhc-paywall__text { margin: 0 0 12px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.vdhc-paywall__price { margin: 0 0 14px; font-size: 24px; font-weight: 700; color: #fff; }
.vdhc-paywall__price del { color: rgba(255, 255, 255, .55); font-size: 16px; font-weight: 400; margin-right: 6px; }
.vdhc-paywall__price ins { text-decoration: none; color: #ffc46b; }
.vdhc-paywall__btn { width: auto; display: inline-flex; padding: 13px 34px; }
.vdhc-paywall__alt { display: block; margin-top: 12px; color: rgba(255, 255, 255, .75) !important; font-size: 14px; }

@media (max-width: 960px) {
	.vdhc-layout { grid-template-columns: 1fr; gap: 28px; }
	.vdhc-side { position: static; margin-top: 0; order: -1; }
	.vdhc-learn__grid { grid-template-columns: 1fr; }
	.vdhc-learn__toggle { display: inline-flex; }
	.vdhc-learn__progress .vdhc-progress { width: 80px; }
	.vdhc-learn__side { display: none; position: static; max-height: none; border-left: 0; border-top: 1px solid var(--vdhc-line); }
	.vdhc-learn__side.is-open { display: block; }
}
@media (max-width: 600px) {
	.vdhc-hub__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.vdhc-hub__body { padding: 10px 12px 12px; }
	.vdhc-hub__body h4 { font-size: 15px; }
	.vdhc-flag { top: 6px; right: 6px; padding: 3px 8px; font-size: 12px; }
	.vdhc-paywall { aspect-ratio: auto; }
	.vdhc-teacher__card, .vdhc-mine__item { flex-direction: column; }
	.vdhc-mine__thumb { width: 100%; }
	.vdhc-lesson { padding: 12px 14px; }
	.vdhc-learn__nav { flex-direction: column-reverse; }
	.vdhc-learn__nav .vdhc-btn { width: 100%; }
	.vdhc-learn__back span { max-width: 46vw; }
}
