/**
 * Single Course Page Styles
 *
 * All colors from --iabt-* CSS variable palette.
 * BEM naming with `sc-` (single-course) prefix.
 *
 * @package Video_Slider_Elementor
 * @since 2.2.0
 */

/* =================================
   1. Hero Section
================================= */
.sc-hero {
	position: relative;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--iabt-gradient);
}

.sc-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

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

.sc-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to right,
		hsla(var(--iabt-primary-hsl), 0.85),
		hsla(var(--iabt-primary-hsl), 0.35)
	);
}

.sc-hero__body {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 48px;
}

.sc-hero__title {
	font-size: var(--iabt-h1);
	font-weight: var(--iabt-font-bold);
	line-height: var(--iabt-line-height-tight);
	letter-spacing: var(--iabt-letter-spacing-tight);
	color: #fff;
	margin: 0 0 12px;
	max-width: 720px;
}

.sc-hero__excerpt {
	font-size: var(--iabt-text-lg);
	line-height: var(--iabt-line-height-body);
	color: hsla(0, 0%, 100%, 0.85);
	margin: 0 0 20px;
	max-width: 600px;
}

/* --- Hero Social Proof Row --- */
.sc-hero__proof {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.sc-hero__proof-rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sc-hero__proof-stars {
	display: flex;
	align-items: center;
	gap: 3px;
	color: var(--iabt-gold);
	font-size: 16px;
}

.sc-hero__proof-stars i {
	line-height: 1;
}

.sc-hero__proof-value {
	font-size: var(--iabt-text-sm);
	font-weight: var(--iabt-font-bold);
	color: #fff;
}

.sc-hero__proof-divider {
	width: 1px;
	height: 20px;
	background: hsla(0, 0%, 100%, 0.4);
	flex-shrink: 0;
}

.sc-hero__proof-rec {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sc-hero__proof-rec-pct {
	font-size: var(--iabt-text-lg);
	font-weight: var(--iabt-font-bold);
	color: #fff;
}

.sc-hero__proof-rec-label {
	font-size: var(--iabt-text-sm);
	color: hsla(0, 0%, 100%, 0.75);
}

/* --- Hero CTA Button --- */
.sc-hero__cta {
	display: inline-flex;
	font-size: var(--iabt-text-base);
	padding: 14px 32px;
}

/* =================================
   2. Quick Facts Bar
================================= */
.sc-facts {
	background: var(--iabt-bg-soft);
	border-bottom: 1px solid var(--iabt-border);
}

.sc-facts__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

.sc-facts__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sc-facts__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: hsla(var(--iabt-accent-hsl), 0.12);
	color: var(--iabt-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

.sc-facts__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sc-facts__label {
	font-size: var(--iabt-text-xs);
	font-weight: var(--iabt-font-medium);
	color: var(--iabt-text-secondary);
	text-transform: uppercase;
	letter-spacing: var(--iabt-letter-spacing-wide);
}

.sc-facts__value {
	font-size: var(--iabt-text-sm);
	font-weight: var(--iabt-font-semibold);
	color: var(--iabt-text-primary);
}

/* =================================
   4. Main Content Area — Single Column
================================= */
.sc-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 48px 24px 64px;
}

/* --- Sections --- */
.sc-sections {
	min-width: 0;
}

.sc-section + .sc-section {
	margin-top: 48px;
}

.sc-section {
	scroll-margin-top: 120px;
}

.sc-section__title {
	font-size: var(--iabt-h3);
	font-weight: var(--iabt-font-semibold);
	color: var(--iabt-text-primary);
	border-left: 3px solid var(--iabt-accent);
	padding-left: 16px;
	margin: 0 0 20px;
}

/* Prose styles for section content */
.sc-prose h2,
.sc-prose h3,
.sc-prose h4,
.sc-prose h5 {
	color: var(--iabt-text-primary);
	font-weight: var(--iabt-font-semibold);
	margin-top: 24px;
	margin-bottom: 12px;
}

.sc-prose h2 {
	font-size: var(--iabt-h3);
}
.sc-prose h3 {
	font-size: var(--iabt-h4);
}
.sc-prose h4 {
	font-size: var(--iabt-h5);
}

.sc-prose p {
	font-size: var(--iabt-text-base);
	line-height: var(--iabt-line-height-body);
	color: var(--iabt-text-secondary);
	margin-bottom: var(--iabt-paragraph-margin);
}

.sc-prose ul,
.sc-prose ol {
	padding-left: 24px;
	margin-bottom: 16px;
	color: var(--iabt-text-secondary);
	line-height: var(--iabt-line-height-body);
}

.sc-prose li + li {
	margin-top: 6px;
}

.sc-prose table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	font-size: var(--iabt-text-sm);
}

.sc-prose th,
.sc-prose td {
	padding: 10px 14px;
	border: 1px solid var(--iabt-border);
	text-align: left;
}

.sc-prose th {
	background: var(--iabt-bg-soft);
	font-weight: var(--iabt-font-semibold);
	color: var(--iabt-text-primary);
}

.sc-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.sc-prose a {
	color: var(--iabt-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sc-prose a:hover {
	color: var(--iabt-accent);
}

/* =================================
   5. Animations
================================= */
@keyframes scFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sc-hero__body {
	animation: scFadeUp 0.6s ease-out both;
}

/* =================================
   6. Responsive — Tablet (<=959px)
================================= */
@media (max-width: 959px) {
	.sc-hero {
		aspect-ratio: 21 / 12;
	}

	.sc-hero__title {
		font-size: var(--iabt-h2);
	}

	.sc-content {
		padding: 36px 24px 48px;
	}
}

/* =================================
   7. Responsive — Mobile (<=767px)
================================= */
@media (max-width: 767px) {
	.sc-hero {
		aspect-ratio: 4 / 3;
	}

	.sc-hero__body {
		padding: 0 16px 32px;
	}

	.sc-hero__title {
		font-size: var(--iabt-h3);
	}

	.sc-hero__excerpt {
		display: none;
	}

	.sc-hero__proof {
		gap: 10px;
		flex-wrap: wrap;
	}

	.sc-hero__proof-stars {
		font-size: 14px;
	}

	.sc-hero__proof-rec-pct {
		font-size: var(--iabt-text-base);
	}

	.sc-hero__cta {
		padding: 12px 24px;
		font-size: var(--iabt-text-sm);
	}

	.sc-facts__inner {
		grid-template-columns: repeat(2, 1fr);
		padding: 20px 16px;
		gap: 16px;
	}

	.sc-content {
		padding: 28px 16px 40px;
	}
}

/* =================================
   8. Accessibility
================================= */
@media (prefers-reduced-motion: reduce) {
	.sc-hero__body {
		animation: none;
	}
}

/* =================================
   9. Print
================================= */
@media print {
	.sc-hero {
		aspect-ratio: auto;
		background: none !important;
	}

	.sc-hero__overlay {
		display: none;
	}

	.sc-hero__title {
		color: var(--iabt-text-primary);
	}

	.sc-hero__proof {
		display: none;
	}

	.sc-hero__cta {
		display: none;
	}
}
