/* ==========================================================================
   Course pages — tutor/single-course.php (sales page), tutor/archive-course.php
   ========================================================================== */

/* ---- Hero ---- */
.course-hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 88px);
	background: var(--dli-night-950);
	color: var(--color-on-dark);
	overflow: hidden;
	isolation: isolate;
}

.course-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(50% 70% at 90% 10%, rgb(0 164 80 / 0.45), transparent 60%),
		radial-gradient(40% 60% at 0% 100%, rgb(236 28 36 / 0.5), transparent 60%);
}

.course-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

@media (max-width: 960px) {
	.course-hero__grid { grid-template-columns: 1fr; }
}

.course-hero .breadcrumbs { color: var(--color-on-dark); }

.course-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: var(--s-4);
}

.course-hero h1 {
	color: #fff;
	font-size: var(--fs-4xl);
}

.course-hero__lead {
	max-width: 620px;
	color: var(--color-on-dark-muted);
	font-size: var(--fs-lg);
}

.course-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0 0 var(--s-6);
	padding: 0;
	list-style: none;
	color: var(--color-on-dark-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.course-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.course-hero__meta strong { color: #fff; }
.course-hero__meta .is-star { color: var(--dli-amber-500); }

/* Buy box */
.buy-box {
	display: grid;
	gap: var(--s-4);
	max-width: 560px;
	padding: var(--s-5);
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: var(--r-xl);
	background: rgb(255 255 255 / 0.05);
	backdrop-filter: blur(10px);
}

.buy-box__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}

.buy-box__now {
	color: #fff;
	font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.buy-box__price s {
	color: var(--color-on-dark-muted);
	font-size: var(--fs-lg);
}

.buy-box__price .price__from {
	color: var(--color-on-dark-muted);
}

.buy-box__timer {
	margin: 0;
	color: var(--dli-amber-300);
	font-size: var(--fs-sm);
}

.buy-box__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
}

.buy-box__pay {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--color-on-dark-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.buy-box__pay .icon { color: var(--dli-green-300); flex: none; }

/* Media */
.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: var(--r-xl);
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 70px rgb(0 0 0 / 0.4);
}

.video-frame iframe,
.video-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.course-hero__includes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 10px;
	margin: var(--s-5) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.course-hero__includes li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.course-hero__includes .icon { color: var(--dli-green-300); flex: none; }

/* ---- Outcomes ---- */
.outcomes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: var(--s-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.outcomes li {
	display: flex;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--color-border);
	border-radius: var(--r-lg);
	background: var(--color-surface);
	font-weight: 600;
}

.outcomes .icon { flex: none; color: var(--dli-green-600); }

/* ---- Plans ---- */
.course-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.course-plan {
	display: flex;
	flex-direction: column;
	padding: var(--s-6);
	border: 1.5px solid var(--color-border);
	border-radius: var(--r-xl);
	background: var(--color-surface);
	transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur);
}

.course-plan:hover {
	transform: translateY(-5px);
	border-color: var(--dli-green-300);
	box-shadow: var(--shadow-md);
}

.course-plan .checklist { flex: 1; }

.course-plan__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.course-plan__price strong {
	color: var(--color-heading);
	font-size: var(--fs-3xl);
	font-weight: 800;
}

.course-plan__price s { color: var(--color-text-faint); }

/* ---- Curriculum ---- */
.curriculum__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.curriculum__head small {
	display: block;
	color: var(--color-text-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.curriculum__num {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--color-surface-2);
	color: var(--color-heading);
	font-weight: 800;
}

.curriculum__items {
	margin: 0;
	padding: 0 var(--s-5) var(--s-4);
	list-style: none;
}

.curriculum__items li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 0;
	border-top: 1px dashed var(--color-border);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.curriculum__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--color-primary-soft);
	color: var(--color-primary-text);
}

.curriculum__title { flex: 1; min-width: 0; }

.curriculum__time {
	color: var(--color-text-muted);
	font-variant-numeric: tabular-nums;
}

.curriculum__lock { color: var(--color-text-faint); flex: none; }

/* ---- Details ---- */
.course-desc { font-size: var(--fs-base); }

.course-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: var(--s-5);
}

.info-panel {
	padding: var(--s-6);
	border: 1px solid var(--color-border);
	border-radius: var(--r-xl);
}

.info-panel h2 { font-size: var(--fs-xl); }

.instructors {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--s-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.instructor {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: var(--s-5);
	border-radius: var(--r-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}

.instructor strong { color: var(--color-heading); font-size: var(--fs-lg); }
.instructor p { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }

.avatar--lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* ---- Guarantee ---- */
.guarantee {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	flex-wrap: wrap;
	padding: var(--s-6);
	border-radius: var(--r-xl);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}

.guarantee > div { flex: 1; min-width: 240px; }
.guarantee h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.guarantee p { margin: 0; color: var(--color-text-muted); }

.guarantee__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: var(--color-primary-soft);
	color: var(--color-primary-text);
}

/* ---- Mobile sticky buy bar ---- */
.sticky-buy {
	position: fixed;
	inset: auto 12px 12px;
	z-index: 45;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	padding: 10px 10px 10px 18px;
	border-radius: var(--r-pill);
	background: var(--dli-night-900);
	color: #fff;
	box-shadow: var(--shadow-lg);
}

.sticky-buy strong { font-size: var(--fs-lg); }
.sticky-buy s { margin-left: 6px; color: var(--color-on-dark-muted); font-size: var(--fs-sm); }

@media (max-width: 760px) {
	.sticky-buy { display: flex; }
	.single-courses .wa-float { bottom: 84px; }
}
