/**
 * Freedomman Theme - Single Course Stylesheet
 * Course Detail UI V1
 *
 * Scoped strictly to .fm-course-detail and child components.
 * Adheres to Dark Tech + AI design system tokens (docs/DESIGN-SYSTEM.md).
 *
 * @package Freedomman
 * @version 1.0.0
 */

/* --------------------------------------------------------------------------
 * 1. Breadcrumb Navigation
 * -------------------------------------------------------------------------- */
.fm-course-breadcrumb-container {
	padding-top: var(--fm-space-5);
	padding-bottom: var(--fm-space-3);
}

.fm-course-breadcrumb .fm-breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fm-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fm-text-caption);
	color: var(--fm-text-muted);
}

.fm-course-breadcrumb .fm-breadcrumb-link {
	color: var(--fm-text-muted);
	text-decoration: none;
	transition: color var(--fm-transition-micro);
}

.fm-course-breadcrumb .fm-breadcrumb-link:hover,
.fm-course-breadcrumb .fm-breadcrumb-link:focus-visible {
	color: var(--fm-brand-cyan);
}

.fm-course-breadcrumb .fm-breadcrumb-sep {
	color: var(--fm-border-visible);
	font-size: 0.75rem;
	user-select: none;
}

.fm-course-breadcrumb .fm-breadcrumb-current-text {
	color: var(--fm-text-primary);
	font-weight: var(--fm-weight-medium);
	max-width: 420px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	vertical-align: bottom;
}

/* --------------------------------------------------------------------------
 * 2. Course Hero Section
 * -------------------------------------------------------------------------- */
.fm-course-hero {
	position: relative;
	padding-top: var(--fm-space-6);
	padding-bottom: clamp(40px, 5vw, 64px);
	background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(115, 87, 255, 0.07) 0%, transparent 70%);
	border-bottom: 1px solid var(--fm-border-subtle);
}

.fm-course-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
	gap: clamp(32px, 4vw, 56px);
	align-items: center;
}

/* Left Hero Content */
.fm-course-hero-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fm-course-badge-row {
	margin-bottom: var(--fm-space-4);
}

.fm-course-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--fm-space-2);
	background-color: rgba(115, 87, 255, 0.12);
	border: 1px solid rgba(115, 87, 255, 0.35);
	color: var(--fm-brand-violet);
	padding: var(--fm-space-1) var(--fm-space-3);
	border-radius: var(--fm-radius-pill);
	font-size: 0.75rem;
	font-weight: var(--fm-weight-bold);
	letter-spacing: 0.06em;
}

.fm-course-title {
	font-family: var(--fm-font-primary);
	font-size: clamp(2rem, 3.2vw + 0.5rem, 3.25rem);
	font-weight: var(--fm-weight-extrabold);
	line-height: 1.15;
	color: var(--fm-text-primary);
	margin: 0 0 var(--fm-space-4) 0;
	letter-spacing: -0.02em;
	word-break: break-word;
}

.fm-course-excerpt-wrap {
	margin-bottom: var(--fm-space-6);
}

.fm-course-excerpt {
	font-size: clamp(1rem, 1.1vw, 1.125rem);
	line-height: var(--fm-leading-body);
	color: var(--fm-text-secondary);
	margin: 0;
	max-width: 640px;
}

/* Course Metadata Strip */
.fm-course-meta-strip {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--fm-space-5);
	padding: var(--fm-space-3) var(--fm-space-4);
	background-color: var(--fm-bg-surface);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-md);
	margin-bottom: var(--fm-space-6);
	width: fit-content;
	max-width: 100%;
}

.fm-course-meta-item {
	display: flex;
	align-items: center;
	gap: var(--fm-space-3);
}

.fm-course-meta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: var(--fm-bg-interactive);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-sm);
	color: var(--fm-brand-cyan);
	flex-shrink: 0;
}

.fm-course-meta-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.fm-meta-val {
	font-size: var(--fm-text-body-sm);
	font-weight: var(--fm-weight-semibold);
	color: var(--fm-text-primary);
}

.fm-meta-sub {
	font-size: var(--fm-text-caption);
	color: var(--fm-text-muted);
}

/* CTA Bar */
.fm-course-cta-bar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--fm-space-2);
}

/* Course & Workflow Progress Widget (Sections 5, 7, 9) */
.fm-progress-widget {
	width: 100%;
	max-width: 420px;
	margin-bottom: var(--fm-space-2);
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-2);
}

.fm-progress-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--fm-text-caption);
	line-height: 1.4;
}

.fm-progress-label {
	color: var(--fm-text-secondary);
	font-weight: var(--fm-weight-medium);
}

.fm-progress-count {
	color: var(--fm-brand-cyan);
	font-weight: var(--fm-weight-semibold);
	font-variant-numeric: tabular-nums;
}

.fm-progress-bar-row {
	display: flex;
	align-items: center;
	gap: var(--fm-space-3);
}

.fm-progress-track {
	flex: 1;
	height: 8px;
	background-color: var(--fm-bg-surface-raised);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-full);
	overflow: hidden;
	position: relative;
}

.fm-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--fm-brand-cyan) 0%, var(--fm-brand-blue) 60%, var(--fm-brand-violet) 100%);
	border-radius: var(--fm-radius-full);
	transition: width 0.35s ease;
}

.fm-progress-pct {
	font-size: var(--fm-text-caption);
	font-weight: var(--fm-weight-bold);
	color: var(--fm-text-primary);
	min-width: 36px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.fm-progress-pct.is-complete {
	color: var(--fm-brand-cyan);
}

.fm-course-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fm-space-2);
	min-height: 52px;
	padding: 0 var(--fm-space-8);
	border-radius: var(--fm-radius-pill);
	font-size: var(--fm-text-body);
	font-weight: var(--fm-weight-semibold);
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--fm-transition-micro),
	            box-shadow var(--fm-transition-micro),
	            filter var(--fm-transition-micro);
}

.fm-course-cta-btn.fm-btn-primary {
	background: var(--fm-gradient-primary);
	color: var(--fm-text-primary);
	border: none;
	box-shadow: 0 4px 20px rgba(115, 87, 255, 0.35);
}

.fm-course-cta-btn.fm-btn-primary:hover,
.fm-course-cta-btn.fm-btn-primary:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 6px 28px rgba(115, 87, 255, 0.5), 0 0 15px rgba(0, 221, 251, 0.3);
}

.fm-course-cta-btn .fm-cta-arrow {
	transition: transform var(--fm-transition-micro);
}

.fm-course-cta-btn:hover .fm-cta-arrow {
	transform: translateX(3px);
}

/* Locked CTA State */
.fm-btn-locked {
	background-color: var(--fm-bg-surface-raised);
	border: 1px solid var(--fm-border-visible);
	color: var(--fm-text-disabled);
	cursor: not-allowed;
	opacity: 0.85;
	pointer-events: none;
}

.fm-course-cta-note {
	font-size: var(--fm-text-caption);
	color: var(--fm-text-muted);
	margin: var(--fm-space-1) 0 0 0;
	line-height: 1.4;
}

/* Course Purchase UX V1 */
.fm-course-purchase-single {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--fm-space-2);
	width: 100%;
}

.fm-course-price-wrap {
	display: flex;
	align-items: baseline;
	gap: var(--fm-space-2);
	margin-bottom: var(--fm-space-1);
}

.fm-course-price {
	font-size: 1.5rem;
	font-weight: var(--fm-weight-bold);
	color: var(--fm-brand-cyan);
	line-height: 1.2;
}

.fm-course-price .woocommerce-Price-amount {
	display: inline-flex;
	align-items: baseline;
	font-weight: var(--fm-weight-bold);
}

.fm-course-price del {
	color: var(--fm-text-muted);
	font-size: 1rem;
	font-weight: var(--fm-weight-normal);
	margin-right: var(--fm-space-2);
}

.fm-course-price ins {
	text-decoration: none;
	color: var(--fm-brand-cyan);
}

.fm-course-cta-unavailable-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--fm-space-1);
	width: 100%;
}

/* Multiple Offers Options Selector */
.fm-course-purchase-multiple {
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-2);
	width: 100%;
	max-width: 480px;
}

.fm-course-offers-heading {
	margin-bottom: var(--fm-space-1);
}

.fm-course-offers-title {
	font-size: var(--fm-text-caption);
	font-weight: var(--fm-weight-semibold);
	color: var(--fm-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fm-course-offers-list {
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-2);
	width: 100%;
}

.fm-course-offer-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fm-space-3);
	padding: var(--fm-space-3) var(--fm-space-4);
	background-color: var(--fm-bg-surface-raised);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-lg);
	transition: border-color var(--fm-transition-micro), background-color var(--fm-transition-micro);
}

.fm-course-offer-card.is-available:hover {
	border-color: rgba(0, 221, 251, 0.4);
	background-color: var(--fm-bg-surface-hover);
}

.fm-course-offer-card.is-unavailable {
	opacity: 0.7;
	border-style: dashed;
}

.fm-course-offer-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fm-course-offer-name {
	font-size: var(--fm-text-body);
	font-weight: var(--fm-weight-semibold);
	color: var(--fm-text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-course-offer-price {
	font-size: 0.9375rem;
	color: var(--fm-brand-cyan);
	font-weight: var(--fm-weight-medium);
}

.fm-course-offer-action {
	flex-shrink: 0;
}

.fm-course-offer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fm-space-1);
	min-height: 44px;
	padding: 0 var(--fm-space-5);
	border-radius: var(--fm-radius-pill);
	font-size: var(--fm-text-caption);
	font-weight: var(--fm-weight-semibold);
	text-decoration: none;
	cursor: pointer;
}

.fm-course-offer-btn.fm-btn-primary {
	background: var(--fm-gradient-primary);
	color: var(--fm-text-primary);
	border: none;
	box-shadow: 0 2px 12px rgba(115, 87, 255, 0.25);
}

.fm-course-offer-btn.fm-btn-primary:hover,
.fm-course-offer-btn.fm-btn-primary:focus-visible {
	filter: brightness(1.08);
	box-shadow: 0 4px 16px rgba(115, 87, 255, 0.4);
}

/* Right Hero Media: Course Cover */
.fm-course-hero-media {
	min-width: 0;
	display: flex;
	justify-content: center;
}

.fm-course-cover-wrap {
	width: 100%;
	max-width: 580px;
	border-radius: var(--fm-radius-lg);
	border: 1px solid var(--fm-border-visible);
	overflow: hidden;
	box-shadow: var(--fm-shadow-surface), 0 0 30px rgba(115, 87, 255, 0.08);
	background-color: var(--fm-bg-surface);
	transition: border-color var(--fm-transition-card), box-shadow var(--fm-transition-card);
}

.fm-course-cover-wrap:hover {
	border-color: rgba(39, 136, 255, 0.4);
	box-shadow: var(--fm-shadow-surface), 0 0 35px rgba(0, 221, 251, 0.12);
}

.fm-course-cover-figure {
	margin: 0;
	padding: 0;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background-color: var(--fm-bg-deep);
}

.fm-course-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Placeholder Cover when no thumbnail exists */
.fm-course-cover-placeholder {
	aspect-ratio: 16 / 9;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, var(--fm-bg-surface) 0%, var(--fm-bg-deep) 100%);
	padding: var(--fm-space-6);
	box-sizing: border-box;
}

.fm-cover-placeholder-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--fm-space-3);
	color: var(--fm-text-disabled);
}

.fm-placeholder-icon {
	color: var(--fm-brand-violet);
	opacity: 0.7;
}

.fm-placeholder-text {
	font-size: var(--fm-text-body-sm);
	font-weight: var(--fm-weight-medium);
	color: var(--fm-text-muted);
	max-width: 320px;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
 * 3. Main Course Layout (Content + Curriculum vs Sidebar)
 * -------------------------------------------------------------------------- */
.fm-course-layout-container {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(64px, 8vw, 100px);
}

.fm-course-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(32px, 4vw, 48px);
	align-items: start;
}

.fm-course-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-10);
}

/* Section Header Shared Primitives */
.fm-section-header-row,
.fm-curriculum-header {
	margin-bottom: var(--fm-space-5);
}

.fm-title-accent-wrap {
	display: inline-flex;
	align-items: center;
	gap: var(--fm-space-2);
	margin-bottom: var(--fm-space-2);
}

.fm-vertical-accent {
	width: 3px;
	height: 16px;
	background: var(--fm-brand-violet);
	border-radius: var(--fm-radius-pill);
	display: inline-block;
}

.fm-section-eyebrow {
	font-size: 0.8125rem;
	font-weight: var(--fm-weight-bold);
	color: var(--fm-brand-violet);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fm-course-section-title {
	font-size: clamp(1.35rem, 1.8vw, 1.75rem);
	font-weight: var(--fm-weight-bold);
	color: var(--fm-text-primary);
	margin: 0;
	line-height: var(--fm-leading-h3);
}

/* Course Overview / Native Post Content */
.fm-course-overview-section {
	background-color: var(--fm-bg-surface);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-lg);
	padding: clamp(24px, 3vw, 36px);
}

.fm-course-body-content {
	font-size: var(--fm-text-body);
	line-height: 1.7;
	color: var(--fm-text-secondary);
}

.fm-course-body-content p {
	margin-top: 0;
	margin-bottom: var(--fm-space-4);
}

.fm-course-body-content p:last-child {
	margin-bottom: 0;
}

.fm-course-body-content h2,
.fm-course-body-content h3,
.fm-course-body-content h4 {
	color: var(--fm-text-primary);
	font-family: var(--fm-font-primary);
	margin-top: var(--fm-space-6);
	margin-bottom: var(--fm-space-3);
}

.fm-course-body-content ul,
.fm-course-body-content ol {
	padding-left: var(--fm-space-5);
	margin-bottom: var(--fm-space-4);
}

.fm-course-body-content li {
	margin-bottom: var(--fm-space-2);
}

/* --------------------------------------------------------------------------
 * 4. Course Curriculum (Primary Functional Content)
 * -------------------------------------------------------------------------- */
.fm-curriculum-title-row {
	margin-top: var(--fm-space-1);
}

.fm-curriculum-title {
	font-size: clamp(1.25rem, 1.6vw, 1.625rem);
	font-weight: var(--fm-weight-bold);
	color: var(--fm-text-primary);
	margin: 0;
}

/* Curriculum Ordered List */
.fm-curriculum-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-2);
}

.fm-curriculum-item {
	background-color: var(--fm-bg-surface);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-md);
	transition: background-color var(--fm-transition-micro),
	            border-color var(--fm-transition-micro),
	            transform var(--fm-transition-micro);
}

/* Accessible Module Row */
.fm-curriculum-item.fm-module-accessible:hover {
	background-color: var(--fm-bg-surface-raised);
	border-color: var(--fm-border-visible);
	transform: translateX(2px);
}

.fm-curriculum-item.fm-module-accessible .fm-module-num {
	color: var(--fm-brand-violet);
}

.fm-curriculum-item.fm-module-accessible .fm-module-title {
	color: var(--fm-text-primary);
}

/* Locked Module Row */
.fm-curriculum-item.fm-module-locked {
	background-color: rgba(9, 17, 31, 0.65);
	opacity: 0.85;
}

.fm-curriculum-item.fm-module-locked .fm-module-num {
	color: var(--fm-text-disabled);
}

.fm-curriculum-item.fm-module-locked .fm-module-title {
	color: var(--fm-text-muted);
}

/* Row Inner Structure */
.fm-curriculum-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fm-space-4);
	padding: var(--fm-space-4) var(--fm-space-5);
	min-height: var(--fm-touch-target-min);
	text-decoration: none;
	color: inherit;
}

.fm-curriculum-row-main {
	display: flex;
	align-items: center;
	gap: var(--fm-space-4);
	flex: 1;
	min-width: 0;
}

.fm-module-num {
	font-family: var(--fm-font-primary);
	font-size: 0.9375rem;
	font-weight: var(--fm-weight-bold);
	min-width: 24px;
	flex-shrink: 0;
}

.fm-module-title {
	font-size: 0.975rem;
	font-weight: var(--fm-weight-medium);
	line-height: 1.4;
	margin: 0;
	word-break: break-word;
}

/* Status Badges */
.fm-curriculum-row-status {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.fm-module-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--fm-space-2);
	padding: var(--fm-space-1) var(--fm-space-3);
	border-radius: var(--fm-radius-pill);
	font-size: var(--fm-text-caption);
	font-weight: var(--fm-weight-medium);
	line-height: 1;
}

.fm-module-badge-accessible {
	background-color: rgba(115, 87, 255, 0.15);
	border: 1px solid rgba(115, 87, 255, 0.35);
	color: var(--fm-brand-violet);
}

.fm-module-badge-locked {
	background-color: var(--fm-bg-deep);
	border: 1px solid var(--fm-border-subtle);
	color: var(--fm-text-disabled);
}

.fm-badge-icon {
	flex-shrink: 0;
}

/* Empty Curriculum State */
.fm-curriculum-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(40px, 6vw, 64px) var(--fm-space-6);
	background-color: var(--fm-bg-surface);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-md);
}

.fm-empty-icon {
	color: var(--fm-text-disabled);
	margin-bottom: var(--fm-space-3);
}

.fm-empty-text {
	color: var(--fm-text-muted);
	font-size: var(--fm-text-body);
	margin: 0;
}

/* --------------------------------------------------------------------------
 * 5. Right Sidebar (Author & Course Info)
 * -------------------------------------------------------------------------- */
.fm-course-sidebar {
	min-width: 0;
}

.fm-sidebar-sticky {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-6);
}

.fm-sidebar-card {
	background-color: var(--fm-bg-surface);
	border: 1px solid var(--fm-border-subtle);
	border-radius: var(--fm-radius-lg);
	padding: var(--fm-space-6);
}

.fm-sidebar-card-title {
	font-size: 1.05rem;
	font-weight: var(--fm-weight-bold);
	color: var(--fm-text-primary);
	margin: 0 0 var(--fm-space-4) 0;
	padding-bottom: var(--fm-space-3);
	border-bottom: 1px solid var(--fm-border-subtle);
}

/* Instructor Card */
.fm-instructor-profile {
	display: flex;
	align-items: center;
	gap: var(--fm-space-4);
	margin-bottom: var(--fm-space-3);
}

.fm-instructor-avatar {
	flex-shrink: 0;
}

.fm-avatar-img {
	width: 52px;
	height: 52px;
	border-radius: var(--fm-radius-pill);
	border: 2px solid var(--fm-border-visible);
	object-fit: cover;
	display: block;
}

.fm-instructor-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fm-instructor-name {
	font-size: 1rem;
	font-weight: var(--fm-weight-bold);
	color: var(--fm-text-primary);
	margin: 0;
}

.fm-instructor-role {
	font-size: var(--fm-text-caption);
	color: var(--fm-text-muted);
}

.fm-instructor-bio {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--fm-text-secondary);
	margin: var(--fm-space-3) 0 0 0;
}

/* Course Information Card */
.fm-course-info-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--fm-space-3);
}

.fm-info-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fm-space-3);
	padding-bottom: var(--fm-space-2);
	border-bottom: 1px solid rgba(27, 41, 64, 0.4);
}

.fm-info-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.fm-info-label {
	display: flex;
	align-items: center;
	gap: var(--fm-space-2);
	color: var(--fm-text-muted);
	font-size: 0.875rem;
}

.fm-info-label svg {
	color: var(--fm-brand-cyan);
	flex-shrink: 0;
}

.fm-info-value {
	color: var(--fm-text-primary);
	font-size: 0.875rem;
	font-weight: var(--fm-weight-semibold);
	text-align: right;
}

/* --------------------------------------------------------------------------
 * 6. Responsive Breakpoints (Tablet & Mobile)
 * -------------------------------------------------------------------------- */

/* Tablet & Intermediate Desktop (768px - 1024px) */
@media screen and (max-width: 1024px) {
	.fm-course-layout {
		grid-template-columns: 1fr;
		gap: var(--fm-space-8);
	}

	.fm-course-sidebar {
		max-width: 600px;
	}

	.fm-sidebar-sticky {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: var(--fm-space-5);
	}

	.fm-course-hero-grid {
		gap: var(--fm-space-6);
	}
}

/* Mobile & Small Tablet (<= 767px) */
@media screen and (max-width: 767px) {
	.fm-course-breadcrumb-container {
		padding-top: var(--fm-space-3);
	}

	.fm-course-breadcrumb .fm-breadcrumb-current-text {
		max-width: 180px;
	}

	.fm-course-hero {
		padding-top: var(--fm-space-4);
		padding-bottom: var(--fm-space-8);
	}

	.fm-course-hero-grid {
		grid-template-columns: 1fr;
		gap: var(--fm-space-6);
	}

	.fm-course-hero-media {
		order: -1; /* Display course cover near top on mobile */
		width: 100%;
	}

	.fm-course-cover-wrap {
		max-width: 100%;
	}

	.fm-course-title {
		font-size: clamp(1.85rem, 6vw, 2.25rem);
		line-height: 1.2;
	}

	.fm-course-excerpt {
		font-size: 0.95rem;
	}

	.fm-course-meta-strip {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--fm-space-3);
		padding: var(--fm-space-3);
	}

	.fm-course-cta-bar {
		width: 100%;
	}

	.fm-course-cta-btn {
		width: 100%;
		justify-content: center;
	}

	.fm-course-cta-locked-wrap,
	.fm-course-cta-guest-wrap,
	.fm-course-purchase-single,
	.fm-course-cta-unavailable-wrap,
	.fm-course-purchase-multiple {
		width: 100%;
		max-width: 100%;
	}

	.fm-course-offer-card {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--fm-space-3);
	}

	.fm-course-offer-name {
		white-space: normal;
		overflow-wrap: break-word;
		word-break: break-word;
	}

	.fm-course-cta-note {
		font-size: 1rem;
		line-height: 1.5;
	}

	.fm-course-offer-action {
		width: 100%;
	}

	.fm-course-offer-btn {
		width: 100%;
		justify-content: center;
	}

	.fm-curriculum-row {
		padding: var(--fm-space-3) var(--fm-space-4);
		gap: var(--fm-space-3);
	}

	.fm-module-title {
		font-size: 0.9rem;
	}

	.fm-module-badge .fm-badge-label {
		display: none; /* Icon only on small mobile viewports to prevent collision */
	}

	.fm-module-badge {
		padding: var(--fm-space-1);
		min-width: 32px;
		min-height: 32px;
		justify-content: center;
	}

	.fm-sidebar-sticky {
		grid-template-columns: 1fr;
	}
}

/* Ultra-compact Mobile (375px - 430px) */
@media screen and (max-width: 430px) {
	.fm-course-title {
		font-size: 1.75rem;
	}

	.fm-curriculum-item {
		border-radius: var(--fm-radius-sm);
	}

	.fm-curriculum-row-main {
		gap: var(--fm-space-3);
	}

	.fm-module-num {
		font-size: 0.875rem;
		min-width: 20px;
	}
}
