.cd-page {
	--cd-purple: #530382;
	--cd-purple-2: #7b3fd4;
	--cd-gold: #ffe27a;
	--cd-ink: #1f1f28;
	--cd-muted: #6b6b78;
	--cd-line: #eee8f6;
	--cd-card: #fff;
	background: #f6f3fb;
	padding-bottom: 24px;
}
.cd-hero {
	background: linear-gradient(90deg, #3b0a6e 0%, #530382 36%, #7b3fd4 100%);
	color: #fff;
	margin-top: -102px;
	padding: 150px 0 40px;
}
.cd-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin-bottom: 16px;
	opacity: 0.92;
}
.cd-crumb a {
	color: #fff !important;
	text-decoration: none;
}
.cd-crumb a:hover { color: var(--cd-gold) !important; }
.cd-crumb span { opacity: 0.7; }
.cd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.cd-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}
.cd-badge.type { background: var(--cd-gold); color: #530382; }
.cd-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
}
.cd-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.cd-stat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 13px;
}
.cd-stat i { color: var(--cd-gold); }
.cd-body { padding: 28px 0 40px; }
.cd-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}
.cd-jump {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 16px;
	scrollbar-width: none;
}
.cd-jump::-webkit-scrollbar { display: none; }
.cd-jump a {
	flex: 0 0 auto;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--cd-ink) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--cd-line);
}
.cd-jump a:hover,
.cd-jump a.is-active {
	background: var(--cd-purple);
	color: #fff !important;
	border-color: var(--cd-purple);
}
.cd-card {
	background: var(--cd-card);
	border-radius: 18px;
	padding: 22px 22px 8px;
	box-shadow: 0 10px 28px rgba(40, 20, 80, 0.06);
	margin-bottom: 18px;
	scroll-margin-top: 90px;
}
.cd-card h2 {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 700;
	color: var(--cd-ink);
}
.cd-prose {
	color: #3c3c48;
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}
.cd-prose h1, .cd-prose h2, .cd-prose h3, .cd-prose h4 {
	color: var(--cd-ink);
	margin: 18px 0 8px;
	line-height: 1.35;
	font-size: 20px;
}
.cd-prose p { margin: 0 0 14px; }
.cd-prose ul, .cd-prose ol { padding-left: 1.2em; margin-bottom: 14px; }
.cd-prose li { margin-bottom: 6px; }
.cd-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.cd-prose table {
	width: 100%;
	display: block;
	overflow-x: auto;
	margin-bottom: 14px;
}
.cd-subject-block {
	padding: 14px;
	margin-bottom: 16px;
	border: 1px solid var(--cd-line);
	border-radius: 16px;
	background: #fcfaff;
}
.cd-subject-block:last-child { margin-bottom: 8px; }
.cd-subject-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--cd-line);
}
.cd-subject-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(180deg, #7b3fd4 0%, #530382 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
}
.cd-subject-kicker {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7b3fd4;
}
.cd-subject-head h3 {
	margin: 0 0 4px;
	font-size: 18px;
	color: var(--cd-ink);
}
.cd-subject-head p {
	margin: 0;
	font-size: 13px;
	color: var(--cd-muted);
}
.cd-chapter-wrap {
	padding-left: 4px;
}
.cd-chapter-label {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 800;
	color: #530382;
}
.cd-chapter-scroll {
	max-height: min(520px, 68vh);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 2px 6px 8px 0;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}
.cd-chapter-scroll::-webkit-scrollbar {
	width: 8px;
}
.cd-chapter-scroll::-webkit-scrollbar-thumb {
	background: #c9b6e6;
	border-radius: 999px;
}
.cd-chapter-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.cd-chapter-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding: 12px 12px 12px 10px;
	border: 1px solid var(--cd-line);
	border-radius: 14px;
	background: #fbf9ff;
}
.cd-chapter-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #efe6fb;
	color: #530382;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.cd-chapter-card h4 {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.35;
	color: var(--cd-ink);
	font-weight: 700;
	word-break: break-word;
}
.cd-chapter-card p {
	margin: 0;
	font-size: 12px;
	color: var(--cd-muted);
}
.cd-empty {
	color: var(--cd-muted);
	padding-bottom: 12px;
}
.cd-aside { min-width: 0; }
.cd-buy {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(40, 20, 80, 0.12);
}
.cd-buy-thumb img {
	width: 100%;
	height: 210px;
	object-fit: cover;
	display: block;
}
.cd-buy-body { padding: 18px; }
.cd-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.cd-price-now {
	font-size: 28px;
	font-weight: 800;
	color: var(--cd-purple);
	line-height: 1;
}
.cd-price-old {
	font-size: 16px;
	color: #9a9aa6;
	text-decoration: line-through;
}
.cd-save {
	font-size: 12px;
	font-weight: 700;
	color: #1b7a3a;
	background: #e9f8ee;
	padding: 3px 8px;
	border-radius: 999px;
}
.cd-meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.cd-meta li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--cd-line);
	font-size: 14px;
}
.cd-meta li:last-child { border-bottom: 0; }
.cd-meta .label { color: var(--cd-muted); display: flex; align-items: center; gap: 8px; }
.cd-meta .label i { color: var(--cd-purple); width: 16px; }
.cd-meta .value { font-weight: 600; color: var(--cd-ink); text-align: right; }
.cd-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}
.cd-cta a,
.cd-cta .cd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	text-align: center;
}
.cd-cta a.cd-btn-primary,
.cd-cta .cd-btn-primary {
	background: linear-gradient(135deg, #530382, #7b3fd4);
	color: #fff !important;
}
.cd-cta a.cd-btn-primary:hover { opacity: 0.94; color: #fff !important; }
.cd-cta a.cd-btn-trial {
	background: #fff;
	color: #530382 !important;
	border: 2px solid #530382;
}
.cd-cta a.cd-btn-trial:hover { background: #f6efff; }
.cd-cta a.cd-btn-done {
	background: #1b7a3a;
	color: #fff !important;
	cursor: default;
}
.cd-cta a.cd-btn-muted {
	background: #6c757d;
	color: #fff !important;
	cursor: default;
	opacity: 0.95;
}
.cd-cta a.cd-btn-ghost {
	background: #f4eaff;
	color: #530382 !important;
}
.cd-share { margin-top: 16px; }
.cd-share h5 {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--cd-muted);
	font-weight: 600;
}
.cd-share ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cd-share a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4eaff;
	color: #530382 !important;
}
.cd-share a:hover { background: #530382; color: #fff !important; }
.cd-sticky-bar { display: none; }

@media (min-width: 992px) {
	.cd-hero { padding: 160px 0 48px; }
	.cd-layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		align-items: start;
		gap: 28px;
	}
	.cd-aside {
		position: sticky;
		top: 92px;
	}
	.cd-jump {
		position: sticky;
		top: 78px;
		z-index: 20;
		background: #f6f3fb;
		padding: 8px 0;
	}
	.cd-buy-thumb img { height: 230px; }
}

@media (max-width: 991px) {
	.cd-page { padding-bottom: 96px; }
	.cd-hero {
		margin-top: 0;
		padding: 80px 12px 24px;
	}
	.cd-crumb {
		flex-wrap: wrap;
		row-gap: 4px;
		margin-bottom: 12px;
		font-size: 12px;
	}
	.cd-badges {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 14px;
	}
	.cd-badge {
		max-width: 100%;
		white-space: normal;
		line-height: 1.35;
		text-align: left;
	}
	.cd-hero h1 { font-size: 24px; }
	.cd-layout { display: flex; flex-direction: column; }
	.cd-aside { order: -1; }
	.cd-card { padding: 18px 16px 6px; }
	.cd-buy-thumb img { height: 180px; }
	.cd-sticky-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10040;
		background: #fff;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		min-height: 64px;
		box-shadow: 0 -8px 24px rgba(40, 20, 80, 0.12);
	}
	.cd-sticky-bar .cd-price {
		margin: 0;
		align-items: center;
		flex: 1 1 auto;
		min-width: 0;
	}
	.cd-sticky-bar .cd-price-now { font-size: 20px; }
	.cd-sticky-bar .cd-price-old,
	.cd-sticky-bar .cd-save { display: none; }
	.cd-sticky-bar a {
		flex: 0 0 auto;
		padding: 11px 18px;
		border-radius: 12px;
		background: linear-gradient(135deg, #530382, #7b3fd4);
		color: #fff !important;
		font-weight: 700;
		text-decoration: none !important;
		white-space: nowrap;
	}
	.cd-sticky-bar a.cd-btn-done { background: #1b7a3a; }
	.cd-sticky-bar a.cd-btn-muted { background: #6c757d; }
	body.cd-page-body .upro-chatbot {
		right: 12px !important;
		bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
		z-index: 10050;
	}
	body.cd-page-body .prgoress_indicator {
		display: none !important;
	}
	body.cd-page-body .floating-social {
		display: none;
	}
}

@media (min-width: 576px) {
	.cd-chapter-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
	.cd-chapter-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 575px) {
	.cd-subject-block { padding: 12px; }
	.cd-subject-head { gap: 10px; }
	.cd-subject-head h3 { font-size: 16px; }
	.cd-chapter-wrap { padding-left: 0; }
	.cd-chapter-scroll { max-height: min(420px, 58vh); }
	.cd-chapter-card { padding: 11px; }
	.cd-chapter-card h4 { font-size: 13px; }
}

@media (min-width: 992px) {
	body.cd-page-body .educate-header-area {
		z-index: 40;
	}
	body.cd-page-body .educate-header-area .header-menu > ul.nav_scroll > li > a,
	body.cd-page-body .educate-header-area .header-menu > ul.nav_scroll > li > a i,
	body.cd-page-body .educate-header-area .header-menu > ul.nav_scroll > li > a span,
	body.cd-page-body .educate-header-area .header-sidbar-button .sidebar-toggle-btn,
	body.cd-page-body .educate-header-area .header-sidbar-button .sidebar-toggle-btn i {
		color: #fff !important;
	}
	body.cd-page-body .educate-header-area.sticky .header-menu > ul.nav_scroll > li:hover > a,
	body.cd-page-body .educate-header-area.sticky .header-menu > ul.nav_scroll > li:hover > a i,
	body.cd-page-body .educate-header-area.sticky .header-menu > ul.nav_scroll > li:hover > a span,
	body.cd-page-body .educate-header-area.sticky .header-menu > ul.nav_scroll > li.has-mega.is-open > a,
	body.cd-page-body .educate-header-area.sticky .header-menu > ul.nav_scroll > li.has-mega.is-open > a i,
	body.cd-page-body .educate-header-area.sticky .header-menu > ul.nav_scroll > li.has-mega.is-open > a span {
		color: var(--title-color, #1e1e1e) !important;
	}
}
