/*
 * viettelhcmc.com – giao diện toàn site theo hệ thiết kế Viettel (tham chiếu vietteltelecom.vn, đo 15/10/2026):
 * đỏ #F3052C, chữ #333/#2C2F31, nền #F7F7F7, thẻ trắng bo 10px, nút viên thuốc 44px, khung 1200px,
 * chữ Roboto, tiêu đề Be Vietnam Pro (font mở thay cho font thương mại FS PFBeauSansPro).
 * cuongnd16 · 2026-10-15
 * Hiệu ứng chỉ dùng transform/opacity/background (không đổi kích thước khối → không CLS);
 * hover chỉ cho thiết bị có chuột; tắt chuyển động khi prefers-reduced-motion.
 */

:root {
	--vx-red: #f3052c;
	--vx-red-hi: #ff3b5c;
	--vx-red-deep: #c8001f;
	--vx-ink: #2c2f31;
	--vx-text: #333333;
	--vx-muted: #6b6f72;
	--vx-soft: #fff1f3;
	--vx-line: #ececec;
	--vx-bg: #f7f7f7;
	--vx-radius: 10px;
	--vx-font-head: "Be Vietnam Pro", Roboto, Arial, sans-serif;
	--vx-font-body: Roboto, Arial, sans-serif;
	--vx-grad: linear-gradient(135deg, var(--vx-red-hi) 0%, var(--vx-red) 55%, var(--vx-red-deep) 100%);
	--vx-card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 26px -18px rgba(0, 0, 0, .18);
	--vx-card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 36px -18px rgba(243, 5, 44, .35);
}

@keyframes vx-shine {
	0%, 55% { transform: translateX(-160%) skewX(-20deg); }
	100% { transform: translateX(360%) skewX(-20deg); }
}

@keyframes vx-ring {
	0% { transform: scale(.85); opacity: .7; }
	80%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes vx-flow {
	from { background-position: 0 0; }
	to { background-position: 200% 0; }
}

@keyframes vx-pop {
	from { opacity: 0; transform: translateY(10px) scale(.9); }
	to { opacity: 1; transform: none; }
}

/* ===================== NỀN, CHỮ, KHUNG ===================== */

html body:not(.dark-mode) {
	--wp--preset--color--links: var(--vx-red);
	--wp--preset--color--link-headings: var(--vx-ink);
	background-color: var(--vx-bg);
	color: var(--vx-text);
	font-family: var(--vx-font-body);
}

body :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--vx-font-head);
	color: var(--vx-ink);
	letter-spacing: -.2px;
}

.has-sidebar .site-wrapper,
.site-wrapper,
.site-footer .footer-content { max-width: 1200px !important; }

.site-wrapper { padding-left: 15px !important; padding-right: 15px !important; }

/* Thẻ nội dung trắng như vietteltelecom (trang term chưa có thẻ) */
#primary > .prespa-post-container:not(:has(.hentry)),
.hentry {
	margin-top: 1.5rem;
	padding: 24px 28px !important;
	border: 1px solid #efefef;
	border-radius: var(--vx-radius) !important;
	background: #fff;
	box-shadow: var(--vx-card-shadow) !important;
}

/* ===================== CHỮ TRONG NỘI DUNG ===================== */

:where(#primary) :is(h1.page-title, h1.entry-title, h1) {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.35;
}

:where(#primary) h2:not([class]) {
	position: relative;
	margin: 30px 0 12px;
	padding-left: 14px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

:where(#primary) h2:not([class])::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	bottom: .2em;
	width: 4px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--vx-red-hi), var(--vx-red-deep));
	box-shadow: 0 0 10px rgba(243, 5, 44, .45);
}

/* Nội dung cũ tô đỏ tiêu đề bằng <span style="color:…"> → tiêu đề thống nhất màu tối (đoạn văn giữ nguyên) */
:where(#primary) :is(h1, h2, h3, h4) :is(span, strong, b, em)[style*="color"] { color: inherit !important; }

:where(#primary) h3:not([class]) { margin: 24px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.45; }
:where(#primary) h4:not([class]) { margin: 20px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.5; }

:where(#primary) :is(p, li) { font-size: 16px; line-height: 1.65; }
:where(#primary) :is(p, li) a:not([class]) { color: var(--vx-red); font-weight: 500; text-decoration: none; }
:where(#primary) :is(p, li) a:not([class]):focus-visible { text-decoration: underline; }

/* Trang chủ (CSS riêng của plugin dựng trang: Arial, H2 đỏ 34px !important) → đồng bộ hệ Viettel */
.vhcmc-homepage {
	--vh-red: var(--vx-red);
	--vh-red-dark: var(--vx-red-deep);
	--vh-text: var(--vx-text);
	--vh-border: #f3d6dc;
	--vh-soft: #fff6f7;
	font-family: var(--vx-font-body) !important;
	color: var(--vx-text);
}

body .vhcmc-homepage h2 {
	position: relative;
	padding: 0 0 0 14px !important;
	border-bottom: 0 !important;
	color: var(--vx-ink) !important;
	font-family: var(--vx-font-head);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.35;
}

body .vhcmc-homepage h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	bottom: .2em;
	width: 4px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--vx-red-hi), var(--vx-red-deep));
	box-shadow: 0 0 10px rgba(243, 5, 44, .45);
}

body .vhcmc-homepage h3 { color: var(--vx-ink); font-family: var(--vx-font-head); font-size: 20px; font-weight: 700; }
body .vhcmc-homepage h4 { color: var(--vx-ink); font-family: var(--vx-font-head); font-size: 18px; font-weight: 700; }
body .vhcmc-homepage .vhcmc-faq summary { color: var(--vx-ink); }

/* Bảng giá plugin cnd16 (Arial) → cùng bộ font */
body .cnd16-pt-v1 { font-family: var(--vx-font-body) !important; }
body .cnd16-pt-v1 .cnd16-pt__title { font-family: var(--vx-font-head) !important; }

.breadcrumbs, .breadcrumb-list { color: rgba(0, 0, 0, .55); font-size: 14px !important; }
.breadcrumb-list a { color: var(--vx-muted) !important; }

/* Theme cha đặt margin-bottom âm (-1rem) cho breadcrumb của trang (.page) → H1 đè lên "Home / …" (Liên hệ, Danh sách tác giả…) */
body .breadcrumbs { margin-bottom: 8px; }
body.page .entry-header .breadcrumbs { margin-top: 30px; margin-bottom: 8px; }

/* Tiêu đề bài trong danh sách (chuyên mục, tác giả) là <p> thay cho H2 trùng H1 của bài – giữ nguyên kiểu chữ H2 cũ */
#primary .prespa-post-inner .entry-header p.entry-title {
	clear: both;
	margin: 0 0 .75rem;
	color: var(--vx-ink);
	font-family: var(--vx-font-head);
	font-size: var(--wp--custom--typography--font-size--gigantic);
	font-weight: 700;
	line-height: var(--wp--custom--typography--line-height--medium);
	letter-spacing: -.2px;
	word-break: break-word;
}

#primary .prespa-post-inner .entry-header p.entry-title a { color: var(--vx-ink); font-weight: 700; }

.button-index {
	border-radius: 22px !important;
	background: var(--vx-grad) !important;
	box-shadow: 0 10px 20px -12px rgba(243, 5, 44, .9);
}

/* ===================== HEADER: thanh ngôn ngữ (nền sáng) ===================== */

.vhcmc-header .vhcmc-header-language-row {
	background: var(--vx-bg) !important;
	box-shadow: inset 0 -1px 0 var(--vx-line);
}

.vhcmc-header .vhcmc-language-link {
	border: 1px solid #e3e3e3 !important;
	background: #fff !important;
	box-shadow: none !important;
}

.vhcmc-header .vhcmc-language-link.is-active {
	border-color: var(--vx-red) !important;
	box-shadow: 0 0 0 2px rgba(243, 5, 44, .16) !important;
}

/* ===================== HEADER: logo + tìm kiếm + hotline ===================== */

.vhcmc-header-brand-row {
	background: #fff;
	box-shadow: inset 0 -1px 0 var(--vx-line); /* không dùng border: giữ nguyên chiều cao header */
}

.vhcmc-site-branding .custom-logo-link { transition: transform .25s ease; }

.vhcmc-header-search .search-form {
	display: flex;
	align-items: center;
	padding: 1px;
	border-radius: 999px;
	background: #e6e6e6;
	transition: box-shadow .25s ease;
}

.vhcmc-header-search .search-form:focus-within {
	padding: 2px;
	background: linear-gradient(110deg, var(--vx-red), #ff8aa1 45%, var(--vx-red)) 0 0 / 200% 100%;
	box-shadow: 0 0 0 4px rgba(243, 5, 44, .1);
	animation: vx-flow 2.4s linear infinite;
}

.vhcmc-header-search label { flex: 1 1 auto; min-width: 0; }
.vhcmc-header-search label.screen-reader-text { width: 1px !important; flex: 0 0 auto; }

.vhcmc-header-search .search-field,
.vhcmc-header-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	padding: 0 54px 0 20px;
	border: 0 !important;
	border-radius: 999px;
	background: #f4f4f4 !important;
	color: var(--vx-ink);
	font-family: var(--vx-font-body);
	font-size: 14px;
	box-shadow: none !important;
}

.vhcmc-header-search .search-form:focus-within input[type="search"] { background: #fff !important; }
.vhcmc-header-search input[type="search"]::placeholder { color: #8a8f93; opacity: 1; }

.vhcmc-header-search .search-form button[type="submit"] {
	position: absolute;
	top: 5px;
	right: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	min-width: 36px;
	height: 36px;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--vx-grad) !important;
	color: #fff !important;
	box-shadow: 0 6px 14px -6px rgba(243, 5, 44, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

.vhcmc-header-search .search-form button[type="submit"]::before { content: none !important; }
.vhcmc-header-search .search-form button[type="submit"] svg { width: 18px; height: 18px; stroke: currentColor; color: #fff; }
.vhcmc-header-search .search-form button[type="submit"] i { display: inline-flex; }

/* Nút hotline (markup trong header.php của Batch 7) – kiểu nút "Đăng nhập" đỏ của Viettel */
.vhcmc-brand-inner:has(.vhcmc-header-hotline) { grid-template-columns: auto minmax(260px, 1fr) auto; }

.vhcmc-header-hotline {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 4px 20px 4px 5px;
	overflow: hidden;
	border-radius: 22px;
	background: var(--vx-grad);
	color: #fff !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 10px 22px -12px rgba(243, 5, 44, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
	transition: transform .2s ease, box-shadow .2s ease;
}

.vhcmc-header-hotline::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 38%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-160%) skewX(-20deg);
	animation: vx-shine 4.5s ease-in-out infinite;
	pointer-events: none;
}

.vhcmc-header-hotline__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
}

.vhcmc-header-hotline__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .7);
	animation: vx-ring 2.2s ease-out infinite;
}

.vhcmc-header-hotline__icon svg { width: 17px; height: 17px; fill: #fff; }
.vhcmc-header-hotline__text { display: flex; flex-direction: column; line-height: 1.1; }
.vhcmc-header-hotline__text small { font-size: 11px; font-weight: 500; letter-spacing: .2px; opacity: .92; }
.vhcmc-header-hotline__text strong { font-size: 16px; font-weight: 700; letter-spacing: .3px; }

/* ===================== HEADER: menu ngang (nền trắng, chữ tối) ===================== */

.vhcmc-header .vhcmc-header-menu-row {
	background: #fff !important;
	box-shadow: inset 0 1px 0 var(--vx-line), 0 8px 18px -14px rgba(0, 0, 0, .35);
}

.vhcmc-menu-inner { position: relative; z-index: 1; }

.vhcmc-header .vhcmc-home-menu-link {
	color: var(--vx-red) !important;
	transition: background-color .2s ease, transform .2s ease;
}

.vhcmc-header .vhcmc-primary-menu > li > a {
	position: relative;
	color: var(--vx-ink) !important;
	font-family: var(--vx-font-body) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: -.2px;
	text-transform: none !important;
	transition: color .2s ease, background-color .2s ease;
}

.vhcmc-header .vhcmc-primary-menu > li.current-menu-item > a,
.vhcmc-header .vhcmc-primary-menu > li.current-menu-ancestor > a { color: var(--vx-red) !important; background: transparent !important; }

@media (min-width: 851px) {
	.vhcmc-header .vhcmc-home-menu-link {
		width: 40px !important;
		height: 34px !important;
		margin-right: auto;
		border-radius: 10px !important;
		background: var(--vx-soft);
	}

	.vhcmc-header .vhcmc-primary-menu > li > a::after {
		content: "";
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 5px;
		height: 3px;
		border-radius: 3px;
		background: var(--vx-grad);
		box-shadow: 0 0 10px rgba(243, 5, 44, .7);
		transform: scaleX(0);
		transition: transform .28s ease;
	}

	.vhcmc-header .vhcmc-primary-menu > li > a:focus-visible::after,
	.vhcmc-header .vhcmc-primary-menu > li.current-menu-item > a::after,
	.vhcmc-header .vhcmc-primary-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
}

/* ===================== SIDEBAR ===================== */

#secondary > section {
	position: relative;
	overflow: hidden;
	border: 1px solid #efefef;
	border-radius: var(--vx-radius) !important;
	background: #fff;
	box-shadow: var(--vx-card-shadow) !important;
	transition: transform .25s ease, box-shadow .25s ease;
}

#secondary > section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--vx-red-deep), var(--vx-red-hi), var(--vx-red)) 0 0 / 200% 100%;
	animation: vx-flow 6s linear infinite;
}

#secondary .heading {
	position: relative;
	margin: .9rem 0 1rem !important;
	padding-bottom: 12px;
	color: var(--vx-ink) !important;
	font-family: var(--vx-font-head);
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: .3px;
}

#secondary .heading::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--vx-grad);
	box-shadow: 0 0 10px rgba(243, 5, 44, .55);
	transform: translateX(-50%);
}

#secondary .textwidget img { border-radius: 8px; }
#secondary .textwidget a:has(> img) { display: block; overflow: hidden; border-radius: 8px; }
#secondary .textwidget a:has(> img) img { transition: transform .5s ease; }

/* Khối hotline (widget "Liên hệ tư vấn / lắp đặt") */
.vhcmc-hotline-box { display: grid; gap: 10px; margin: 14px 0 0 !important; padding: 0 !important; list-style: none; }
.vhcmc-hotline-box > li { margin: 0 !important; padding: 0; }

.vhcmc-hotline-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	overflow: hidden;
	border-radius: 23px;
	background: var(--vx-grad);
	color: #fff !important;
	font-family: var(--vx-font-body);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .5px;
	text-decoration: none !important;
	box-shadow: 0 12px 22px -12px rgba(243, 5, 44, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
	transition: transform .2s ease, box-shadow .2s ease;
}

.vhcmc-hotline-btn::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.7 9.7 3l2 5.1-1.9 1.2c.9 1.8 2.3 3.2 4.1 4.1l1.2-1.9 5.1 2-.7 3.1c-.2.8-.9 1.4-1.8 1.4C10.7 18 6 13.3 6 5.5c0-.9.6-1.6 1.4-1.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.7 9.7 3l2 5.1-1.9 1.2c.9 1.8 2.3 3.2 4.1 4.1l1.2-1.9 5.1 2-.7 3.1c-.2.8-.9 1.4-1.8 1.4C10.7 18 6 13.3 6 5.5c0-.9.6-1.6 1.4-1.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vhcmc-hotline-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 35%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
	transform: translateX(-160%) skewX(-20deg);
	animation: vx-shine 3.6s ease-in-out infinite;
	pointer-events: none;
}

.vhcmc-hotline-box > li + li .vhcmc-hotline-btn::after { animation-delay: .6s; }

.vhcmc-hotline-btn.is-alt {
	border: 2px solid var(--vx-red);
	background: #fff;
	color: var(--vx-red) !important;
	box-shadow: 0 10px 20px -14px rgba(243, 5, 44, .7);
}

.vhcmc-hotline-btn.is-alt::after { background: linear-gradient(100deg, transparent, rgba(243, 5, 44, .14), transparent); }

.vhcmc-hotline-note {
	margin: 4px 0 -2px !important;
	color: var(--vx-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .4px;
	text-align: center;
	text-transform: uppercase;
}

/* Danh sách quận/huyện, tỉnh thành */
#secondary .list-cat { margin: 0; padding: 0; list-style: none; }

#secondary .list-cat:has(> li:nth-child(16)) {
	max-height: 460px;
	overflow-y: auto;
	padding-right: 4px;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #f5a3b1 transparent;
}

#secondary .list-cat li { margin: 0 !important; border-bottom: 1px solid #f2f2f2; }
#secondary .list-cat li:last-child { border-bottom: 0; }

#secondary .list-cat li a {
	position: relative;
	display: block;
	padding: 9px 10px 9px 24px;
	border-radius: 8px;
	color: var(--vx-ink) !important;
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

#secondary .list-cat li a::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-top: 2px solid var(--vx-red);
	border-right: 2px solid var(--vx-red);
	transform: translateY(-50%) rotate(45deg);
}

#secondary .list-cat li a.active { background: var(--vx-soft); color: var(--vx-red) !important; font-weight: 600; }

/* Bài viết mới / xem nhiều */
#secondary .list-news .slider-item {
	align-items: center;
	padding: 8px;
	margin-bottom: 8px;
	border-radius: 8px;
	transition: background-color .2s ease, transform .2s ease;
}

#secondary .list-news .slider-item img { border-radius: 8px; }
#secondary .list-news .slider-item .box-right .entry-title a { color: var(--vx-ink) !important; font-weight: 600 !important; }

/* ===================== FOOTER (nền sáng như vietteltelecom) ===================== */

.site-footer {
	position: relative;
	overflow: hidden;
	margin-top: 48px;
	padding: 0 !important;
	border-top: 1px solid var(--vx-line);
	background: #fff !important;
	color: var(--vx-text) !important;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--vx-red-deep), var(--vx-red-hi), var(--vx-red), var(--vx-red-hi), var(--vx-red-deep)) 0 0 / 200% 100%;
	animation: vx-flow 9s linear infinite;
}

.site-footer .footer-content { padding: 48px 15px 0; }

.site-footer .widget-area {
	display: grid !important;
	grid-template-columns: 1.35fr 1fr 1fr 1fr;
	gap: 36px;
}

.site-footer .widget-column { width: auto !important; padding: 0 !important; }
.site-footer .widget-column section + section { margin-top: 26px; }

.site-footer .heading {
	position: relative;
	margin: 0 0 16px !important;
	padding-bottom: 12px;
	color: var(--vx-ink) !important;
	font-family: var(--vx-font-head);
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: .2px;
}

.site-footer .heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 3px;
	border-radius: 3px;
	background: var(--vx-grad);
	box-shadow: 0 0 10px rgba(243, 5, 44, .55);
}

.site-footer .menu { margin: 0; padding: 0; list-style: none; }
.site-footer .menu li { padding: 0 !important; }

.site-footer .menu a {
	position: relative;
	display: inline-block;
	padding: 6px 0 6px 16px;
	color: #4a4d50 !important;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none !important;
	transition: color .2s ease, transform .2s ease;
}

.site-footer .menu a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	border-top: 2px solid var(--vx-red);
	border-right: 2px solid var(--vx-red);
	transform: translateY(-50%) rotate(45deg);
}

.site-footer .menu a:focus-visible { color: var(--vx-red) !important; outline: 2px solid rgba(243, 5, 44, .4); outline-offset: 2px; border-radius: 4px; }

.site-footer p,
.site-footer .botLink,
.site-footer .vhcmc-footer-about { color: var(--vx-text) !important; font-size: 14px; line-height: 1.7; }

.site-footer .textwidget a { color: var(--vx-red) !important; font-weight: 600; text-decoration: none; }

.vhcmc-footer-logo { display: inline-flex; margin-bottom: 14px; }
.vhcmc-footer-logo img { display: block; width: 150px; height: auto; }

.vhcmc-footer-contact { margin: 16px 0 0; padding: 0; list-style: none; }

.vhcmc-footer-contact li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 30px;
	color: var(--vx-text);
	font-size: 14px;
	line-height: 1.6;
}

.vhcmc-footer-contact li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--vx-grad);
	box-shadow: 0 4px 10px -4px rgba(243, 5, 44, .9);
}

.vhcmc-footer-contact li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 7px;
	width: 10px;
	height: 10px;
	background: #fff;
	-webkit-mask: var(--vx-icon) center / contain no-repeat;
	mask: var(--vx-icon) center / contain no-repeat;
}

.vhcmc-footer-contact .is-phone { --vx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.7 9.7 3l2 5.1-1.9 1.2c.9 1.8 2.3 3.2 4.1 4.1l1.2-1.9 5.1 2-.7 3.1c-.2.8-.9 1.4-1.8 1.4C10.7 18 6 13.3 6 5.5c0-.9.6-1.6 1.4-1.8Z'/%3E%3C/svg%3E"); }
.vhcmc-footer-contact .is-mail { --vx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2V5Zm2 2v.5l8 5 8-5V7H4Zm16 2.9-8 5-8-5V17h16V9.9Z'/%3E%3C/svg%3E"); }
.vhcmc-footer-contact .is-address { --vx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E"); }

.site-footer .site-info {
	margin-top: 40px;
	padding: 18px 0 22px !important;
	border-top: 1px solid var(--vx-line);
	color: var(--vx-muted);
	font-size: 13px !important;
}

.site-footer .site-info p { margin: 0; color: var(--vx-muted) !important; font-size: 13px; line-height: 1.8; }

/* ===================== Nút TOP (button.back-to-top của theme, JS theme bật khi cuộn > 100px) ===================== */

body .back-to-top {
	right: 22px !important;
	bottom: 22px !important;
	z-index: 10079 !important;
	width: 50px !important;
	height: 50px !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--vx-grad) !important;
	color: #fff;
	line-height: 0;
	box-shadow: 0 12px 24px -10px rgba(243, 5, 44, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
	cursor: pointer;
	animation: vx-pop .3s ease both;
	transition: transform .2s ease, box-shadow .2s ease;
}

body .back-to-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-160%) skewX(-20deg);
	animation: vx-shine 4s ease-in-out infinite;
	pointer-events: none;
}

body .back-to-top svg {
	position: absolute;
	top: 9px;
	left: 50%;
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	transform: translateX(-50%);
	stroke: #fff !important;
}

body .back-to-top svg polyline { stroke: #fff; }

body .back-to-top::after {
	content: "TOP";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 9px;
	color: #fff;
	font: 800 10px/1 Arial, Helvetica, sans-serif;
	letter-spacing: 1.2px;
	text-align: center;
}

body .back-to-top:focus-visible { outline: 3px solid rgba(243, 5, 44, .35); outline-offset: 3px; }

/* Icon Zalo của plugin liên hệ (desktop) đứng trên nút TOP */
.lienhecta .lien-he-zalo { bottom: 84px !important; }

/* Nút gọi nổi của plugin liên hệ: cam/đen → đỏ Viettel, giữ vòng nhấp nháy + rung của plugin */
.lienhecta .call-now-button div a .quick-alo-phone-img-circle { background-color: var(--vx-red) !important; }
.lienhecta .quick-alo-ph-circle-fill.active { background-color: rgba(243, 5, 44, .35) !important; }
.lienhecta .quick-alo-ph-circle.active { border-color: rgba(243, 5, 44, .45) !important; }
.lienhecta .call-now-button div p { background: var(--vx-grad) !important; box-shadow: 0 10px 20px -12px rgba(243, 5, 44, .9); }

/* ===================== Hiệu ứng hover (chỉ thiết bị có chuột) ===================== */

@media (hover: hover) {
	.vhcmc-site-branding .custom-logo-link:hover { transform: translateY(-1px) scale(1.02); }
	.vhcmc-header-search .search-form button[type="submit"]:hover { transform: scale(1.08) rotate(-8deg); box-shadow: 0 8px 18px -6px rgba(243, 5, 44, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
	.vhcmc-header-hotline:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(243, 5, 44, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
	.vhcmc-header .vhcmc-home-menu-link:hover { background: #ffe1e7 !important; transform: translateY(-1px); }
	.vhcmc-header .vhcmc-primary-menu > li > a:hover { color: var(--vx-red) !important; background: transparent !important; }

	@media (min-width: 851px) {
		.vhcmc-header .vhcmc-primary-menu > li > a:hover::after { transform: scaleX(1); }
	}

	#secondary > section:hover { transform: translateY(-3px); box-shadow: var(--vx-card-shadow-hover) !important; }
	#secondary .textwidget a:has(> img):hover img { transform: scale(1.04); }
	.vhcmc-hotline-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(243, 5, 44, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
	.vhcmc-hotline-btn.is-alt:hover { background: var(--vx-soft); }
	#secondary .list-cat li a:hover { background: var(--vx-soft); color: var(--vx-red) !important; transform: translateX(3px); }
	#secondary .list-news .slider-item:hover { background: var(--vx-soft); transform: translateX(3px); }
	#secondary .list-news .slider-item:hover .entry-title a { color: var(--vx-red) !important; }
	:where(#primary) :is(p, li) a:not([class]):hover { text-decoration: underline; }
	.site-footer .menu a:hover { color: var(--vx-red) !important; transform: translateX(4px); }
	.site-footer .textwidget a:hover { color: var(--vx-red-deep) !important; }
	body .back-to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -10px rgba(243, 5, 44, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
}

/* ===================== Responsive ===================== */

@media (max-width: 1080px) {
	.vhcmc-header-hotline__text small { display: none; }
	.site-footer .widget-area { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 850px) {
	/* Cỡ chữ mobile theo vietteltelecom.vn (chữ 14–15px, H2 22px) – nội dung dài nên giữ 15px cho dễ đọc */
	:where(#primary) :is(h1.page-title, h1.entry-title, h1) { font-size: 22px; line-height: 1.35; }
	:where(#primary) h2:not([class]) { margin-top: 24px; padding-left: 12px; font-size: 19px; }
	:where(#primary) h3:not([class]) { font-size: 16.5px; }
	:where(#primary) h4:not([class]) { font-size: 15.5px; }
	:where(#primary) :is(p, li) { font-size: 15px; line-height: 1.6; }
	body .vhcmc-homepage h2 { padding-left: 12px !important; font-size: 20px; }
	body .vhcmc-homepage h3 { font-size: 17px; }
	body .vhcmc-homepage h4 { font-size: 16px; }

	.site-wrapper { padding-left: 10px !important; padding-right: 10px !important; }

	#primary > .prespa-post-container:not(:has(.hentry)),
	.hentry { margin-top: 1rem; padding: 16px 14px !important; }

	.vhcmc-header-hotline { display: none !important; }
	.vhcmc-brand-inner:has(.vhcmc-header-hotline) { grid-template-columns: minmax(112px, auto) minmax(0, 1fr); }
	.vhcmc-header-search .search-field,
	.vhcmc-header-search input[type="search"] { height: 38px; min-height: 38px; padding: 0 44px 0 14px; font-size: 13px; }
	.vhcmc-header-search .search-form button[type="submit"] { top: 4px; right: 4px; width: 30px; min-width: 30px; height: 30px; }
	.vhcmc-header-search .search-form button[type="submit"] svg { width: 15px; height: 15px; }

	/* Menu ngang cuộn: chữ tối 14px như menu mobile của Viettel */
	.vhcmc-header .vhcmc-primary-menu > li > a { font-size: 14px !important; padding: 0 12px !important; }
	.vhcmc-header .vhcmc-primary-menu > li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--vx-red); }

	/* Thanh liên hệ mobile (cao 70px) cố định đáy: chỉ chừa chỗ trong footer, không cộng thêm margin footer + padding body */
	html body { padding-bottom: 0 !important; }
	.site-footer { margin-bottom: 0 !important; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
	.site-footer .footer-content { padding: 34px 12px 0; }
	.site-footer .widget-area { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
	.site-footer .footer-widget-1 { grid-column: 1 / -1; }
	.site-footer .heading { margin-bottom: 10px !important; padding-bottom: 10px; font-size: 14px !important; }
	.site-footer .menu a { padding: 5px 0 5px 14px; font-size: 14px; }
	.site-footer .site-info { margin-top: 26px; padding: 14px 0 16px !important; }
	.site-footer .site-info p { font-size: 12px; line-height: 1.7; }

	/* Gọi/Zalo đã có trên thanh liên hệ mobile → ẩn bộ icon trùng của plugin (hiện khi cửa sổ desktop hẹp) */
	.lienhecta { display: none !important; }

	/* Nút TOP: góc trái, phía trên thanh liên hệ (bên phải là nút chat) */
	body .back-to-top {
		left: 12px !important;
		right: auto !important;
		bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
		width: 46px !important;
		height: 46px !important;
	}
	body .back-to-top svg { top: 8px; width: 16px; height: 16px; }
	body .back-to-top::after { bottom: 8px; font-size: 9px; }

	/* Sidebar gọn: thẻ sát nhau, danh sách ngắn chia 2 cột */
	#secondary > section { margin: 1.25rem 0 !important; }
	#secondary .list-cat:not(:has(> li:nth-child(16))) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
	#secondary .list-cat li a { padding: 8px 6px 8px 20px; font-size: 14px; }
	#secondary .list-cat li a::before { left: 6px; }

	/* Placeholder ô tìm kiếm (tiếng Việt từ searchform.php) hiện cỡ nhỏ thay vì ẩn */
	.vhcmc-header-search input[type="search"]::placeholder { font-size: 12px !important; }
}

@media (max-width: 340px) {
	.site-footer .widget-area { grid-template-columns: 1fr; }
	#secondary .list-cat:not(:has(> li:nth-child(16))) { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	#secondary .list-cat:has(> li:nth-child(16)) { max-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
	.vhcmc-header-hotline::after,
	.vhcmc-header-hotline__icon::before,
	.vhcmc-hotline-btn::after,
	.site-footer::before,
	#secondary > section::before,
	body .back-to-top,
	body .back-to-top::before,
	.vhcmc-header-search .search-form:focus-within { animation: none !important; }

	.vhcmc-header-search .search-form,
	.vhcmc-header-search .search-form button[type="submit"],
	.vhcmc-header-hotline,
	#secondary > section,
	#secondary .list-cat li a,
	#secondary .list-news .slider-item,
	.vhcmc-hotline-btn,
	.site-footer .menu a { transition: none !important; }
}

/* ===================== Trang tác giả (author.php) ===================== */

.vhcmc-author-card {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	margin-top: 1.5rem;
	padding: 24px 28px;
	border: 1px solid #efefef;
	border-radius: var(--vx-radius);
	background: #fff;
	box-shadow: var(--vx-card-shadow);
}

.vhcmc-author-card__avatar {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--vx-red);
}

.vhcmc-author-card__body { min-width: 0; }

#primary .vhcmc-author-card__label {
	margin: 0 0 4px;
	color: var(--vx-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
}

#primary .vhcmc-author-card__bio p { margin: 0 0 8px; }

#primary .vhcmc-author-card__stats { margin: 6px 0 0; color: var(--vx-muted); font-size: 14px; font-weight: 600; }

#primary .vhcmc-author-card__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

#primary .vhcmc-author-card__social a {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--vx-soft);
	color: var(--vx-red);
	font-size: 13px;
	font-weight: 600;
}

#primary .vhcmc-author-section-title {
	margin: 2rem 0 0;
	color: var(--vx-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

#primary .vhcmc-author-empty {
	margin-top: 1.5rem;
	padding: 18px 22px;
	border-radius: var(--vx-radius);
	background: #fff;
	color: var(--vx-muted);
}

.vhcmc-author-areas {
	margin-top: 2rem;
	padding: 24px 28px;
	border: 1px solid #efefef;
	border-radius: var(--vx-radius);
	background: #fff;
	box-shadow: var(--vx-card-shadow);
}

#primary .vhcmc-author-areas .vhcmc-author-section-title { margin-top: 0; }

.vhcmc-author-areas__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 4px 18px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

#primary .vhcmc-author-areas__list li { margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
#primary .vhcmc-author-areas__list a { display: block; padding: 5px 0; color: var(--vx-ink); font-weight: 500; }

@media (hover: hover) {
	#primary .vhcmc-author-areas__list a:hover { color: var(--vx-red); }
}

@media (max-width: 850px) {
	.vhcmc-author-card { flex-direction: column; gap: 14px; margin-top: 1rem; padding: 16px 14px; }
	.vhcmc-author-card__avatar { flex-basis: auto; width: 80px; height: 80px; }
	#primary .vhcmc-author-section-title { margin-top: 1.5rem; font-size: 19px; }
	.vhcmc-author-areas { padding: 16px 14px; }
	.vhcmc-author-areas__list { grid-template-columns: 1fr 1fr; gap: 2px 12px; }
	#primary .vhcmc-author-areas__list li { font-size: 14px; }
}
