/*
Theme Name: Spiritual Culture Theme
Theme URI: https://spiritualculture.org/
Author: SpiritualCulture.org
Description: Standalone WordPress theme optimized for SEO and English-language spiritual culture publishing.
Version: 2.1.0
Text Domain: theme-spiritualculture
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;
}

.header-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,
.related-title,
.tag-related-title {
	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,
.related-title::before,
.tag-related-title::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: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
	padding: 14px 18px;
	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 h2 {
	margin: 0;
	color: var(--vh-primary-dark);
	font-size: clamp(1.2rem, 2.1vw, 1.55rem);
	line-height: 1.3;
	letter-spacing: 0;
}

.home-hero-heading p {
	max-width: 360px;
	margin: 0;
	color: var(--vh-muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

.home-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
	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 {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	height: 100%;
}

.home-hero-image {
	display: block;
	height: clamp(220px, 24vw, 275px);
	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 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px 18px 18px;
}

.home-hero-content h2 {
	margin: 6px 0 8px;
	font-size: clamp(1.2rem, 2vw, 1.48rem);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: 0;
}

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

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

.home-hero-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 8px;
}

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

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

.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: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.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;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.home-after-featured-widgets {
	margin: 0 0 22px;
}

.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 .view-count {
	color: #ffffff;
}

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

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

.article-grid-8 {
	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;
}

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

.post-summary,
.entry-excerpt {
	color: #3f4b5b;
	font-size: 0.97rem;
}

.post-summary p:last-child,
.entry-excerpt p:last-child {
	margin-bottom: 0;
}

.continue-reading,
#load-more,
#load-more-top-posts,
.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-posts:hover,
.form-submit .submit:hover {
	background: var(--vh-primary-dark);
	color: #ffffff;
}

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

#load-more:disabled,
#load-more-top-posts: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;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.custom-page-template h2,
.custom-page-template h3 {
	margin: 1.35em 0 0.55em;
	color: var(--vh-primary-dark);
	line-height: 1.32;
	letter-spacing: 0;
	scroll-margin-top: 96px;
}

.entry-content h2,
.custom-page-template h2 {
	font-size: 1.45rem;
}

.entry-content h3,
.custom-page-template h3 {
	font-size: 1.22rem;
}

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

.entry-content h5,
.entry-content h6 {
	font-size: 1rem;
}

.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;
}

.compact-post-list li {
	margin-bottom: 9px;
}

.sidebar-topic-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sidebar-topic-list a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 9px;
	background: #edf7f6;
	border: 1px solid #cce6e3;
	border-radius: 999px;
	color: var(--vh-teal);
	font-size: 0.9rem;
	font-weight: 700;
}

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

.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: relative;
	z-index: 5;
	margin: 0 0 22px;
	padding: 12px 14px;
	max-height: none;
	overflow: hidden;
	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 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	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;
	line-height: 1.42;
	padding: 2px 0;
}

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

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

.table-of-content-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 1.2rem;
	line-height: 1;
}

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

@media (min-width: 1024px) {
	body.single-post .table-of-content.is-fixed {
		position: fixed;
		top: var(--vh-toc-fixed-top, 92px);
		left: var(--vh-toc-fixed-left, 12px);
		z-index: 90;
		width: var(--vh-toc-fixed-width, 240px);
		max-height: calc(100vh - var(--vh-toc-fixed-top, 92px) - 20px);
		margin: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	body.single-post .table-of-content-placeholder.active {
		display: block;
	}
}

.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;
}

.footer-info {
	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;
}

/* Applies round icon styling only to social links.
 * Does not apply to phone or email details in the contact column. */
.footer-social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-right: 0;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
}

.contact-location::before,
.contact-phone::before,
.email::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	margin-right: 8px;
	color: #f6c56b;
}

.contact-location::before {
	content: "\f3c5";
}

.contact-phone::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;
	}

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

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

	.header-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,
	.footer-info {
		grid-template-columns: 1fr 1fr;
	}

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

	.home-hero-heading {
		padding: 15px;
		align-items: flex-start;
	}

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

	.table-of-content {
		position: fixed;
		top: calc(72px + env(safe-area-inset-top));
		right: auto;
		bottom: calc(16px + env(safe-area-inset-bottom));
		left: 10px;
		z-index: 1000;
		width: min(86vw, 360px);
		max-height: none;
		margin: 0;
		padding: 12px 14px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(calc(-100% - 18px));
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
	}

	.table-of-content.open,
	.table-of-content:target {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
	}

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

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

	.table-of-content li.level-5,
	.table-of-content li.level-6 {
		margin-left: 36px;
	}

	.table-of-content a {
		padding: 3px 0;
		font-size: 0.94rem;
	}

	.table-of-content-button {
		position: fixed;
		top: 50%;
		left: 10px;
		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;
		font-size: 1.1rem;
		line-height: 1;
		text-decoration: none;
		box-shadow: var(--vh-shadow);
		transform: translateY(-50%);
	}

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

	.table-of-content-close {
		display: inline-flex;
	}
}

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

	.header-menu {
		gap: 10px;
	}

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

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

	.featured-posts-grid,
	.posts-grid,
	.article-grid-8,
	.top-posts-grid,
	.related-posts-grid,
	.footer-info,
	.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-hero-heading {
		display: block;
	}

	.home-hero-heading p {
		max-width: none;
		margin-top: 6px;
	}

	.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;
	}
}

/* --------------------------------------------------------------------------
   Author profile box and author archive
   -------------------------------------------------------------------------- */
.vh-author-box {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	margin: 26px 0 4px;
	padding: 22px;
	background: linear-gradient(135deg, #f6fbff 0%, #ffffff 70%);
	border: 1px solid #cfe0ef;
	border-top: 4px solid var(--vh-accent);
	border-radius: var(--vh-radius);
	box-shadow: 0 4px 14px rgba(15, 76, 129, 0.07);
}

.vh-author-avatar,
.author-archive-avatar {
	display: block;
}

.vh-author-avatar-image,
.author-archive-avatar-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #bed5e8, 0 4px 12px rgba(15, 76, 129, 0.12);
}

.vh-author-kicker,
.author-archive-kicker {
	margin: 0 0 3px;
	color: var(--vh-accent);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.vh-author-kicker i,
.author-archive-kicker i {
	margin-right: 5px;
}

.vh-author-name {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.25;
}

.vh-author-name a {
	color: var(--vh-primary-dark);
}

.vh-author-role,
.author-archive-role {
	margin: 4px 0 10px;
	color: var(--vh-primary);
	font-size: 0.95rem;
	font-weight: 700;
}

.vh-author-bio p,
.author-archive-bio p {
	margin: 0 0 0.7em;
}

.vh-author-note,
.author-archive-note {
	margin: 12px 0;
	padding: 10px 12px;
	background: #fffaf0;
	border-left: 3px solid var(--vh-accent);
	border-radius: 0 6px 6px 0;
	color: #4b5563;
	font-size: 0.94rem;
	line-height: 1.58;
}

.vh-author-posts-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 800;
}

.vh-author-posts-link i {
	font-size: 0.82em;
}

.author-archive-header {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin-bottom: 24px;
	padding: 24px;
	background: linear-gradient(135deg, #f6fbff 0%, #ffffff 72%);
	border: 1px solid #cfe0ef;
	border-top: 4px solid var(--vh-accent);
	border-radius: var(--vh-radius);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.author-archive-avatar-image {
	width: 132px;
}

.author-archive-title {
	margin: 0;
	color: var(--vh-primary-dark);
	font-size: clamp(1.8rem, 3vw, 2.35rem);
	line-height: 1.18;
}

.author-posts-heading {
	margin: 0 0 16px;
}

.author-posts-heading h2 {
	margin: 0 0 3px;
	color: var(--vh-primary-dark);
	font-size: 1.35rem;
}

.author-posts-heading p {
	margin: 0;
	color: var(--vh-muted);
}

@media (max-width: 560px) {
	.vh-author-box,
	.author-archive-header {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px;
	}

	.vh-author-avatar {
		width: 92px;
	}

	.author-archive-avatar-image {
		width: 112px;
	}
}

/* 404 / 410 page: guide readers toward relevant content. */
.vh-error-page {
	padding: 28px;
}

.vh-error-page__icon {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	margin: 8px 0 16px;
	border: 1px solid rgba(183, 121, 31, 0.28);
	border-radius: 50%;
	background: #fff8eb;
	color: var(--vh-accent);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.vh-error-page__eyebrow {
	margin: 0 0 4px;
	color: var(--vh-accent);
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vh-error-page .entry-title {
	margin-bottom: 10px;
}

.vh-error-page__intro {
	max-width: 760px;
	margin-bottom: 22px;
	color: #475569;
	font-size: 1.04rem;
}

.vh-error-page__search {
	max-width: 680px;
	padding: 18px;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	background: #f8fafc;
}

.vh-error-page__search-label {
	margin-bottom: 10px;
	font-weight: 700;
	color: var(--vh-primary-dark);
}

.vh-error-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 28px;
}

.vh-error-page__home,
.vh-error-page__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	border-radius: var(--vh-radius);
	font-weight: 700;
}

.vh-error-page__home {
	background: var(--vh-primary);
	border: 1px solid var(--vh-primary);
	color: #ffffff;
}

.vh-error-page__home:hover,
.vh-error-page__home:focus {
	background: var(--vh-primary-dark);
	border-color: var(--vh-primary-dark);
	color: #ffffff;
}

.vh-error-page__contact {
	border: 1px solid var(--vh-line);
	background: #ffffff;
	color: var(--vh-primary);
}

.vh-error-page__contact:hover,
.vh-error-page__contact:focus {
	border-color: var(--vh-primary);
	background: #f0f7ff;
	color: var(--vh-primary-dark);
}

.vh-error-page__topics {
	padding-top: 22px;
	border-top: 1px solid var(--vh-line);
}

.vh-error-page__topics h2 {
	margin: 0 0 14px;
	font-size: 1.08rem;
	color: var(--vh-primary-dark);
}

.vh-error-page__topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.vh-error-page__topic {
	display: block;
	min-height: 100%;
	padding: 14px;
	border: 1px solid var(--vh-line);
	border-radius: var(--vh-radius);
	background: #ffffff;
}

.vh-error-page__topic:hover,
.vh-error-page__topic:focus {
	border-color: rgba(15, 76, 129, 0.45);
	background: #f8fbff;
}

.vh-error-page__topic strong,
.vh-error-page__topic span {
	display: block;
}

.vh-error-page__topic strong {
	margin-bottom: 3px;
	color: var(--vh-primary-dark);
}

.vh-error-page__topic span {
	color: var(--vh-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

@media (max-width: 640px) {
	.vh-error-page {
		padding: 18px;
	}

	.vh-error-page__topic-grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Article readability: tables, images and editorial information
   -------------------------------------------------------------------------- */
.entry-byline {
	margin-bottom: 14px;
}

.entry-content img,
.custom-page-template img {
	display: block;
	float: none !important;
	max-width: 100%;
	height: auto;
	margin: 1.4rem auto;
	border-radius: var(--vh-radius);
}

.entry-content figure,
.custom-page-template figure,
.entry-content .wp-caption,
.custom-page-template .wp-caption {
	display: table;
	float: none !important;
	max-width: 100%;
	margin: 1.4rem auto;
}

.entry-content figure img,
.custom-page-template figure img,
.entry-content .wp-caption img,
.custom-page-template .wp-caption img {
	margin: 0 auto;
}

.entry-content figcaption,
.custom-page-template figcaption {
	margin-top: 8px;
	color: var(--vh-muted);
	font-size: 0.92rem;
	font-style: italic;
	line-height: 1.55;
	text-align: center;
}

.entry-content .alignleft,
.entry-content .alignright,
.entry-content .aligncenter,
.custom-page-template .alignleft,
.custom-page-template .alignright,
.custom-page-template .aligncenter {
	float: none !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.entry-content .wp-block-table,
.custom-page-template .wp-block-table {
	max-width: 100%;
	margin: 1.5rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content table,
.custom-page-template table {
	width: 100%;
	margin: 1.5rem 0;
	border: 1px solid var(--vh-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--vh-radius);
	background: #ffffff;
	color: var(--vh-ink);
	font-size: 0.98em;
	line-height: 1.55;
	overflow: hidden;
}

.entry-content .wp-block-table table,
.custom-page-template .wp-block-table table {
	margin: 0;
}

.entry-content table caption,
.custom-page-template table caption {
	padding: 12px 14px;
	background: #f8fafc;
	color: var(--vh-primary-dark);
	font-weight: 700;
	text-align: left;
	caption-side: top;
}

.entry-content table th,
.entry-content table td,
.custom-page-template table th,
.custom-page-template table td {
	padding: 12px 14px;
	border-right: 1px solid var(--vh-line);
	border-bottom: 1px solid var(--vh-line);
	vertical-align: top;
	text-align: left;
}

.entry-content table th,
.custom-page-template table th {
	background: #eef6ff;
	color: var(--vh-primary-dark);
	font-weight: 800;
}

.entry-content table tr:nth-child(even) td,
.custom-page-template table tr:nth-child(even) td {
	background: #fbfdff;
}

.entry-content table tr:last-child td,
.custom-page-template table tr:last-child td {
	border-bottom: 0;
}

.entry-content table th:last-child,
.entry-content table td:last-child,
.custom-page-template table th:last-child,
.custom-page-template table td:last-child {
	border-right: 0;
}

.vh-contact-details {
	margin: 1.4rem 0;
	padding: 18px 20px;
	border: 1px solid #cfe0ef;
	border-left: 4px solid var(--vh-accent);
	border-radius: var(--vh-radius);
	background: #f6fbff;
}

.vh-contact-details h2 {
	margin-top: 0;
}

.vh-contact-details p:last-child {
	margin-bottom: 0;
}

.vh-contact-note {
	margin-top: 1.4rem;
	padding: 12px 14px;
	border-left: 3px solid var(--vh-accent);
	border-radius: 0 6px 6px 0;
	background: #fffaf0;
	color: #4b5563;
}

/* Footer: concise orientation around spiritual culture. */
.footer-info {
	grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.footer-slogan {
	margin: 0 0 10px;
	color: #f6c56b !important;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1.45;
}

.footer-intro p {
	max-width: 360px;
}

.footer-more-link {
	font-weight: 700;
}

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

.footer-link-list li {
	margin: 0 0 8px;
}

.footer-link-list li::before {
	margin-right: 8px;
	color: #f6c56b;
	content: ">";
}

.footer-contact .contact-location,
.footer-contact .contact-phone,
.footer-contact .email {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	margin-bottom: 9px;
	line-height: 1.55;
}

.footer-contact .contact-location::before,
.footer-contact .contact-phone::before,
.footer-contact .email::before {
	flex: 0 0 15px;
	margin-top: 3px;
	margin-right: 9px;
}

.footer-contact .contact-phone a {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.footer-contact .email a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.footer-contact .footer-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 13px;
}

.footer-contact .footer-social-links a {
	margin-right: 0;
}

@media (max-width: 900px) {
	.footer-info {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.entry-content table,
	.custom-page-template table {
		display: block;
		width: max-content;
		min-width: 100%;
		max-width: none;
		overflow-x: auto;
	}

	.entry-content table th,
	.entry-content table td,
	.custom-page-template table th,
	.custom-page-template table td {
		min-width: 150px;
		padding: 10px 12px;
	}

	.footer-info {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
blockquote {
  margin: 0 0 14px;
    padding-left: 16px;
    border-left: 3px solid var(--vh-accent);
    font-style: italic;
}
