/* ==========================================================================
   Identity Design — LMS (course / lesson templates)
   CSS riêng, tách biệt khỏi landing.css.
   ========================================================================== */

.id21-lms {
	--blue: #1432ff;
	--blue-dark: #071bb5;
	--green: #35d12f;
	--navy: #070915;
	--ink: #101116;
	--muted: #5f6270;
	--line: #dfe1e8;
	--panel: #f4f5f8;

	margin: 0;
	font-family: "Be Vietnam Pro", Montserrat, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
}
.id21-lms * {
	box-sizing: border-box;
}
.id21-lms-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}
.id21-lms a {
	color: var(--blue);
	text-decoration: none;
}

.id21-lms-topbar {
	background: var(--navy);
	color: #fff;
	padding: 16px 0;
}
.id21-lms-topbar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.id21-lms-logo {
	color: #fff !important;
	font-weight: 800;
}
.id21-lms-nav {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
}
.id21-lms-nav a {
	color: #cfd3ff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.id21-lms-nav a:hover,
.id21-lms-nav .current-menu-item a {
	color: #fff;
}
.id21-lms-topbar a {
	color: #cfd3ff;
}

/* Header auth cluster — guests: Đăng nhập/Đăng ký links; logged in: avatar + hover dropdown */
.id21-auth-links {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	font-weight: 600;
}
.id21-auth-links a {
	color: #cfd3ff;
}
.id21-auth-links .id21-auth-register {
	color: #fff;
	background: var(--blue);
	padding: 8px 16px;
	border-radius: 6px;
}
.id21-auth-links .id21-auth-register:hover {
	background: var(--blue-dark);
}

.id21-account-cluster {
	position: relative;
}
.id21-account-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: 99px;
	color: #fff;
}
.id21-account-trigger:hover {
	background: rgba(255, 255, 255, 0.08);
}
.id21-account-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.id21-account-name {
	font-size: 14px;
	font-weight: 600;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.id21-account-chevron {
	font-size: 10px;
	opacity: 0.7;
}

.id21-account-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 10px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	min-width: 190px;
	overflow: hidden;
	z-index: 50;
	padding: 6px;
}
.id21-account-cluster:hover .id21-account-dropdown,
.id21-account-cluster:focus-within .id21-account-dropdown {
	display: block;
}
.id21-account-dropdown a {
	display: block;
	padding: 10px 12px;
	color: var(--ink) !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
}
.id21-account-dropdown a:hover {
	background: var(--panel);
}
.id21-account-dropdown .id21-account-logout {
	color: #a3212f !important;
}

/* Fallback chrome for pages with no dedicated page-template (checkout, cart, shop, 404, search) */
.id21-default-content {
	padding: 48px 24px 80px;
	min-height: 50vh;
}
.id21-default-footer {
	padding: 30px 0;
	color: var(--muted);
	font-size: 13px;
	border-top: 1px solid var(--line);
	margin-top: 40px;
}

.id21-cta-buy {
	display: inline-block;
	background: var(--blue);
	color: #fff !important;
	font-weight: 800;
	padding: 14px 28px;
	box-shadow: 0 4px var(--blue-dark);
	border: none;
	cursor: pointer;
	font-size: 15px;
	margin: 20px 0;
}

/* Progress bar */
.id21-progress-bar {
	background: var(--line);
	height: 8px;
	border-radius: 99px;
	overflow: hidden;
	margin: 12px 0;
}
.id21-progress-bar-lg {
	height: 10px;
}
.id21-progress-bar span {
	display: block;
	height: 100%;
	background: var(--green);
}

/* Course page */
.id21-course-page {
	padding: 48px 24px 80px;
}
.id21-course-page h1 {
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 800;
	margin-bottom: 12px;
}
.id21-course-intro {
	color: var(--muted);
	max-width: 700px;
	margin-bottom: 8px;
}

.id21-curriculum-list {
	margin-top: 32px;
}
.id21-topic-block {
	border: 1px solid var(--line);
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 20px 24px;
}
.id21-topic-block h2 {
	font-size: 17px;
	margin: 0 0 12px;
}
.id21-topic-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.id21-topic-block li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid var(--line);
	font-size: 14px;
}
.id21-topic-block li:first-child {
	border-top: none;
}
.id21-topic-block li.is-locked {
	color: var(--muted);
}
.id21-topic-block li.is-done a {
	color: var(--green);
}
.id21-free-tag {
	display: inline-block;
	background: var(--green);
	color: #06210a;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 99px;
	margin-left: 8px;
}
.id21-lesson-duration {
	color: var(--muted);
	font-size: 13px;
}

/* Lesson page: 2-column layout */
.id21-lesson-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 0;
	align-items: start;
}
.id21-lesson-main {
	padding: 32px 40px 80px;
}
.id21-lesson-main h1 {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 16px;
}
.id21-video-wrap {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	margin-bottom: 24px;
}
.id21-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.id21-video-missing {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
}
.id21-lesson-content {
	max-width: 760px;
	color: var(--ink);
	margin-bottom: 24px;
}
.id21-lesson-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	font-weight: 700;
}
.id21-locked-panel {
	background: var(--panel);
	border: 1px dashed var(--line);
	border-radius: 8px;
	padding: 40px;
	text-align: center;
}

.id21-lesson-sidebar {
	background: var(--panel);
	border-left: 1px solid var(--line);
	padding: 32px 24px;
	min-height: 100vh;
}
.id21-lesson-sidebar h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--muted);
	margin-bottom: 16px;
}
.id21-sidebar-topic {
	margin-bottom: 20px;
}
.id21-sidebar-topic strong {
	display: block;
	font-size: 13px;
	margin-bottom: 8px;
}
.id21-sidebar-topic ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.id21-sidebar-topic li {
	font-size: 13px;
	padding: 6px 0;
}
.id21-sidebar-topic li.is-current a {
	color: var(--blue);
	font-weight: 800;
}
.id21-sidebar-topic li.is-done a {
	color: var(--green);
}
.id21-sidebar-topic li.is-locked {
	color: #9aa0b4;
}

@media (max-width: 900px) {
	.id21-lesson-layout {
		grid-template-columns: 1fr;
	}
	.id21-lesson-sidebar {
		min-height: auto;
		border-left: none;
		border-top: 1px solid var(--line);
	}
	.id21-lesson-main {
		padding: 24px 20px 60px;
	}
}

/* Course archive (/khoa-hoc/) */
.id21-course-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 24px;
}
.id21-course-archive-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
}
.id21-course-archive-thumb-link {
	display: block;
	position: relative;
}
.id21-course-archive-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: var(--panel);
}
.id21-course-archive-thumb-placeholder {
	background: linear-gradient(135deg, var(--panel), var(--line));
}
.id21-course-archive-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 5px 11px;
	border-radius: 99px;
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.id21-course-archive-badge.is-progress {
	background: var(--id21-blue, #1432ff);
}
.id21-course-archive-badge.is-done {
	background: var(--green, #35d12f);
}
.id21-course-archive-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.id21-course-archive-body h3 {
	font-size: 17px;
	margin: 0 0 4px;
}
.id21-course-archive-body h3 a {
	color: inherit;
	text-decoration: none;
}
.id21-course-archive-author {
	font-size: 12px;
	color: var(--muted);
	margin: 0 0 10px;
}
.id21-course-archive-intro {
	font-size: 14px;
	color: var(--muted);
	flex: 1;
	margin: 0 0 16px;
}
.id21-course-archive-progress {
	margin-bottom: 6px;
}
.id21-course-archive-percent {
	font-size: 12px;
	color: var(--muted);
	margin: 0 0 16px;
}
.id21-course-archive-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.id21-course-archive-price {
	font-weight: 700;
}
.id21-course-archive-cta {
	padding: 8px 16px;
	font-size: 13px;
}

/* My Account "Khóa học của tôi" */
.id21-my-courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.id21-my-course-card {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 20px;
}
.id21-my-course-card h3 {
	font-size: 16px;
	margin: 0 0 8px;
}

/* SePay QR block on the WooCommerce order-received page */
.id21-sepay-qr {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 24px;
	text-align: center;
	max-width: 360px;
	margin: 24px 0;
}
.id21-sepay-waiting {
	color: var(--muted);
	font-size: 13px;
}
.id21-sepay-waiting::after {
	content: '…';
}
.id21-sepay-paid {
	background: rgba(53, 209, 47, 0.1);
	border: 1px solid var(--green);
	color: #1a7a12;
	padding: 16px 20px;
	border-radius: 8px;
	font-weight: 700;
	max-width: 360px;
	margin: 24px 0;
}
