/**
 * Ulannii — the course listing (/courses/), each course's page, and
 * Khóa học của tôi.
 *
 * After minhtrithanh.com's programme list and programme page, as approved in
 * the mock-up of 2026-09-29: a soft cream banner with a brush-stroke under the
 * heading, orange filter bars, white rounded cards with the title in capitals,
 * and on the course page a box on the right that stays in view.
 *
 * Colours are Ulannii's: the home page's orange #e2650f, a lighter orange for
 * the big buttons (as on the reference), the cream #fef3eb, and green only for
 * "open to you".
 */

.post-type-archive-sfwd-courses,
.single-sfwd-courses,
.u-my {
	--cc-or: #e2650f;
	--cc-or-btn: #ff7a1a;
	--cc-or-l: #ff8a3d;
	--cc-tint: #fff1e4;
	--cc-cream: #fef3eb;
	--cc-edge: #f7b98c;
	--cc-ink: #1b212b;
	--cc-text: #344054;
	--cc-muted: #667085;
	--cc-faint: #98a2b3;
	--cc-line: #eaecf0;
	--cc-ok: #079455;
	--cc-lock: #475467;
	--cc-lock-bg: #f2f4f7;
	--cc-blue: #1257bd;
	--cc-header: 120px;
}

html body.post-type-archive-sfwd-courses,
html body.single-sfwd-courses {
	background: #fff;
}

/* Astra's .ast-container is a flex row on a wide screen, which squeezes a
   full-bleed section down to the width of its own text. */
.post-type-archive-sfwd-courses .site-content > .ast-container,
.single-sfwd-courses .site-content > .ast-container,
body:has(.u-my) .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.post-type-archive-sfwd-courses .site-content,
.single-sfwd-courses .site-content,
body:has(.u-my) .site-content {
	padding: 0;
}

.u-cc-banner,
.u-cc,
.u-cd,
.u-my {
	color: var(--cc-ink);
	font-family: Mulish, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
}

.u-cc-banner *,
.u-cc *,
.u-cd *,
.u-my * {
	box-sizing: border-box;
}

.u-cc-wrap {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 40px;
}

.u-cc-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #475467;
}

.u-cc-crumbs a {
	color: #475467;
	text-decoration: none;
}

.u-cc-crumbs a:hover {
	color: var(--cc-or);
}

.u-cc-crumbs > span[aria-hidden] {
	color: var(--cc-faint);
	font-size: 13px;
}

/* ============================================================
   Listing — banner
   ============================================================ */

.u-cc-banner {
	position: relative;
	overflow: hidden;
	padding: 44px 0 46px;
	background: linear-gradient(100deg, #fff6f1 0%, #fdecea 45%, #fbe7e1 100%);
}

.u-cc-banner::before {
	content: "";
	position: absolute;
	left: 38%;
	top: -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(226, 101, 15, 0.1), transparent 70%);
}

.u-cc-banner__title {
	position: relative;
	z-index: 1;
	margin: 14px 0 30px;
	font-family: inherit;
	font-size: 52px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--cc-ink);
}

.u-cc-brush {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}

.u-cc-brush__stroke {
	position: absolute;
	left: -2%;
	bottom: -12px;
	width: 104%;
	height: 22px;
	overflow: visible;
}

.u-cc-tools {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px;
}

.u-cc-tools[hidden] {
	display: none;
}

.u-cc-tools__sort label {
	display: block;
	margin-bottom: 8px;
	font-size: 17px;
	color: var(--cc-ink);
}

.u-cc-select {
	position: relative;
	display: block;
}

.u-cc .u-cc-select select,
.u-cc-banner .u-cc-select select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 300px;
	height: auto;
	margin: 0;
	padding: 12px 46px 12px 14px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
	color: var(--cc-ink);
	font: 400 17px/1.4 Mulish, sans-serif;
	box-shadow: none;
}

.u-cc-select svg {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--cc-muted);
	pointer-events: none;
}

.u-cc-banner .u-cc-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 20px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
	color: var(--cc-ink);
	font: 400 17px/1.4 Mulish, sans-serif;
	cursor: pointer;
	box-shadow: none;
}

.u-cc-banner .u-cc-filter-toggle svg {
	width: 20px;
	height: 20px;
	color: var(--cc-muted);
}

.u-cc-banner .u-cc-filter-toggle[aria-expanded="true"] {
	border-color: var(--cc-or);
	color: var(--cc-or);
}

.u-cc-banner .u-cc-filter-toggle[aria-expanded="true"] svg {
	color: var(--cc-or);
}

/* The tiles: minhtrithanh has a rendered 3D play button here. */
.u-cc-art {
	position: absolute;
	right: max(40px, calc((100% - 1320px) / 2 + 40px));
	top: 50%;
	width: 300px;
	height: 250px;
	transform: translateY(-50%);
	pointer-events: none;
}

.u-cc-art__tile {
	position: absolute;
	border-radius: 34%;
	background: linear-gradient(145deg, #ffb27a 0%, #ff7a2a 38%, #e2560a 100%);
	box-shadow:
		inset -10px -14px 24px rgba(160, 50, 0, 0.35),
		inset 10px 10px 20px rgba(255, 230, 210, 0.55),
		0 24px 40px rgba(200, 80, 20, 0.28);
}

.u-cc-art__tile svg {
	position: absolute;
	inset: 0;
	width: 44%;
	height: 44%;
	margin: auto;
	color: #fff;
	filter: drop-shadow(0 6px 8px rgba(150, 40, 0, 0.35));
}

.u-cc-art__tile.is-big {
	right: 20px;
	top: 10px;
	width: 210px;
	height: 210px;
	transform: rotate(-8deg);
}

.u-cc-art__tile.is-big svg {
	left: 8%;
}

.u-cc-art__tile.is-sm {
	right: 196px;
	top: 150px;
	width: 74px;
	height: 74px;
	border-radius: 30%;
	transform: rotate(10deg);
}

.u-cc-art__tile.is-xs {
	right: 238px;
	top: 14px;
	width: 30px;
	height: 30px;
	border-radius: 30%;
	transform: rotate(-12deg);
	opacity: 0.9;
}

/* ============================================================
   Listing — filters and grid
   ============================================================ */

.u-cc {
	padding: 40px 0 88px;
}

.u-cc-empty {
	margin: 24px 0;
	padding: 40px;
	border: 1px dashed #e4d6ca;
	border-radius: 16px;
	color: var(--cc-muted);
	font-size: 16px;
	text-align: center;
}

.u-cc-empty[hidden] {
	display: none;
}

.u-cc-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.u-cc-layout.is-nofilter {
	grid-template-columns: minmax(0, 1fr);
}

.u-cc-filters {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.u-cc-filters[hidden] {
	display: none;
}

.u-cc .u-cc-fg__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 18px;
	border: 0;
	border-radius: 14px;
	background: var(--cc-or);
	color: #fff;
	font: 600 19px/1.3 Mulish, sans-serif;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.u-cc .u-cc-fg__head:hover,
.u-cc .u-cc-fg__head:focus {
	background: #cf5a0a;
	color: #fff;
}

.u-cc-fg__head svg {
	width: 20px;
	height: 20px;
	transition: transform 0.2s;
}

.u-cc-fg__head[aria-expanded="false"] svg {
	transform: rotate(-90deg);
}

.u-cc-fg__list {
	margin: 6px 0 0;
	padding: 0 0 0 16px;
	list-style: none;
}

.u-cc-fg__list[hidden],
.u-cc-fg [hidden] {
	display: none;
}

.u-cc-fg__list label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	font-size: 17px;
	color: var(--cc-ink);
	cursor: pointer;
}

.u-cc-fg__list input {
	flex: none;
	width: 19px;
	height: 19px;
	margin: 0;
	accent-color: var(--cc-or);
}

.u-cc-fg__list small {
	margin-left: auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--cc-faint);
}

.u-cc-fg__note {
	margin: 10px 0 0;
	padding-left: 16px;
	font-size: 14px;
	color: var(--cc-muted);
}

.u-cc-count {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--cc-muted);
}

.u-cc-count b {
	color: var(--cc-ink);
}

.u-cc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.u-cc-layout.is-nofilter .u-cc-grid,
.u-cc-grid.is-four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.u-cc-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 20px 24px;
	border: 1px solid #f2ede9;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
	color: var(--cc-ink);
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.u-cc-card[hidden] {
	display: none;
}

.u-cc-card:hover,
.u-cc-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(120, 60, 10, 0.12);
	color: var(--cc-ink);
}

.u-cc-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	margin-bottom: 6px;
	overflow: hidden;
	border-radius: 16px;
	background: #f4ece5;
}

.u-cc-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.u-cc-chip {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 7px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--cc-tint);
	color: var(--cc-or);
	font-size: 15px;
	font-weight: 500;
}

.u-cc-chip svg {
	width: 16px;
	height: 16px;
}

.u-cc-chip.is-soon {
	background: var(--cc-lock-bg);
	color: var(--cc-muted);
}

.u-cc-card__group {
	font-size: 15.5px;
	color: var(--cc-or);
}

.u-cc-card__title {
	display: -webkit-box;
	min-height: 3em;
	overflow: hidden;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.u-cc-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: var(--cc-muted);
}

.u-cc-card__meta svg {
	width: 17px;
	height: 17px;
	color: var(--cc-faint);
}

.u-cc-card__status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.u-cc-card__status svg {
	flex: none;
	width: 22px;
	height: 22px;
}

.u-cc-card__status.is-open {
	color: var(--cc-ok);
}

.u-cc-card__status.is-go {
	color: var(--cc-or);
}

.u-cc-card__status.is-lock {
	color: var(--cc-lock);
}

.u-cc-card__status.is-wait {
	font-size: 19px;
	font-weight: 700;
	color: var(--cc-faint);
}

/* A course without a poster: its group's colour and its title. */
.u-cc-stand-in {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	padding: 14px 16px;
	overflow: hidden;
}

.u-cc-stand-in.is-tam-thuc {
	background: linear-gradient(135deg, #ffd25e, #f5a524);
	color: #4a2d00;
}

.u-cc-stand-in.is-chuyen-mon {
	background: linear-gradient(135deg, #f08a6f, #d9573c);
	color: #fff;
}

.u-cc-stand-in.is-marketing-van-hanh-spa {
	background: linear-gradient(135deg, #2f4fa8, #1a2f73);
	color: #fff;
}

.u-cc-stand-in.is-kinh-doanh-he-thong,
.u-cc-stand-in.is-,
.u-cc-stand-in.is-khac {
	background: linear-gradient(135deg, #ffcf6b, #e38b12);
	color: #402400;
}

.u-cc-stand-in__icon {
	position: absolute;
	right: -18px;
	top: -18px;
	opacity: 0.18;
}

.u-cc-stand-in__icon svg {
	width: 120px;
	height: 120px;
}

.u-cc-stand-in__group {
	position: relative;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.u-cc-stand-in__title {
	position: relative;
	max-width: 88%;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
	text-wrap: balance;
}

/* ============================================================
   Course page
   ============================================================ */

.u-cd {
	position: relative;
	/* clip, not hidden: hidden would make this a scroll box, and the side box
	   and the phone's bottom bar would stop sticking to the screen. */
	overflow-x: clip;
	padding: 26px 0 88px;
}

.u-cd::before {
	content: "";
	position: absolute;
	right: -60px;
	top: 40px;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle at 40% 40%, rgba(255, 170, 110, 0.22), transparent 65%);
	pointer-events: none;
}

.u-cd .u-cd-title {
	margin: 12px 0 18px;
	font-family: inherit;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--cc-ink);
}

.u-cd-teacher {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-bottom: 28px;
}

.u-cd-teacher img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
}

.u-cd-teacher small {
	display: block;
	font-size: 16px;
	color: var(--cc-muted);
}

.u-cd-teacher b {
	font-size: 21px;
	font-weight: 600;
}

.u-cd-teacher__rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 40px;
	font-size: 18px;
	color: #475467;
	text-decoration: none;
}

.u-cd-teacher__rating svg {
	width: 24px;
	height: 24px;
	color: #ff7a1a;
}

.u-cd-cols {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 28px;
	align-items: start;
}

.u-cd-hero {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
	background: #f4ece5;
}

.u-cd-hero > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.u-cd-hero .u-cc-stand-in {
	padding: 28px 32px;
}

.u-cd-hero .u-cc-stand-in__title {
	font-size: 34px;
}

.u-cd-hero .u-cc-stand-in__group {
	font-size: 13px;
}

.u-cd-hero .u-cc-stand-in__icon svg {
	width: 260px;
	height: 260px;
}

.u-cd-hero__group {
	position: absolute;
	left: 18px;
	top: 18px;
	z-index: 2;
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--cc-or);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.u-cd-hero__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	width: 92px;
	height: 92px;
	margin: auto;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(2px);
}

.u-cd-hero__play > span {
	display: grid;
	width: 70px;
	height: 70px;
	place-items: center;
	border-radius: 50%;
	background: var(--cc-or);
	color: #fff;
	transition: transform 0.15s;
}

.u-cd-hero__play:hover > span {
	transform: scale(1.06);
}

.u-cd-hero__play svg {
	width: 30px;
	height: 30px;
	margin-left: 4px;
}

.u-cd .u-cd-h {
	margin: 44px 0 16px;
	font-family: inherit;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--cc-ink);
}

.u-cd-desc {
	padding: 22px 34px 18px;
	border-radius: 16px;
	background: var(--cc-cream);
}

.u-cd-desc ul,
.u-cd-box ul {
	margin: 0;
	padding-left: 22px;
	font-size: 17.5px;
	line-height: 1.65;
	color: var(--cc-ink);
}

.u-cd-desc li,
.u-cd-box li {
	margin-bottom: 4px;
}

.u-cd-box {
	margin-top: 18px;
	padding: 20px 30px 18px;
	border: 1.5px solid var(--cc-edge);
	border-radius: 16px;
}

.u-cd .u-cd-box h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	color: var(--cc-or);
}

.u-cd-box h2 svg {
	width: 26px;
	height: 26px;
}

.u-cd-box ul {
	padding-left: 52px;
}

/* "Xem thêm": courses.js clips a long list and adds the button. */
.u-cd-clip.is-clipped:not(.is-open) {
	position: relative;
	max-height: 9.4em;
	overflow: hidden;
}

.u-cd-clip.is-clipped:not(.is-open)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.6em;
	background: linear-gradient(transparent, var(--cc-fade, #fff));
}

.u-cd-desc .u-cd-clip {
	--cc-fade: var(--cc-cream);
}

.u-cd .u-cd-more {
	display: block;
	margin: 4px 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	color: #475467;
	font: 400 17px/1.4 Mulish, sans-serif;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}

.u-cd .u-cd-more:hover {
	background: none;
	color: var(--cc-or);
}

/* Lessons */
.u-cd-outline {
	margin-top: 26px;
	overflow: hidden;
	border: 1.5px solid var(--cc-edge);
	border-radius: 16px;
}

.u-cd-outline__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 22px 24px;
	background: var(--cc-or-btn);
	color: #fff;
}

.u-cd .u-cd-outline__head h2 {
	margin: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	color: #fff;
}

.u-cd-outline__head p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 16px;
}

.u-cd-outline__head svg {
	width: 24px;
	height: 24px;
}

.u-cd-outline__body {
	max-height: 560px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #c7cdd6 transparent;
}

.u-cd-outline__empty {
	margin: 0;
	padding: 18px 24px;
	font-size: 16px;
	color: var(--cc-muted);
}

.u-cd-chapter + .u-cd-chapter {
	border-top: 1px solid #f5e3d4;
}

.u-cd-chapter > summary {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	align-items: center;
	padding: 18px 24px;
	background: var(--cc-cream);
	cursor: pointer;
	list-style: none;
}

.u-cd-chapter > summary::-webkit-details-marker {
	display: none;
}

.u-cd-chapter > summary b {
	font-size: 19px;
	font-weight: 800;
}

.u-cd-chapter > summary small {
	grid-row: 2;
	font-size: 15.5px;
	font-weight: 700;
	color: #475467;
}

.u-cd-chapter > summary svg {
	grid-column: 2;
	grid-row: 1 / 3;
	width: 24px;
	height: 24px;
	color: #344054;
	transform: rotate(180deg);
	transition: transform 0.2s;
}

.u-cd-chapter[open] > summary svg {
	transform: none;
}

.u-cd-lessons {
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-cd-lesson {
	margin: 0;
	padding: 16px 24px 16px 70px;
	border-top: 1px solid #eef0f3;
}

.u-cd-lesson > a,
.u-cd-lesson > span:first-child {
	display: block;
	margin-bottom: 6px;
	font-size: 17.5px;
	color: var(--cc-ink);
	text-decoration: none;
}

.u-cd-lesson > a:hover {
	color: var(--cc-or);
}

.u-cd-lesson__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	font-size: 16px;
	color: var(--cc-muted);
}

.u-cd-vchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 5px;
	background: #667085;
	color: #fff;
	font-size: 15.5px;
}

.u-cd-vchip svg {
	width: 16px;
	height: 16px;
}

.u-cd-lesson__state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	color: var(--cc-faint);
}

.u-cd-lesson__state svg {
	width: 18px;
	height: 18px;
}

.u-cd-lesson__state.is-done {
	color: var(--cc-ok);
	font-weight: 700;
}

/* Reviews */
.u-cd-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fef3f2;
	color: #b42318;
	font-size: 16px;
}

.u-cd-notice.is-ok {
	background: #ecfdf3;
	color: #067647;
}

.u-cd-stars {
	display: inline-flex;
	gap: 6px;
}

.u-cd-stars svg {
	display: block;
	width: 24px;
	height: 24px;
}

.u-cd-stars .is-on {
	color: #ff7a1a;
}

.u-cd-stars .is-off {
	color: #cfd4dc;
}

.u-cd-score {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px 20px;
	align-items: center;
	padding: 22px 24px;
	border-radius: 16px;
	background: var(--cc-cream);
}

.u-cd-score .u-cd-stars {
	justify-self: end;
}

.u-cd-score .u-cd-stars svg {
	width: 38px;
	height: 38px;
}

.u-cd-score__big {
	margin: 0;
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
	color: var(--cc-or);
}

.u-cd-score__big small {
	margin-left: 10px;
	font-size: 32px;
	font-weight: 600;
}

.u-cd-score__count {
	justify-self: start;
	margin: 0;
	padding: 10px 16px;
	border: 1.5px solid var(--cc-or);
	border-radius: 999px;
	background: #fff;
	font-size: 17px;
	color: var(--cc-or);
}

.u-cd-score__split {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-cd-score__split li {
	padding: 10px 14px;
	border: 1px solid #eee;
	border-radius: 999px;
	background: #fff;
	font-size: 17px;
	color: #475467;
}

.u-cd-review-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.u-cd-review {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 20px;
	margin: 0;
}

.u-cd-review__avatar {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border-radius: 50%;
	background: #eef0f3;
	color: var(--cc-faint);
}

.u-cd-review__avatar svg {
	width: 26px;
	height: 26px;
}

.u-cd-review article {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	padding: 20px 24px;
	border-radius: 16px;
	background: #f7f8fa;
}

.u-cd-review b {
	font-size: 20px;
	font-weight: 500;
}

.u-cd-review time {
	font-size: 16px;
	color: var(--cc-muted);
}

.u-cd-review .u-cd-stars,
.u-cd-review p {
	grid-column: 1 / -1;
}

.u-cd-review p {
	margin: 0;
	color: var(--cc-text);
}

.u-cd-noreview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	padding: 28px;
	border-radius: 16px;
	background: var(--cc-cream);
}

.u-cd-noreview .u-cd-stars svg {
	width: 32px;
	height: 32px;
}

.u-cd-noreview p {
	flex: 1;
	min-width: 220px;
	margin: 0;
	font-size: 17px;
	color: #475467;
}

.u-cd-rate {
	margin-top: 18px;
}

.u-cd-rate > summary {
	display: inline-flex;
	padding: 12px 20px;
	border-radius: 10px;
	background: var(--cc-or-btn);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.u-cd-rate > summary::-webkit-details-marker {
	display: none;
}

.u-cd-rate[open] > summary {
	background: var(--cc-lock-bg);
	color: var(--cc-lock);
}

.u-cd-rate form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 640px;
	margin-top: 16px;
	padding: 20px 24px;
	border: 1px solid var(--cc-line);
	border-radius: 16px;
}

/* Five radios drawn as stars. They are printed 5 → 1 and laid out right to
   left, so "this star and the ones before it" is the ~ sibling selector. */
.u-cd-rate__stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
}

.u-cd-rate__stars legend {
	width: 100%;
	margin-bottom: 6px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
}

.u-cd-rate__stars input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.u-cd-rate__stars label {
	color: #cfd4dc;
	cursor: pointer;
}

.u-cd-rate__stars label svg {
	display: block;
	width: 36px;
	height: 36px;
}

.u-cd-rate__stars input:checked ~ label,
.u-cd-rate__stars label:hover,
.u-cd-rate__stars label:hover ~ label {
	color: #ff7a1a;
}

.u-cd-rate__stars input:focus-visible + label {
	outline: 2px solid var(--cc-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.u-cd-rate form > label {
	font-size: 15px;
	font-weight: 700;
}

.u-cd-rate textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	font: 400 16px/1.5 Mulish, sans-serif;
}

.u-cd .u-cd-rate button {
	align-self: flex-start;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--cc-or-btn);
	color: #fff;
	font: 700 16px/1.3 Mulish, sans-serif;
	cursor: pointer;
}

.u-cd .u-cd-rate button:hover {
	background: var(--cc-or);
}

/* The box on the right */
.u-cd-side {
	position: sticky;
	top: var(--cc-header);
	display: flex;
	flex-direction: column;
	padding: 26px 20px;
	border: 1px solid #f0f1f3;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
}

.admin-bar .u-cd-side {
	top: calc(var(--cc-header) + 32px);
}

.u-cd-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 14px;
	border-radius: 10px;
	font-size: 23px;
	font-weight: 800;
	text-align: center;
}

.u-cd-bar svg {
	flex: none;
	width: 24px;
	height: 24px;
}

.u-cd-bar.is-open {
	background: var(--cc-ok);
	color: #fff;
}

.u-cd-bar.is-lock {
	background: var(--cc-lock-bg);
	color: var(--cc-lock);
}

.u-cd-bar.is-guest {
	background: #eef4ff;
	color: var(--cc-blue);
}

.u-cd-side hr {
	width: 100%;
	margin: 28px 0;
	border: 0;
	border-top: 1px solid var(--cc-line);
}

.u-cd .u-cd-act {
	display: block;
	width: 100%;
	padding: 20px 14px;
	border-radius: 10px;
	background: var(--cc-or-btn);
	color: #fff;
	font-size: 21px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.u-cd .u-cd-act:hover,
.u-cd .u-cd-act:focus {
	background: var(--cc-or);
	color: #fff;
}

.u-cd .u-cd-act.is-off {
	background: var(--cc-lock-bg);
	color: var(--cc-faint);
}

.u-cd-side__note {
	margin: 12px 0 0;
	font-size: 14.5px;
	color: var(--cc-muted);
	text-align: center;
}

.u-cd-side__note a {
	color: var(--cc-or);
	font-weight: 700;
}

.u-cd-progress {
	margin-top: 16px;
}

.u-cd-progress p {
	display: flex;
	justify-content: space-between;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: #475467;
}

.u-cd-progress__track {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: #f0e6dd;
}

.u-cd-progress__track i {
	display: block;
	height: 100%;
	background: var(--cc-or);
}

.u-cd-facts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--cc-line);
	list-style: none;
	font-size: 15.5px;
}

.u-cd-facts li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #475467;
}

.u-cd-facts svg {
	flex: none;
	width: 19px;
	height: 19px;
	color: var(--cc-or);
}

.u-cd-facts b {
	margin-left: auto;
	font-weight: 700;
	text-align: right;
	color: var(--cc-ink);
}

.u-cd-similar {
	margin-top: 64px;
}

.u-cd .u-cd-similar h2 {
	margin: 0 0 28px;
	font-family: inherit;
	font-size: 40px;
	font-weight: 800;
	color: var(--cc-ink);
}

.u-cd-mbar {
	display: none;
}

/* ============================================================
   Khóa học của tôi (sections/courses/mine.php)
   ============================================================ */

.u-my {
	position: relative;
	overflow-x: clip;
	padding: 44px 0 88px;
}

.u-my::before {
	content: "";
	position: absolute;
	right: -80px;
	top: 40px;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle at 45% 45%, rgba(255, 170, 110, 0.22), transparent 62%);
	pointer-events: none;
}

.u-my .u-cc-art {
	right: 40px;
	top: -14px;
	width: 300px;
	height: 230px;
	transform: none;
	opacity: 0.9;
}

.u-my .u-my__h1,
.u-my .u-my__h2 {
	position: relative;
	margin: 0;
	font-family: inherit;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--cc-ink);
}

.u-my .u-my__h2 {
	font-size: 36px;
}

.u-my__sub {
	position: relative;
	margin: 10px 0 24px;
	font-size: 18px;
	color: var(--cc-muted);
}

.u-my__badge {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--cc-ok);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.u-my__resume {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	max-width: 980px;
	padding: 20px;
	border: 1px solid #f2ede9;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(16, 24, 40, 0.05);
}

.u-my__cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 16px;
	background: #f4ece5;
}

.u-my__cover > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.u-my__resume-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.u-my__group {
	margin-top: 10px;
	font-size: 15.5px;
	color: var(--cc-or);
}

.u-my .u-my__resume-title {
	margin: 6px 0 8px;
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	text-transform: uppercase;
}

.u-my__resume-title a {
	color: var(--cc-ink);
	text-decoration: none;
}

.u-my__resume-title a:hover {
	color: var(--cc-or);
}

.u-my__resume .u-my__progress {
	width: 100%;
	margin-top: 4px;
	padding-top: 0;
}

.u-my__next {
	margin: 14px 0 18px;
	font-size: 16px;
	color: var(--cc-text);
}

.u-my__next b {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.u-my .u-my__go {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 10px;
	background: var(--cc-or-btn);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.u-my .u-my__go:hover,
.u-my .u-my__go:focus-visible {
	background: var(--cc-or);
	color: #fff;
}

.u-my__go svg {
	width: 18px;
	height: 18px;
}

.u-my__all {
	position: relative;
	margin-top: 56px;
}

.u-my__resume + .u-my__all {
	margin-top: 64px;
}

.u-my__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 18px 0 26px;
}

.u-my__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.u-my__tabs[hidden],
.u-my__groups[hidden],
.u-my .u-my__filter[hidden] {
	display: none;
}

.u-my .u-my__tabs button,
.u-my .u-my__groups button {
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #475467;
	font: 400 17px/1.3 Mulish, sans-serif;
	cursor: pointer;
	box-shadow: none;
}

.u-my .u-my__tabs button small {
	margin-left: 4px;
	font-size: 13px;
	color: var(--cc-faint);
}

.u-my .u-my__tabs button[aria-pressed="true"] {
	background: var(--cc-tint);
	color: var(--cc-or);
}

.u-my .u-my__filter {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 13px 18px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
	color: var(--cc-ink);
	font: 400 17px/1.3 Mulish, sans-serif;
	cursor: pointer;
	box-shadow: none;
}

.u-my .u-my__filter[aria-expanded="true"] {
	border-color: var(--cc-or);
	color: var(--cc-or);
}

.u-my__filter svg {
	width: 20px;
	height: 20px;
}

.u-my__groups {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -10px 0 24px;
}

.u-my .u-my__groups button {
	padding: 8px 14px;
	border: 1px solid #e4e7ec;
	border-radius: 999px;
	background: #fff;
	font-size: 14.5px;
}

.u-my .u-my__groups button[aria-pressed="true"] {
	border-color: var(--cc-or);
	background: var(--cc-tint);
	color: var(--cc-or);
}

.u-my__teacher {
	font-size: 16px;
	color: var(--cc-muted);
}

.u-my__stars {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	color: #475467;
}

.u-my__stars svg {
	width: 20px;
	height: 20px;
	color: #ff7a1a;
}

.u-my__progress {
	display: block;
	margin-top: auto;
	padding-top: 12px;
}

.u-my__line {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 17px;
	color: var(--cc-text);
}

.u-my__line b {
	font-weight: 600;
	color: var(--cc-ok);
}

.u-my__line.is-done {
	font-weight: 700;
	color: var(--cc-ok);
}

.u-my__line svg {
	width: 18px;
	height: 18px;
}

.u-my__bar {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 5px;
	background: #eef6f1;
}

.u-my__bar i {
	display: block;
	height: 100%;
	border-radius: 5px;
	background: var(--cc-ok);
}

.u-my__empty {
	margin: 0;
	padding: 40px;
	border: 1px dashed #e4d6ca;
	border-radius: 16px;
	font-size: 16px;
	text-align: center;
	color: var(--cc-muted);
}

.u-my__empty[hidden] {
	display: none;
}

.u-my__empty p {
	margin: 0 0 16px;
}

.u-my__empty a {
	font-weight: 700;
	color: var(--cc-or);
}

@media (max-width: 921px) {
	.u-my .u-cc-art {
		display: none;
	}

	.u-my__resume {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 14px;
	}
}

@media (max-width: 700px) {
	.u-my {
		padding: 22px 0 48px;
	}

	.u-my .u-my__h1 {
		font-size: 28px;
	}

	.u-my .u-my__h2 {
		font-size: 26px;
	}

	.u-my__sub {
		font-size: 15.5px;
	}

	.u-my .u-my__resume-title {
		font-size: 18px;
	}

	.u-my .u-my__go {
		justify-content: center;
		width: 100%;
	}

	.u-my__tools {
		flex-direction: column;
		align-items: stretch;
	}

	.u-my__tabs {
		flex-wrap: nowrap;
		margin-inline: -16px;
		padding-inline: 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.u-my .u-my__tabs button {
		flex: none;
		padding: 10px 12px;
		font-size: 15px;
	}

	.u-my .u-my__filter {
		justify-content: center;
	}
}

/* ============================================================
   Narrower screens
   ============================================================ */

@media (max-width: 1200px) {
	.u-cc-grid,
	.u-cc-layout.is-nofilter .u-cc-grid,
	.u-cc-grid.is-four {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.u-cc-layout:not(.is-nofilter) .u-cc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.u-cc-art {
		opacity: 0.6;
	}
}

@media (max-width: 921px) {
	.u-cc-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.u-cc-filters {
		padding: 12px;
		border: 1px solid #f0e6dd;
		border-radius: 16px;
	}

	.u-cc-grid,
	.u-cc-layout:not(.is-nofilter) .u-cc-grid,
	.u-cc-layout.is-nofilter .u-cc-grid,
	.u-cc-grid.is-four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.u-cd-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.u-cd-side {
		position: static;
	}

	.u-cd-side .u-cd-side__act {
		display: none;
	}

	.u-cd-side hr {
		margin: 18px 0;
	}

	.u-cd {
		padding-bottom: 110px;
	}

	.u-cd-mbar {
		position: sticky;
		bottom: 0;
		z-index: 20;
		display: block;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid #efe3d9;
		background: #fff;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
	}

	.u-cd-mbar .u-cd-act {
		padding: 14px;
		font-size: 17px;
	}
}

@media (max-width: 700px) {
	.u-cc-wrap {
		padding: 0 16px;
	}

	.u-cc-banner {
		padding: 22px 0 26px;
	}

	.u-cc-banner__title {
		margin: 10px 0 22px;
		font-size: 30px;
	}

	.u-cc-brush__stroke {
		bottom: -9px;
		height: 16px;
	}

	.u-cc-crumbs {
		font-size: 13.5px;
	}

	/* No room beside the heading on a phone; the tiles would sit on it. */
	.u-cc-art {
		display: none;
	}

	.u-cc-tools {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.u-cc-tools__sort {
		flex: 1;
		min-width: 0;
	}

	.u-cc-tools__sort label {
		font-size: 15px;
	}

	.u-cc-banner .u-cc-select select {
		width: 100%;
		min-width: 0;
		padding: 11px 40px 11px 12px;
		font-size: 15px;
	}

	.u-cc-banner .u-cc-filter-toggle {
		padding: 11px 14px;
		font-size: 15px;
	}

	.u-cc {
		padding: 20px 0 56px;
	}

	.u-cc .u-cc-fg__head {
		padding: 13px 14px;
		border-radius: 10px;
		font-size: 16px;
	}

	.u-cc-fg__list label {
		padding: 9px 0;
		font-size: 15.5px;
	}

	.u-cc-grid,
	.u-cc-layout:not(.is-nofilter) .u-cc-grid,
	.u-cc-layout.is-nofilter .u-cc-grid,
	.u-cc-grid.is-four {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.u-cc-card {
		padding: 14px 14px 18px;
	}

	.u-cc-card__title {
		min-height: 0;
		font-size: 17px;
	}

	.u-cc-card__status {
		font-size: 19px;
	}

	.u-cd {
		padding-top: 16px;
	}

	.u-cd .u-cd-title {
		font-size: 25px;
	}

	.u-cd-teacher {
		margin-bottom: 18px;
	}

	.u-cd-teacher__rating {
		margin-left: 0;
	}

	.u-cd-hero .u-cc-stand-in__title {
		font-size: 22px;
	}

	.u-cd-hero__group {
		left: 10px;
		top: 10px;
		padding: 6px 12px;
		font-size: 13px;
	}

	.u-cd-hero__play {
		width: 64px;
		height: 64px;
	}

	.u-cd-hero__play > span {
		width: 48px;
		height: 48px;
	}

	.u-cd .u-cd-h {
		margin-top: 30px;
		font-size: 26px;
	}

	.u-cd-desc,
	.u-cd-box {
		padding: 16px 16px 12px;
	}

	.u-cd-desc ul,
	.u-cd-box ul {
		padding-left: 22px;
		font-size: 15.5px;
	}

	.u-cd .u-cd-box h2 {
		font-size: 19px;
	}

	.u-cd-outline__head {
		padding: 16px;
	}

	.u-cd .u-cd-outline__head h2 {
		font-size: 20px;
	}

	.u-cd-outline__head p {
		font-size: 14px;
	}

	.u-cd-outline__body {
		max-height: 440px;
	}

	.u-cd-chapter > summary {
		padding: 14px 16px;
	}

	.u-cd-chapter > summary b {
		font-size: 16px;
	}

	.u-cd-lesson {
		padding: 14px 16px 14px 24px;
	}

	.u-cd-lesson > a,
	.u-cd-lesson > span:first-child {
		font-size: 15.5px;
	}

	.u-cd-score {
		grid-template-columns: 1fr;
	}

	.u-cd-score .u-cd-stars,
	.u-cd-score__split {
		justify-self: start;
		justify-content: flex-start;
	}

	.u-cd-score__big {
		font-size: 42px;
	}

	.u-cd-review {
		grid-template-columns: 40px 1fr;
		gap: 10px;
	}

	.u-cd-review__avatar {
		width: 40px;
		height: 40px;
	}

	.u-cd-review article {
		padding: 14px 16px;
	}

	.u-cd-review b {
		font-size: 16px;
	}

	.u-cd-bar {
		padding: 14px;
		font-size: 18px;
	}

	.u-cd .u-cd-similar h2 {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.u-cc-card,
	.u-cc-fg__head svg,
	.u-cd-chapter > summary svg,
	.u-cd-hero__play > span {
		transition: none;
	}
}
