/* ===== Trang chi tiết bài viết (single.php → layout-right-sidebar.php) =====
DOM thật: #content.blog-single > .row.row-large > .large-9.col > article > .article-inner
> header.entry-header (entry-title.php override + entry-image.php gốc) + content-single.php
override (entry-content, share, footer-meta, author-box, related-posts, prev/next nav)
+ .post-sidebar.large-3.col > #secondary.widget-area > aside.widget.widget_* (Danh mục,
Flatsome Recent Posts, HTML Tùy chỉnh chứa .tin-tuc-cta-box — class này đã có sẵn CSS
trong tin-tuc.css nên không lặp lại ở đây). ===== */
article.post{margin-bottom: 0;}
.blog-single.page-wrapper { padding-top: 40px; }
.blog-single .row-large.row-divided > .col { border-color: var(--border); }

/* ===== Entry header ===== */
.blog-single .entry-header { text-align: center; margin-bottom: 28px; }
.blog-single .entry-category {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--primary);
	font-size: 11.5px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
}
.blog-single .entry-category a { color: inherit; }
.blog-single .entry-title {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--text-dark);
	max-width: 780px;
	margin: 0 auto 16px;
}
.entry-meta-single {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--text-muted);
}
.entry-meta-single .entry-meta-author { color: var(--text-dark); font-weight: 600; }
.entry-meta-single .entry-meta-sep { color: #D8D8DC; }

/* ===== Ảnh đại diện ===== */
.blog-single .entry-image {
	margin: 0 auto 36px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.blog-single .entry-image img { width: 100%; height: auto; display: block; }
.blog-single .entry-image .post-date.badge {
	left: 16px; top: 16px;
	background: #fff;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card);
	padding: 8px 12px;
	text-align: center;
	line-height: 1.1;
}
.blog-single .entry-image .post-date .badge-inner { border: 0; background: #fff !important; padding: 0; }
.blog-single .entry-image .post-date-day { font-size: 17px; font-weight: 800; color: var(--primary); display: block; }
.blog-single .entry-image .post-date-month { font-size: 10.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

/* ===== Nội dung bài viết ===== */
.entry-content.single-page {
	margin: 0 auto;
	font-size: 15.5px;
	line-height: 1.8;
	color: var(--text-body);
}
.entry-content.single-page h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--primary);
	margin: 34px 0 14px;
	padding-left: 14px;
	border-left: 4px solid var(--secondary);
}
.entry-content.single-page h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 26px 0 10px;
}
.entry-content.single-page p { margin: 0 0 16px; }
.entry-content.single-page ul,
.entry-content.single-page ol { margin: 0 0 16px; padding-left: 22px; }
.entry-content.single-page ul { list-style: disc; }
.entry-content.single-page ol { list-style: decimal; }
.entry-content.single-page li { margin-bottom: 6px; }
.entry-content.single-page a:not(.btn) { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(229,57,53,0.35); }
.entry-content.single-page a:not(.btn):hover { text-decoration-color: var(--primary); }
.entry-content.single-page img { border-radius: var(--radius-md); }
.entry-content.single-page blockquote {
	margin: 20px 0;
	padding: 16px 20px;
	background: var(--bg-soft);
	border-left: 4px solid var(--primary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
	color: var(--text-dark);
}
.entry-content.single-page strong { color: var(--text-dark); }

/* ===== Chia sẻ bài viết ===== */
.entry-share-block {
	max-width: 780px;
	margin: 32px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.entry-share-block .share-icons-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-dark);
	margin-right: 4px;
}
.entry-share-block a.icon-style-outline {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	color: var(--text-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.entry-share-block a.icon-style-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.entry-share-block a.icon-style-outline svg,
.entry-share-block a.icon-style-outline i { width: 15px; height: 15px; font-size: 15px; }

/* ===== Chuyên mục / từ khóa cuối bài ===== */
.entry-footer-meta {
	max-width: 780px;
	margin: 20px auto 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.entry-footer-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.entry-footer-label { color: var(--text-muted); font-weight: 600; }
.entry-footer-row a {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--text-body);
	transition: background .2s ease, color .2s ease;
}
.entry-footer-row a:hover { background: var(--primary); color: #fff; }

/* ===== Author box ===== */
.author-box {
	max-width: 780px;
	margin: 28px auto 0;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 20px;
	box-shadow: var(--shadow-card);
    padding: 20px !important;
}
.author-box .blog-author-image img { border-radius: 50%; width: 64px; height: 64px; }
.author-eyebrow {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--secondary);
	margin-bottom: 2px;
}
.author-box .author-name { font-size: 15.5px; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; }
.author-box .author-desc { font-size: 13px; line-height: 1.55; color: var(--text-body); margin: 0; }

/* ===== Bài viết liên quan ===== */
.related-posts-section { max-width: 1040px; margin: 44px auto 0; }
.related-posts-title {
	text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 22px;
    text-transform: capitalize;
    letter-spacing: 1px;
}
.related-posts-title::after {
	content: '';
	display: block;
	width: 46px;
	height: 3px;
	background: var(--secondary);
	border-radius: 2px;
	margin: 10px auto 0;
}

/* ===== Prev / next nav ===== */
.navigation-post, #comments {
	display: none;
}

/* ===== Sidebar (widget native WP: Danh mục / Flatsome Recent Posts / HTML Tùy chỉnh) ===== */
.post-sidebar .widget { margin-bottom: 20px; }
.post-sidebar .widget:last-child { margin-bottom: 0; }

.post-sidebar .widget_categories,
.post-sidebar .flatsome_recent_posts {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: 18px;
}
.post-sidebar .widget-title {
	display: block;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--primary);
	margin: 0 0 14px;
	text-transform: uppercase;
}
.post-sidebar .widget_categories ul { display: flex; flex-direction: column; gap: 4px; }
.post-sidebar .widget_categories li.cat-item { 
	list-style: none;
	display: flex;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-body);
	transition: background .2s ease, color .2s ease;
	border: 0;
}
.post-sidebar .widget_categories li.cat-item:hover { background: var(--bg-soft); color: var(--primary); }

.post-sidebar .widget_flatsome_recent_posts ul { display: flex; flex-direction: column; gap: 4px; }
.post-sidebar .recent-blog-posts-li { list-style: none; }
.post-sidebar .recent-blog-posts-li:not(:last-child) { border-bottom: 1px solid var(--border); }
.post-sidebar .recent-blog-posts .badge.post-date {
	width: 52px; height: 52px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 0;
}
.post-sidebar .recent-blog-posts .badge-inner { border: 0; }
.post-sidebar .recent-blog-posts-li a {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	line-height: 1.4;
    margin: 0;
}
.post-sidebar .recent-blog-posts-li a:hover { color: var(--primary); }
.post-sidebar .post_comments { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.post-sidebar { margin-top: 32px; }
	.blog-single .entry-title { font-size: 26px; }
}
@media (max-width: 600px) {
	.blog-single.page-wrapper { padding-top: 24px; }
	.blog-single .entry-title { font-size: 23px; }
	.entry-content.single-page { font-size: 14.5px; }
	.navigation-post .flex-row { flex-direction: column; }
}
