/* Course templates */
.kl-course,
.kl-courses-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem;
}
.kl-course-title,
.kl-courses-archive-title {
	margin: 0.5rem 0 1rem;
}
.kl-course-video iframe {
	width: 100%;
	aspect-ratio: 16/9;
	height: auto;
}
.kl-course-video-list {
	margin-bottom: .5rem;
}
.kl-course-video-item iframe {
	width: 100%;
	aspect-ratio: 16/9;
	height: auto;
}
.kl-course-video-nav {
	display: flex;
	gap: .5rem;
	margin: .5rem 0 1rem;
}
.kl-course-video-nav .kl-button {
	background: #262626;
	color: #fff;
	border: 1px solid #333;
	border-radius: 10px;
	padding: .45rem .9rem;
}
.kl-course-notice {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: #fff9c4;
	border: 1px solid #f0e68c;
	color: #5a4d00;
	border-radius: 8px;
}
.kl-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}
.kl-course-card {
	border: 1px solid #1a1a1a;
	border-radius: 12px;
	padding: 1rem;
	background: #121212;
}
.kl-course-card h3 {
	margin: 0 0 0.5rem;
}
.kl-course-card a {
	text-decoration: none;
	color: #fff;
}

/* Video feed */
.kl-video-feed {
	max-width: 1100px;
	margin: 0 auto 1rem;
	padding: 1rem;
	background: #121212;
	border: 1px solid #1a1a1a;
	border-radius: 12px;
}
.kl-video-player {
	aspect-ratio: 16/9;
	background: #000;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}
.kl-video-player iframe {
	width: 100% !important;
	height: 100% !important;
	display: block;
}
.kl-video-feed .kl-course-video-nav {
	display: flex;
	gap: .5rem;
	margin-top: .75rem;
}
.kl-video-feed .kl-button {
	background: #262626;
	color: #fff;
	border: 1px solid #333;
	border-radius: 10px;
	padding: .45rem .9rem;
}

.kl-feed-list {
	list-style: none;
	margin: .75rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .6rem;
}
.kl-feed-item {
	border: 1px solid #1a1a1a;
	border-radius: 10px;
	overflow: hidden;
	background: #121212;
}
.kl-feed-item.is-active {
	border-color: #2a2a2a;
	box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.kl-feed-btn {
	width: 100%;
	text-align: left;
	background: transparent;
	color: #fff;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.kl-feed-thumb {
	display: block;
	background: #000;
	aspect-ratio: 16/9;
	overflow: hidden;
}
.kl-feed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.kl-feed-title {
	display: block;
	padding: .55rem .75rem .7rem;
	font-size: .95rem;
}

/* Mobile: horizontal swipeable row */
@media (max-width: 899px) {
	.kl-feed-list {
		display: flex;
		overflow-x: auto;
		gap: .6rem;
		scroll-snap-type: x proximity;
		padding-bottom: .25rem;
		-webkit-overflow-scrolling: touch;
	}
	.kl-feed-item {
		flex: 0 0 240px;
		scroll-snap-align: start;
	}
}

/* Thumbnail */
.kl-course-thumb {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 0.75rem;
	background: #000;
	aspect-ratio: 16/9;
}
.kl-course-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}


