/* ─── COURSE HERO ─── */
.course-hero {
	padding: 100px 60px 0;
	position: relative;
	z-index: 1;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.course-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0a2040 0%, #0d3a6e 50%, rgba(123, 47, 255, 0.15) 100%);
	z-index: 0;
}

.course-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3;
	mix-blend-mode: luminosity;
}

.course-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
	z-index: 1;
}

.course-hero-content {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding-bottom: 50px;
}

.course-hero-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Space Mono', monospace;
	font-size: .7rem;
	letter-spacing: .1em;
	margin-bottom: 20px;
}

.course-hero-breadcrumb a {
	text-decoration: none;
}

.course-hero-breadcrumb span {
	opacity: .5;
}

.course-hero-tag {
	font-family: 'Space Mono', monospace;
	font-size: .65rem;
	color: var(--accent);
	letter-spacing: .2em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px;
	border: 1px solid rgba(0, 229, 255, .25);
	border-radius: 100px;
	background: rgba(0, 229, 255, .06);
	margin-bottom: 16px;
}

.course-hero-title {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	letter-spacing: -.04em;
	line-height: 1.05;
	margin-bottom: 12px;
}

.course-hero-mentor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.mentor-mini-avatar {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--surface2);
	border: 2px solid var(--border);
	overflow: hidden;
	flex-shrink: 0;
}

.mentor-mini-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mentor-mini-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mentor-mini-name {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: .92rem;
	color: #fff;
}

.mentor-mini-role {
	font-size: .78rem;
	color: var(--accent);
	font-weight: 500;
}

/* ─── COURSE BODY LAYOUT ─── */
.course-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 60px 100px;
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 40px;
	position: relative;
	z-index: 1;
}

/* ─── LEFT: INFO + MODULES ─── */
.course-info-section {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.info-block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 36px;
}

.info-block-title {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -.02em;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
}

.info-block-title::before {
	content: '';
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--accent);
}

.course-about-text {
	font-size: .95rem;
	line-height: 1.8;
	font-weight: 300;
}

/* ─── WHAT YOU'LL LEARN ─── */
.learn-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.learn-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--surface2);
	border: 1px solid var(--border);
}

.learn-check {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: rgba(0, 229, 255, .12);
	border: 1px solid rgba(0, 229, 255, .3);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--accent);
	font-size: .8rem;
	font-weight: 700;
}

.learn-text {
	font-size: .85rem;
	line-height: 1.5;
	font-weight: 400;
}

/* ─── MODULES LIST ─── */
.modules-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.module-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .2s;
}

.module-item:hover {
	border-color: rgba(0, 229, 255, .3);
}

.module-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	cursor: pointer;
	transition: background .2s;
}

.module-header:hover {
	background: rgba(255, 255, 255, .02);
}

.module-number {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Mono', monospace;
	font-size: .7rem;
	font-weight: 700;
	color: var(--accent);
	background: rgba(0, 229, 255, .1);
	border: 1px solid rgba(0, 229, 255, .2);
}

.module-title-wrap {
	flex: 1;
	min-width: 0;
}

.module-title {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: .95rem;
	color: var(--text);
}

.module-meta {
	font-size: .75rem;
	color: var(--text-muted);
	margin-top: 3px;
}

.module-toggle {
	color: var(--text-muted);
	font-size: .8rem;
	transition: transform .3s ease;
	flex-shrink: 0;
}

.module-item.open .module-toggle {
	transform: rotate(180deg);
}

.module-lessons {
	display: none;
	flex-direction: column;
	border-top: 1px solid var(--border);
	background: var(--bg2);
}

.module-item.open .module-lessons {
	display: flex;
}

.lesson-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px 12px 66px;
	border-bottom: 1px solid rgba(255, 255, 255, .04);
	text-decoration: none;
	transition: background .2s;
}

.lesson-item:last-child {
	border-bottom: none;
}

.lesson-item:hover {
	background: rgba(0, 229, 255, .04);
}

.lesson-icon {
	font-size: .9rem;
	opacity: .6;
	flex-shrink: 0;
}

.lesson-title {
	font-size: .85rem;
	color: var(--text-muted);
	flex: 1;
}

.lesson-duration {
	font-family: 'Space Mono', monospace;
	font-size: .65rem;
	color: var(--text-muted);
	opacity: .6;
	white-space: nowrap;
}

/* ─── RIGHT: STICKY CARD ─── */
.course-sidebar {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-self: start;
}

.sidebar-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
}

.sidebar-thumb {
	width: 100%;
	height: 180px;
	background: linear-gradient(135deg, #0a2040, #0d3a6e);
	position: relative;
	overflow: hidden;
}

.sidebar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .8;
}

.sidebar-thumb-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 21, 37, .8), transparent);
}

.sidebar-body {
	padding: 24px;
}

.sidebar-price {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 1.8rem;
	letter-spacing: -.04em;
	color: var(--accent);
	margin-bottom: 4px;
}

.sidebar-price-sub {
	font-size: .8rem;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.btn-enroll {
	width: 100%;
	padding: 14px;
	background: var(--accent);
	color: #000;
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 1rem;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all .3s;
	letter-spacing: .02em;
	box-shadow: 0 0 30px rgba(0, 229, 255, .3);
	margin-bottom: 12px;
}

.btn-enroll:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 50px rgba(0, 229, 255, .5);
}

.btn-preview {
	width: 100%;
	padding: 12px;
	background: transparent;
	color: var(--text);
	font-family: 'Syne', sans-serif;
	font-weight: 600;
	font-size: .9rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all .25s;
	letter-spacing: .01em;
}

.btn-preview:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: rgba(0, 229, 255, .04);
}

.sidebar-divider {
	height: 1px;
	background: var(--border);
	margin: 20px 0;
}

.sidebar-features {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sidebar-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .85rem;
	color: var(--text-muted);
}

.sf-icon {
	font-size: 1rem;
	flex-shrink: 0;
}

/* ─── MENTOR SIDEBAR CARD ─── */
.mentor-sidebar-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 24px;
}

.mentor-sidebar-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.mentor-sidebar-avatar {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	border: 2px solid rgba(0, 229, 255, .2);
	overflow: hidden;
	background: var(--surface2);
}

.mentor-sidebar-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mentor-sidebar-name {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: var(--text);
}

.mentor-sidebar-role {
	font-size: .78rem;
	color: var(--accent);
	font-weight: 500;
	margin-top: 2px;
}

.mentor-sidebar-desc {
	font-size: .83rem;
	line-height: 1.6;
	font-weight: 300;
}

.mentor-sidebar-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.skill-pill {
	font-family: 'Space Mono', monospace;
	font-size: .62rem;
	padding: 4px 12px;
	border-radius: 100px;
	font-weight: 700;
}

.skill-pill:nth-child(3n+1) {
	color: var(--accent);
	background: rgba(0, 229, 255, .1);
	border: 1px solid rgba(0, 229, 255, .3);
}

.skill-pill:nth-child(3n+2) {
	color: var(--accent2);
	background: rgba(123, 47, 255, .1);
	border: 1px solid rgba(123, 47, 255, .3);
}

.skill-pill:nth-child(3n+3) {
	color: var(--accent3);
	background: rgba(255, 107, 53, .1);
	border: 1px solid rgba(255, 107, 53, .3);
}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px) {
	.course-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.course-sidebar {
		position: static;
	}

	.sidebar-card {
		max-width: 500px;
	}
}

@media(max-width:900px) {
	.course-hero {
		padding: 90px 24px 0;
	}

	.course-layout {
		padding: 40px 24px 70px;
	}
}

@media(max-width:680px) {
	.learn-grid {
		grid-template-columns: 1fr;
	}
}