.single-post .hero-section[data-type="type-2"] .page-title { max-width: min(100%, 780px); }

.single-post .vilifa-post-panel { margin-bottom: 25px; }
.single-post .vilifa-post-panel h2 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 16px; }
.single-post .vilifa-post-panel :is(p, .wp-block-query):last-child { margin-bottom: 0; }
.single-post .vilifa-post-panel-about { padding-bottom: 28px; border-bottom: 1px solid #c4c7be; }
.single-post .vilifa-post-panel .wp-block-post-template { margin: 0; }
.single-post .vilifa-post-panel .wp-block-post {
	display: grid;
	grid-template-columns: minmax(80px, 34%) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: 16px;
	margin: 0 0 22px;
}
.single-post .vilifa-post-panel .wp-block-post:last-child { margin-bottom: 0; }
.single-post .vilifa-post-panel .wp-block-post-featured-image {
	grid-area: 1 / 1 / 3;
	align-self: start;
	margin: 0;
}
.single-post .vilifa-post-panel .wp-block-post-featured-image img { border-radius: 14px; }
.single-post .vilifa-post-panel .wp-block-post-title { grid-area: 2 / 2; font-size: 16px; line-height: 1.3; margin: 0; }
.single-post .vilifa-post-panel .wp-block-post-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.single-post .vilifa-post-panel .wp-block-post-date { grid-area: 1 / 2; font-size: 13px; margin: 0 0 6px; }
.single-post .vilifa-post-panel-categories { padding: 28px; border-radius: 20px; background: #eaf3ee; }
.single-post .vilifa-post-panel-categories ul { list-style: none; padding: 0; margin: 0; }
.single-post .vilifa-post-panel-categories a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #c8d6ce;
}
.single-post .vilifa-post-panel-categories a::after { content: "›"; }
.single-post .vilifa-post-sidebar-tags a {
	display: inline-block;
	margin: 4px 3px;
	padding: 4px 10px;
	border-radius: 8px;
	background: #f4efe4;
}

/* The sidebar follows the document and keeps Blocksy's desktop sticky offset. */
.single-post #sidebar .ct-sidebar[data-sticky="sidebar"] { --sidebar-offset: 20px; }
.single-post #sidebar .vilifa-post-panel:last-child,
.single-post #sidebar .vilifa-post-sidebar-tags:last-child { margin-bottom: 0; }

.single-post .ct-related-posts-container > .ct-container { width: min(1200px, calc(100% - 40px)); }
.single-post .vilifa-related-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
}
.single-post .vilifa-related-heading .ct-module-title { margin: 0; }
.single-post .ct-related-posts-items > article > .hentry { display: flex; flex-direction: column; align-items: start; height: 100%; }
.single-post .ct-related-posts-items > article > .hentry > .entry-meta { margin-bottom: 12px; }
.single-post .ct-related-posts-items > article > .hentry > .related-entry-title { margin-bottom: 22px; }
.single-post .ct-related-posts-items > article > .hentry > .vilifa-related-read-more { margin-top: auto; }
.single-post .ct-related-posts-items > article > .hentry > .ct-media-container { width: 100%; }

@media (max-width: 689px) {
	.single-post .vilifa-related-heading { flex-direction: column; align-items: start; margin-bottom: 30px; }
}

.single-post .ct-related-posts .entry-meta { --theme-text-color: #000; }
.single-post .ct-related-posts .entry-meta svg { color: var(--theme-palette-color-1, #145e39); }

/* Imported posts can contain nested tables or long source URLs. */
.single-post .entry-content { min-width: 0; overflow-wrap: anywhere; }
.single-post .entry-content .wp-block-table { overflow-x: auto; }

/* Imported posts carry inline `text-align: justify`: headings stay left-aligned, and on narrow screens paragraphs do too
   (justified text in a 350px column leaves wide gaps between words). */
.single-post .entry-content :is(h1, h2, h3, h4, h5, h6) { text-align: start !important; }

@media (max-width: 767px) {
	.single-post .entry-content :is(p, li, blockquote) { text-align: start !important; }
	.single-post .entry-content table :is(th, td) {
		padding: 10px 8px;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: manual;
	}
}

/* Imported Vietnamese content carries inline `font-family: arial…`; the site font is used instead so VI and EN match. */
.single-post .entry-content [style*="font-family"] { font-family: inherit !important; }
