﻿/*
 * TechVon — AI Silo scoped styles
 * All rules scoped under `.tvai`. No global selectors, no reset.
 * Stage: Hero + Trust bar.
 */

.tvai {
	--tv-color-primary: #1477f2;
	--tv-color-primary-dark: #075dcc;
	--tv-color-primary-soft: #e8f1fe;
	--tv-color-navy: #0b1736;
	--tv-color-muted: #5f7192;
	--tv-color-line: #d7e4f5;
	--tv-color-bg: #ffffff;
	--tv-color-bg-alt: #f6f9fd;
	--tv-color-ai: #7c3aed;
	--tv-color-ai-soft: #f2ecfe;
	--tv-color-web: #1477f2;
	--tv-color-web-soft: #e8f1fe;
	--tv-color-tech: #ff6235;
	--tv-color-tech-soft: #fff1eb;
	--tvai-primary: var(--tv-color-ai);
	--tvai-primary-dark: #6423d8;
	--tvai-primary-soft: var(--tv-color-ai-soft);
	--tvai-ai: var(--tv-color-ai);
	--tvai-ai-dark: #6423d8;
	--tvai-ai-soft: #f2ecfe;
	--tvai-navy: #0b1736;
	--tvai-text: #273654;
	--tvai-muted: #687793;
	--tvai-line: #dce6f2;
	--tvai-radius: 18px;
	--tvai-radius-sm: 10px;
	color: var(--tvai-text);
}

.tvai *,
.tvai *::before,
.tvai *::after {
	box-sizing: border-box;
}

/* Hero wrapper — nền xám nhạt phủ toàn chiều ngang */
.tvai-hero {
	padding: 28px 0 50px;
	background: #f5f7fb;
}

/* Hero-only wide container (does not affect Flatsome/global .container) */
.tvai .tvai-hero-container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius);
	background: #fff;
	box-shadow: 0 5px 18px rgba(11, 23, 54, .06);
}

/* Left column */
.tvai .tvai-hero-content {
	padding: 42px 40px 34px;
}

.tvai-hero-title {
	max-width: 620px;
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	line-height: 1.09;
	letter-spacing: -.03em;
}

.tvai-hero-description {
	max-width: 620px;
	margin: 18px 0 22px;
	color: var(--tvai-muted);
	line-height: 1.55;
}

/* Actions / buttons — equal width, equal height */
.tvai .tvai-hero-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 462px;
	margin-top: 22px;
}

.tvai .tvai-hero-actions .tvai-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 9px;
	box-sizing: border-box;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.tvai .tvai-hero-actions .tvai-btn:hover {
	transform: translateY(-1px);
}

.tvai .tvai-hero-actions .tvai-btn--ai {
	color: #fff;
	border: 1px solid #7c3aed;
	background: #7c3aed;
	box-shadow: 0 8px 18px rgba(124, 58, 237, 0.18);
}

.tvai .tvai-hero-actions .tvai-btn--ai:hover {
	color: #fff;
	border-color: #6423d8;
	background: #6423d8;
}

.tvai .tvai-hero-actions .tvai-btn--outline {
	color: var(--tvai-primary);
	border: 1.5px solid #c7adfb;
	background: #fff;
	box-shadow: none;
}

.tvai .tvai-hero-actions .tvai-btn--outline:hover {
	color: #fff;
	border-color: var(--tvai-primary);
	background: var(--tvai-primary);
}

.tvai .tvai-btn:focus-visible,
.tvai .tvai-hero-search input:focus-visible,
.tvai .tvai-hero-search button:focus-visible {
	outline: 3px solid rgba(124, 58, 237, .35);
	outline-offset: 3px;
}

/* Search form — icon | input | text button (modeled on homepage) */
.tvai .tvai-hero-search {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 124px;
	align-items: stretch;
	width: min(100%, 462px);
	min-height: 48px;
	margin-top: 18px;
	overflow: hidden;
	border: 1px solid #cbd8e8;
	border-radius: 9px;
	background: #fff;
}

.tvai .tvai-hero-search-icon {
	display: grid;
	place-items: center;
	align-self: stretch;
	color: #94a3b8;
}

.tvai .tvai-hero-search-icon svg {
	width: 19px;
	height: 19px;
}

.tvai .tvai-hero-search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 0;
	outline: 0;
	color: var(--tvai-navy);
	background: transparent;
	font-size: 14px;
}

.tvai .tvai-hero-search input::placeholder {
	color: #9ca3af;
}

.tvai .tvai-hero-search button {
	width: 124px;
	min-width: 124px;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	color: #fff;
	background: var(--tvai-primary);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	appearance: none;
	cursor: pointer;
	transition: background .2s ease;
}

.tvai .tvai-hero-search button:hover {
	background: var(--tvai-primary-dark);
	color: #fff;
}

/* Topic chips — TechVon blue */
.tvai-hero-topics {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.tvai .tvai-hero-topic-label {
	margin-right: 2px;
	color: #687793;
	font-size: .8rem;
}

.tvai .tvai-hero-topic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 5px 12px;
	color: var(--tvai-primary);
	border: 1px solid #d5c4fb;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tvai .tvai-hero-topic:hover {
	color: var(--tvai-primary-dark);
	border-color: var(--tvai-primary);
	background: var(--tvai-primary-soft);
}

.tvai .tvai-hero-topic:focus-visible {
	outline: 3px solid rgba(124, 58, 237, 0.3);
	outline-offset: 2px;
}

/* Right column — media */
.tvai-hero-media {
	position: relative;
	min-height: 430px;
	overflow: hidden;
}

/* Real image (ACF) — fills the media area, crop via object-fit */
.tvai .tvai-hero-picture,
.tvai .tvai-hero-image {
	display: block;
	width: 100%;
	height: 100%;
}

.tvai .tvai-hero-image {
	object-fit: cover;
}

.tvai .tvai-hero-image.is-position-center {
	object-position: center;
}

.tvai .tvai-hero-image.is-position-top {
	object-position: center top;
}

.tvai .tvai-hero-image.is-position-bottom {
	object-position: center bottom;
}

.tvai .tvai-hero-image.is-position-left {
	object-position: left center;
}

.tvai .tvai-hero-image.is-position-right {
	object-position: right center;
}

.tvai-hero-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #e9f2fe 0%, #d7e5f8 48%, #c5d9f1 100%);
}

.tvai-hero-placeholder::before {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .9), transparent 34%),
		linear-gradient(90deg, rgba(11, 23, 54, .07) 1px, transparent 1px),
		linear-gradient(rgba(11, 23, 54, .07) 1px, transparent 1px);
	background-size: auto, 44px 44px, 44px 44px;
	content: "";
}

.tvai-hero-placeholder-note {
	position: relative;
	z-index: 1;
	width: min(80%, 380px);
	padding: 26px 24px;
	border: 1px dashed rgba(11, 23, 54, .22);
	border-radius: 16px;
	background: rgba(255, 255, 255, .66);
	text-align: center;
	backdrop-filter: blur(8px);
}

.tvai-hero-placeholder-note strong {
	display: block;
	margin-bottom: 5px;
	color: var(--tvai-navy);
	font-size: 1.1rem;
}

.tvai-hero-placeholder-note span {
	color: #536988;
	font-size: .82rem;
}

/* Capability badges */
.tvai-hero-capabilities {
	position: absolute;
	top: 26px;
	right: 22px;
	z-index: 2;
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tvai-hero-capability {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 140px;
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 9px;
	color: var(--tvai-text);
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 5px 18px rgba(11, 23, 54, .06);
	font-size: .8rem;
	font-weight: 800;
}

.tvai-hero-capability-icon {
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border-radius: 7px;
	color: var(--tvai-primary);
	background: var(--tvai-primary-soft);
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-hero-inner {
		grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
	}
	.tvai .tvai-hero-content {
		padding: 34px 28px 30px;
	}
}

@media (max-width: 768px) {
	.tvai-hero {
		padding-top: 16px;
	}
	.tvai .tvai-hero-container {
		width: min(calc(100% - 28px), 1320px);
	}
	.tvai-hero-inner {
		grid-template-columns: 1fr;
	}
	.tvai .tvai-hero-content {
		padding: 32px 24px 28px;
		text-align: center;
	}
	.tvai-hero-title,
	.tvai-hero-description {
		max-width: none;
	}
	.tvai .tvai-hero-actions {
		margin-inline: auto;
	}
	.tvai-hero-topics {
		justify-content: center;
	}
	.tvai .tvai-hero-search {
		margin-inline: auto;
	}
	.tvai-hero-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.tvai-hero-capabilities {
		top: 16px;
		right: 16px;
	}
	.tvai-hero-capability {
		min-width: 120px;
		padding: 8px 10px;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai .tvai-hero-content {
		padding: 32px 20px 28px;
	}
	.tvai .tvai-hero-actions {
		grid-template-columns: 1fr;
		width: 100%;
		max-width: none;
		gap: 12px;
	}
	.tvai .tvai-hero-actions .tvai-btn {
		width: 100%;
		min-height: 48px;
		white-space: normal;
	}
	.tvai .tvai-hero-search {
		width: 100%;
		grid-template-columns: 38px minmax(0, 1fr) 96px;
	}
	.tvai .tvai-hero-search button {
		width: 96px;
		min-width: 96px;
	}
	.tvai-hero-capabilities {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvai .tvai-btn {
		transition: none;
	}
}

/* ============================================================
 * Section 2 — Trust bar / Chỉ số uy tín
 * ============================================================ */

.tvai-trust {
	padding: 24px 0;
	background: #ffffff;
}

/* Trust Bar — một container thống nhất */
.tvai .tvai-trust__inner {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
	margin-top: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	align-items: stretch;
	background: #ffffff;
	border: 1px solid #e4eaf3;
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .05);
	overflow: hidden;
	position: relative;
	z-index: 2;
}

.tvai-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	min-height: 80px;
}

/* Separator dọc giữa các item — desktop */
.tvai-trust__item + .tvai-trust__item {
	border-left: 1px solid #eef2f7;
}

/* Icon frame — đồng nhất 44px, nền nhạt */
.tvai-trust__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--tvai-primary);
	background: var(--tvai-primary-soft);
}

.tvai-trust__icon--purple {
	color: #7c3aed;
	background: #f2ecfe;
}

.tvai-trust__icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* Content */
.tvai-trust__content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tvai-trust__value {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.tvai-trust__label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: #475569;
}

/* Tablet — 768px: chuyển sang 2×2, giữ container thống nhất */
@media (max-width: 768px) {
	.tvai-trust {
		padding: 20px 0;
	}

	.tvai .tvai-trust__inner {
		width: min(calc(100% - 28px), 1320px);
		margin-top: 0;
		grid-template-columns: repeat(2, 1fr);
		gap: 0;
		border-radius: 14px;
	}

	/* Separator: dọc giữa 2 cột, ngang giữa 2 hàng */
	.tvai-trust__item + .tvai-trust__item {
		border-left: 1px solid #eef2f7;
	}

	.tvai-trust__item:nth-child(3) {
		border-top: 1px solid #eef2f7;
		border-left: none;
	}

	.tvai-trust__item:nth-child(4) {
		border-top: 1px solid #eef2f7;
	}
}

/* Mobile — 480px: giữ 2×2, tối ưu khoảng cách */
@media (max-width: 480px) {
	.tvai-trust {
		padding: 16px 0;
	}

	.tvai .tvai-trust__inner {
		margin-top: 0;
		border-radius: 12px;
	}

	.tvai-trust__item {
		gap: 10px;
		padding: 14px 14px;
		min-height: 68px;
	}

	.tvai-trust__icon {
		width: 40px;
		height: 40px;
	}

	.tvai-trust__icon svg {
		width: 22px;
		height: 22px;
	}

	.tvai-trust__value {
		font-size: 18px;
	}

	.tvai-trust__label {
		font-size: 12.5px;
	}
}

/* ============================================================
 * Section 3 — Lộ trình học AI / Roadmap
 * Nền xám rất nhẹ để chuyển tiếp mềm từ Trust Bar (trắng).
 * ============================================================ */

.tvai-roadmap {
	padding: 44px 0;
	background: #f6f9fd;
}

.tvai .tvai-roadmap__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-roadmap__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.tvai-roadmap__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tvai-roadmap__progress {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--tvai-muted);
	font-size: .78rem;
}

.tvai-roadmap__progress-bars {
	display: flex;
	gap: 5px;
}

.tvai-roadmap__progress-bars i {
	display: block;
	width: 22px;
	height: 4px;
	border-radius: 4px;
	background: #d9e3ef;
}

.tvai-roadmap__progress-bars i:first-child {
	background: var(--tvai-primary);
}

.tvai-roadmap__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px;
}

.tvai-roadmap__step {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 218px;
	padding: 22px;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
}

/* Mũi tên nối giữa các step — desktop only */
.tvai-roadmap__step:not(:last-child)::after {
	position: absolute;
	right: -26px;
	top: 48%;
	color: var(--tvai-primary);
	font-size: 1.45rem;
	font-weight: 900;
	content: "→";
}

/* Step 1 — highlight tím AI */
.tvai-roadmap__step--start {
	border: 2px solid #ae84f4;
	background: linear-gradient(180deg, #f9f5ff, #fff);
}

.tvai-roadmap__step-badge {
	position: absolute;
	top: -12px;
	left: 15px;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	background: var(--tvai-ai);
	font-size: .68rem;
	font-weight: 850;
}

.tvai-roadmap__step-no {
	display: grid;
	place-items: center;
	width: 35px;
	height: 35px;
	margin-bottom: 14px;
	border-radius: 999px;
	color: var(--tvai-primary);
	background: var(--tvai-primary-soft);
	font-weight: 900;
}

.tvai-roadmap__step--start .tvai-roadmap__step-no {
	color: #fff;
	background: var(--tvai-ai);
}

.tvai-roadmap__step-title {
	margin: 0 0 8px;
	color: var(--tvai-navy);
	font-size: 1rem;
	line-height: 1.35;
}

.tvai-roadmap__step-desc {
	margin: 0 0 15px;
	color: var(--tvai-muted);
	font-size: .82rem;
}

.tvai-roadmap__step-link {
	margin-top: auto;
	color: var(--tvai-primary);
	font-size: .8rem;
	font-weight: 800;
	text-decoration: none;
}

.tvai-roadmap__step-link:hover {
	color: var(--tvai-primary-dark);
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-roadmap__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.tvai-roadmap__step::after {
		display: none;
	}
}

@media (max-width: 768px) {
	.tvai .tvai-roadmap__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-roadmap {
		padding: 34px 0;
	}

	.tvai-roadmap__head {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-roadmap__grid {
		grid-template-columns: 1fr;
	}

	.tvai-roadmap__step {
		min-height: 190px;
	}
}

/* ============================================================
 * Section 4 — Khám phá chủ đề AI / Topics
 * Nền trắng để chuyển tiếp mềm từ Section 3 (xám nhạt).
 * ============================================================ */

.tvai-topics {
	padding: 44px 0;
	background: #ffffff;
}

.tvai .tvai-topics__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-topics__head {
	margin-bottom: 22px;
}

.tvai-topics__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tvai-topics__sub {
	margin: 6px 0 0;
	color: var(--tvai-muted);
	font-size: .9rem;
}

.tvai-topics__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.tvai-topics__card {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	min-width: 0;
	min-height: 122px;
	padding: 16px;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tvai-topics__card:hover {
	transform: translateY(-2px);
	border-color: #c6b2f2;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .06);
}

/* Image placeholder — ô vuông nhỏ 48x48, nền xanh rất nhạt, grid nhẹ, bo góc mềm */
.tvai-topics__media {
	position: relative;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border: 1px solid rgba(124, 58, 237, .12);
	border-radius: 10px;
	background: rgba(124, 58, 237, .07);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tvai-topics__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(124, 58, 237, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(124, 58, 237, .05) 1px, transparent 1px);
	background-size: 10px 10px;
	opacity: .5;
}

.tvai-topics__media-mark {
	position: relative;
	z-index: 1;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--tvai-primary);
	background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 7px;
	padding: 3px 6px;
}

/* Real ACF image — fills the square media box */
.tvai-topics__media-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tvai-topics__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.tvai-topics__card-title {
	margin: 0 0 4px;
	color: var(--tvai-navy);
	font-size: 15px;
	line-height: 1.25;
}

.tvai-topics__card-desc {
	margin: 0;
	color: var(--tvai-muted);
	font-size: 13px;
	line-height: 1.45;
}

.tvai-topics__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

.tvai-topics__count {
	color: var(--tvai-primary);
	font-size: 12px;
	font-weight: 700;
}

.tvai-topics__arrow {
	margin-left: auto;
	color: var(--tvai-primary);
	font-size: 13px;
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-topics__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tvai .tvai-topics__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-topics {
		padding: 34px 0;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-topics__grid {
		grid-template-columns: 1fr;
	}

	.tvai-topics__card {
		min-height: 0;
	}
}

/* ============================================================
 * Tag badge chuẩn TechVon (dùng chung cho các trang silo)
 * Tone: ai (tím) / website (xanh) / tech (cam) / default (xám)
 * ============================================================ */
.tvai-tag {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	border: 1px solid transparent;
	background: #f8fafc;
	color: #475569;
}

.tvai-tag--ai {
	color: #7c3aed;
	background: #f3eafe;
	border-color: #ddd0ff;
}

.tvai-tag--website {
	color: #1477f2;
	background: #e8f1fe;
	border-color: #cfe0ff;
}

.tvai-tag--tech {
	color: #f97316;
	background: #fff1e7;
	border-color: #fed7aa;
}

.tvai-tag--default {
	color: #475569;
	background: #f8fafc;
	border-color: #e2e8f0;
}

/* ============================================================
 * Section 5 — Bài hướng dẫn AI nổi bật / Guides
 * Nền xám rất nhẹ để chuyển tiếp mềm từ Section 4 (trắng).
 * ============================================================ */

.tvai-guides {
	padding: 44px 0;
	background: #f6f9fd;
}

.tvai .tvai-guides__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-guides__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.tvai-guides__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tvai-guides__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tvai-primary);
	font-size: .82rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.tvai-guides__view-all:hover {
	color: var(--tvai-primary-dark);
}

.tvai-guides__grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 18px;
	align-items: start;
}

/* Featured guide */
.tvai-guides__featured {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
	overflow: hidden;
}

.tvai-guides__media {
	position: relative;
	min-height: 200px;
	aspect-ratio: 1.65 / 1;
	overflow: hidden;
	background: linear-gradient(145deg, #e9f2fe 0%, #d7e5f8 48%, #c5d9f1 100%);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
}

.tvai-guides__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tvai-guides__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .9), transparent 34%),
		linear-gradient(90deg, rgba(11, 23, 54, .05) 1px, transparent 1px),
		linear-gradient(rgba(11, 23, 54, .05) 1px, transparent 1px);
	background-size: auto, 26px 26px, 26px 26px;
}

/* Khi có ảnh thật: phủ full, ẩn nền/grid placeholder */
.tvai-guides__media--has-image {
	background: none;
}

.tvai-guides__media--has-image::before,
.tvai-guides__media--has-image::after {
	display: none;
}

.tvai-guides__media--has-image .tvai-guides__media-note {
	display: none;
}

.tvai-guides__media--small {
	min-height: 104px;
	aspect-ratio: 16 / 9;
	padding: 12px;
}

.tvai-guides__category,
.tvai-tag {
	position: relative;
	z-index: 2;
}

.tvai-guides__category {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	color: var(--tvai-primary-dark);
	background: rgba(255, 255, 255, .9);
	border: 1px solid rgba(255, 255, 255, .9);
	font-size: .68rem;
	font-weight: 800;
}

.tvai-guides__media-note {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	color: var(--tvai-navy);
	font-size: .7rem;
	font-weight: 600;
	opacity: .7;
}

.tvai-guides__featured-body {
	padding: 18px 20px 20px;
}

.tvai-guides__featured-title {
	margin: 0 0 12px;
	color: var(--tvai-navy);
	font-size: 1.15rem;
	line-height: 1.35;
}

.tvai-guides__title-link {
	color: inherit;
	text-decoration: none;
}

.tvai-guides__title-link:hover {
	color: var(--tvai-primary);
}

.tvai-guides__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--tvai-muted);
	font-size: .78rem;
}

.tvai-guides__meta span {
	position: relative;
}

.tvai-guides__meta span + span::before {
	content: "·";
	position: absolute;
	left: -7px;
	color: var(--tvai-line);
}

/* Small grid */
.tvai-guides__small-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.tvai-guides__small {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
	overflow: hidden;
}

.tvai-guides__small--warm .tvai-guides__media {
	background: linear-gradient(145deg, #fdeee0 0%, #fbe3cf 48%, #f6d3b8 100%);
}

.tvai-guides__small--purple .tvai-guides__media {
	background: linear-gradient(145deg, #f3ecfe 0%, #e9ddfb 48%, #dcc8f5 100%);
}

.tvai-guides__small-body {
	padding: 14px 16px 16px;
}

.tvai-guides__small-title {
	margin: 0 0 10px;
	color: var(--tvai-navy);
	font-size: .92rem;
	line-height: 1.35;
}

.tvai-guides__small .tvai-guides__meta {
	font-size: .74rem;
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-guides__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.tvai-guides__small-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.tvai .tvai-guides__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-guides {
		padding: 34px 0;
	}

	.tvai-guides__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-guides__featured .tvai-guides__media,
	.tvai-guides__media--small {
		aspect-ratio: 16 / 9;
	}

	.tvai-guides__featured-body,
	.tvai-guides__small-body {
		padding: 16px;
	}

	.tvai-guides__small-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
 * Section 6 — Bộ công cụ AI theo nhu cầu / Tools
 * Nền trắng để chuyển tiếp mềm từ Section 5 (xám nhẹ).
 * ============================================================ */

.tvai-tools {
	padding: 44px 0;
	background: #ffffff;
}

.tvai .tvai-tools__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-tools__head {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(520px, auto) minmax(120px, 1fr);
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
}

.tvai-tools__head-main {
	display: contents;
}

.tvai-tools__title {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.15;
	letter-spacing: -.025em;
	white-space: normal;
}

.tvai-tools__filters {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: max-content;
	max-width: 100%;
	padding: 5px;
	border-radius: 999px;
	background: #eef4fb;
	white-space: nowrap;
}

.tvai-tools__filter {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	color: var(--tvai-muted);
	transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.tvai-tools__filter:hover {
	color: var(--tvai-primary);
}

.tvai-tools__filter.is-active {
	background: #fff;
	color: var(--tvai-primary);
	box-shadow: 0 2px 8px rgba(11, 23, 54, .08);
}

.tvai-tools__view-all {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 800;
	color: var(--tvai-primary);
	text-decoration: none;
	transition: color .2s ease;
}

.tvai-tools__view-all:hover {
	color: var(--tvai-primary-dark);
}

.tvai-tools__view-all span {
	transition: transform .2s ease;
}

.tvai-tools__view-all:hover span {
	transform: translateX(3px);
}

.tvai-tools__card.is-hidden,
.tvai-tools__card[hidden] {
	display: none !important;
}

.tvai-tools__empty {
	margin: 28px 0 0;
	text-align: center;
	color: var(--tvai-muted);
	font-size: .9rem;
}

.tvai-tools__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.tvai-tools__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 200px;
	padding: 16px 18px 18px;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tvai-tools__card:hover {
	transform: translateY(-2px);
	border-color: #c6b2f2;
	box-shadow: 0 6px 18px rgba(11, 23, 54, .08);
}

.tvai-tools__top {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	align-items: center;
	gap: 13px;
}

.tvai-tools__logo {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(135deg, #0f9d7c, #72c8b4);
	font-size: 1.3rem;
	font-weight: 900;
}

.tvai-tools__logo--purple {
	background: linear-gradient(135deg, #7c3aed, #9858ee);
}

.tvai-tools__logo--blue {
	background: linear-gradient(135deg, #5d36d9, #00aeea);
}

.tvai-tools__logo--orange {
	background: linear-gradient(135deg, #ff6846, #f6a365);
}

.tvai-tools__logo--gray {
	color: #101727;
	background: #f5f5f6;
}

/* Logo variant when real image is provided */
.tvai-tools__logo--image {
	background: #eef4fb;
	border: 1px solid rgba(20, 119, 242, .14);
	overflow: hidden;
	padding: 0;
}

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

.tvai-tools__name {
	margin: 0;
	color: var(--tvai-navy);
	font-size: 1rem;
	line-height: 1.2;
}

.tvai-tools__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--tvai-muted);
	font-size: .73rem;
}

.tvai-tools__stars {
	color: #f59e0b;
	letter-spacing: .05em;
}

.tvai-tools__details {
	display: grid;
	gap: 6px;
	margin: 15px 0;
	color: var(--tvai-muted);
	font-size: .78rem;
}

.tvai-tools__details strong {
	color: var(--tvai-text);
}

.tvai-tools__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	min-height: 38px;
	margin-top: auto;
	padding: 0 13px;
	border: 1px solid #b9d4fb;
	border-radius: 9px;
	color: var(--tvai-primary);
	background: #fff;
	font-size: .77rem;
	font-weight: 800;
	text-decoration: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tvai-tools__link:hover {
	color: #fff;
	border-color: var(--tvai-primary);
	background: var(--tvai-primary);
}

.tvai-tools__link span {
	transition: transform .2s ease;
}

.tvai-tools__link:hover span {
	transform: translateX(3px);
}

/* ============ Tablet: filter xuống hàng dưới ============ */
@media (max-width: 1180px) {
	.tvai-tools__head {
		grid-template-columns: 1fr auto;
	}

	.tvai-tools__title {
		grid-column: 1;
		grid-row: 1;
	}

	.tvai-tools__view-all {
		grid-column: 2;
		grid-row: 1;
	}

	.tvai-tools__filters {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: stretch;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.tvai-tools__filters::-webkit-scrollbar {
		display: none;
	}
}

/* ============ Mobile ============ */
@media (max-width: 640px) {
	/* Đảm bảo head column filter không giữ min-width gây tràn ngang */
	.tvai-tools__head,
	.tvai-tools__head-main {
		min-width: 0;
		overflow: visible;
	}

	.tvai .tvai-tools__container {
		overflow: visible;
	}

	.tvai-tools__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.tvai-tools__title,
	.tvai-tools__view-all,
	.tvai-tools__filters {
		grid-column: 1;
	}

	.tvai-tools__title {
		grid-row: 1;
	}

	.tvai-tools__view-all {
		grid-row: 2;
		justify-self: start;
	}

	/* Filter bar: grid 3 cột × 2 hàng — không scroll ngang */
	.tvai-tools__filters {
		grid-row: 3;
		justify-self: stretch;
		width: 100%;
		max-width: 100%;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		padding: 6px;
		border-radius: 18px;
		background: #eef4fb;
		overflow: visible;
		justify-content: stretch;
		align-items: stretch;
	}

	/* Override scroll cũ (không còn áp dụng) */
	.tvai-tools__filters::-webkit-scrollbar {
		display: none;
	}

	/* Bỏ spacer cũ ::before / ::after (không còn cần cho horizontal scroll) */
	.tvai-tools__filters::before,
	.tvai-tools__filters::after {
		content: none;
	}

	.tvai-tools__filter {
		width: 100%;
		min-width: 0;
		min-height: 38px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0 8px !important;
		font-size: 11.5px !important;
		font-weight: 800;
		line-height: 1.15;
		text-align: center;
		white-space: normal !important;
		border-radius: 999px;
		flex: initial !important;
	}

	.tvai-tools__filter.is-active {
		background: #fff;
		color: var(--tvai-primary);
		box-shadow: 0 2px 8px rgba(11, 23, 54, .08);
	}
}

/* ============ Tablet cards ============ */
@media (max-width: 1024px) {
	.tvai-tools__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tvai .tvai-tools__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-tools {
		padding: 34px 0;
	}
}

/* ============ Mobile cards ============ */
@media (max-width: 540px) {
	.tvai-tools__grid {
		grid-template-columns: 1fr;
	}

	.tvai-tools__card {
		min-height: 0;
	}
}

/* ============================================================
 * Filter buttons — base reset (giữ reset ổn định cho mọi breakpoint)
 * Lưu ý: KHÔNG set justify-content ở đây để không ghi đè mobile flex-start
 * ============================================================ */
.tvai-tools__filter {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	vertical-align: middle;
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	border-radius: 999px;
	padding: 0 14px;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--tvai-muted);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.tvai-tools__filter:hover,
.tvai-tools__filter:focus {
	color: var(--tvai-primary);
	background: rgba(255, 255, 255, .55);
	outline: none;
}

.tvai-tools__filter:focus-visible {
	outline: 2px solid rgba(124, 58, 237, .28);
	outline-offset: 2px;
}

.tvai-tools__filter.is-active {
	background: #fff;
	color: var(--tvai-primary);
	box-shadow: 0 2px 8px rgba(11, 23, 54, .08);
}

/* ============================================================
 * Section 6 Tools - hide filter on mobile
 * Ẩn filter bar + empty state trên mobile, chỉ giữ desktop.
 * Đồng thời ép cards hiện đầy đủ (kể cả khi filter desktop trước đó đã ẩn card)
 * và tighten head layout để không còn khoảng trống chỗ filter bị ẩn.
 * Block này nằm ở CUỐI FILE để thắng tất cả rule trước đó
 * ============================================================ */
@media (max-width: 768px) {
	/* Ẩn filter bar */
	.tvai .tvai-tools .tvai-tools__filters,
	.tvai-tools .tvai-tools__filters {
		display: none !important;
	}

	/* Ẩn luôn empty state để tránh hiển thị sai khi resize từ desktop */
	.tvai .tvai-tools .tvai-tools__empty,
	.tvai-tools .tvai-tools__empty {
		display: none !important;
	}

	/* Ép tất cả cards hiện (kể cả [hidden]) để tránh filter desktop làm card ẩn khi resize */
	.tvai .tvai-tools .tvai-tools__card,
	.tvai-tools .tvai-tools__card {
		display: flex !important;
	}

	.tvai .tvai-tools .tvai-tools__card[hidden],
	.tvai-tools .tvai-tools__card[hidden] {
		display: flex !important;
	}

	/* Tighten head layout: chỉ giữ 2 row (title + view-all) */
	.tvai .tvai-tools .tvai-tools__head,
	.tvai-tools .tvai-tools__head {
		grid-template-rows: auto auto !important;
	}

	/* Đảm bảo view-all nằm ở row 2 (title mặc định row 1) */
	.tvai .tvai-tools .tvai-tools__view-all,
	.tvai-tools .tvai-tools__view-all {
		grid-row: 2 !important;
		justify-self: start !important;
	}
}

/* ============================================================
 * Section 7 — AI cho Content Creator & MMO / Workflows
 * Nền xám nhẹ để chuyển tiếp mềm từ Section 6 (trắng).
 * ============================================================ */

.tvai-workflows {
	padding: 44px 0;
	background: #f6f9fd;
}

.tvai .tvai-workflows__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-workflows__head {
	margin-bottom: 22px;
}

.tvai-workflows__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tvai-workflows__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.tvai-workflows__card {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #d8cafa;
	border-radius: var(--tvai-radius);
	background: linear-gradient(135deg, #fbf8ff, #fff);
}

.tvai-workflows__card--blue {
	border-color: #b9d4fb;
	background: linear-gradient(135deg, #f1f7ff, #fff);
}

.tvai-workflows__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
}

.tvai-workflows__card-title {
	margin: 0 0 14px;
	color: var(--tvai-ai-dark);
	font-size: 1rem;
	line-height: 1.35;
}

.tvai-workflows__card--blue .tvai-workflows__card-title {
	color: var(--tvai-primary-dark);
}

.tvai-workflows__steps {
	display: grid;
	gap: 9px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	counter-reset: tvai-wf;
}

.tvai-workflows__steps li {
	position: relative;
	padding-left: 30px;
	color: var(--tvai-muted);
	font-size: .82rem;
	line-height: 1.45;
}

.tvai-workflows__steps li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border-radius: 6px;
	color: #fff;
	background: var(--tvai-ai);
	font-size: .68rem;
	font-weight: 900;
	counter-increment: tvai-wf;
	content: counter(tvai-wf);
}

.tvai-workflows__card--blue .tvai-workflows__steps li::before {
	background: var(--tvai-primary);
}

/* CTA button */
.tvai-workflows__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	min-height: 38px;
	margin-top: auto;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: .77rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.tvai-workflows__cta:hover {
	transform: translateY(-1px);
}

.tvai-workflows__cta--ai {
	color: #fff;
	border: 1px solid var(--tvai-ai);
	background: var(--tvai-ai);
	box-shadow: 0 8px 18px rgba(124, 58, 237, .15);
}

.tvai-workflows__cta--primary {
	color: #fff;
	border: 1px solid var(--tvai-primary);
	background: var(--tvai-primary);
	box-shadow: 0 8px 18px rgba(124, 58, 237, .12);
}

/* Media placeholder */
.tvai-workflows__media {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background: linear-gradient(145deg, #e9f2fe 0%, #d7e5f8 48%, #c5d9f1 100%);
	display: grid;
	place-items: center;
}

.tvai-workflows__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .9), transparent 34%),
		linear-gradient(90deg, rgba(11, 23, 54, .05) 1px, transparent 1px),
		linear-gradient(rgba(11, 23, 54, .05) 1px, transparent 1px);
	background-size: auto, 26px 26px, 26px 26px;
}

.tvai-workflows__media--warm {
	background: linear-gradient(145deg, #fdeee0 0%, #fbe3cf 48%, #f6d3b8 100%);
}

.tvai-workflows__media-note {
	position: relative;
	z-index: 1;
	color: var(--tvai-muted);
	font-size: .72rem;
	font-weight: 600;
	opacity: .6;
}

/* Real ACF image — fills the media area */
.tvai-workflows__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* When real image is present: hide placeholder background and note */
.tvai-workflows__media--has-image {
	background: none;
}

.tvai-workflows__media--has-image::before {
	display: none;
}

.tvai-workflows__media--has-image .tvai-workflows__media-note {
	display: none;
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-workflows__card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.tvai .tvai-workflows__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-workflows {
		padding: 34px 0;
	}

	.tvai-workflows__media {
		min-height: 220px;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-workflows__grid {
		grid-template-columns: 1fr;
	}

	.tvai-workflows__copy {
		padding: 18px 16px;
	}
}

/* ============================================================
 * Section 8 — Review khóa học & công cụ AI
 * Nền trắng, 4 card review grid.
 * ============================================================ */

.tvai-reviews {
	padding: 44px 0;
	background: #ffffff;
}

.tvai .tvai-reviews__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-reviews__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.tvai-reviews__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tvai-reviews__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tvai-primary);
	font-size: .82rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.tvai-reviews__view-all:hover {
	color: var(--tvai-primary-dark);
}

.tvai-reviews__view-all span {
	transition: transform .2s ease;
}

.tvai-reviews__view-all:hover span {
	transform: translateX(3px);
}

.tvai-reviews__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.tvai-reviews__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 244px;
	padding: 18px;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tvai-reviews__card:hover {
	transform: translateY(-2px);
	border-color: #c6b2f2;
	box-shadow: 0 6px 18px rgba(11, 23, 54, .08);
}

/* Image box — replaces old logo pill */
.tvai-reviews__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 18px;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(20,119,242,.08), rgba(124,58,237,.08));
	border: 1px solid var(--tvai-line);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tvai-reviews__media-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Fallback logo pill inside media box */
.tvai-reviews__media .tvai-reviews__logo {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	max-width: 150px;
	height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--tvai-line);
	box-shadow: 0 4px 12px rgba(11, 23, 54, .04);
}

.tvai-reviews__logo-text {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .02em;
	line-height: 1;
	color: var(--tvai-primary);
	text-transform: uppercase;
}

.tvai-reviews__logo--purple .tvai-reviews__logo-text {
	color: var(--tvai-ai);
}

.tvai-reviews__logo--orange .tvai-reviews__logo-text {
	color: #f97316;
}

.tvai-reviews__logo--dark .tvai-reviews__logo-text {
	color: var(--tvai-navy);
}

.tvai-reviews__rating {
	margin-bottom: 10px;
}

.tvai-reviews__rating b {
	color: #f59e0b;
	letter-spacing: .05em;
}

.tvai-reviews__rating span {
	margin-left: 6px;
	color: var(--tvai-muted);
	font-size: .78rem;
	vertical-align: middle;
}

.tvai-reviews__card p {
	margin: 4px 0;
	color: var(--tvai-muted);
	font-size: .76rem;
}

.tvai-reviews__card p strong {
	color: var(--tvai-text);
}

.tvai-reviews__pros {
	display: grid;
	gap: 5px;
	margin: 11px 0 15px;
	padding: 0;
	color: var(--tvai-muted);
	font-size: .74rem;
	list-style: none;
}

.tvai-reviews__pros li {
	position: relative;
	padding-left: 16px;
}

.tvai-reviews__pros li::before {
	position: absolute;
	left: 0;
	color: var(--tvai-primary);
	content: "✓";
}

.tvai-reviews__affiliate {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 4px 8px;
	border-radius: 999px;
	color: #665692;
	background: var(--tvai-ai-soft);
	font-size: .65rem;
	font-weight: 700;
}

.tvai-reviews__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	min-height: 37px;
	margin-top: auto;
	padding: 0 10px;
	border: 1px solid #b9d4fb;
	border-radius: 9px;
	color: var(--tvai-primary);
	background: #fff;
	font-size: .74rem;
	font-weight: 800;
	text-decoration: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tvai-reviews__cta:hover {
	color: #fff;
	border-color: var(--tvai-primary);
	background: var(--tvai-primary);
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tvai .tvai-reviews__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-reviews {
		padding: 34px 0;
	}

	.tvai-reviews__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.tvai-reviews__card {
		min-height: 220px;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-reviews__grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
 * Section 11 — Nhận thư viện Prompt & Workflow AI miễn phí / Lead Magnet
 * Nền trắng, inner card bo góc, 2 cột: 1/3 image + 2/3 content.
 * ============================================================ */

.tvai-lead {
	padding: 30px 0;
	background: #ffffff;
}

.tvai .tvai-lead__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-lead__inner {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
	gap: 40px;
	align-items: center;
	padding: 24px 28px;
	border: 1px solid #cfe0f5;
	border-radius: var(--tvai-radius);
	background: linear-gradient(135deg, #f7faff, #eef5ff);
}

/* Image placeholder (static, will be replaced by ACF image later) */
.tvai-lead__media {
	min-width: 0;
}

/* Real ACF image — fills the media box */
.tvai-lead__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 14px;
}

.tvai-lead__image-placeholder {
	aspect-ratio: 4 / 3;
	width: 100%;
	border-radius: 14px;
	border: 1px solid #cfe0f5;
	background:
		linear-gradient(90deg, rgba(20,119,242,.08) 1px, transparent 1px),
		linear-gradient(rgba(20,119,242,.08) 1px, transparent 1px),
		linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	background-size: 28px 28px, 28px 28px, 100% 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tvai-primary);
	font-weight: 800;
	box-shadow: 0 18px 36px rgba(11, 23, 54, .08);
}

/* Content + form */
.tvai-lead__content {
	min-width: 0;
}

.tvai-lead__title {
	margin: 0 0 6px;
	color: var(--tvai-navy);
	font-size: 1.25rem;
}

.tvai-lead__desc {
	margin: 0 0 15px;
	color: var(--tvai-muted);
	font-size: .84rem;
}

.tvai-lead__form {
	margin-top: 22px;
}

.tvai-lead__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--tvai-navy);
}

.tvai-lead__form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
}

.tvai-lead__input {
	width: 100%;
	min-width: 0;
	height: 46px;
	border-radius: 10px;
	border: 1px solid #cfe0f5;
	background: #ffffff;
	padding: 0 16px;
	color: var(--tvai-navy);
	font: inherit;
	outline: none;
	box-shadow: 0 2px 8px rgba(11, 23, 54, .04);
	transition: border-color .18s ease, box-shadow .18s ease;
	box-sizing: border-box;
}

.tvai-lead__input::placeholder {
	color: #8ba0bd;
}

.tvai-lead__input:focus {
	border-color: var(--tvai-primary);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.tvai-lead__button {
	white-space: nowrap;
	min-height: 46px;
	padding-inline: 22px;
	border: 0;
	border-radius: 10px;
	color: #fff;
	background: var(--tvai-primary);
	font-weight: 850;
	cursor: pointer;
	transition: background .2s ease;
}

.tvai-lead__button:hover {
	background: var(--tvai-primary-dark);
}

.tvai-lead__privacy {
	display: block;
	margin-top: 12px;
	color: #8b98ad;
	font-size: .68rem;
}

/* ============ Tablet ============ */
@media (max-width: 900px) {
	.tvai-lead__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		text-align: center;
	}

	.tvai-lead__image-placeholder {
		max-width: 520px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.tvai .tvai-lead__container {
		width: min(calc(100% - 28px), 1320px);
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-lead__inner {
		padding: 22px 18px;
	}

	.tvai-lead__form-row {
		grid-template-columns: 1fr;
	}

	.tvai-lead__button {
		width: 100%;
	}
}

/* ============================================================
 * Section 9 — Bài viết AI mới nhất / Blog Posts
 * Nền xám nhẹ (alt) để chuyển tiếp mềm từ Section 8 (trắng).
 * ============================================================ */

.tvai-blog {
	padding: 44px 0;
	background: #f6f9fd;
}

.tvai .tvai-blog__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-blog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.tvai-blog__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tvai-blog__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tvai-primary);
	font-size: .82rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.tvai-blog__view-all:hover {
	color: var(--tvai-primary-dark);
}

.tvai-blog__view-all span {
	transition: transform .2s ease;
}

.tvai-blog__view-all:hover span {
	transform: translateX(3px);
}

.tvai-blog__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
}

.tvai-blog__card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tvai-blog__card:hover {
	transform: translateY(-2px);
	border-color: #c6b2f2;
	box-shadow: 0 6px 18px rgba(11, 23, 54, .08);
}

/* Media placeholder — also used as image container */
.tvai-blog__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, #e9f2fe 0%, #d7e5f8 48%, #c5d9f1 100%);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.tvai-blog__media::before {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .9), transparent 34%),
		linear-gradient(90deg, rgba(11, 23, 54, .05) 1px, transparent 1px),
		linear-gradient(rgba(11, 23, 54, .05) 1px, transparent 1px);
	background-size: auto, 26px 26px, 26px 26px;
	content: "";
}

/* Real post thumbnail — fills the media box */
.tvai-blog__media-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* When a real image is present, hide placeholder background & note */
.tvai-blog__media:has(.tvai-blog__media-img)::before {
	display: none;
}

.tvai-blog__media:has(.tvai-blog__media-img) .tvai-blog__media-note {
	display: none;
}

.tvai-blog__media--warm {
	background: linear-gradient(145deg, #fdeee0 0%, #fbe3cf 48%, #f6d3b8 100%);
}

.tvai-blog__media--purple {
	background: linear-gradient(145deg, #f3ecfe 0%, #e9ddfb 48%, #dcc8f5 100%);
}

.tvai-blog__media-note {
	position: relative;
	z-index: 1;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 8px;
	color: rgba(255, 255, 255, .92);
	background: rgba(5, 13, 31, .35);
	font-size: .68rem;
	font-weight: 800;
	text-align: center;
	backdrop-filter: blur(5px);
}

/* Card body */
.tvai-blog__body {
	min-width: 0;
	padding: 14px;
}

.tvai-blog__card-title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--tvai-navy);
	font-size: .88rem;
	line-height: 1.42;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tvai-blog__title-link {
	color: inherit;
	text-decoration: none;
}

.tvai-blog__title-link:hover {
	color: var(--tvai-primary);
}

.tvai-blog__tag {
	margin-top: 8px;
}

.tvai-blog__meta {
	margin-top: 6px;
	color: #8c99ae;
	font-size: .72rem;
}

.tvai-blog__empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--tvai-muted);
	font-size: .9rem;
}

/* ============ Tablet ============ */
@media (max-width: 1024px) {
	.tvai-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tvai .tvai-blog__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-blog {
		padding: 34px 0;
	}

	.tvai-blog__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-blog__grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
 * Section 10 — Câu hỏi thường gặp về AI / FAQ
 * Nền trắng để chuyển tiếp mềm từ Section 9 (xám nhẹ).
 * ============================================================ */

.tvai-faq {
	padding: 44px 0;
	background: #ffffff;
}

.tvai .tvai-faq__container {
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.tvai-faq__head {
	margin-bottom: 24px;
}

.tvai-faq__title {
	margin: 0;
	color: var(--tvai-navy);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
	text-align: left;
}

.tvai-faq__list {
	display: grid;
	gap: 10px;
	width: min(100%, 900px);
	margin-left: auto;
	margin-right: auto;
}

.tvai-faq__list details {
	overflow: hidden;
	border: 1px solid var(--tvai-line);
	border-radius: var(--tvai-radius-sm);
	background: #fff;
	box-shadow: 0 4px 14px rgba(11, 23, 54, .035);
}

.tvai-faq__list summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 46px 16px 18px;
	color: var(--tvai-navy);
	font-size: .92rem;
	font-weight: 800;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.tvai-faq__list summary::-webkit-details-marker {
	display: none;
}

/* Custom arrow */
.tvai-faq__list summary::after {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%) rotate(0deg);
	content: "›";
	font-size: 1.35rem;
	font-weight: 900;
	color: var(--tvai-primary);
	transition: transform .25s ease;
	line-height: 1;
}

.tvai-faq__list details[open] summary::after {
	transform: translateY(-50%) rotate(90deg);
}

.tvai-faq__list summary:hover {
	background: #fafbfd;
}

.tvai-faq__answer {
	padding: 0 18px 18px;
	color: var(--tvai-muted);
	font-size: .85rem;
	line-height: 1.6;
}

/* ============ Tablet ============ */
@media (max-width: 768px) {
	.tvai .tvai-faq__container {
		width: min(calc(100% - 28px), 1320px);
	}

	.tvai-faq {
		padding: 34px 0;
	}

	.tvai-faq__list summary {
		padding: 14px 46px 14px 16px;
		font-size: .88rem;
	}

	.tvai-faq__answer {
		font-size: .82rem;
	}
}

/* ============ Mobile ============ */
@media (max-width: 540px) {
	.tvai-faq__list summary {
		padding: 12px 42px 12px 14px;
		font-size: .84rem;
	}
}

/* ============================================================
 * Section 11 Lead Magnet — CF7 overrides
 * Minimal reset so CF7 form doesn't break layout.
 * ============================================================ */

.tvai-lead__cf7 .wpcf7-form {
	margin: 0;
}

.tvai-lead__cf7 input[type="email"],
.tvai-lead__cf7 input[type="text"] {
	width: 100%;
	min-height: 46px;
	border-radius: 10px;
	border: 1px solid #cfe0f5;
	padding: 0 16px;
	box-sizing: border-box;
}

.tvai-lead__cf7 input[type="submit"],
.tvai-lead__cf7 button {
	min-height: 46px;
	border-radius: 10px;
}
