/* =========================================================================
   XV Site UI — làm lại giao diện theo bộ nhận diện XinhVui
   ====================================================================== */

:root {
	--xv-red: #e12525;
	--xv-red-dark: #a81414;
	--xv-red-deep: #8d0f0f;
	--xv-ink: #1f2429;
	--xv-muted: #6b7680;
	--xv-line: #e8ecef;
	--xv-bg: #ffffff;
	--xv-bg-soft: #f6f8fa;
	--xv-card: #ffffff;
	--xv-radius: 14px;
	--xv-shadow: 0 6px 22px rgba(20, 35, 50, .08);
}

.xvui-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* =========================================================================
   HEADER
   ====================================================================== */

/* Theme đang để header nền đỏ đậm; thiết kế mới dùng nền trắng, chỉ thanh
   menu bên dưới mới màu đỏ. */
.header-main {
	background: var(--xv-bg) !important;
	border-bottom: 1px solid var(--xv-line);
}

.header-main .header-inner,
.header-main .flex-row {
	background: transparent !important;
}

.header-main,
.header-main .flex-row.container {
	color: var(--xv-ink);
}

/* Logo 90px trong header 60px nên nó tràn lên thanh trên và đè xuống menu.
   Nới header rồi ghìm logo lại cho vừa. */
.header-main,
.header-main .header-inner {
	min-height: 92px !important;
}

.header-main .flex-col.logo {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	height: auto !important;
	margin-right: 26px;
	padding: 4px 0;
}

.header-main img.header_logo,
.header-main img.header-logo,
.header-main .flex-col.logo img {
	max-height: 50px !important;
	height: auto !important;
	width: auto !important;
	margin: 0 !important;
}

/* Logo là link block nên vẫn giữ chiều cao gốc nếu không ghìm lại. */
.header-main .flex-col.logo a,
.header-main .flex-col.logo #logo {
	display: flex !important;
	align-items: center;
	height: auto !important;
	line-height: 1 !important;
	margin: 0 !important;
}

.xvui-tagline {
	display: block;
	margin-top: 2px;
	color: var(--xv-muted);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
}

/* Ô tìm kiếm */
.header-main form.searchform,
.header-main .searchform-wrapper {
	width: 100%;
}

.header-main .searchform .flex-row {
	border: 1px solid var(--xv-line);
	border-radius: 999px;
	background: var(--xv-bg-soft);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.header-main .searchform .flex-row:focus-within {
	border-color: var(--xv-red);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(225, 37, 37, .12);
}

.header-main .searchform input[type="search"],
.header-main .searchform input.search-field {
	height: 46px;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding-left: 20px;
	font-size: 15px;
}

.header-main .searchform button[type="submit"] {
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 1px 2px 1px 0;
	padding: 0;
	border-radius: 50%;
	background: var(--xv-red);
	color: #fff;
	box-shadow: 0 2px 8px rgba(225, 37, 37, .35);
}

/* Nút đăng nhập / đăng ký / nền tối */
.xvui-actions {
	display: flex !important;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding-left: 18px;
}

.xvui-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: all .15s ease;
}

.xvui-btn-ghost {
	border: 1px solid var(--xv-line);
	background: #fff;
	color: var(--xv-ink) !important;
}

.xvui-btn-ghost:hover {
	border-color: var(--xv-red);
	color: var(--xv-red) !important;
}

.xvui-btn-solid {
	background: var(--xv-red);
	color: #fff !important;
	box-shadow: 0 3px 12px rgba(225, 37, 37, .35);
}

.xvui-btn-solid:hover {
	background: var(--xv-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(225, 37, 37, .45);
}

.xvui-theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--xv-line);
	border-radius: 50%;
	background: #fff;
	color: var(--xv-ink);
	cursor: pointer;
	transition: all .15s ease;
}

.xvui-theme-btn:hover {
	border-color: var(--xv-red);
	color: var(--xv-red);
}

/* =========================================================================
   THANH ĐIỀU HƯỚNG
   ====================================================================== */

.header-bottom.wide-nav {
	background: linear-gradient(180deg, var(--xv-red) 0%, #cf1d1d 100%) !important;
	box-shadow: 0 3px 12px rgba(168, 20, 20, .25);
	min-height: 54px;
}

.header-bottom .header-nav > li.menu-item > a {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 40px;
	margin: 0 2px;
	padding: 0 15px;
	border-radius: 10px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1px;
	text-transform: none;
	transition: background .15s ease, color .15s ease;
}

.header-bottom .header-nav > li.menu-item > a:hover {
	background: rgba(255, 255, 255, .16);
}

/* Mục đang xem: viên bo trắng, chữ đỏ — giống thiết kế */
.header-bottom .header-nav > li.current-menu-item > a,
.header-bottom .header-nav > li.current-menu-parent > a,
.header-bottom .header-nav > li.current-menu-ancestor > a {
	background: #fff;
	color: var(--xv-red) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.xvui-nav-ic {
	display: inline-flex;
	align-items: center;
	opacity: .95;
}

.header-bottom .header-nav > li.menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .8;
}

/* =========================================================================
   KHỐI DANH MỤC TRANG CHỦ
   ====================================================================== */

.xvui-hero {
	padding: 18px 0 4px;
	background: var(--xv-bg);
}

.xvui-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.xvui-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--xv-radius);
	overflow: hidden;
	background: var(--xv-bg-soft);
	box-shadow: var(--xv-shadow);
}

.xvui-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.xvui-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
}

.xvui-tile:hover img {
	transform: scale(1.06);
}

.xvui-tile-chip {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	color: var(--xv-ink);
	font-size: 13.5px;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
	backdrop-filter: blur(4px);
}

.xvui-tile-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--xv-red);
	color: #fff;
}

/* Tên tag trong CSDL viết thường hết. */
.xvui-tile-name {
	text-transform: capitalize;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xvui-tile-count {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(225, 37, 37, .1);
	color: var(--xv-red);
	font-size: 11.5px;
	font-weight: 700;
}

.xvui-tile-ic.xvui-ic-globe { background: #2f7ed8; }
.xvui-tile-ic.xvui-ic-camera { background: #22a06b; }
.xvui-tile-ic.xvui-ic-art { background: #8a4fd8; }
.xvui-tile-ic.xvui-ic-fire { background: #f0631f; }

/* Hàng thẻ chủ đề */
.xvui-stats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-top: 16px;
}

.xvui-stat {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 14px;
	border: 1px solid var(--xv-line);
	border-radius: var(--xv-radius);
	background: var(--xv-card);
	color: var(--xv-ink) !important;
	transition: all .15s ease;
}

.xvui-stat:hover {
	border-color: transparent;
	box-shadow: var(--xv-shadow);
	transform: translateY(-2px);
}

.xvui-stat-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.xvui-stat-0 .xvui-stat-ic { background: #ffe9f0; color: #e0407c; }
.xvui-stat-1 .xvui-stat-ic { background: #e6f7ee; color: #1f9d63; }
.xvui-stat-2 .xvui-stat-ic { background: #f0e9fd; color: #7b45cf; }
.xvui-stat-3 .xvui-stat-ic { background: #ffeee2; color: #ef6a20; }
.xvui-stat-4 .xvui-stat-ic { background: #e7f0fd; color: #2f7ed8; }

.xvui-stat-txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.xvui-stat-txt strong {
	font-size: 14px;
	font-weight: 700;
	/* Tên tag trong CSDL viết thường hết — viết hoa đầu từ cho cân với thiết kế. */
	text-transform: capitalize;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xvui-stat-txt em {
	color: var(--xv-muted);
	font-size: 12.5px;
	font-style: normal;
}

.xvui-stat-all {
	justify-content: space-between;
	border-style: dashed;
	color: var(--xv-red) !important;
}

.xvui-stat-all strong { color: var(--xv-red); }

/* =========================================================================
   FOOTER — dựng theo mockup, gắn vào markup Flatsome có sẵn.
   Không đổi nội dung: mọi liên kết, số liệu, thông tin công ty giữ nguyên
   do WordPress sinh ra. Ở đây chỉ có trình bày.

   Bản đồ selector:
     .footer-section1  → 3 cột liên kết SEO
     .footer-section2  → thanh mạng xã hội nổi
     .footer-section3  → dải đỏ thông tin đơn vị
     .absolute-footer  → thanh copyright
     .homepage-top-tags→ khối chủ đề nổi bật
   ====================================================================== */

.footer-wrapper {
	--xvf-red: #d71920;
	--xvf-red-dark: #ad1016;
	--xvf-red-deep: #980d12;
	--xvf-text: #171717;
	--xvf-muted: #6c6c70;
	--xvf-border: #e9e9ec;
}

/* ---------- 1. Ba cột liên kết ---------- */

/* Flatsome đặt padding cho section bằng style nội tuyến nên phải !important,
   nếu không thanh social kéo lên -32px sẽ đè lên dòng cuối của các cột. */
.footer-wrapper .footer-section1 {
	padding-top: 44px !important;
	padding-bottom: 76px !important;
	background: #fafafa !important;
}

.footer-wrapper .footer-section1 .row {
	max-width: 1320px;
	margin: 0 auto;
}

.footer-wrapper .footer-section1 .col {
	position: relative;
	padding-bottom: 0;
}

/* Vạch ngăn giữa các cột — chỉ vẽ cho cột có nội dung. */
.footer-wrapper .footer-section1 .col:nth-child(1)::after,
.footer-wrapper .footer-section1 .col:nth-child(2)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 30px;
	width: 1px;
	height: 170px;
	background: #ececef;
}

.footer-wrapper .footer-section1 h3 {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	color: var(--xvf-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

.footer-wrapper .footer-section1 h3::before {
	content: "";
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border: 1px solid #e6e6e8;
	border-radius: 10px;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 19px 19px;
	box-shadow: 0 3px 10px rgb(0 0 0 / 4%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d71920' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E");
}

.footer-wrapper .footer-section1 .col:nth-child(2) h3::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d71920' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 2.5 15.3 0 18M12 3c-2.5 2.7-2.5 15.3 0 18'/%3E%3C/svg%3E");
}

.footer-wrapper .footer-section1 .col:nth-child(3) h3::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d71920' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

.footer-wrapper .footer-section1 ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Các mục là chữ thuần, không phải thẻ a — canh theo li. */
.footer-wrapper .footer-section1 li {
	position: relative;
	margin: 0;
	padding: 7px 0 7px 23px;
	color: #29292c;
	font-size: 15px;
	line-height: 1.35;
	list-style: none;
	transition: color .2s ease, transform .2s ease;
}

.footer-wrapper .footer-section1 li::before {
	content: "›";
	position: absolute;
	left: 5px;
	top: 4px;
	color: #8b8b90;
	font-size: 20px;
	line-height: 1.35;
}

.footer-wrapper .footer-section1 li:hover {
	color: var(--xvf-red);
	transform: translateX(3px);
}

.footer-wrapper .footer-section1 li a {
	color: inherit;
	text-decoration: none;
}

/* ---------- 2. Thanh mạng xã hội nổi ---------- */

.footer-wrapper .footer-section2 {
	position: relative;
	z-index: 4;
	padding: 0 !important;
	background: #fafafa !important;
}

.footer-wrapper .footer-section2 .row {
	justify-content: center;
}

/* Cột ảnh trang trí bên trái không có trong thiết kế mới. */
.footer-wrapper .footer-section2 .col:first-child {
	display: none;
}

.footer-wrapper .footer-section2 .col:last-child {
	max-width: 100%;
	flex-basis: 100%;
	padding: 0;
}

/* Phải canh giữa ở .col-inner: .social-icons nằm trong đó, không phải con
   trực tiếp của .col — canh ở .col chỉ căn giữa cái bọc, không căn thanh. */
.footer-wrapper .footer-section2 .col-inner {
	display: flex;
	justify-content: center;
}

.footer-wrapper .social-icons.follow-icons {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	margin: 0 auto;
	padding: 9px 18px;
	border: 1px solid #ececef;
	border-radius: 13px;
	background: #fff;
	text-align: left !important;
	transform: translateY(-32px);
	box-shadow: 0 10px 35px rgb(0 0 0 / 10%), 0 2px 5px rgb(0 0 0 / 4%);
}

.footer-wrapper .social-icons.follow-icons a.button {
	width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	margin: 0 0 0 22px !important;
	border: 0 !important;
	border-radius: 50% !important;
	color: #fff !important;
	font-size: 17px !important;
	line-height: 36px !important;
	box-shadow: none !important;
}

/* Flatsome đặt nền trắng cho .button.circle với độ ưu tiên cao — phải liệt kê
   đủ class mới thắng, nếu không icon trắng nằm trên nền trắng thành tàng hình. */
.footer-wrapper .social-icons.follow-icons a.icon.button.circle.facebook { background-color: #4267b2 !important; }
.footer-wrapper .social-icons.follow-icons a.icon.button.circle.email    { background-color: #1d1d21 !important; }
.footer-wrapper .social-icons.follow-icons a.icon.button.circle.phone    { background-color: #35bd5b !important; }
.footer-wrapper .social-icons.follow-icons a.icon.button.circle.youtube  { background-color: #d9272e !important; }

.footer-wrapper .social-icons.follow-icons a.button i {
	color: #fff !important;
}

/* Nhãn chữ do JS chèn, mỗi nhãn đứng sau icon tương ứng. */
.footer-wrapper .xvui-social-label {
	position: relative;
	margin: 0 22px 0 10px;
	padding-right: 22px;
	color: #252525;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.footer-wrapper .xvui-social-label::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1px;
	height: 25px;
	margin-top: -12px;
	background: #eeeeef;
}

.footer-wrapper .xvui-social-label:last-child {
	margin-right: 4px;
	padding-right: 0;
}

.footer-wrapper .xvui-social-label:last-child::after {
	display: none;
}

/* ---------- 3. Dải đỏ thông tin đơn vị ---------- */

.footer-wrapper .footer-section3 {
	position: relative;
	overflow: hidden;
	padding-top: 68px !important;
	padding-bottom: 35px !important;
	color: #fff;
	background:
		radial-gradient(circle at 8% 65%, rgb(255 255 255 / 5%), transparent 20%),
		linear-gradient(110deg, #d31a21 0%, #bc1118 58%, #c7181e 100%) !important;
}

/* Hai mảng hoa văn chấm bi ở hai góc, đúng như mockup. */
.footer-wrapper .footer-section3::before,
.footer-wrapper .footer-section3::after {
	content: "";
	position: absolute;
	z-index: 1;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background-image: radial-gradient(circle, rgb(255 255 255 / 13%) 1px, transparent 1.5px);
	background-size: 12px 12px;
	opacity: .18;
	pointer-events: none;
}

.footer-wrapper .footer-section3::before {
	left: -150px;
	bottom: -150px;
}

.footer-wrapper .footer-section3::after {
	right: -145px;
	top: -110px;
}

.footer-wrapper .footer-section3 .section-content,
.footer-wrapper .footer-section3 .row {
	position: relative;
	z-index: 2;
	max-width: 1320px;
	margin: 0 auto;
}

.footer-wrapper .footer-section3 .col {
	padding-bottom: 0;
}

.footer-wrapper .footer-section3 p {
	margin: 9px 0;
	font-size: 14px;
	line-height: 1.65;
}

.footer-wrapper .footer-section3 a {
	color: #fff;
	text-decoration: none;
}

.footer-wrapper .footer-section3 a:hover {
	text-decoration: underline;
}

/* Khối chữ XINHVUI cạnh logo, do JS chèn (chỉ là nhận diện, không phải nội dung). */
.footer-wrapper .xvf-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: .5px;
}

.footer-wrapper .xvf-brand img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

/* Cột phải: vạch ngăn dọc + huy hiệu tròn cho từng dòng. */
.footer-wrapper .footer-section3 .col:last-child .col-inner {
	position: relative;
	padding-left: 70px;
}

.footer-wrapper .footer-section3 .col:last-child .col-inner::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 1px;
	height: 150px;
	background: rgb(255 255 255 / 20%);
}

.footer-wrapper .footer-section3 .col:last-child p {
	position: relative;
	min-height: 38px;
	padding-left: 53px;
	margin-bottom: 22px;
}

.footer-wrapper .footer-section3 .col:last-child p::before {
	content: "";
	position: absolute;
	left: 0;
	top: -2px;
	width: 38px;
	height: 38px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 17px 17px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.4-3 7.7-7 9-4-1.3-7-4.6-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.footer-wrapper .footer-section3 .col:last-child p:last-child::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E");
}

/* ---------- 4. Thanh copyright ---------- */

.absolute-footer {
	padding: 11px 15px !important;
	background: #a80d13 !important;
	color: rgb(255 255 255 / 80%);
	font-size: 12px;
	text-align: center;
	border: 0 !important;
}

.absolute-footer a {
	color: #fff;
}

/* ---------- 5. Khối chủ đề nổi bật ---------- */

.homepage-top-tags {
	max-width: none !important;
	margin: 0 !important;
	padding: 22px 20px 42px !important;
	border-radius: 0 !important;
	background: linear-gradient(180deg, #fff 0%, #fff7f7 100%) !important;
	box-shadow: none !important;
}

.homepage-top-tags > h2 {
	max-width: 1260px;
	margin: 0 auto;
	padding: 20px 32px 0;
	border: 1px solid #eeeeef;
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: #fff;
	color: var(--xvf-text);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

.homepage-top-tags > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 8px;
	max-width: 1260px;
	margin: 0 auto;
	padding: 20px 32px 30px;
	border: 1px solid #eeeeef;
	border-top: 0;
	border-radius: 0 0 16px 16px;
	background: #fff;
	box-shadow: 0 8px 28px rgb(0 0 0 / 7%);
}

.homepage-top-tags a {
	display: inline-block;
	margin: 0 !important;
	padding: 10px 15px !important;
	border: 1px solid #eeeeef;
	border-radius: 999px !important;
	background: #fff !important;
	color: #db3034 !important;
	font-size: 13px !important;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 3px 12px rgb(0 0 0 / 6%);
	transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.homepage-top-tags a span {
	color: #ef777a;
	font-size: 10px !important;
	opacity: 1 !important;
}

.homepage-top-tags a:hover {
	background: var(--xvf-red) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 7px 20px rgb(215 25 32 / 22%);
}

.homepage-top-tags a:hover span {
	color: rgb(255 255 255 / 75%);
}

/* ---------- 6 & 7. Hai nút cố định ---------- */

.xvd-fab {
	left: 22px;
	bottom: 25px;
	padding: 14px 22px;
	background: #d9252c;
	box-shadow: 0 8px 25px rgb(192 19 25 / 30%);
}

.xvd-fab:hover {
	background: #b91118;
}

#top-link,
.back-to-top {
	right: 25px !important;
	bottom: 25px !important;
	width: 48px !important;
	height: 48px !important;
	line-height: 46px !important;
	border: 1px solid #ededed !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--xvf-red) !important;
	font-size: 25px !important;
	box-shadow: 0 5px 20px rgb(0 0 0 / 12%) !important;
}

/* ---------- 8. Máy tính bảng ---------- */

@media (max-width: 1024px) {
	.footer-wrapper .footer-section1 .col:nth-child(1)::after,
	.footer-wrapper .footer-section1 .col:nth-child(2)::after {
		right: -8px;
	}

	.footer-wrapper .footer-section3 .col:last-child .col-inner {
		padding-left: 35px;
	}
}

/* ---------- Điện thoại ---------- */

@media (max-width: 767px) {
	.footer-wrapper .footer-section1 {
		padding: 35px 0 70px;
	}

	.footer-wrapper .footer-section1 .col:nth-child(1)::after,
	.footer-wrapper .footer-section1 .col:nth-child(2)::after {
		display: none;
	}

	.footer-wrapper .social-icons.follow-icons {
		display: flex !important;
		width: calc(100% - 30px) !important;
		justify-content: flex-start;
		overflow-x: auto;
		padding: 8px;
	}

	.footer-wrapper .social-icons.follow-icons a {
		margin-left: 12px !important;
	}

	/* Màn hẹp thì bỏ nhãn chữ, chỉ giữ icon cho gọn. */
	.footer-wrapper .xvui-social-label {
		display: none;
	}

	.footer-wrapper .footer-section3 {
		padding-top: 60px;
	}

	.footer-wrapper .footer-section3 .col:last-child .col-inner {
		padding-left: 0;
	}

	.footer-wrapper .footer-section3 .col:last-child .col-inner::before {
		display: none;
	}

	.homepage-top-tags {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.homepage-top-tags > h2,
	.homepage-top-tags > div {
		padding-left: 14px;
		padding-right: 14px;
	}

	.homepage-top-tags > div {
		justify-content: flex-start;
		padding-bottom: 25px;
	}

	.homepage-top-tags a {
		padding: 9px 12px !important;
		font-size: 12px !important;
	}

	.xvd-fab {
		left: 12px;
		bottom: 15px;
		padding: 12px 16px;
	}

	#top-link,
	.back-to-top {
		right: 12px !important;
		bottom: 15px !important;
	}
}

/* =========================================================================
   NỀN TỐI
   ====================================================================== */

html[data-xvui-theme="dark"] {
	--xv-ink: #e8edf2;
	--xv-muted: #9aa7b2;
	--xv-line: #2c343c;
	--xv-bg: #12171c;
	--xv-bg-soft: #171d23;
	--xv-card: #1a2128;
	--xv-shadow: 0 6px 22px rgba(0, 0, 0, .45);
}

html[data-xvui-theme="dark"] body,
html[data-xvui-theme="dark"] .page-wrapper,
html[data-xvui-theme="dark"] #wrapper,
html[data-xvui-theme="dark"] .xvui-hero {
	background: var(--xv-bg) !important;
	color: var(--xv-ink);
}

html[data-xvui-theme="dark"] .header-main,
html[data-xvui-theme="dark"] .header-top {
	background: var(--xv-bg-soft) !important;
	color: var(--xv-ink);
}

html[data-xvui-theme="dark"] .header-top,
html[data-xvui-theme="dark"] .header-top a {
	color: var(--xv-muted) !important;
}

html[data-xvui-theme="dark"] .header-main .searchform .flex-row {
	background: #1c242b;
	border-color: var(--xv-line);
}

html[data-xvui-theme="dark"] .header-main .searchform input {
	color: var(--xv-ink);
}

html[data-xvui-theme="dark"] .xvui-btn-ghost,
html[data-xvui-theme="dark"] .xvui-theme-btn {
	background: var(--xv-card);
	border-color: var(--xv-line);
	color: var(--xv-ink) !important;
}

html[data-xvui-theme="dark"] .xvui-tagline { color: var(--xv-muted); }

html[data-xvui-theme="dark"] .xvui-stat {
	background: var(--xv-card);
	border-color: var(--xv-line);
	color: var(--xv-ink) !important;
}

html[data-xvui-theme="dark"] .xvui-tile-chip {
	background: rgba(26, 33, 40, .95);
	color: var(--xv-ink);
}

html[data-xvui-theme="dark"] .footer-wrapper .footer-1,
html[data-xvui-theme="dark"] .footer-wrapper .footer-2 {
	background: var(--xv-bg-soft) !important;
}

html[data-xvui-theme="dark"] .footer-wrapper .widget ul li a,
html[data-xvui-theme="dark"] .footer-wrapper .widget-title {
	color: var(--xv-ink) !important;
}

html[data-xvui-theme="dark"] .xvui-social,
html[data-xvui-theme="dark"] .footer-wrapper .tagcloud a {
	background: var(--xv-card);
	border-color: var(--xv-line);
	color: var(--xv-ink) !important;
}

html[data-xvui-theme="dark"] .xvui-social-label { color: var(--xv-ink); }

/* =========================================================================
   MÀN HÌNH NHỎ
   ====================================================================== */

@media (max-width: 1024px) {
	.xvui-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 849px) {
	.xvui-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.xvui-tile { aspect-ratio: 1 / 1; }
	.xvui-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.xvui-tagline { display: none; }
	.xvui-actions { padding-left: 8px; gap: 7px; }
	.xvui-btn { height: 38px; padding: 0 15px; font-size: 13.5px; }
	.xvui-theme-btn { width: 38px; height: 38px; }
	.xvui-social { flex-wrap: wrap; justify-content: center; border-radius: 18px; }
}

@media (max-width: 549px) {
	.xvui-stats { grid-template-columns: 1fr 1fr; }
	.xvui-btn-ghost { display: none; }
}
