/**
 * LeanStack-style display for WebGool — category archive + single post.
 *
 * File này CHỈ chứa style cho 2 template mới (archive.php, single.php).
 * KHÔNG định nghĩa lại các class đã có ở Additional CSS dòng 156–168
 * (.ls-takeaways, .ls-verdict, .ls-faq, .wp-block-table, nhịp H2/H3) —
 * các class đó vẫn do Additional CSS phụ trách.
 *
 * Màu bám theo ảnh chụp leanstackai.com 23/11/2026 + màu navy #0f2a43
 * đã dùng cho .ls-verdict trên webgool. Font giữ nguyên Be Vietnam Pro
 * của site (không đổi sang Inter).
 */

/* ============ Tokens ============ */
.ls-primary {
	--ls-navy: #0f2a43;
	--ls-body: #334155;
	--ls-muted: #64748b;
	--ls-border: #e2e8f0;
	--ls-soft: #f8fafc;
	--ls-green: #047857;
	--ls-green-bright: #059669;
	--ls-green-soft: #ecfdf5;
	--ls-green-border: #a7f3d0;
	--ls-pill-bg: #eef2f7;
	--ls-link: #2563eb;
}

/* Ép #primary lấy đủ chiều rộng container (tránh CSS sidebar của Astra
   bóp hẹp khi Customizer đang để layout có sidebar). Bước triển khai vẫn
   nên đặt Sidebar Layout = "No Sidebar" cho Blog trong Customizer. */
div#primary.ls-primary {
	width: 100%;
}

/* Tùy chọn: nới container Astra lên 1280px chỉ trên archive/single.
   Nếu rule này không có tác dụng (tùy phiên bản Astra) thì bỏ qua —
   chiều rộng mặc định trong Customizer vẫn dùng được. */
body.archive #content > .ast-container,
body.single-post #content > .ast-container {
	max-width: 1280px;
}

/* ============ Dùng chung ============ */
.ls-breadcrumb {
	font-size: 14px;
	color: var(--ls-muted);
	margin: 0 0 16px;
}
.ls-breadcrumb a {
	color: var(--ls-muted);
	text-decoration: none;
}
.ls-breadcrumb a:hover {
	color: var(--ls-green);
}
.ls-breadcrumb-sep {
	margin: 0 8px;
	color: #cbd5e1;
}
.ls-breadcrumb-current {
	color: var(--ls-body);
	font-weight: 600;
}

.ls-pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: var(--ls-pill-bg);
	color: var(--ls-navy);
	padding: 5px 10px;
	border-radius: 6px;
	text-decoration: none;
	line-height: 1.4;
}
a.ls-pill:hover {
	background: #e2e8f0;
	color: var(--ls-navy);
}
.ls-pill--single {
	background: var(--ls-green-soft);
	border: 1px solid var(--ls-green-border);
	color: var(--ls-green);
	border-radius: 999px;
	padding: 6px 14px;
}
a.ls-pill--single:hover {
	background: #d1fae5;
}
.ls-pill--small {
	font-size: 11px;
	padding: 4px 8px;
}

.ls-side-card {
	border: 1px solid var(--ls-border);
	border-radius: 12px;
	background: #fff;
	padding: 24px;
}
.ls-side-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--ls-navy);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ============ Archive: header ============ */
.ls-archive-head {
	border-bottom: 1px solid var(--ls-border);
	padding-bottom: 28px;
}
.ls-archive-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
}
.ls-archive-title {
	font-size: 48px;
	line-height: 1.1;
	font-weight: 800;
	color: var(--ls-navy);
	margin: 0;
	letter-spacing: -.01em;
}
.ls-count-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ls-green);
	background: var(--ls-green-soft);
	border: 1px solid var(--ls-green-border);
	border-radius: 999px;
	padding: 7px 14px;
	white-space: nowrap;
}
.ls-count-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ls-green-bright);
	display: inline-block;
}
.ls-archive-desc {
	font-size: 18px;
	line-height: 1.6;
	color: #475569;
	max-width: 760px;
	margin: 16px 0 0;
}

.ls-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 0;
}
.ls-filter {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--ls-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ls-body);
	font-size: 15px;
	text-decoration: none;
}
.ls-filter:hover {
	border-color: var(--ls-navy);
	color: var(--ls-navy);
}
.ls-filter.is-active {
	background: var(--ls-navy);
	border-color: var(--ls-navy);
	color: #fff;
}

/* ============ Archive: layout + card ============ */
.ls-archive-layout,
.ls-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	margin-top: 32px;
	align-items: start;
}
.ls-archive-side,
.ls-single-side {
	position: sticky;
	top: 90px;
	align-self: start;
}

.ls-card {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid var(--ls-border);
	margin: 0;
}
.ls-card:first-child {
	padding-top: 8px;
}
.ls-card--no-thumb {
	grid-template-columns: minmax(0, 1fr);
}
.ls-card-thumb img {
	width: 100%;
	height: 175px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}
.ls-card-title {
	font-size: 23px;
	line-height: 1.3;
	font-weight: 800;
	margin: 10px 0 8px;
}
.ls-card-title a {
	color: var(--ls-navy);
	text-decoration: none;
}
.ls-card-title a:hover {
	color: var(--ls-green);
}
.ls-card-excerpt {
	font-size: 16px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 12px;
}
.ls-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-size: 14px;
	color: var(--ls-muted);
	margin: 0;
}
.ls-card-author {
	color: var(--ls-body);
	font-weight: 600;
}
.ls-card-read,
.ls-rel-read {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ls-card-read svg,
.ls-rel-read svg,
.ls-byline-read svg {
	vertical-align: -2px;
}
.ls-no-posts {
	font-size: 17px;
	color: var(--ls-muted);
	padding: 32px 0;
}

/* Phân trang (the_posts_pagination) */
.ls-pagination {
	margin-top: 40px;
}
.ls-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.ls-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	background: #fff;
	color: var(--ls-body);
	font-weight: 600;
	text-decoration: none;
}
.ls-pagination a.page-numbers:hover {
	border-color: var(--ls-navy);
	color: var(--ls-navy);
}
.ls-pagination .page-numbers.current {
	background: var(--ls-navy);
	border-color: var(--ls-navy);
	color: #fff;
}
.ls-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* Sidebar archive: Đọc nhiều nhất tuần */
.ls-most-read {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ls-most-read-item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ls-border);
}
.ls-most-read-item:first-child {
	padding-top: 0;
}
.ls-most-read-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.ls-most-read-num {
	font-size: 28px;
	font-weight: 800;
	color: var(--ls-green-bright);
	line-height: 1;
	min-width: 28px;
}
.ls-most-read-text a {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ls-navy);
	text-decoration: none;
}
.ls-most-read-text a:hover {
	color: var(--ls-green);
}
.ls-most-read-meta {
	display: block;
	font-size: 13px;
	color: var(--ls-muted);
	margin-top: 4px;
}

/* ============ Single: header + byline + ảnh ============ */
.ls-single-pill-row {
	margin: 0 0 4px;
}
.ls-single-title {
	font-size: 46px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--ls-navy);
	margin: 12px 0 16px;
	letter-spacing: -.01em;
}
.ls-single-dek {
	font-size: 20px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 24px;
}
.ls-byline {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border-top: 1px solid var(--ls-border);
	border-bottom: 1px solid var(--ls-border);
	padding: 16px 0;
	margin: 0 0 28px;
}
.ls-byline-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: block;
}
.ls-byline-line1 {
	font-size: 16px;
	margin: 0 0 4px;
}
.ls-byline-author {
	font-weight: 700;
	color: var(--ls-navy);
	text-decoration: none;
}
.ls-byline-author:hover {
	color: var(--ls-green);
}
.ls-role-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ls-muted);
	border: 1px solid var(--ls-border);
	border-radius: 6px;
	padding: 3px 8px;
	margin-left: 8px;
	vertical-align: 1px;
}
.ls-byline-line2 {
	color: var(--ls-muted);
	font-size: 14px;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
}
.ls-byline-read {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ls-fact-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ls-green);
	background: var(--ls-green-soft);
	border: 1px solid var(--ls-green-border);
	border-radius: 999px;
	padding: 3px 10px;
}

.ls-featured {
	margin: 0 0 28px;
}
.ls-featured-img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}
.ls-featured-cap {
	font-size: 13px;
	color: var(--ls-muted);
	text-align: center;
	margin: 10px 0 0;
}

/* ============ Single: nội dung ============ */
/* Chỉ nhịp chữ + H2/H3. Các khối .ls-takeaways/.ls-verdict/.ls-faq và bảng
   .wp-block-table đã có style ở Additional CSS — không định nghĩa lại. */
.ls-single-body {
	font-size: 18px;
	line-height: 1.85;
	color: var(--ls-body);
}
.ls-single-body h2 {
	font-size: 30px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--ls-navy);
	margin: 40px 0 16px;
	scroll-margin-top: 90px;
}
.ls-single-body h3 {
	font-size: 23px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--ls-navy);
	margin: 32px 0 12px;
	scroll-margin-top: 90px;
}
.ls-single-body p {
	margin: 0 0 20px;
}
.ls-single-body img {
	border-radius: 12px;
}

/* ============ Single: sidebar (mục lục + tin nổi bật) ============ */
.ls-toc {
	border: 1px solid var(--ls-border);
	border-top: 3px solid var(--ls-green-bright);
	border-radius: 12px;
	background: #fff;
	padding: 20px 22px;
	margin-bottom: 24px;
}
.ls-toc-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ls-navy);
	margin: 0 0 12px;
}
.ls-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ls-toc-list li {
	margin: 0;
}
.ls-toc-list a {
	display: block;
	font-size: 15px;
	line-height: 1.5;
	color: #475569;
	text-decoration: none;
	padding: 6px 0 6px 12px;
	border-left: 2px solid var(--ls-border);
	margin-left: 2px;
}
.ls-toc-list a:hover {
	color: var(--ls-green);
}
.ls-toc-list a.is-active {
	color: var(--ls-green);
	font-weight: 600;
	border-left-color: var(--ls-green-bright);
}

.ls-trending-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ls-green-bright);
	display: inline-block;
	box-shadow: 0 0 0 3px #d1fae5;
}
.ls-trending-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ls-trending-item {
	padding: 14px 0;
	border-bottom: 1px solid var(--ls-border);
}
.ls-trending-item:first-child {
	padding-top: 0;
}
.ls-trending-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.ls-trending-link {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ls-navy);
	text-decoration: none;
}
.ls-trending-link:hover {
	color: var(--ls-green);
}
.ls-trending-meta {
	display: block;
	font-size: 13px;
	color: var(--ls-muted);
	margin-top: 4px;
}

/* ============ Single: author box ============ */
.ls-author {
	display: flex;
	gap: 16px;
	background: var(--ls-soft);
	border: 1px solid var(--ls-border);
	border-radius: 12px;
	padding: 24px;
	margin-top: 48px;
}
.ls-author-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: block;
}
.ls-author-top {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
}
.ls-author-name {
	font-size: 18px;
	font-weight: 800;
	color: var(--ls-navy);
	text-decoration: none;
}
.ls-author-name:hover {
	color: var(--ls-green);
}
.ls-author-verified {
	font-size: 12px;
	font-weight: 700;
	color: var(--ls-green);
	background: var(--ls-green-soft);
	border: 1px solid var(--ls-green-border);
	border-radius: 999px;
	padding: 3px 10px;
}
.ls-author-role {
	font-size: 14px;
	color: var(--ls-muted);
	margin: 4px 0 10px;
}
.ls-author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	font-size: 14px;
}
.ls-author-links a {
	font-weight: 600;
	text-decoration: none;
}
.ls-author-links a:hover {
	text-decoration: underline;
}

/* ============ Single: bài liên quan ============ */
.ls-related {
	margin-top: 56px;
}
.ls-related-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ls-green);
	margin: 0 0 6px;
}
.ls-related-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--ls-border);
	padding-bottom: 14px;
	margin-bottom: 24px;
}
.ls-related-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--ls-navy);
	margin: 0;
}
.ls-related-all {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}
.ls-related-all:hover {
	text-decoration: underline;
}
.ls-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.ls-rel-card {
	border: 1px solid var(--ls-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	margin: 0;
}
.ls-rel-thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.ls-rel-body {
	padding: 16px;
}
.ls-rel-title {
	font-size: 17px;
	line-height: 1.4;
	font-weight: 800;
	margin: 10px 0 12px;
}
.ls-rel-title a {
	color: var(--ls-navy);
	text-decoration: none;
}
.ls-rel-title a:hover {
	color: var(--ls-green);
}
.ls-rel-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--ls-muted);
	margin: 0;
}

/* ============ Single: bình luận ============ */
.ls-comments {
	margin-top: 56px;
}
.ls-comments .comment-reply-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--ls-navy);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
	.ls-archive-layout,
	.ls-single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.ls-archive-side,
	.ls-single-side {
		position: static;
	}
	/* Mobile: mục lục nhảy lên trước nội dung bài, tin nổi bật xuống cuối. */
	.ls-single-side {
		display: contents;
	}
	.ls-toc {
		order: -1;
		margin-bottom: 8px;
	}
	.ls-trending {
		margin-top: 40px;
	}
	.ls-related-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.ls-archive-title {
		font-size: 34px;
	}
	.ls-single-title {
		font-size: 32px;
	}
	.ls-related-title {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.ls-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 24px 0;
	}
	.ls-card-thumb img {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.ls-card-title {
		font-size: 20px;
	}
	.ls-single-dek {
		font-size: 18px;
	}
	.ls-author {
		flex-direction: column;
	}
	.ls-single-body h2 {
		font-size: 26px;
	}
}
/* ==========================================================================
   GHI ĐÈ LƯỚI BLOG CỦA ASTRA (23/11/2026 — sửa lỗi card 2 cột)
   Astra (Customizer → Blog → No of Columns = 2) gắn class ast-width-md-6
   vào mỗi <article> qua post_class(): width:50% + float:left; cộng thêm
   .ast-grid-common-col (padding 2 bên 20px) và .ast-separate-container
   .ast-article-post (padding 5.34em 6.67em, nền trắng). Kết quả: card chỉ
   rộng 50%, thân bài còn ~100px, tiêu đề gãy từng từ một (ảnh chụp 21:33
   ngày 23/11 ở /category/blog/xu-huong-digital-marketing/). Khối này buộc
   card/bài LeanStack luôn full width, 1 cột, bất kể cài đặt cột của Astra
   — dùng !important vì quy tắc của Astra có specificity (0,2,0)–(0,3,0)
   cao hơn quy tắc gốc của template.
   ========================================================================== */
.ls-card-list {
	display: block;
}
.ls-card-list .ls-card {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: both !important;
	margin: 0 !important;
	padding: 28px 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #e2e8f0 !important;
}
.ls-card-list .ls-card:last-child {
	border-bottom: 0 !important;
}
/* Trang single: <article> cũng mang class của Astra qua post_class()
   (ast-article-single, ast-separate-posts...) — gỡ padding/nền của Astra. */
.ls-single-layout .ls-article {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}