/* ==========================================================================
   EVHOWO – CSS chính (mobile-first)
   1. Biến & nền tảng   2. Nút   3. Header   4. Bố cục chung   5. Trang chủ
   6. Card xe / tin tức  7. Danh mục  8. Chi tiết xe  9. Nội dung bài viết
   10. Form báo giá  11. Footer  12. Thanh CTA mobile
   ========================================================================== */

/* 1. Biến & nền tảng ------------------------------------------------------ */
:root {
	--blue: #0b4ea2;        /* Xanh HOWO – màu chủ đạo */
	--blue-dark: #07356f;
	--blue-soft: #eaf1fb;
	--cta: #f26a1b;         /* Màu nút kêu gọi hành động */
	--cta-dark: #d85608;
	--ink: #111827;
	--text: #374151;
	--muted: #6b7280;
	--line: #e5e7eb;
	--soft: #f4f6f9;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 6px 24px rgba(17, 24, 39, .08);
	--header-h: 64px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.25; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

.icon { flex: none; width: 1.25em; height: 1.25em; }

.container { width: min(100% - 32px, 1240px); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 840px); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 1000;
	width: auto; height: auto;
	margin: 0; padding: 10px 16px;
	clip: auto;
	background: var(--white);
	border-radius: 6px;
}

/* 2. Nút ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;               /* Đủ lớn để bấm bằng ngón tay */
	padding: 10px 18px;
	border: 2px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--cta { background: var(--cta); color: var(--white); }
.btn--cta:hover { background: var(--cta-dark); color: var(--white); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn--outline:hover { background: var(--blue-soft); }
.btn--light { background: var(--white); color: var(--blue-dark); }
.btn--light:hover { background: var(--blue-soft); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.btn--block { width: 100%; }

/* 3. Header --------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
/* Chừa chỗ cho thanh quản trị WordPress khi đang đăng nhập */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--header-h);
}

.logo {
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -.02em;
	color: #12994a;         /* EV – xanh lá (xe điện) */
	line-height: 1;
}
.logo span { color: var(--blue); } /* HOWO – xanh dương nhận diện Sinotruk */
.logo:hover { color: #12994a; }
.site-footer .logo--light, .site-footer .logo--light:hover { color: #4ade80; text-decoration: none; }
.logo--light span { color: #7fb2f5; }
.custom-logo { max-height: 44px; width: auto; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__phone {
	display: none;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	color: var(--blue-dark);
	white-space: nowrap;
}
.site-header__cta { display: none; white-space: nowrap; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
}

/* Menu mobile: thả xuống ngay dưới header */
.site-nav {
	display: none;
	position: absolute;
	top: 100%; left: 0; right: 0;
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.nav-open .site-nav { display: block; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav .menu { padding: 8px 16px 16px; }
.site-nav a {
	display: block;
	padding: 12px 4px;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
	color: var(--ink);
}
.site-nav .sub-menu a { padding-left: 20px; font-weight: 500; }
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { color: var(--blue); }

@media (min-width: 480px) {
	.site-header__cta { display: inline-flex; }
}

@media (min-width: 1280px) {
	:root { --header-h: 72px; }
	.nav-toggle { display: none; }
	.site-nav {
		display: block;
		position: static;
		max-height: none;
		overflow: visible;
		border: 0;
		box-shadow: none;
	}
	.site-nav .menu { display: flex; align-items: center; gap: 2px; padding: 0; }
	.site-nav .menu > li { position: relative; }
	.site-nav a { padding: 10px; border: 0; font-size: 14.5px; white-space: nowrap; }
	.site-nav .sub-menu {
		display: none;
		position: absolute;
		top: 100%; left: 0;
		min-width: 220px;
		padding: 8px;
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: 8px;
		box-shadow: var(--shadow);
	}
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 8px 10px; }
	.site-nav .menu-item-has-children > a::after { content: "\25BE"; margin-left: 4px; font-size: 12px; }
}

@media (min-width: 1440px) {
	.site-header__phone { display: inline-flex; }
}

/* 4. Bố cục chung --------------------------------------------------------- */
.section { padding: 48px 0; }
.section--tight { padding: 28px 0 48px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--blue-dark); color: #d7e3f5; }
.section--dark .section__title { color: var(--white); }

.section__title { font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 24px; }
.section__lead { max-width: 640px; margin: -12px 0 28px; }
.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 24px;
}
.section__head .section__title { margin: 0; }
.section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

.grid { display: grid; gap: 16px; }
.grid--cats { grid-template-columns: repeat(2, 1fr); }
.grid--xe, .grid--posts, .grid--features { grid-template-columns: 1fr; }

@media (min-width: 640px) {
	.grid { gap: 24px; }
	.grid--cats { grid-template-columns: repeat(3, 1fr); }
	.grid--xe, .grid--posts, .grid--features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.section { padding: 72px 0; }
	.section--tight { padding: 32px 0 72px; }
	.grid--cats { grid-template-columns: repeat(5, 1fr); }
	.grid--xe, .grid--posts, .grid--features { grid-template-columns: repeat(3, 1fr); }
}

/* Breadcrumb */
.breadcrumb { padding: 12px 0; background: var(--soft); font-size: 14px; color: #4b5563; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #4b5563; }
.breadcrumb p { margin: 0; } /* Breadcrumb của Rank Math */

/* Đầu trang danh mục / tin tức */
.page-head { padding: 28px 0 4px; }
.page-head__title { font-size: clamp(26px, 4vw, 38px); }
.page-head__intro { max-width: 860px; }

.empty { padding: 32px 16px; text-align: center; background: var(--soft); border-radius: var(--radius); }

/* Phân trang */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-weight: 700;
	color: var(--ink);
}
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

/* 5. Trang chủ ------------------------------------------------------------ */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 520px;              /* Cố định chiều cao tối thiểu → không layout shift */
	padding: 56px 0;
	background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 100%);
	color: var(--white);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(5, 32, 70, .92) 0%, rgba(5, 32, 70, .7) 55%, rgba(5, 32, 70, .25) 100%);
}
.hero__inner { position: relative; animation: fade-up .6s ease-out both; }
/* Logo chu HOWO HADACO tren banner trang chu: nen trang, HOWO xanh, HADACO do. */
.hero__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 8px 16px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	font-size: 22px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: .02em;
	line-height: 1;
	text-transform: uppercase;
}
.hero__brand-howo { color: var(--blue); }
.hero__brand-hadaco { color: #d81f26; }
@media (min-width: 768px) { .hero__brand { font-size: 28px; padding: 10px 20px; } }
.hero__eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.hero__title { max-width: 820px; font-size: clamp(28px, 5.4vw, 54px); line-height: 1.12; color: var(--white); }
.hero__desc { max-width: 620px; margin-bottom: 28px; font-size: clamp(16px, 2vw, 19px); color: #dbe6f6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { text-transform: uppercase; }

@media (min-width: 1024px) { .hero { min-height: 600px; } }

@keyframes fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Card danh mục */
.cat-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 20px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); transition: background-color .15s, color .15s; }
.cat-card__icon .icon { width: 30px; height: 30px; }
.cat-card:hover .cat-card__icon { background: var(--blue); color: var(--white); }
.cat-card__title { margin: 0; font-size: 17px; }
.cat-card__count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.cat-card__count .icon { width: 16px; height: 16px; color: var(--blue); }

/* Lý do chọn / công nghệ */
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.feature__icon .icon { width: 28px; height: 28px; }
.feature { transition: box-shadow .15s, transform .15s, border-color .15s; }
.feature:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature__title { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; }
.feature--dark { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
.feature--dark .feature__icon { background: rgba(255, 255, 255, .1); color: #8fc0ff; }
.feature--dark:hover { border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.feature--dark .feature__title { color: var(--white); }

/* Banner CTA */
.cta-banner { padding: 40px 0; background: var(--blue); color: #e3ecf9; }
.cta-banner__inner { display: flex; flex-direction: column; gap: 20px; }
.cta-banner__title { margin-bottom: 6px; font-size: clamp(22px, 3.2vw, 30px); color: var(--white); }
.cta-banner p { margin: 0; max-width: 620px; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
	.cta-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
	.cta-banner__actions { flex: none; }
}

/* 6. Card xe / tin tức ---------------------------------------------------- */
.xe-card, .post-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	overflow: hidden;
	transition: box-shadow .15s, transform .15s;
}
.xe-card:hover, .post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.xe-card__media, .post-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.xe-card__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.xe-card:hover .xe-card__media img, .post-card:hover .post-card__media img { transform: scale(1.05); }

.xe-card__body, .post-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.xe-card__cat { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--blue); }
.xe-card__title, .post-card__title { margin-bottom: 8px; font-size: 18px; }
.xe-card__title a, .post-card__title a { color: var(--ink); }
.xe-card__title a:hover, .post-card__title a:hover { color: var(--blue); }
.xe-card__price { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.xe-card__price strong { font-size: 19px; color: var(--cta-dark); }

.xe-card__specs { margin: 0 0 16px; padding: 12px 0 0; border-top: 1px dashed var(--line); list-style: none; font-size: 14px; }
.xe-card__specs li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink); text-align: right; }
.xe-card__specs span { flex: none; color: var(--muted); }

.xe-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.xe-card__actions .btn { padding-inline: 8px; }

.post-card__date { margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.post-card__excerpt { margin: 0; font-size: 15px; }

/* 7. Danh mục: bộ lọc ----------------------------------------------------- */
.filter { margin-bottom: 24px; }
.filter__chips {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;               /* Vuốt ngang trên điện thoại */
	-webkit-overflow-scrolling: touch;
}
.filter__chips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}
.filter__chips a:hover { border-color: var(--blue); color: var(--blue); }
.filter__chips a.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.filter__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: end;
	padding: 16px;
	background: var(--soft);
	border-radius: var(--radius);
}
.filter__form label span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.filter__form .btn { grid-column: 1 / -1; }

@media (min-width: 768px) {
	.filter__form { grid-template-columns: repeat(3, 1fr) auto; }
	.filter__form .btn { grid-column: auto; }
}

select, input[type="text"], input[type="tel"], input[type="email"], input[type="search"], textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #cfd5dd;
	border-radius: 8px;
	background: var(--white);
	font: inherit;
	font-size: 16px;                /* ≥16px để iPhone không tự phóng to khi nhập */
	color: var(--ink);
}
select:focus, input:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue-soft); }

/* 8. Chi tiết xe ---------------------------------------------------------- */
.xe__top { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 8px; }

.xe-gallery { min-width: 0; }
.xe-gallery__main { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.xe-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.xe-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; padding-bottom: 4px; overflow-x: auto; }
.xe-gallery__thumb {
	flex: none;
	width: 72px; height: 54px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: var(--soft);
	overflow: hidden;
	cursor: pointer;
}
.xe-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.xe-gallery__thumb.is-active { border-color: var(--blue); }

.xe-summary__cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.xe-summary__title { margin: 6px 0 8px; font-size: clamp(24px, 3.6vw, 34px); }
.xe-summary__code { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.xe-summary__price { margin-bottom: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-soft); }
.xe-summary__price span { display: block; font-size: 13px; font-weight: 600; color: #4b5563; }
.xe-summary__price strong { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; color: var(--cta-dark); }
.xe-summary__note { font-size: 13px; color: var(--muted); }
.xe-summary__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xe-summary__actions .btn--block { grid-column: 1 / -1; }
.xe-summary__actions .btn { padding-inline: 10px; }

.xe__body { padding-bottom: 32px; }
.xe-block { padding: 28px 0; border-top: 1px solid var(--line); }
.xe-block:first-child { border-top: 0; }
.xe-block > h2 { font-size: clamp(20px, 2.8vw, 26px); margin-bottom: 16px; }

@media (min-width: 1024px) {
	.xe__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding-top: 32px; }
	.xe-summary { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
	.xe__body { max-width: 900px; }
	.xe-gallery__thumb { width: 88px; height: 66px; }
}

/* Bảng thông số & bảng giá */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table, .price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td,
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tr:last-child > *, .price-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table th { width: 42%; background: var(--soft); font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--ink); }
.price-table { min-width: 620px; }
.price-table thead th { background: var(--blue); color: var(--white); white-space: nowrap; }
.price-table tbody th { font-weight: 700; }
.price-table__price { font-weight: 800; color: var(--cta-dark); white-space: nowrap; }
.price-heading { margin: 32px 0 12px; font-size: 22px; }
.price-heading:first-child { margin-top: 0; }
.price-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Danh sách có dấu tick */
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 10px; color: var(--ink); }
.check-list .icon { margin-top: 3px; color: var(--blue); }
@media (min-width: 640px) { .check-list--cols { grid-template-columns: 1fr 1fr; } }

.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink); overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq__item + .faq__item { margin-top: 10px; }
.faq__item summary {
	position: relative;
	padding: 16px 48px 16px 16px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "+";
	position: absolute;
	top: 50%; right: 16px;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	color: var(--blue);
}
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 16px 4px; }

/* 9. Nội dung bài viết ---------------------------------------------------- */
.entry-title { font-size: clamp(26px, 4vw, 38px); }
.entry-meta { font-size: 14px; color: var(--muted); }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { width: 100%; border-radius: var(--radius); }

.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; font-size: 26px; }
.entry-content h3 { margin-top: 1.4em; font-size: 21px; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--blue); background: var(--soft); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

.entry-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 32px; padding: 16px; background: var(--soft); border-radius: var(--radius); }
.entry-links strong { flex-basis: 100%; color: var(--ink); }
.entry-links a { font-weight: 600; }

.not-found { text-align: center; }

/* 10. Form báo giá -------------------------------------------------------- */
.quote { background: var(--soft); }
.quote__grid { display: grid; gap: 24px; }
.quote__points { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.quote__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.quote__points .icon { color: var(--blue); }
.quote__hotline { font-weight: 600; }
.quote__hotline a { font-size: 22px; font-weight: 800; white-space: nowrap; }

.quote__form { padding: 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.quote__form .field { margin-bottom: 14px; }
.quote__form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.quote__form abbr { color: #c62828; text-decoration: none; }
.quote__form textarea { resize: vertical; }
.quote__trap { position: absolute; left: -9999px; }  /* Ô bẫy bot, ẩn với người dùng */
.quote__message { min-height: 24px; margin: 12px 0 0; font-weight: 600; color: #1b7a3d; }
.quote__message.is-error { color: #c62828; }
.quote__form.is-sending .btn { opacity: .6; pointer-events: none; }

@media (min-width: 900px) {
	.quote__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
	.quote__form { padding: 28px; }
}

/* 11. Footer -------------------------------------------------------------- */
.site-footer { background: #0a1a33; color: #b8c4d6; font-size: 15px; }
.site-footer a { color: #dbe4f1; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer__title { margin-bottom: 12px; font-size: 16px; color: var(--white); text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer__col--about p { margin-top: 12px; }
.site-footer__contact li { display: flex; gap: 10px; }
.site-footer__contact .icon { margin-top: 3px; color: #7fb2f5; }
.site-footer__bottom { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer__bottom p { margin: 0; }
.site-footer__policy { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__policy li { padding: 0; }

@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; } }

/* 12. Thanh CTA cố định trên điện thoại ------------------------------------ */
.mobile-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	background: var(--white);
	border-top: 1px solid var(--line);
	box-shadow: 0 -4px 16px rgba(17, 24, 39, .08);
	padding-bottom: env(safe-area-inset-bottom);   /* Tránh vạch home của iPhone */
}
.mobile-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 56px;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--blue-dark);
}
.mobile-cta a + a { border-left: 1px solid var(--line); }
.mobile-cta .mobile-cta__main { background: var(--cta); color: var(--white); border-left: 0; }

body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
	.mobile-cta { display: none; }
	body { padding-bottom: 0; }
}

/* 13. Bổ sung: thanh trên cùng, dải ưu đãi, tab, bàn giao, đánh giá, nút nổi --- */

/* Tiêu đề section: nhãn nhỏ phía trên + gạch nhấn màu CTA phía dưới */
.section__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cta-dark); }
.section--dark .section__eyebrow { color: #ffb37f; }
.section__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--cta); }
.section__head .section__title::after { margin-top: 8px; }

/* Thanh thông tin trên cùng (chỉ hiện trên máy tính) */
.topbar { display: none; background: var(--blue-dark); color: #d7e3f5; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: #8fc0ff; }
@media (min-width: 1024px) { .topbar { display: block; } }

/* Hero: hoa văn sọc chéo nhẹ + dải ưu đãi nổi đè lên mép dưới */
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 28px);
	pointer-events: none;
}
.hero__media + .hero__inner, .hero__inner { z-index: 1; }
.hero--has-strip { padding-bottom: 104px; }
.hero__title { text-shadow: 0 2px 16px rgba(0, 0, 0, .25); }

.offer-strip {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin: -56px 0 0;
	padding: 0;
	list-style: none;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: 0 12px 36px rgba(17, 24, 39, .14);
	overflow: hidden;
}
.offer-strip li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 14px;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
}
.offer-strip li:nth-child(odd) { border-right: 1px solid var(--line); }
.offer-strip .icon { width: 24px; height: 24px; color: var(--cta); }
@media (min-width: 900px) {
	.offer-strip { grid-template-columns: repeat(4, 1fr); }
	.offer-strip li { padding: 22px 20px; border-bottom: 0; border-right: 1px solid var(--line); font-size: 15px; }
	.offer-strip li:last-child { border-right: 0; }
}

/* Card xe: nhãn trên ảnh + dòng trả góp */
.xe-card__badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.xe-card__badges span { padding: 4px 10px; border-radius: 6px; background: rgba(7, 53, 111, .92); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--white); }
.xe-card__badges span + span { background: var(--cta); }
.xe-card__finance { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: #fff3ea; font-size: 13px; font-weight: 700; color: var(--cta-dark); }
.xe-card__finance .icon { width: 15px; height: 15px; }
.xe-card:hover { border-color: var(--blue); }

/* Tab xe nổi bật */
.tabs__nav { display: flex; gap: 8px; margin-bottom: 24px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs__btn {
	flex: none;
	min-height: 44px;
	padding: 8px 18px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.tabs__btn:hover { border-color: var(--blue); color: var(--blue); }
.tabs__btn.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.tabs__panel[hidden] { display: none; }

/* Hình ảnh bàn giao xe */
.handover { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.handover__item { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.handover__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.handover__item:hover img { transform: scale(1.05); }
.handover__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(5, 32, 70, .88)); font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--white); }
@media (min-width: 768px) { .handover { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* Đánh giá khách hàng */
.review { display: flex; flex-direction: column; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.review__stars { display: flex; gap: 2px; margin-bottom: 12px; color: #f5a623; }
.review__stars .icon { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { flex: 1; margin: 0 0 16px; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.review__avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); font-size: 17px; color: var(--white); }

/* Banner CTA: thêm hoa văn */
.cta-banner { position: relative; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 28px); pointer-events: none; }
.cta-banner__inner { position: relative; }

/* Nút liên hệ nổi (máy tính bảng trở lên; điện thoại đã có thanh CTA dưới cùng) */
.float-contact { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 90; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-contact a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; font-weight: 800; color: var(--white); box-shadow: 0 6px 20px rgba(17, 24, 39, .25); }
.float-contact__zalo { width: 48px; background: #0068ff; font-size: 13px; }
.float-contact__phone { padding: 0 18px 0 14px; background: var(--cta); animation: pulse 2.2s infinite; }
.float-contact a:hover { color: var(--white); filter: brightness(1.08); }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(242, 106, 27, .55); }
	70% { box-shadow: 0 0 0 14px rgba(242, 106, 27, 0); }
	100% { box-shadow: 0 0 0 0 rgba(242, 106, 27, 0); }
}
@media (min-width: 768px) { .float-contact { display: flex; } }

/* Tôn trọng thiết lập "giảm chuyển động" của người dùng */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Card danh muc co anh xe */
.cat-card--photo { gap: 0; padding: 0; overflow: hidden; }
.cat-card__photo { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.cat-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-card--photo:hover .cat-card__photo img { transform: scale(1.06); }
.cat-card--photo .cat-card__title { padding: 14px 16px 4px; }
.cat-card--photo .cat-card__count { padding: 0 16px 16px; }

/* Banner trang chu dang anh co san chu: hien nguyen anh, tieu de nam o dai ben duoi */
.hero-banner { background: var(--blue-dark); }
.hero-banner__img img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin-inline: auto; }
.hero-banner__bar { padding: 24px 0; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #dbe6f6; }
.hero-banner--has-strip .hero-banner__bar { padding-bottom: 88px; }
.hero-banner__inner { display: flex; flex-direction: column; gap: 16px; }
.hero-banner__title { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 34px); color: var(--white); }
.hero-banner__desc { margin: 0; max-width: 680px; }
@media (min-width: 900px) {
	.hero-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
	.hero-banner__inner .hero__actions { flex: none; }
}

/* Banner trang chu dung anh dung (cao hon rong): dien thoai lam nen, may tinh xep anh sang nua phai */
.hero--portrait { background: var(--blue-dark); }
.hero--portrait .hero__media img { object-position: center 78%; }
@media (max-width: 899px) {
	.hero--portrait { align-items: flex-start; min-height: 680px; padding-top: 40px; }
	.hero--portrait .hero__media::after { background: linear-gradient(180deg, rgba(5, 32, 70, .92) 0%, rgba(5, 32, 70, .75) 46%, rgba(5, 32, 70, .08) 76%, rgba(5, 32, 70, 0) 100%); }
}
@media (min-width: 900px) {
	.hero--portrait .hero__media { left: auto; width: 48%; }
	.hero--portrait .hero__media::after { background: linear-gradient(90deg, var(--blue-dark) 0%, rgba(7, 53, 111, .4) 26%, rgba(7, 53, 111, 0) 58%); }
	.hero--portrait .hero__title,
	.hero--portrait .hero__desc { max-width: 50%; }
}
