/**
 * YouTube Feed Public Stylesheet
 * High-performance, modern, student-centric design system.
 */

:root {
	--ytf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--ytf-primary: #de022c;
	--ytf-primary-hover: #de022c;
	--ytf-primary-light: #fee2e2;
	--ytf-success: #10b981;
	--ytf-success-light: #ecfdf5;
	--ytf-warning: #f59e0b;
	--ytf-warning-light: #fffbeb;
	--ytf-youtube-red: #de022c;
	--ytf-text-main: #121212;
	--ytf-text-muted: #737373;
	--ytf-text-light: #a3a3a3;
	--ytf-bg-main: #ffffff;
	--ytf-bg-subtle: #f8fafc;
	--ytf-bg-alt: #f1f5f9;
	--ytf-border: #e5e7eb;
	--ytf-border-hover: #cbd5e1;
	--ytf-radius-sm: 4px;
	--ytf-radius-md: 8px;
	--ytf-radius-lg: 12px;
	--ytf-radius-full: 9999px;
	--ytf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--ytf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--ytf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--ytf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ytf-site-main {
	font-family: var(--ytf-font-family);
	color: var(--ytf-text-main);
	line-height: 1.6;
	background-color: var(--background, #fdfdfd);
	min-height: 80vh;
	box-sizing: border-box;
}

.ytf-site-main * {
	box-sizing: border-box;
}

.ytf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   Shared Typography, Breadcrumbs & Button Elements
   ========================================================================== */

.ytf-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--ytf-text-muted);
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.ytf-breadcrumbs a {
	color: var(--ytf-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.ytf-breadcrumbs a:hover {
	color: var(--ytf-primary);
	text-decoration: underline;
}

.ytf-bc-sep {
	color: var(--ytf-text-light);
}

.ytf-bc-current {
	color: var(--ytf-text-main);
	font-weight: 500;
}

.ytf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--ytf-radius-sm);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.ytf-btn-primary {
	background-color: var(--primary-container, var(--ytf-primary));
	color: #ffffff !important;
	border-color: var(--primary-container, var(--ytf-primary));
}

.ytf-btn-primary:hover {
	background-color: var(--ytf-primary-hover);
	border-color: var(--ytf-primary-hover);
	transform: translateY(-1px);
}

.ytf-btn-secondary {
	background-color: var(--ytf-bg-main);
	color: var(--ytf-text-main) !important;
	border-color: var(--ytf-border);
}

.ytf-btn-secondary:hover {
	border-color: var(--ytf-border-hover);
	background-color: var(--ytf-bg-alt);
}

.ytf-btn-youtube {
	background-color: var(--ytf-youtube-red);
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
}

.ytf-btn-youtube:hover {
	background-color: #cc0000;
	transform: translateY(-1px);
}

.ytf-btn-sm {
	padding: 6px 14px;
	font-size: 0.85rem;
}

.ytf-btn-lg {
	padding: 12px 24px;
	font-size: 1rem;
}

.ytf-badge-group {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.ytf-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--ytf-radius-full);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ytf-badge-green {
	background: var(--ytf-success-light);
	color: var(--ytf-success);
}

.ytf-badge-dark {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

/* ==========================================================================
   Page 1: Full-Width Course Archive (/courses/) Matching Elevent Theme
   ========================================================================== */

.post-type-archive.ytf-site-main {
	background-color: var(--background, #fdfdfd);
	color: var(--on-background, #121212);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.post-type-archive .hero-section {
	background-color: var(--on-background, #121212);
	color: var(--on-primary, #ffffff);
	padding: 64px 0;
}

.post-type-archive .font-display-lg {
	font-family: 'Inter', sans-serif;
	font-size: clamp(2.4rem, 4.8vw, 3.8rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.post-type-archive .text-primary-zen-container,
.post-type-archive .text-primary-zen {
	color: var(--primary-container, #de022c) !important;
}

.post-type-archive .hero-search-wrapper {
	width: 100%;
	max-width: 860px;
}

.post-type-archive .ytf-search-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.post-type-archive .hero-search-container {
	position: relative;
	flex: 1 1 280px;
	min-width: 240px;
}

.post-type-archive .hero-search-wrapper .hero-search-input,
.post-type-archive .hero-search-wrapper .form-select,
.post-type-archive .hero-search-wrapper .btn {
	height: 52px;
	box-sizing: border-box;
}

.post-type-archive .hero-search-input {
	width: 100%;
	height: 52px;
	padding: 0.75rem 1rem 0.75rem 3rem;
	border: none;
	border-radius: 0;
	background: #ffffff;
	color: #121212;
	font-size: 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	outline: none;
}

.post-type-archive .hero-search-input:focus {
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.4);
	outline: none;
	padding: 0.75rem 1rem 0.75rem 3rem;
}

.post-type-archive .hero-search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--on-surface-variant, #737373);
	font-size: 22px;
	pointer-events: none;
}

.post-type-archive .ytf-filter-controls {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
	flex: 0 0 auto;
}

.post-type-archive .ytf-language-container {
	min-width: 160px;
	flex: 1 1 auto;
}

.post-type-archive .hero-search-wrapper .form-select {
	width: 100%;
	height: 52px;
	border: none;
	border-radius: 0;
	background-color: #ffffff;
	color: #121212;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 0 2.25rem 0 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	outline: none;
}

.post-type-archive .hero-search-wrapper .form-select:focus {
	box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.4);
	outline: none;
}

.post-type-archive .ytf-filter-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex: 0 0 auto;
}

.post-type-archive .hero-search-wrapper .btn {
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	white-space: nowrap;
}

/* Category Quick-Pills */
.ytf-quick-pills-bar .badge {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: all 0.2s ease;
}

.ytf-quick-pills-bar .badge:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Search and Filter Responsiveness */
@media (max-width: 991px) {
	.post-type-archive .hero-search-container {
		flex: 1 1 100%;
		width: 100%;
	}

	.post-type-archive .ytf-filter-controls {
		width: 100%;
		flex: 1 1 100%;
		display: flex;
		flex-wrap: nowrap;
		gap: 10px;
		align-items: center;
	}

	.post-type-archive .ytf-language-container {
		flex: 1 1 auto;
		min-width: 0;
	}

	.post-type-archive .ytf-filter-actions {
		flex: 0 0 auto;
		display: flex;
		gap: 8px;
	}
}

@media (max-width: 576px) {
	.post-type-archive .ytf-search-filter-row {
		gap: 8px;
	}

	.post-type-archive .hero-search-wrapper .hero-search-input,
	.post-type-archive .hero-search-wrapper .form-select,
	.post-type-archive .hero-search-wrapper .btn {
		height: 48px;
		font-size: 0.9rem;
	}

	.post-type-archive .hero-search-icon {
		left: 0.85rem;
		font-size: 20px;
	}

	.post-type-archive .hero-search-input {
		padding-left: 2.75rem;
	}

	.post-type-archive .ytf-filter-controls {
		width: 100%;
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		align-items: center;
	}

	.post-type-archive .ytf-language-container {
		flex: 1 1 auto;
		min-width: 0;
	}

	.post-type-archive .ytf-filter-actions {
		flex: 0 0 auto;
		display: flex;
		gap: 6px;
	}

	.post-type-archive .hero-search-wrapper .btn {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* ==========================================================================
   Course Card Component (Clean Profile / Instructor Card Design)
   ========================================================================== */

.ytf-profile-card {
	background: #ffffff;
	border: 1px solid #eef0f4;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ytf-profile-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
	border-color: #cbd5e1;
}

/* Top Media Banner */
.ytf-media-banner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0f172a;
	display: block;
}

.ytf-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.ytf-profile-card:hover .ytf-banner-img {
	transform: scale(1.04);
}

.ytf-banner-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1e293b;
	color: #94a3b8;
}

.ytf-banner-placeholder span {
	font-size: 48px;
}

/* Card Content */
.ytf-card-content {
	padding: 18px 18px 14px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Instructor / Avatar Row */
.ytf-instructor-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.ytf-avatar-wrap {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
	border: 1.5px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ytf-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ytf-avatar-default {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	background: #f8fafc;
}

.ytf-avatar-default span {
	font-size: 24px;
}

.ytf-title-wrap {
	flex: 1;
	min-width: 0;
}

.ytf-item-name {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: #111827;
	display: inline;
}

.ytf-item-name a {
	color: #111827;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ytf-item-name a:hover {
	color: #de022c;
}

.ytf-verified-badge {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-left: 4px;
	color: #10b981;
}

.ytf-location-subtitle {
	font-size: 0.8rem;
	color: #9ca3af;
	margin-top: 3px;
	font-weight: 500;
}

/* Key-Value Meta Table */
.ytf-meta-table {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 8px;
	margin-top: auto;
}

.ytf-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	line-height: 1.4;
}

.ytf-meta-label {
	color: #6b7280;
	font-weight: 400;
}

.ytf-meta-value {
	font-weight: 600;
	color: #111827;
	text-align: right;
}

.ytf-price-highlight {
	font-weight: 700;
	color: #111827;
}

/* Card Footer Row */
.ytf-card-footer-row {
	padding: 10px 18px 12px 18px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
}

.ytf-rating-box {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #111827;
}

.ytf-rating-star {
	color: #eab308;
	font-size: 0.95rem;
}

.ytf-rating-count {
	color: #6b7280;
	font-weight: 500;
}

.ytf-btn-favorite {
	color: #9ca3af;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.ytf-btn-favorite:hover {
	color: #de022c;
	transform: scale(1.15);
}

.post-type-archive .view-toggle-btn.active-view {
	background-color: var(--on-background, #121212);
	color: #fff !important;
	border-color: var(--on-background, #121212) !important;
}

/* List View for Profile Cards */
.post-type-archive #courses-grid.courses-list-view .col {
	flex: 0 0 100%;
	max-width: 100%;
}

.post-type-archive #courses-grid.courses-list-view .ytf-profile-card {
	flex-direction: row;
	align-items: stretch;
	height: auto;
}

.post-type-archive #courses-grid.courses-list-view .ytf-media-banner {
	width: 260px;
	min-width: 260px;
	flex-shrink: 0;
	aspect-ratio: unset;
}

@media (max-width: 768px) {
	.post-type-archive #courses-grid.courses-list-view .ytf-profile-card {
		flex-direction: column;
	}

	.post-type-archive #courses-grid.courses-list-view .ytf-media-banner {
		width: 100%;
		min-width: unset;
		aspect-ratio: 16 / 9;
	}
}

/* ==========================================================================
   Page 2: Single Course Page (/courses/{course}/)
   ========================================================================== */

.ytf-course-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
	color: #ffffff;
	padding: 40px 0 50px 0;
	margin-bottom: 40px;
}

.ytf-hero-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: center;
}

.ytf-single-course-title {
	font-size: 2.25rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 16px 0;
	line-height: 1.25;
}

.ytf-single-course-desc {
	color: #c7d2fe;
	font-size: 1rem;
	margin-bottom: 24px;
}

.ytf-single-course-desc p {
	margin: 0 0 8px 0;
}

.ytf-course-stats-bar {
	display: flex;
	gap: 20px;
	font-size: 0.9rem;
	color: #e0e7ff;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ytf-stat-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Course Progress Card */
.ytf-progress-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--ytf-radius-md);
	padding: 16px 20px;
	margin-bottom: 24px;
	backdrop-filter: blur(8px);
}

.ytf-progress-header {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.ytf-progress-title {
	color: #ffffff;
}

.ytf-progress-count {
	color: #a5b4fc;
}

.ytf-progress-track {
	height: 10px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--ytf-radius-full);
	overflow: hidden;
	position: relative;
}

.ytf-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
	border-radius: var(--ytf-radius-full);
	transition: width 0.4s ease;
}

.ytf-progress-percent {
	text-align: right;
	font-size: 0.75rem;
	font-weight: 700;
	color: #34d399;
	margin-top: 4px;
}

/* Continue Learning Banner */
.ytf-cta-banner {
	background: rgba(79, 70, 229, 0.25);
	border: 1px solid rgba(129, 140, 248, 0.3);
	border-radius: var(--ytf-radius-md);
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ytf-cta-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #c7d2fe;
}

.ytf-cta-title {
	margin: 2px 0 0 0;
	font-size: 1.05rem;
	color: #ffffff;
	font-weight: 600;
}

.ytf-hero-preview .ytf-preview-card {
	position: relative;
	border-radius: var(--ytf-radius-lg);
	overflow: hidden;
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.1);
}

.ytf-preview-img {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ytf-preview-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	background: var(--ytf-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	box-shadow: 0 0 0 8px rgba(229, 9, 20, 0.4);
	transition: all 0.25s ease;
}

.ytf-preview-play-btn:hover {
	background: var(--ytf-primary-hover);
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 0 0 12px rgba(229, 9, 20, 0.5);
}

/* Course Layout Body */
.ytf-course-grid-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
}

.ytf-section-title-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.ytf-section-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ytf-syllabus-meta {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ytf-text-muted);
	background: var(--ytf-bg-alt);
	padding: 4px 10px;
	border-radius: var(--ytf-radius-full);
}

/* Syllabus List */
.ytf-syllabus-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ytf-syllabus-item {
	background: var(--ytf-bg-main, #ffffff);
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	transition: all 0.2s ease;
	gap: 14px;
	text-decoration: none;
}

.ytf-syllabus-item:hover {
	border-color: #64748b;
	background: #f8fafc;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ytf-syllabus-item.is-current-active {
	border-color: #0f172a;
	background: #f8fafc;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Thumbnail Box on Left (16:9 with rounded corners and grey border) */
.ytf-item-thumb-link {
	text-decoration: none;
	display: block;
	flex-shrink: 0;
}

.ytf-item-thumb-box {
	width: 104px;
	min-width: 104px;
	height: 58px;
	border-radius: 10px;
	border: 1.5px solid #cbd5e1;
	background: #ffffff;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease;
}

.ytf-syllabus-item:hover .ytf-item-thumb-box {
	border-color: #64748b;
}

.ytf-item-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ytf-item-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.ytf-thumb-wire-icon {
	font-size: 14px;
	color: #94a3b8;
}

.ytf-thumb-duration-badge {
	position: absolute;
	bottom: 3px;
	right: 3px;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	font-size: 9px;
	font-weight: 700;
	padding: 1px 4px;
	border-radius: 3px;
	line-height: 1.2;
}

/* Info and Title on Right */
.ytf-item-info-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.ytf-item-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #1e293b;
	text-decoration: none;
	line-height: 1.35;
	transition: color 0.15s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ytf-item-title:hover {
	color: #0f172a;
}

.ytf-item-badge-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* Syllabus Status Badges (Pill-shaped as described in wireframe) */
.ytf-status-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
	white-space: nowrap;
	line-height: 1.4;
}

/* State 1: Not Started ("▶ Watch" Gray pill badge) */
.ytf-status-btn.status-not-started {
	background: #f1f5f9;
	color: #475569;
	border: 1.5px solid #cbd5e1;
}

.ytf-status-btn.status-not-started:hover {
	background: #e2e8f0;
	color: #0f172a;
	border-color: #94a3b8;
}

/* State 2: In Progress / Partially Watched ("▶ Continue — MM:SS" Orange pill badge) */
.ytf-status-btn.status-in-progress {
	background: #fff7ed;
	color: #ea580c;
	border: 1.5px solid #fed7aa;
}

.ytf-status-btn.status-in-progress:hover {
	background: #ffedd5;
	color: #c2410c;
	border-color: #fdba74;
}

/* State 3: Completed ("✓ Completed" Green pill badge) */
.ytf-status-btn.status-completed {
	background: #ecfdf5;
	color: #059669;
	border: 1.5px solid #a7f3d0;
}

.ytf-status-btn.status-completed:hover {
	background: #d1fae5;
	color: #047857;
	border-color: #6ee7b7;
}

.ytf-status-icon {
	font-size: 11px;
	display: inline-block;
}

/* Current Playing Indicator Badge */
.ytf-current-playing-indicator {
	font-size: 0.7rem;
	font-weight: 700;
	color: #0284c7;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	padding: 2px 8px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ytf-pulse-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #0284c7;
	animation: ytf-pulse 1.5s infinite;
}

@keyframes ytf-pulse {
	0% {
		transform: scale(0.9);
		opacity: 0.7;
	}

	50% {
		transform: scale(1.3);
		opacity: 1;
	}

	100% {
		transform: scale(0.9);
		opacity: 0.7;
	}
}

/* Sticky Vertically-Centered Course Sidebar */
@media (min-width: 992px) {
	.ytf-sticky-sidebar {
		position: -webkit-sticky;
		position: sticky;
		top: calc(50vh - 240px);
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.ytf-sticky-sidebar::-webkit-scrollbar {
		display: none;
	}
}

/* ==========================================================================
   Single Course Details Dedicated Classes
   ========================================================================== */

.ytf-course-hero-header {
	background-color: var(--on-background, #121212);
	color: #ffffff;
	padding: 48px 0 52px 0;
}

.ytf-course-breadcrumb-badge {
	font-size: 11px;
	letter-spacing: 0.05em;
	font-family: 'Geist', sans-serif;
	background-color: var(--primary-container, #de022c) !important;
}

.ytf-hero-title {
	font-family: 'Inter', sans-serif;
	font-size: clamp(2rem, 3.8vw, 3.2rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.ytf-accent-red {
	color: var(--primary-container, #de022c) !important;
}

.ytf-hero-meta-bar {
	font-size: 0.85rem;
}

.ytf-meta-icon {
	font-size: 16px;
	color: var(--primary-container, #de022c);
}

.ytf-hero-thumb-card {
	border: 2px solid var(--primary-container, #de022c);
	background: #000000;
	aspect-ratio: 16 / 9;
}

.ytf-thumb-img {
	opacity: 0.85;
}

.ytf-center-play-btn {
	width: 58px;
	height: 58px;
	background: var(--primary-container, #de022c);
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.ytf-center-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.08) !important;
}

.ytf-play-icon {
	font-size: 32px;
	margin-left: 3px;
}

.ytf-course-main-section {
	background-color: var(--background, #fdfdfd);
}

.ytf-section-heading {
	letter-spacing: -0.01em;
	font-family: 'Inter', sans-serif;
}

.ytf-feature-stat-card {
	border-left: 3px solid var(--primary-container, #de022c) !important;
}

.ytf-stat-card-icon {
	font-size: 26px;
	color: var(--primary-container, #de022c);
}

.ytf-article-badge {
	font-size: 10px;
	letter-spacing: 0.05em;
	background-color: var(--primary-container, #de022c) !important;
}

.ytf-article-heading {
	font-family: 'Inter', sans-serif;
}

.ytf-article-lead {
	font-size: 1rem;
	line-height: 1.6;
}

.ytf-article-content {
	font-size: 0.95rem;
	line-height: 1.7;
}

.ytf-article-subhead {
	letter-spacing: 0.02em;
}

.ytf-check-icon-md {
	font-size: 18px;
	color: var(--primary-container, #de022c) !important;
	flex-shrink: 0;
	margin-top: 2px;
}

.ytf-curriculum-header-bar {
	background-color: var(--on-background, #121212);
}

.ytf-curriculum-header-icon {
	font-size: 20px;
	color: var(--primary-container, #de022c);
}

.ytf-curriculum-header-title {
	letter-spacing: 0.05em;
}

.ytf-sidebar-price {
	color: var(--on-background, #121212);
}

.ytf-sidebar-cta-btn {
	background-color: var(--primary-container, #de022c) !important;
	border-color: var(--primary-container, #de022c) !important;
	letter-spacing: 0.05em;
	font-size: 0.95rem;
}

.ytf-sidebar-cta-btn:hover {
	background-color: var(--ytf-primary-hover, #c10226) !important;
	border-color: var(--ytf-primary-hover, #c10226) !important;
}

.ytf-sidebar-spec-icon {
	font-size: 18px;
	color: var(--primary-container, #de022c);
}

.ytf-star-rating {
	color: var(--primary-container, #de022c);
	font-size: 1.15rem;
	letter-spacing: 2px;
}

.ytf-review-quote {
	line-height: 1.5;
}

.ytf-review-author {
	font-size: 0.75rem;
}

.ytf-faq-icon {
	font-size: 28px;
	color: var(--primary-container, #de022c) !important;
}

.ytf-faq-heading {
	font-family: 'Inter', sans-serif;
}

.ytf-faq-body-text {
	line-height: 1.7;
	font-size: 0.95rem;
}

/* Sidebar Details */
.ytf-sidebar-box {
	background: var(--ytf-bg-main);
	border: 1px solid var(--ytf-border);
	border-radius: var(--ytf-radius-md);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--ytf-shadow-sm);
}

.ytf-sidebar-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--ytf-text-main);
}

.ytf-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ytf-checklist li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.9rem;
	color: var(--ytf-text-main);
}

.ytf-check-icon {
	color: var(--ytf-success);
	font-weight: bold;
	background: var(--ytf-success-light);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
	margin-top: 2px;
}

.ytf-sub-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 6px 0;
}

.ytf-detail-group p {
	font-size: 0.875rem;
	color: var(--ytf-text-muted);
	margin: 0;
}

/* Accordion FAQs */
.ytf-accordion {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ytf-accordion-item {
	border: 1px solid var(--ytf-border);
	border-radius: var(--ytf-radius-sm);
	overflow: hidden;
}

.ytf-accordion-question {
	font-size: 0.9rem;
	font-weight: 600;
	padding: 12px 16px;
	background: var(--ytf-bg-subtle);
	cursor: pointer;
	outline: none;
	user-select: none;
}

.ytf-accordion-item[open] .ytf-accordion-question {
	background: var(--ytf-primary-light);
	color: var(--ytf-primary);
}

.ytf-accordion-answer {
	padding: 12px 16px;
	font-size: 0.875rem;
	color: var(--ytf-text-muted);
	background: var(--ytf-bg-main);
}

.ytf-accordion-answer p {
	margin: 0;
}

/* ==========================================================================
   Page 3: Single Video Player Page (/courses/{course}/{video}/)
   ========================================================================== */

.ytf-video-single-layout .ytf-container.ytf-video-page-container {
	max-width: 100%;
	width: 100%;
	padding: 20px 32px 40px 32px;
	box-sizing: border-box;
}

@media (min-width: 1600px) {
	.ytf-video-single-layout .ytf-container.ytf-video-page-container {
		padding: 24px 48px 60px 48px;
	}
}

.ytf-video-header-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.ytf-back-to-course-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ytf-primary);
	text-decoration: none;
}

.ytf-back-to-course-btn:hover {
	text-decoration: underline;
}

.ytf-video-player-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 32px;
	align-items: start;
	width: 100%;
}

@media (min-width: 1400px) {
	.ytf-video-player-grid {
		grid-template-columns: minmax(0, 1fr) 420px;
		gap: 36px;
	}
}

@media (min-width: 1800px) {
	.ytf-video-player-grid {
		grid-template-columns: minmax(0, 1fr) 460px;
		gap: 40px;
	}
}

/* 16:9 Player with clean rounded wireframe border */
.ytf-player-container {
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	margin-bottom: 20px;
}

.ytf-player-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	/* 16:9 Aspect Ratio */
	background: #ffffff;
}

.ytf-player-wrapper iframe,
.ytf-player-wrapper #ytf-youtube-player-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fallback / Pre-render Wireframe Placeholder inside player */
.ytf-player-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	padding: 20px;
}

.ytf-placeholder-text {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	font-weight: 900;
	color: #000000;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-align: center;
	user-select: none;
}

/* Playback Toast */
.ytf-toast {
	background: rgba(15, 23, 42, 0.92);
	color: #ffffff;
	padding: 10px 18px;
	border-radius: var(--ytf-radius-md);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 16px;
	backdrop-filter: blur(8px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: var(--ytf-shadow-md);
	animation: ytf-fade-in 0.3s ease;
}

@keyframes ytf-fade-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Video Title & Meta Bar directly below player */
.ytf-video-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 4px 0 20px 0;
	border-bottom: 1.5px solid #e2e8f0;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.ytf-video-title {
	font-size: 1.55rem;
	font-weight: 800;
	margin: 0 0 6px 0;
	color: #000000;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.ytf-video-course-subtitle {
	font-size: 0.9rem;
	color: var(--ytf-text-muted);
	margin: 0;
}

.ytf-video-course-subtitle a {
	color: var(--ytf-primary);
	text-decoration: none;
	font-weight: 600;
}

.ytf-nav-buttons {
	display: flex;
	gap: 10px;
}

.ytf-btn-nav {
	padding: 8px 16px;
	font-size: 0.875rem;
	border-radius: 8px;
}

/* Video Details Card */
.ytf-video-details-card {
	background: var(--ytf-bg-main, #ffffff);
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ytf-detail-section {
	margin-bottom: 24px;
}

.ytf-detail-section:last-child {
	margin-bottom: 0;
}

.ytf-topics-section .ytf-topic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.ytf-topic-tag {
	background: var(--ytf-primary-light);
	color: var(--ytf-primary);
	padding: 4px 12px;
	border-radius: var(--ytf-radius-full);
	font-size: 0.8rem;
	font-weight: 600;
}

/* Sidebar Column & Playlist */
.ytf-player-sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
}

.ytf-sidebar-playlist-card {
	background: var(--ytf-bg-main, #ffffff);
	border: 1.5px solid #cbd5e1;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	max-height: calc(100vh - 270px);
	min-height: 200px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ytf-playlist-header {
	padding: 16px 18px;
	background: #ffffff;
	border-bottom: 1.5px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.ytf-playlist-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ytf-text-muted);
	letter-spacing: 0.05em;
}

.ytf-playlist-course-title {
	margin: 2px 0 0 0;
	font-size: 1.02rem;
	font-weight: 700;
	color: #0f172a;
}

.ytf-sidebar-progress-badge {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 9999px;
}

.ytf-playlist-items {
	padding: 14px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
}

/* ==========================================================================
   Subscribe CTA Modal
   ========================================================================== */

.ytf-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(6px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ytf-modal-dialog {
	background: #ffffff;
	border-radius: var(--ytf-radius-lg);
	max-width: 480px;
	width: 100%;
	padding: 36px 30px;
	text-align: center;
	position: relative;
	box-shadow: var(--ytf-shadow-xl);
	animation: ytf-modal-pop 0.3s ease;
}

@keyframes ytf-modal-pop {
	from {
		opacity: 0;
		transform: scale(0.92);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ytf-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}

.ytf-modal-close:hover {
	color: var(--ytf-text-main);
}

.ytf-modal-icon {
	margin-bottom: 16px;
}

.ytf-modal-heading {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--ytf-text-main);
	margin: 0 0 10px 0;
}

.ytf-modal-subheading {
	font-size: 0.95rem;
	color: var(--ytf-text-muted);
	margin: 0 0 24px 0;
	line-height: 1.5;
}

.ytf-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ytf-btn-text {
	background: none;
	border: none;
	color: var(--ytf-text-muted);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 6px;
}

.ytf-btn-text:hover {
	color: var(--ytf-text-main);
}

/* Responsive Media Queries */
@media (max-width: 991px) {

	.ytf-hero-grid,
	.ytf-course-grid-layout,
	.ytf-video-player-grid {
		grid-template-columns: 1fr;
	}

	.ytf-sidebar-playlist-card {
		position: static;
		max-height: 450px;
	}
}

@media (max-width: 640px) {
	.ytf-single-course-title {
		font-size: 1.65rem;
	}

	.ytf-syllabus-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.ytf-item-right {
		width: 100%;
	}

	.ytf-status-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Sticky Slide-Up Ad Section (150px Height with Toggle Tab)
   ========================================================================== */

.ytf-sticky-ad-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 150px;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	z-index: 99990;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
	transform: translateY(calc(100% + 40px));
	opacity: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform, opacity;
}

.ytf-sticky-ad-bar.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.ytf-sticky-ad-bar.is-visible.is-collapsed {
	transform: translateY(100%);
	opacity: 1;
	pointer-events: auto;
}

.ytf-sticky-ad-toggle {
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	width: 52px;
	height: 28px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #64748b;
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.07);
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
	outline: none;
	z-index: 10;
}

.ytf-sticky-ad-toggle:hover {
	background: #f8fafc;
	color: #0f172a;
}

.ytf-sticky-ad-toggle-icon {
	transition: transform 0.3s ease;
}

.ytf-sticky-ad-bar.is-collapsed .ytf-sticky-ad-toggle-icon {
	transform: rotate(180deg);
}

.ytf-ad-badge-top {
	position: absolute;
	top: 8px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	z-index: 5;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.ytf-ad-badge-top:hover {
	opacity: 1;
}

.ytf-ad-info-icon,
.ytf-ad-menu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ytf-sticky-ad-inner {
	width: 100%;
	max-width: 1200px;
	height: 100%;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.ytf-ad-slot-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ytf-ad-slot-content {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ytf-ad-placeholder-wireframe {
	width: 100%;
	height: 100%;
	max-height: 125px;
	background: #fafafa;
	border: 1.5px dashed #cbd5e1;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #94a3b8;
	text-align: center;
	padding: 10px;
	box-sizing: border-box;
}

.ytf-ad-wireframe-label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
}

.ytf-ad-wireframe-sub {
	font-size: 0.75rem;
	color: #94a3b8;
}