/**
 * Yusung Single Post Styles
 *
 * @package Yusung
 * @since   1.3.0
 */

/* --------------------------------------------------------------------------
   Theme tokens — đồng bộ header / list-post
   -------------------------------------------------------------------------- */
body.yusung-single-post-page {
	--yusung-single-primary: #004187;
	--yusung-single-primary-dark: #003066;
	--yusung-single-text: #1a1a2e;
	--yusung-single-muted: #6b7280;
	--yusung-single-border: #e2e8f0;
	--yusung-single-bg: #f5f7fa;
	--yusung-single-card: #ffffff;
	background: var(--yusung-single-bg);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.yusung-single-main {
	padding-top: 1.5rem;
	padding-bottom: 2.5rem;
}

.yusung-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1.5rem;
	align-items: start;
}

.yusung-single-layout__content {
	min-width: 0;
}

.yusung-single-post.entry {
	margin-bottom: 0;
	padding: 1.75rem 2rem 2rem;
	background: var(--yusung-single-card);
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.yusung-breadcrumb {
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	color: var(--yusung-single-muted);
}

.yusung-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yusung-breadcrumb__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.yusung-breadcrumb__item:not(:last-child)::after {
	content: "/";
	color: #cbd5e1;
}

.yusung-breadcrumb__link {
	color: var(--yusung-single-muted);
	text-decoration: none;
}

.yusung-breadcrumb__link:hover {
	color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-breadcrumb__current {
	color: var(--yusung-single-text);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.yusung-single-post__header {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--yusung-single-border);
}

.yusung-single-post__categories {
	margin-bottom: 0.625rem;
}

.yusung-single-post__category-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-single-post__category-badge:hover {
	color: var(--yusung-single-primary-dark);
	text-decoration: none;
}

.yusung-single-post__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.35;
	font-weight: 700;
	margin: 0 0 0.875rem;
	color: var(--yusung-single-text);
}

/* --------------------------------------------------------------------------
   Post Meta — 1 dòng gọn
   -------------------------------------------------------------------------- */
.yusung-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0;
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	color: var(--yusung-single-muted);
	line-height: 1.4;
}

.yusung-single-post__meta-author {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--yusung-single-text);
	text-decoration: none;
	font-weight: 600;
}

.yusung-single-post__meta-author:hover {
	color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-single-post__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.yusung-single-post__meta-sep {
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 0.625rem;
	border-radius: 50%;
	background: #cbd5e1;
	flex-shrink: 0;
}

.yusung-single-post__meta-date,
.yusung-single-post__meta-read {
	white-space: nowrap;
}

.yusung-single-post__meta-comments {
	color: var(--yusung-single-muted);
	text-decoration: none;
	white-space: nowrap;
}

.yusung-single-post__meta-comments:hover {
	color: var(--yusung-single-primary);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Social Share — nằm ngang
   -------------------------------------------------------------------------- */
.yusung-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
}

.yusung-share__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--yusung-single-muted);
	white-space: nowrap;
}

.yusung-share__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yusung-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: var(--yusung-single-card);
	border: 1px solid var(--yusung-single-border);
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}

.yusung-share__btn:hover {
	border-color: var(--yusung-single-primary);
	background: rgba(0, 65, 135, 0.05);
	text-decoration: none;
}

.yusung-share__icon {
	width: 16px;
	height: 16px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.yusung-share__icon--facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231877f2'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E"); }
.yusung-share__icon--twitter { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E"); }
.yusung-share__icon--linkedin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a66c2'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E"); }
.yusung-share__icon--zalo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230068ff'%3E%3Ctext x='4' y='18' font-size='16' font-weight='700' font-family='Arial'%3EZ%3C/text%3E%3C/svg%3E"); }
.yusung-share__icon--telegram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2329b6f6'%3E%3Cpath d='M11.944 0A12 12 0 000 12a12 12 0 0012 12 12 12 0 0012-12A12 12 0 0012 0a12 12 0 00-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 01.171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E"); }
.yusung-share__icon--whatsapp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325d366'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E"); }
.yusung-share__icon--email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E"); }
.yusung-share__icon--copy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E"); }

.yusung-share__btn.is-copied {
	border-color: #10b981;
	background: rgba(16, 185, 129, 0.08);
}

/* --------------------------------------------------------------------------
   Featured Image
   -------------------------------------------------------------------------- */
.yusung-single-post__featured {
	margin: 0 0 1.5rem;
	border-radius: 8px;
	overflow: hidden;
	background: #e5e7eb;
}

.yusung-single-post__featured-image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.yusung-single-post__featured-caption {
	margin: 0;
	padding: 0.625rem 0.875rem;
	font-size: 0.8125rem;
	color: var(--yusung-single-muted);
	text-align: center;
	background: #f8fafc;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.yusung-single-post__main {
	min-width: 0;
}

.yusung-single-post__content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--yusung-single-text);
}

.yusung-single-post__content > * + * {
	margin-top: 1.125em;
}

.yusung-single-post__content h2,
.yusung-single-post__content h3,
.yusung-single-post__content h4 {
	scroll-margin-top: 90px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--yusung-single-text);
}

.yusung-single-post__content h2 {
	font-size: 1.375rem;
	margin-top: 2rem;
}

.yusung-single-post__content h3 {
	font-size: 1.1875rem;
	margin-top: 1.5rem;
}

.yusung-single-post__content h4 {
	font-size: 1.0625rem;
	margin-top: 1.25rem;
}

.yusung-single-post__content p {
	margin: 0;
}

.yusung-single-post__content ul,
.yusung-single-post__content ol {
	padding-left: 1.25rem;
}

.yusung-single-post__content blockquote {
	margin: 1.25rem 0;
	padding: 0.875rem 1.125rem;
	border-left: 3px solid var(--yusung-single-primary);
	background: rgba(0, 65, 135, 0.04);
	border-radius: 0 4px 4px 0;
}

.yusung-single-post__content img {
	border-radius: 6px;
}

.yusung-single-post__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.yusung-single-post__content th,
.yusung-single-post__content td {
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--yusung-single-border);
}

.yusung-single-post__content th {
	background: #f8fafc;
	font-weight: 600;
}

.yusung-single-post__content pre {
	padding: 1rem;
	background: #1a1a2e;
	color: #f1f5f9;
	border-radius: 6px;
	overflow-x: auto;
	font-size: 0.8125rem;
}

.yusung-single-post__content :not(pre) > code {
	padding: 0.125em 0.35em;
	background: #f1f5f9;
	border-radius: 3px;
	font-size: 0.875em;
}

/* --------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------- */
.yusung-toc {
	margin-bottom: 1.25rem;
	padding: 1rem 1.125rem;
	background: #f8fafc;
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
}

.yusung-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.625rem;
}

.yusung-toc__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--yusung-single-text);
}

.yusung-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--yusung-single-border);
	border-radius: 4px;
	cursor: pointer;
	color: var(--yusung-single-muted);
}

.yusung-toc__toggle-icon::before {
	content: "−";
	font-size: 1rem;
	line-height: 1;
}

.yusung-toc.is-collapsed .yusung-toc__toggle-icon::before {
	content: "+";
}

.yusung-toc.is-collapsed .yusung-toc__list {
	display: none;
}

.yusung-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yusung-toc__item--h3 { padding-left: 0.875rem; }
.yusung-toc__item--h4 { padding-left: 1.75rem; }

.yusung-toc__link {
	display: block;
	padding: 0.3rem 0;
	padding-left: 0.625rem;
	font-size: 0.875rem;
	color: var(--yusung-single-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
}

.yusung-toc__link:hover,
.yusung-toc__link.is-active {
	color: var(--yusung-single-primary);
	border-left-color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-toc--sidebar { display: none; }

.yusung-single-sidebar__toc .yusung-toc--sidebar {
	display: block;
	margin-bottom: 1rem;
}

@media (min-width: 1200px) {
	body.has-single-sidebar .yusung-toc--inline { display: none; }
	.yusung-single-sidebar__toc .yusung-toc--sidebar { display: block; }
}

/* --------------------------------------------------------------------------
   FAQ / CTA / Tags
   -------------------------------------------------------------------------- */
.yusung-faq {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--yusung-single-border);
}

.yusung-faq__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--yusung-single-text);
}

.yusung-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.yusung-faq__item {
	border: 1px solid var(--yusung-single-border);
	border-radius: 6px;
	background: #fff;
}

.yusung-faq__question {
	padding: 0.875rem 1rem;
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
	list-style: none;
}

.yusung-faq__question::-webkit-details-marker { display: none; }

.yusung-faq__answer {
	padding: 0 1rem 0.875rem;
	font-size: 0.875rem;
	color: var(--yusung-single-muted);
	line-height: 1.65;
}

.yusung-single-cta {
	margin-top: 2rem;
}

.yusung-single-cta__inner {
	padding: 1.25rem 1.5rem;
	text-align: center;
	background: rgba(0, 65, 135, 0.05);
	border: 1px solid rgba(0, 65, 135, 0.12);
	border-radius: 8px;
}

.yusung-single-cta__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.yusung-single-cta__text {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: var(--yusung-single-muted);
}

.yusung-single-cta__button {
	display: inline-flex;
	padding: 0.625rem 1.25rem;
	font-weight: 600;
	font-size: 0.9375rem;
	color: #fff;
	background: var(--yusung-single-primary);
	border-radius: 4px;
	text-decoration: none;
}

.yusung-single-cta__button:hover {
	background: var(--yusung-single-primary-dark);
	color: #fff;
	text-decoration: none;
}

.yusung-single-post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--yusung-single-border);
}

.yusung-single-post__tags-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--yusung-single-muted);
}

.yusung-single-post__tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yusung-single-post__tag {
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	color: var(--yusung-single-text);
	background: #f1f5f9;
	border-radius: 4px;
	text-decoration: none;
}

.yusung-single-post__tag:hover {
	background: var(--yusung-single-primary);
	color: #fff;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Author Box
   -------------------------------------------------------------------------- */
.yusung-author-box {
	margin-top: 2rem;
	padding: 1.125rem;
	background: #f8fafc;
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
}

.yusung-author-box__header {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.yusung-author-box__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.yusung-author-box__name {
	margin: 0 0 0.125rem;
	font-size: 1.0625rem;
	font-weight: 700;
}

.yusung-author-box__name a {
	color: var(--yusung-single-text);
	text-decoration: none;
}

.yusung-author-box__name a:hover { color: var(--yusung-single-primary); }

.yusung-author-box__role {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--yusung-single-primary);
	font-weight: 500;
}

.yusung-author-box__bio {
	font-size: 0.875rem;
	color: var(--yusung-single-muted);
	line-height: 1.65;
}

.yusung-author-box__bio p { margin: 0; }

.yusung-author-box__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 0.75rem;
}

.yusung-author-box__social-link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-author-box__posts { margin-top: 0.75rem; }

.yusung-author-box__posts-link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--yusung-single-primary);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Post Navigation
   -------------------------------------------------------------------------- */
.yusung-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.875rem;
	margin-top: 2rem;
}

.yusung-post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 0.875rem;
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	background: #f8fafc;
}

.yusung-post-nav__item:hover {
	border-color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-post-nav__item--next {
	text-align: right;
	align-items: flex-end;
}

.yusung-post-nav__label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--yusung-single-primary);
}

.yusung-post-nav__thumb {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
}

.yusung-post-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yusung-post-nav__title {
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--yusung-single-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yusung-post-nav__date {
	font-size: 0.75rem;
	color: var(--yusung-single-muted);
}

/* --------------------------------------------------------------------------
   Related Posts — 3 cột
   -------------------------------------------------------------------------- */
.yusung-related-posts {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--yusung-single-border);
}

.yusung-related-posts__title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--yusung-single-text);
}

.yusung-related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.yusung-related-post__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s;
}

.yusung-related-post__link:hover {
	border-color: var(--yusung-single-primary);
	text-decoration: none;
}

.yusung-related-post__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e5e7eb;
}

.yusung-related-post__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.yusung-related-post__link:hover .yusung-related-post__image {
	transform: scale(1.04);
}

.yusung-related-post__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb, #f1f5f9);
}

.yusung-related-post__body {
	padding: 0.875rem 1rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.yusung-related-post__category {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--yusung-single-primary);
}

.yusung-related-post__title {
	margin: 0.25rem 0 0.375rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yusung-related-post__link:hover .yusung-related-post__title {
	color: var(--yusung-single-primary);
}

.yusung-related-post__excerpt {
	margin: 0 0 auto;
	font-size: 0.8125rem;
	color: var(--yusung-single-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yusung-related-post__meta {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.625rem;
	font-size: 0.6875rem;
	color: var(--yusung-single-muted);
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.yusung-single-sidebar {
	position: sticky;
	top: calc(var(--yusung-header-height, 120px) + 12px);
}

.yusung-single-sidebar .widget,
.yusung-single-widget {
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--yusung-single-card);
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
}

.yusung-single-widget__title,
.yusung-single-sidebar .widget-title {
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--yusung-single-text);
	border: none;
}

/* Widget list links */
.yusung-single-sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yusung-single-sidebar .widget li {
	padding: 0.375rem 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
	line-height: 1.45;
}

.yusung-single-sidebar .widget li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.yusung-single-sidebar .widget a {
	color: var(--yusung-single-text);
	text-decoration: none;
}

.yusung-single-sidebar .widget a:hover {
	color: var(--yusung-single-primary);
}

/* Block: Latest Comments */
.yusung-single-sidebar .wp-block-latest-comments,
.yusung-single-sidebar .widget .wp-block-latest-comments {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yusung-single-sidebar .wp-block-latest-comments__comment,
.yusung-single-sidebar .widget .wp-block-latest-comments__comment,
.yusung-single-sidebar .wp-block-latest-comments__comment article,
.yusung-single-sidebar .wp-block-latest-comments__comment-meta {
	margin: 0;
	padding: 0;
}

.yusung-single-sidebar .widget .wp-block-latest-comments__comment {
	padding: 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
	line-height: 1.45;
}

.yusung-single-sidebar .widget .wp-block-latest-comments__comment:last-child {
	border-bottom: none;
}

.yusung-single-sidebar .wp-block-latest-comments__comment-author,
.yusung-single-sidebar .wp-block-latest-comments__comment-link {
	color: var(--yusung-single-text);
	text-decoration: none;
}

.yusung-single-sidebar .wp-block-latest-comments__comment-author:hover,
.yusung-single-sidebar .wp-block-latest-comments__comment-link:hover {
	color: var(--yusung-single-primary);
}

/* Search form — gọn 1 dòng, nút icon */
.yusung-single-post-page .search-form,
.yusung-single-post-page .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.yusung-single-post-page .search-form label,
.yusung-single-post-page .search-form__label,
.yusung-single-post-page .wp-block-search__label {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.yusung-single-post-page .search-field,
.yusung-single-post-page .wp-block-search__input {
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-family: inherit;
	line-height: 38px;
	border: 1px solid var(--yusung-single-border);
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
}

.yusung-single-post-page .search-field:focus,
.yusung-single-post-page .wp-block-search__input:focus {
	outline: none;
	border-color: var(--yusung-single-primary);
}

.yusung-single-post-page .search-submit,
.yusung-single-post-page .wp-block-search__button {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	min-height: 38px;
	padding: 0;
	font-size: 0;
	line-height: 0;
	color: #fff;
	background-color: var(--yusung-single-primary);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.yusung-single-post-page .search-submit__icon {
	display: block;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	stroke: #fff;
}

/* Block Search widget — icon kính lúp trên nút xanh */
.yusung-single-post-page .wp-block-search__button {
	position: relative;
	color: transparent;
}

.yusung-single-post-page .wp-block-search__button::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background: 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.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.yusung-single-post-page .search-submit:hover,
.yusung-single-post-page .wp-block-search__button:hover {
	background-color: var(--yusung-single-primary-dark);
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.yusung-single-post-page .comments-area {
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--yusung-single-card);
	border: 1px solid var(--yusung-single-border);
	border-radius: 8px;
}

.yusung-single-post-page .comments-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
}

.yusung-single-post-page .comment-list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.yusung-single-post-page .comment-list .comment {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 6px;
	border: 1px solid var(--yusung-single-border);
}

.yusung-single-post-page .comment-list .children {
	margin: 0.75rem 0 0 1rem;
	padding: 0;
	list-style: none;
}

.yusung-single-post-page .comment-author {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.375rem;
}

.yusung-single-post-page .comment-author img { border-radius: 50%; }

.yusung-single-post-page .comment-meta {
	font-size: 0.75rem;
	color: var(--yusung-single-muted);
}

.yusung-single-post-page .comment-form input[type="text"],
.yusung-single-post-page .comment-form input[type="email"],
.yusung-single-post-page .comment-form input[type="url"],
.yusung-single-post-page .comment-form textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--yusung-single-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.9375rem;
	box-sizing: border-box;
}

.yusung-single-post-page .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

/* --------------------------------------------------------------------------
   Progress bar
   -------------------------------------------------------------------------- */
.yusung-floating__progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	z-index: 9999;
	pointer-events: none;
}

.yusung-floating__progress-bar {
	height: 100%;
	width: 0;
	background: var(--yusung-single-primary);
	transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   No sidebar
   -------------------------------------------------------------------------- */
body.yusung-single-post-page:not(.has-single-sidebar) .yusung-single-layout {
	grid-template-columns: 1fr;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.yusung-single-layout {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.yusung-single-post.entry {
		padding: 1.25rem 1.25rem 1.5rem;
	}

	.yusung-single-sidebar {
		position: static;
	}

	.yusung-related-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.yusung-single-post__title {
		font-size: 1.375rem;
	}

	.yusung-single-post__meta {
		font-size: 0.75rem;
	}

	.yusung-post-nav {
		grid-template-columns: 1fr;
	}

	.yusung-post-nav__item--next {
		text-align: left;
		align-items: flex-start;
	}

	.yusung-related-posts__grid {
		grid-template-columns: 1fr;
	}

	.yusung-author-box__header {
		flex-direction: column;
		text-align: center;
	}
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
