/*
Theme Name: Theme Vanhoatamlinh
Theme URI: https://vanhoatamlinh.com/
Author: Vanhoatamlinh.com
Description: Theme WordPress độc lập, tối ưu SEO và trải nghiệm đọc cho website Văn Hóa Tâm Linh.
Version: 2.0.0
Text Domain: theme-vanhoatamlinh
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
	--vh-primary: #0f4c81;
	--vh-primary-dark: #103a61;
	--vh-accent: #b7791f;
	--vh-teal: #0f766e;
	--vh-ink: #1f2933;
	--vh-muted: #64748b;
	--vh-line: #e2e8f0;
	--vh-bg: #f7f9fb;
	--vh-card: #ffffff;
	--vh-footer: #111827;
	--vh-radius: 8px;
	--vh-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--vh-bg);
	color: var(--vh-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--vh-primary);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--vh-accent);
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin-top: 0;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 8px 12px;
	clip: auto;
	background: #ffffff;
	border: 2px solid var(--vh-primary);
	border-radius: var(--vh-radius);
}

#container {
	min-height: 100vh;
	background: var(--vh-bg);
}

.site-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 20px 36px;
}

.site-layout,
.home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	align-items: start;
}

.content-area,
.home-main,
.top-posts-page {
	min-width: 0;
}

.site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--vh-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.tao-menu {
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.header-left {
	min-width: 220px;
}

.site-logo {
	margin-bottom: 4px;
}

.site-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.site-title a {
	color: var(--vh-primary-dark);
}

.site-tagline {
	margin: 3px 0 0;
	color: var(--vh-muted);
	font-size: 0.92rem;
}

.header-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	min-width: 0;
}

.main-navigation {
	display: block;
}

.nav-main {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-main li {
	position: relative;
}

.nav-main a {
	display: block;
	padding: 10px 12px;
	color: var(--vh-ink);
	font-size: 0.98rem;
	font-weight: 650;
	border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a:focus,
.nav-main .current-menu-item > a,
.nav-main .current-menu-ancestor > a {
	color: var(--vh-primary);
	border-color: var(--vh-accent);
}

.nav-main .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	box-shadow: var(--vh-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-main li:hover > .sub-menu,
.nav-main li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-main .sub-menu a {
	padding: 8px 10px;
	border-bottom: 0;
	border-radius: 6px;
}

.nav-main .sub-menu a:hover {
	background: #eef6ff;
}

.drop-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	background: #ffffff;
	align-items: center;
	justify-content: center;
}

.drop-toggle span,
.drop-toggle span::before,
.drop-toggle span::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--vh-primary-dark);
	content: "";
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.drop-toggle span::before {
	transform: translateY(-7px);
}

.drop-toggle span::after {
	transform: translateY(5px);
}

.drop-toggle.active span {
	background: transparent;
}

.drop-toggle.active span::before {
	transform: translateY(0) rotate(45deg);
}

.drop-toggle.active span::after {
	transform: translateY(-2px) rotate(-45deg);
}

.header-widgets,
.below-menu-widgets,
.footer-widgets,
.site-body-widgets {
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 20px;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--vh-muted);
	font-size: 0.92rem;
}

.breadcrumb a {
	color: var(--vh-muted);
}

.archive-header,
.entry-header {
	margin-bottom: 18px;
}

.entry-title,
.archive-title,
.search-title,
h1.category-title {
	margin: 0 0 12px;
	color: var(--vh-primary-dark);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	line-height: 1.22;
	letter-spacing: 0;
}

.category-title a,
.category-title span,
.block-title span,
.widget-title,
h1.category-title,
.title-lien-quan,
.title-bai-viet-tag {
	display: inline-block;
	position: relative;
	margin: 0 0 18px;
	padding-left: 16px;
	color: var(--vh-primary-dark);
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0;
}

.category-title a::before,
.category-title span::before,
.widget-title::before,
h1.category-title::before,
.title-lien-quan::before,
.title-bai-viet-tag::before {
	position: absolute;
	top: 2px;
	left: 0;
	width: 4px;
	height: 16px;
	background: var(--vh-accent);
	content: "";
}

.archive-description,
.lead,
.single-sub {
	color: var(--vh-muted);
	font-size: 1.05rem;
}

.single-sub {
	margin: 0 0 14px;
	padding-left: 16px;
	border-left: 3px solid var(--vh-accent);
	font-style: italic;
	font-weight: 600;
}

.home-hero {
	margin-bottom: 22px;
}

.home-hero-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	margin-bottom: 14px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.home-kicker {
	color: var(--vh-accent);
	font-size: 0.86rem;
	font-weight: 800;
	text-transform: uppercase;
}

.home-hero-heading h1 {
	margin: 0;
	color: var(--vh-primary-dark);
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.25;
	letter-spacing: 0;
}

.home-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
	gap: 18px;
	align-items: stretch;
}

.home-hero-main,
.home-hero-small,
.home-section-lead,
.home-list-item {
	background: #ffffff;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.home-hero-main {
	overflow: hidden;
}

.home-hero-image {
	display: block;
	aspect-ratio: 16 / 9;
	background: #edf2f7;
}

.home-hero-image img,
.home-hero-small-image img,
.home-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero-content {
	padding: 18px;
}

.home-hero-content h2 {
	margin: 6px 0 10px;
	font-size: clamp(1.45rem, 3vw, 2.05rem);
	line-height: 1.22;
	letter-spacing: 0;
}

.home-hero-content h2 a {
	color: var(--vh-ink);
}

.home-hero-excerpt {
	color: #3f4b5b;
}

.home-hero-side {
	display: grid;
	gap: 12px;
}

.home-hero-small {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 12px;
	padding: 10px;
	align-items: center;
}

.home-hero-small-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: #edf2f7;
}

.home-hero-small h3 {
	margin: 4px 0 5px;
	font-size: 1rem;
	line-height: 1.35;
	letter-spacing: 0;
}

.home-hero-small h3 a,
.home-list-item h3 a {
	color: var(--vh-ink);
}

.home-hero-small time,
.home-list-item time {
	color: var(--vh-muted);
	font-size: 0.86rem;
}

.home-topic-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
}

.home-topic-strip a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 5px 11px;
	background: #edf7f6;
	border: 1px solid #cce6e3;
	border-radius: 999px;
	color: var(--vh-teal);
	font-size: 0.92rem;
	font-weight: 700;
}

.home-topic-strip a:hover {
	background: var(--vh-teal);
	color: #ffffff;
}

.home-sections {
	display: grid;
	gap: 26px;
}

.home-section-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.home-section-title .category-title {
	margin: 0;
}

.home-section-more {
	margin-top: 2px;
	color: var(--vh-muted);
	font-size: 0.92rem;
	font-weight: 700;
	white-space: nowrap;
}

.home-section-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
	gap: 16px;
}

.home-section-lead {
	padding: 12px;
}

.home-section-list {
	display: grid;
	gap: 10px;
}

.home-list-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 10px;
	padding: 10px;
	align-items: center;
}

.home-list-thumb {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #edf2f7;
}

.home-list-item h3 {
	margin: 0 0 5px;
	font-size: 0.98rem;
	line-height: 1.35;
	letter-spacing: 0;
}

.featured-posts {
	margin-bottom: 28px;
}

.featured-posts-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: minmax(190px, auto);
	gap: 10px;
}

.featured-post-item {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	background: var(--vh-card);
	border-radius: var(--vh-radius);
	box-shadow: var(--vh-shadow);
}

.featured-post-large {
	grid-row: span 2;
	min-height: 430px;
}

.featured-post-thumbnail,
.featured-post-thumbnail img {
	width: 100%;
	height: 100%;
	display: block;
}

.featured-post-thumbnail img {
	object-fit: cover;
}

.featured-post-overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 18px;
	color: #ffffff;
	background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.86));
}

.featured-post-overlay h2 {
	margin: 0 0 8px;
	font-size: 1.18rem;
	line-height: 1.25;
}

.featured-post-large .featured-post-overlay h2 {
	font-size: 1.55rem;
}

.featured-post-overlay a,
.featured-post-overlay .post-meta,
.featured-post-overlay .post-date,
.featured-post-overlay .luot-xem {
	color: #ffffff;
}

.featured-post-overlay .post-meta {
	margin: 0;
}

.grid-8-bai-viet,
.posts-grid,
.top-posts-grid,
.related-posts-grid {
	display: grid;
	gap: 18px;
}

.grid-8-bai-viet {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.posts-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-posts-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-posts-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 14px;
}

.home-category-section {
	margin-bottom: 30px;
}

.post,
.grid-item,
.top-post,
.related-post-item,
.blog-view,
.vh-widget,
.comments-area,
.post-nav {
	background: var(--vh-card);
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.post,
.grid-item,
.top-post,
.related-post-item,
.blog-view {
	padding: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover,
.grid-item:hover,
.top-post:hover,
.related-post-item:hover,
.blog-view:hover {
	transform: translateY(-2px);
	box-shadow: var(--vh-shadow);
}

.post-thumbnail {
	display: block;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: 6px;
	background: #edf2f7;
	aspect-ratio: 16 / 9;
}

.post-thumbnail img,
.wp-post-image,
.nb-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-title,
.entry-title.post-title,
.top-post h2,
.grid-item h3,
.related-post-item h3 {
	margin: 0 0 8px;
	font-size: 1.08rem;
	line-height: 1.36;
	letter-spacing: 0;
}

.post-title a,
.grid-item h3 a,
.top-post h2 a,
.related-post-item h3 a {
	color: var(--vh-ink);
}

.post-title a:hover,
.grid-item h3 a:hover,
.top-post h2 a:hover,
.related-post-item h3 a:hover {
	color: var(--vh-primary);
}

.post-meta,
.entry-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 10px;
	color: var(--vh-muted);
	font-size: 0.9rem;
}

.entry-byline a,
.post-meta a {
	color: var(--vh-teal);
	font-weight: 650;
}

.luot-xem::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f06d";
	margin-right: 4px;
	color: var(--vh-accent);
}

.tom-tat-bai-viet,
.entry-excerpt {
	color: #3f4b5b;
	font-size: 0.97rem;
}

.tom-tat-bai-viet p:last-child,
.entry-excerpt p:last-child {
	margin-bottom: 0;
}

.continue-reading,
#load-more,
#load-more-top-bai-viet,
.form-submit .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 16px;
	border: 1px solid var(--vh-primary);
	border-radius: var(--vh-radius);
	background: var(--vh-primary);
	color: #ffffff;
	font-weight: 700;
}

.continue-reading:hover,
#load-more:hover,
#load-more-top-bai-viet:hover,
.form-submit .submit:hover {
	background: var(--vh-primary-dark);
	color: #ffffff;
}

#load-more,
#load-more-top-bai-viet {
	min-width: 220px;
	margin: 24px auto 0;
	display: flex;
}

#load-more:disabled,
#load-more-top-bai-viet:disabled {
	opacity: 0.72;
	cursor: progress;
}

.no-more-posts {
	margin-top: 14px;
	text-align: center;
	color: var(--vh-muted);
}

.single-view,
.page-view {
	background: var(--vh-card);
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	padding: 22px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.archive-header {
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.archive-header .category-title,
.archive-header .search-title {
	margin-bottom: 8px;
}

.single-featured-image {
	margin: 0 0 22px;
	overflow: hidden;
	border-radius: var(--vh-radius);
	background: #edf2f7;
}

.single-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.entry-content {
	font-size: 1.04rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.trang-mau-tu-tao h2,
.trang-mau-tu-tao h3 {
	margin: 1.35em 0 0.55em;
	color: var(--vh-primary-dark);
	line-height: 1.32;
	letter-spacing: 0;
}

.entry-content h2,
.trang-mau-tu-tao h2 {
	font-size: 1.45rem;
}

.entry-content h3,
.trang-mau-tu-tao h3 {
	font-size: 1.22rem;
}

.entry-content h4 {
	font-size: 1.08rem;
}

.entry-content img {
	border-radius: var(--vh-radius);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption .wp-caption-text,
.gallery-caption {
	margin-top: 6px;
	color: var(--vh-muted);
	font-size: 0.9rem;
	text-align: center;
}

.entry-tags {
	margin-top: 18px;
	color: var(--vh-muted);
}

.entry-tags a {
	display: inline-block;
	margin: 3px 4px 3px 0;
	padding: 3px 8px;
	background: #eef6ff;
	border-radius: 999px;
	color: var(--vh-primary);
	font-size: 0.9rem;
}

.related-tag-posts {
	margin: 24px 0;
	padding: 16px;
	border-left: 4px solid var(--vh-accent);
	background: #fffaf0;
	border-radius: var(--vh-radius);
}

.related-tag-posts ul,
.compact-post-list {
	margin: 0;
	padding-left: 18px;
}

.relatedcat {
	margin-top: 24px;
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 20px 0;
	padding: 16px;
}

.post-nav .entry-meta {
	display: block;
	color: var(--vh-muted);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.post-nav .next,
.post-nav .prev {
	color: var(--vh-ink);
	font-weight: 700;
}

.link-next {
	text-align: right;
}

.sidebar {
	min-width: 0;
}

.vh-widget {
	margin-bottom: 18px;
	padding: 16px;
}

.vh-widget ul {
	margin-bottom: 0;
}

.vh-widget a {
	color: var(--vh-ink);
}

.vh-widget a:hover {
	color: var(--vh-primary);
}

.danh-sach-noi-bat ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.danh-sach-noi-bat li {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 12px;
	padding: 0 0 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--vh-line);
}

.nb-thumb {
	display: block;
	width: 78px;
	height: 78px;
	overflow: hidden;
	border-radius: 6px;
	background: #edf2f7;
}

.nb-content h3 {
	margin: 0 0 4px;
	font-size: 0.98rem;
	line-height: 1.35;
}

.nb-date {
	color: var(--vh-muted);
	font-size: 0.86rem;
}

.table-of-content {
	position: sticky;
	top: 88px;
	z-index: 5;
	margin: 0 0 22px;
	padding: 12px 14px;
	max-height: 58vh;
	overflow-y: auto;
	background: var(--vh-primary-dark);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--vh-radius);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	scrollbar-width: thin;
}

.table-of-content-header {
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-of-content-title {
	font-weight: 800;
}

.table-of-content ol {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.table-of-content li {
	margin: 6px 0;
	line-height: 1.4;
}

.table-of-content li.level-3 {
	margin-left: 18px;
}

.table-of-content li.level-4 {
	margin-left: 36px;
}

.table-of-content li.level-5 {
	margin-left: 54px;
}

.table-of-content li.level-6 {
	margin-left: 72px;
}

.table-of-content a {
	display: block;
	color: #ffffff;
	font-size: 0.96rem;
}

.table-of-content a:hover,
.table-of-content a:focus {
	color: #f6c56b;
}

.table-of-content-button {
	display: none;
}

.comments-area {
	margin-top: 24px;
	padding: 18px;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-body {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--vh-line);
}

.comment-avatar img {
	border-radius: 50%;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--vh-muted);
	font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	background: #ffffff;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-submit {
	padding: 8px 12px;
	border: 1px solid var(--vh-primary);
	border-radius: var(--vh-radius);
	background: var(--vh-primary);
	color: #ffffff;
	font-weight: 700;
}

.footer {
	background: var(--vh-footer);
	color: #d1d5db;
}

.thong-tin-footer {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 20px 20px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.footer h4 {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 1rem;
	text-transform: uppercase;
}

.footer p {
	margin-bottom: 7px;
	color: #d1d5db;
}

.footer a {
	color: #ffffff;
}

.footer a:hover {
	color: #f6c56b;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-right: 6px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
}

.dia-chi::before,
.dien-thoai::before,
.email::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	margin-right: 8px;
	color: #f6c56b;
}

.dia-chi::before {
	content: "\f3c5";
}

.dien-thoai::before {
	content: "\f095";
}

.email::before {
	content: "\f0e0";
}

.menu-bottom {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 20px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.bottom-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.copyright p {
	margin: 0;
}

#back-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999;
	display: none;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--vh-primary);
	color: #ffffff;
	font-size: 1.2rem;
	box-shadow: var(--vh-shadow);
}

#back-to-top.show {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.clearfix::after {
	display: table;
	clear: both;
	content: "";
}

@media (max-width: 1080px) {
	.site-layout,
	.home-layout {
		grid-template-columns: 1fr;
	}

	.sidebar {
		width: 100%;
	}

	.featured-posts-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-hero-grid,
	.home-section-layout {
		grid-template-columns: 1fr;
	}

	.home-hero-side {
		grid-template-columns: 1fr 1fr;
	}

	.featured-post-large {
		grid-column: 1 / -1;
		min-height: 360px;
	}

	.grid-8-bai-viet,
	.top-posts-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.site-main {
		padding: 18px 14px 30px;
	}

	.tao-menu {
		align-items: flex-start;
		padding: 10px 14px;
	}

	.header-right {
		margin-left: auto;
	}

	.drop-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		right: 14px;
		left: 14px;
	}

	.nav-main {
		display: none;
		width: 100%;
		padding: 8px;
		background: #ffffff;
		border: 1px solid var(--vh-line);
		border-radius: var(--vh-radius);
		box-shadow: var(--vh-shadow);
	}

	.nav-main.active {
		display: block;
	}

	.nav-main a {
		padding: 10px;
		border-bottom: 0;
		border-radius: 6px;
	}

	.nav-main a:hover {
		background: #eef6ff;
	}

	.nav-main .sub-menu {
		position: static;
		min-width: 0;
		margin: 2px 0 4px 14px;
		box-shadow: none;
		border: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.posts-grid,
	.related-posts-grid,
	.thong-tin-footer {
		grid-template-columns: 1fr 1fr;
	}

	.grid-8-bai-viet,
	.top-posts-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-hero-heading {
		padding: 15px;
	}

	.home-hero-side {
		grid-template-columns: 1fr;
	}

	.table-of-content {
		position: fixed;
		top: auto;
		right: 12px;
		bottom: 74px;
		left: 12px;
		z-index: 1000;
		max-height: 0;
		margin: 0;
		padding: 0 14px;
		overflow: hidden;
		transition: max-height 0.25s ease, padding 0.25s ease;
	}

	.table-of-content.open {
		max-height: 65vh;
		padding: 12px 14px;
		overflow-y: auto;
	}

	.table-of-content-button {
		position: fixed;
		left: 14px;
		bottom: calc(18px + env(safe-area-inset-bottom));
		z-index: 1001;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border: 0;
		border-radius: 50%;
		background: var(--vh-accent);
		color: #ffffff;
		box-shadow: var(--vh-shadow);
	}

	.table-of-content-button.open {
		background: var(--vh-primary-dark);
	}
}

@media (max-width: 560px) {
	body {
		font-size: 15px;
	}

	.tao-menu {
		gap: 10px;
	}

	.site-title {
		font-size: 1rem;
	}

	.site-tagline {
		font-size: 0.84rem;
	}

	.featured-posts-grid,
	.posts-grid,
	.grid-8-bai-viet,
	.top-posts-grid,
	.related-posts-grid,
	.thong-tin-footer,
	.post-nav {
		grid-template-columns: 1fr;
	}

	.featured-post-large,
	.featured-post-item {
		min-height: 260px;
	}

	.home-hero-small,
	.home-list-item {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.home-section-title {
		display: block;
	}

	.home-section-more {
		display: inline-block;
		margin: 0 0 10px 16px;
	}

	.featured-post-large .featured-post-overlay h2 {
		font-size: 1.25rem;
	}

	.single-view,
	.page-view {
		padding: 16px;
	}

	.entry-title,
	.archive-title,
	.search-title,
	h1.category-title {
		font-size: 1.55rem;
	}

	.link-next {
		text-align: left;
	}

	.search-form {
		display: block;
	}

	.search-form .search-submit {
		width: 100%;
		margin-top: 8px;
	}

	.menu-bottom {
		display: block;
	}

	.bottom-nav {
		margin-bottom: 10px;
	}
}
