/**
 * Section: Video nổi bật + Tin tức & Kiến thức
 * Màu dùng CSS variable từ Flatsome (--fs-color-primary / --primary-color)
 */

.acc-futek-home-news-feature {
	--acc-futek-primary: var(--fs-color-primary, var(--primary-color, #446084));
	--acc-futek-text-muted: rgba(0, 0, 0, 0.45);
	--acc-futek-border: rgba(0, 0, 0, 0.08);
	padding: 24px 0;
}

.acc-futek-home-news-feature__inner {
	display: flex;
	gap: 20px;
	align-items: stretch;
	max-width: 1200px;
	margin: 0 auto;
}

/* --- Featured (trái) --- */
.acc-futek-home-news-feature__featured {
	display: flex;
	flex: 1 1 58%;
	min-height: 300px;
	overflow: hidden;
	border-radius: 4px;
}

.acc-futek-home-news-feature__featured-content {
	flex: 0 0 42%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 28px 24px;
	background-color: var(--acc-futek-primary);
	color: #fff;
}

.acc-futek-home-news-feature__featured-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

.acc-futek-home-news-feature__featured-desc {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}

.acc-futek-home-news-feature__featured-btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid #fff;
	border-radius: 2px;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.acc-futek-home-news-feature__featured-btn:hover,
.acc-futek-home-news-feature__featured-btn:focus {
	background-color: #fff;
	color: var(--acc-futek-primary);
}

.acc-futek-home-news-feature__featured-media {
	position: relative;
	flex: 1 1 58%;
	min-height: 220px;
	background-color: rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.acc-futek-home-news-feature__video-poster,
.acc-futek-home-news-feature__video-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.acc-futek-home-news-feature__video-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.acc-futek-home-news-feature__video-player iframe,
.acc-futek-home-news-feature__video-player video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: cover;
	background: #000;
}

.acc-futek-home-news-feature__featured-media.is-playing .acc-futek-home-news-feature__video-player {
	z-index: 3;
}

.acc-futek-home-news-feature__featured-media.has-video:not(.is-playing) {
	background: #111;
}

.acc-futek-home-news-feature__featured-media.is-placeholder {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--acc-futek-primary) 20%, #fff),
		color-mix(in srgb, var(--acc-futek-primary) 45%, #ddd)
	);
}

.acc-futek-home-news-feature__featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.acc-futek-home-news-feature__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background-color: var(--acc-futek-primary);
	color: #fff;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acc-futek-home-news-feature__play-btn:hover,
.acc-futek-home-news-feature__play-btn:focus {
	transform: translate(-50%, -50%) scale(1.05);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.acc-futek-home-news-feature__play-icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff;
}

/* --- News (phải) --- */
.acc-futek-home-news-feature__news {
	flex: 0 0 38%;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 300px;
	align-self: stretch;
}

.acc-futek-home-news-feature__news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.acc-futek-home-news-feature__news-scroll {
	flex: 1;
	min-height: 0;
	max-height: 312px;
	overflow-x: hidden;
	overflow-y: auto;
	/* Cho phép scroll chaining: khi chạm đáy/đỉnh thì cuộn tiếp trang. */
	overscroll-behavior: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--acc-futek-primary) transparent;
	cursor: grab;
	touch-action: pan-y;
}

.acc-futek-home-news-feature__news-scroll.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.acc-futek-home-news-feature__news-scroll::-webkit-scrollbar {
	width: 5px;
}

.acc-futek-home-news-feature__news-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.acc-futek-home-news-feature__news-scroll::-webkit-scrollbar-thumb {
	background-color: color-mix(in srgb, var(--acc-futek-primary) 55%, #ccc);
	border-radius: 999px;
}

.acc-futek-home-news-feature__news-scroll::-webkit-scrollbar-thumb:hover {
	background-color: var(--acc-futek-primary);
}

.acc-futek-home-news-feature__news-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--acc-futek-primary);
}

.acc-futek-home-news-feature__news-all {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--acc-futek-primary);
}

.acc-futek-home-news-feature__news-all:hover,
.acc-futek-home-news-feature__news-all:focus {
	text-decoration: underline;
}

.acc-futek-home-news-feature__news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.acc-futek-home-news-feature__news-grid .acc-futek-post-card--compact {
	align-items: flex-start;
	padding: 10px;
	border: 1px solid var(--acc-futek-border);
	border-radius: 8px;
	background: #fff;
	min-height: 88px;
}

.acc-futek-home-news-feature__news-grid .acc-futek-post-card--compact .acc-futek-post-card__title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.45;
	overflow: hidden;
}

.acc-futek-home-news-feature__news-grid .acc-futek-post-card--compact .acc-futek-post-card__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	word-break: break-word;
	color: var(--acc-futek-primary);
	text-decoration: none;
}

.acc-futek-home-news-feature__news-grid .acc-futek-post-card--compact .acc-futek-post-card__title a:hover,
.acc-futek-home-news-feature__news-grid .acc-futek-post-card--compact .acc-futek-post-card__title a:focus {
	text-decoration: underline;
}

.acc-futek-home-news-feature__news-card {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px;
	border: 1px solid var(--acc-futek-border);
	border-radius: 8px;
	background: #fff;
	min-height: 88px;
}

.acc-futek-home-news-feature__news-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 4px;
}

.acc-futek-home-news-feature__news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.acc-futek-home-news-feature__news-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: color-mix(in srgb, var(--acc-futek-primary) 12%, #eee);
}

.acc-futek-home-news-feature__news-body {
	min-width: 0;
}

.acc-futek-home-news-feature__news-date {
	display: block;
	margin-bottom: 4px;
	font-size: 0.72rem;
	color: var(--acc-futek-text-muted);
}

.acc-futek-home-news-feature__news-card-title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.45;
	overflow: hidden;
}

.acc-futek-home-news-feature__news-card-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
	word-break: break-word;
	color: var(--acc-futek-primary);
	text-decoration: none;
}

.acc-futek-home-news-feature__news-card-title a:hover,
.acc-futek-home-news-feature__news-card-title a:focus {
	text-decoration: underline;
}

.acc-futek-home-news-feature__news-empty {
	margin: 0;
	font-size: 0.875rem;
	color: var(--acc-futek-text-muted);
}

/* --- Responsive --- */
@media (max-width: 991px) {
	.acc-futek-home-news-feature__inner {
		flex-direction: column;
	}

	.acc-futek-home-news-feature__featured {
		flex-direction: column;
		min-height: auto;
	}

	.acc-futek-home-news-feature__featured-content {
		flex: none;
	}

	.acc-futek-home-news-feature__featured-title {
		white-space: normal;
		font-size: clamp(1rem, 4vw, 1.25rem);
	}

	.acc-futek-home-news-feature__featured-media {
		min-height: 220px;
	}

	.acc-futek-home-news-feature__news {
		flex: none;
		min-height: auto;
	}

	.acc-futek-home-news-feature__news-scroll {
		max-height: 420px;
	}
}

@media (max-width: 549px) {
	.acc-futek-home-news-feature__news-grid {
		grid-template-columns: 1fr;
	}
}
