/* PWT Blog: trang danh sách, trang danh mục và trang chi tiết bài viết. */

.pwt-blog,
.pwt-post,
.pwt-blog-section {
	--pwt-b-primary: var(--primary-color, #003c7f);
	--pwt-b-accent: var(--four-color, #f99d1c);
	--pwt-b-ink: #0f172a;
	--pwt-b-text: #334155;
	--pwt-b-muted: #64748b;
	--pwt-b-line: #e1e8f2;
	--pwt-b-soft: #f3f7fc;
	--pwt-b-hero: #eef4fa;
	--pwt-b-heading: #1d4f82;
	--pwt-b-sticky: 110px;
	font-family: "Inter", sans-serif;
	color: var(--pwt-b-text);
}

.pwt-blog-wrap {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

.pwt-blog h1,
.pwt-blog h2,
.pwt-blog h3,
.pwt-post h1,
.pwt-post h2,
.pwt-post h3,
.pwt-blog-section h2,
.pwt-blog-section h3 {
	text-transform: none;
	letter-spacing: normal;
}

/* ---------- Hero trang danh sách ---------- */
/* Cùng kiểu với hero trang Release Notes: nền một màu, dòng nhỏ in hoa, tiêu đề Rubik xanh */
.pwt-blog-hero {
	padding: 80px 0 110px;
	border-radius: 0 0 20px 20px;
	background: var(--pwt-b-hero);
	text-align: center;
}
.pwt-blog-eyebrow {
	display: block;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--pwt-b-heading);
}
.pwt-blog-hero__title {
	max-width: 900px;
	margin: 20px auto 0;
	font-family: "Rubik", sans-serif;
	font-size: 45px;
	font-weight: 700;
	line-height: 1.33;
	letter-spacing: -0.02em;
	text-transform: capitalize;
	color: var(--pwt-b-heading);
}
.pwt-blog-hero__desc {
	max-width: 900px;
	margin: 35px auto 0;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--pwt-b-text);
}
.pwt-blog-hero__desc p {
	margin: 0;
}

/* ---------- Bố cục danh sách: cột danh mục + lưới ---------- */
.pwt-blog-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 72px;
	padding-bottom: 96px;
}
.pwt-blog-cats {
	position: sticky;
	top: var(--pwt-b-sticky);
}
.pwt-blog-cats__title {
	margin: 0 0 18px;
	font-size: 22px;
	color: var(--pwt-b-ink);
}
.pwt-blog-cats__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pwt-blog-pill {
	display: block;
	padding: 11px 16px;
	border: 1px solid rgba(0, 60, 127, 0.35);
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	color: var(--pwt-b-primary);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pwt-blog-pill:hover,
.pwt-blog-pill:focus-visible {
	border-color: var(--pwt-b-primary);
	background: rgba(0, 60, 127, 0.06);
	color: var(--pwt-b-primary);
}
.pwt-blog-pill.is-active {
	border-color: var(--pwt-b-primary);
	background: var(--pwt-b-primary);
	color: #fff;
}

/* ---------- Thẻ bài viết ---------- */
.pwt-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}
/* Recommended Reading: căn giữa khi chưa đủ 3 bài */
.pwt-blog-grid--3 {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.pwt-blog-grid--3 > * {
	flex: 0 1 calc((100% - 56px) / 3);
}
.pwt-blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pwt-b-line);
	border-radius: 16px;
	background: #fff;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pwt-blog-card:hover {
	box-shadow: 0 18px 40px -16px rgba(0, 35, 80, 0.22);
	transform: translateY(-3px);
}
.pwt-blog-card__media {
	display: block;
	aspect-ratio: 1200 / 628;
	overflow: hidden;
	background: var(--pwt-b-soft);
}
.pwt-blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.pwt-blog-card:hover .pwt-blog-card__media img {
	transform: scale(1.04);
}
.pwt-blog-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 20px;
	background: #eaf4fd;
	font-size: 18px;
	font-weight: 600;
	color: var(--pwt-b-primary);
}
.pwt-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 26px;
}
.pwt-blog-card__meta {
	font-size: 14px;
	font-weight: 500;
	color: var(--pwt-b-muted);
}
.pwt-blog-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
}
.pwt-blog-card__title a {
	color: var(--pwt-b-ink);
}
/* Link tiêu đề phủ cả card → hover/bấm ở đâu trên card cũng mở bài */
.pwt-blog-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.pwt-blog-card:hover .pwt-blog-card__title a,
.pwt-blog-card__title a:focus-visible {
	color: var(--pwt-b-primary);
}
.pwt-blog-card:focus-within {
	box-shadow: 0 0 0 2px var(--pwt-b-primary);
}

/* ---------- Phân trang ---------- */
.pwt-blog-pagination {
	margin-top: 48px;
}
.pwt-blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	list-style: none;
}
/* paginate_links( type=list ) đặt class page-numbers cho cả <ul>, chỉ style từng nút bên trong */
.pwt-blog-pagination li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--pwt-b-line);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--pwt-b-text);
}
.pwt-blog-pagination li a.page-numbers:hover {
	border-color: var(--pwt-b-primary);
	color: var(--pwt-b-primary);
}
.pwt-blog-pagination li .page-numbers.current {
	border-color: var(--pwt-b-primary);
	background: var(--pwt-b-primary);
	color: #fff;
}
.pwt-blog-empty {
	padding: 48px 0;
	font-size: 18px;
	text-align: center;
	color: var(--pwt-b-muted);
}

/* ---------- Hero bài viết ---------- */
/* Theme thêm padding-top 70px cho #pxl-main ở trang bài viết trên điện thoại, tạo dải trắng trên hero */
.single-post #pxl-main {
	padding-top: 0 !important;
}
.pwt-post-hero {
	padding: 72px 0 80px;
	border-radius: 0 0 20px 20px;
	background: var(--pwt-b-hero);
	color: var(--pwt-b-ink);
}
.pwt-post-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 56px;
	align-items: center;
}
.pwt-post-hero__inner.no-media {
	grid-template-columns: minmax(0, 1fr);
	max-width: 1000px;
}
.pwt-post-hero__media {
	overflow: hidden;
	border: 1px solid var(--pwt-b-line);
	border-radius: 20px;
	box-shadow: 0 24px 50px -28px rgba(0, 35, 80, 0.3);
	aspect-ratio: 1200 / 628;
	background: #fff;
}
.pwt-post-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pwt-post-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pwt-b-muted);
}
.pwt-post-crumbs a {
	color: var(--pwt-b-primary);
}
.pwt-post-crumbs a:hover {
	color: #d98306;
}
.pwt-post-hero__title {
	margin: 0;
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.16;
	color: var(--pwt-b-ink);
}
.pwt-post-meta {
	display: inline-flex;
	flex-wrap: wrap;
	margin-top: 32px;
	border: 1px solid var(--pwt-b-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.85);
}
.pwt-post-meta__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 22px;
	font-size: 17px;
	font-weight: 500;
	color: var(--pwt-b-ink);
}
.pwt-post-meta__item + .pwt-post-meta__item {
	border-left: 1px solid var(--pwt-b-line);
}
.pwt-post-meta__label {
	font-size: 13px;
	font-weight: 400;
	color: var(--pwt-b-muted);
}

/* Mục lục */
.pwt-toc {
	overflow: hidden;
	border: 1px solid var(--pwt-b-line);
	border-radius: 14px;
	background: #fff;
}
.pwt-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--pwt-b-line);
	background: #eef4fb;
	font-size: 18px;
	font-weight: 600;
	color: var(--pwt-b-primary);
	cursor: pointer;
	list-style: none;
}
.pwt-toc__head::-webkit-details-marker {
	display: none;
}
.pwt-toc__head::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}
.pwt-toc__details:not([open]) .pwt-toc__head::after {
	transform: rotate(-45deg);
}
.pwt-toc__list {
	max-height: calc(100vh - var(--pwt-b-sticky) - 210px);
	margin: 0;
	padding: 8px 0;
	overflow-y: auto;
	list-style: none;
	counter-reset: none;
}
.pwt-toc__list li {
	margin: 0;
}
.pwt-toc__list a {
	display: block;
	padding: 10px 20px 10px 17px;
	border-left: 3px solid transparent;
	font-size: 15px;
	line-height: 1.45;
	color: var(--pwt-b-text);
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.pwt-toc__list a:hover {
	background: var(--pwt-b-soft);
	color: var(--pwt-b-primary);
}
.pwt-toc__list a.is-active {
	border-left-color: var(--pwt-b-primary);
	background: var(--pwt-b-soft);
	font-weight: 600;
	color: var(--pwt-b-primary);
}
.pwt-toc__progress {
	padding: 16px 20px 18px;
	border-top: 1px solid var(--pwt-b-line);
	background: #fafcfe;
}
.pwt-toc__progress-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pwt-b-muted);
}
.pwt-toc__bar {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--pwt-b-line);
}
.pwt-toc__bar-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--pwt-b-primary);
	transition: width 0.15s linear;
}

/* Nội dung */
.pwt-post-summary {
	margin: 0 0 32px;
	padding: 20px 24px;
	border-left: 4px solid var(--pwt-b-accent);
	border-radius: 0 12px 12px 0;
	background: #fff8ee;
	font-size: 17px;
	font-style: italic;
	line-height: 1.7;
	color: var(--pwt-b-text);
}
.pwt-post-summary strong {
	color: var(--pwt-b-ink);
}
.pwt-post-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--pwt-b-text);
}
.pwt-post-content > :first-child {
	margin-top: 0;
}
.pwt-post-content p,
.pwt-post-content ul,
.pwt-post-content ol {
	margin: 0 0 22px;
}
.pwt-post-content ul,
.pwt-post-content ol {
	padding-left: 24px;
}
.pwt-post-content ul {
	list-style: disc;
}
.pwt-post-content ol {
	list-style: decimal;
}
.pwt-post-content li {
	margin-bottom: 8px;
}
.pwt-post-content li::marker {
	color: var(--pwt-b-primary);
}
/* Bài dựng bằng Elementor: đích của mục lục (H2/H3 trong Text Editor, heading FAQ) không bị header sticky che khi cuộn tới */
.pwt-post-canvas h2[id],
.pwt-post-canvas h3[id],
.pwt-post-canvas .elementor-element[id] {
	scroll-margin-top: 120px;
}
.pwt-post-content h2 {
	margin: 48px 0 18px;
	font-size: 30px;
	line-height: 1.3;
	color: var(--pwt-b-ink);
	scroll-margin-top: calc(var(--pwt-b-sticky) + 10px);
}
.pwt-post-content h3 {
	margin: 32px 0 14px;
	font-size: 22px;
	line-height: 1.35;
	color: var(--pwt-b-ink);
	scroll-margin-top: calc(var(--pwt-b-sticky) + 10px);
}
.pwt-post-content h4 {
	margin: 24px 0 12px;
	font-size: 19px;
	color: var(--pwt-b-ink);
}
.pwt-post-content a {
	color: var(--pwt-b-primary);
	text-decoration: underline;
	text-decoration-color: rgba(0, 60, 127, 0.3);
	text-underline-offset: 3px;
}
.pwt-post-content a:hover {
	text-decoration-color: currentColor;
}
.pwt-post-content strong {
	color: var(--pwt-b-ink);
}
.pwt-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.pwt-post-content figure {
	margin: 32px 0;
}
.pwt-post-content figcaption,
.pwt-post-content .wp-caption-text {
	margin-top: 10px;
	font-size: 14px;
	text-align: center;
	color: var(--pwt-b-muted);
}
.pwt-post-content blockquote {
	margin: 32px 0;
	padding: 24px 28px;
	border-left: 4px solid var(--pwt-b-primary);
	border-radius: 0 12px 12px 0;
	background: var(--pwt-b-soft);
	font-size: 19px;
	font-style: italic;
	color: var(--pwt-b-ink);
}
.pwt-post-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Bảng */
.pwt-table-wrap {
	margin: 32px 0;
	overflow-x: auto;
	border: 1px solid #c9d8ec;
	border-radius: 12px;
}
.pwt-post-content table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}
.pwt-post-content th,
.pwt-post-content td {
	padding: 14px 16px;
	border: 1px solid var(--pwt-b-line);
	text-align: center;
	vertical-align: middle;
}
.pwt-post-content tr > :first-child {
	border-left: 0;
}
.pwt-post-content tr > :last-child {
	border-right: 0;
}
.pwt-post-content tr:first-child > * {
	border-top: 0;
}
.pwt-post-content tr:last-child > * {
	border-bottom: 0;
}
.pwt-post-content thead th,
.pwt-post-content table tr:first-child th {
	background: #e8f0fa;
	font-weight: 600;
	color: var(--pwt-b-ink);
}
.pwt-post-content tbody tr:nth-child(even) td {
	background: #fafcfe;
}

/* Khung Conclusion */
.pwt-post-conclusion {
	margin: 48px 0 0;
	padding: 32px 36px 12px;
	border: 1px solid #dbe6f4;
	border-radius: 20px;
	background: #f2f6fc;
}
.pwt-post-conclusion h2 {
	margin-top: 0;
}

/* Khối CTA bên phải */
.pwt-cta-card {
	position: relative;
	overflow: hidden;
	padding: 28px 26px 26px;
	border: 1px solid #dbe6f4;
	border-radius: 18px;
	background: var(--pwt-b-hero);
	color: var(--pwt-b-text);
	box-shadow: 0 20px 44px -30px rgba(0, 35, 80, 0.35);
}
.pwt-cta-card__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pwt-b-heading);
}
.pwt-cta-card__title {
	margin: 0 0 18px;
	font-size: 23px;
	line-height: 1.3;
	color: var(--pwt-b-ink);
}
.pwt-cta-card__title span {
	color: var(--pwt-b-primary);
}
.pwt-cta-card__list {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.pwt-cta-card__list li {
	position: relative;
	padding-left: 26px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--pwt-b-text);
}
.pwt-cta-card__list li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--pwt-b-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pwt-cta-card__btn {
	display: block;
	padding: 14px 20px;
	border-radius: 10px;
	background: var(--pwt-b-primary);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	color: #fff;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.pwt-cta-card__btn:hover,
.pwt-cta-card__btn:focus-visible {
	background: #1d4f82;
	color: #fff;
	transform: translateY(-1px);
}
.pwt-cta-card__note {
	margin: 12px 0 0;
	font-size: 13px;
	text-align: center;
	color: var(--pwt-b-muted);
}

/* ---------- Recommended Reading + Trending Topics ---------- */
.pwt-blog-section {
	padding: 80px 0;
}
.pwt-blog-section__title {
	margin: 0 0 40px;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.2;
	text-align: center;
	color: var(--pwt-b-ink);
}
.pwt-topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.pwt-topics li {
	flex: 0 1 calc((100% - 48px) / 4);
	margin: 0;
}
.pwt-topic {
	display: block;
	padding: 15px 18px;
	border: 1px solid;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pwt-topic:hover {
	box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.45);
	transform: translateY(-2px);
}
.pwt-topic--0 { border-color: #003c7f; background: #eaf1fa; color: #003c7f; }
.pwt-topic--1 { border-color: #d98306; background: #fff4e3; color: #b26a00; }
.pwt-topic--2 { border-color: #0e9384; background: #e6f6f4; color: #0b7a6e; }
.pwt-topic--3 { border-color: #6d4fd3; background: #f1edfd; color: #5a3fbf; }
.pwt-topic--4 { border-color: #d6457a; background: #fdecf2; color: #b8336a; }
.pwt-topic:hover { color: inherit; }
.pwt-topic--0:hover { color: #003c7f; }
.pwt-topic--1:hover { color: #b26a00; }
.pwt-topic--2:hover { color: #0b7a6e; }
.pwt-topic--3:hover { color: #5a3fbf; }
.pwt-topic--4:hover { color: #b8336a; }

/* ---------- Widget Elementor "WT Blog Grid" ---------- */
.pwt-bw {
	--pwt-bw-columns: 3;
	--pwt-bw-sidebar: 260px;
}
.pwt-bw.has-sidebar {
	display: grid;
	grid-template-columns: var(--pwt-bw-sidebar) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.pwt-bw .pwt-blog-grid {
	grid-template-columns: repeat(var(--pwt-bw-columns), minmax(0, 1fr));
}
.pwt-bw .pwt-blog-empty {
	margin: 0;
}

/* ---------- Widget tổng "WT Blog Article": mục lục | nội dung | CTA ---------- */
.pwt-article__main {
	display: grid;
	grid-template-columns: var(--pwt-art-toc, 270px) minmax(0, 1fr) var(--pwt-art-cta, 300px);
	gap: var(--pwt-art-gap, 48px);
	align-items: start;
	box-sizing: border-box;
	max-width: var(--pwt-art-max, 1320px);
	margin: 0 auto;
	padding: 64px 24px 80px;
}
.pwt-article__main.no-toc {
	grid-template-columns: minmax(0, 1fr) var(--pwt-art-cta, 300px);
}
.pwt-article__main.no-cta {
	grid-template-columns: var(--pwt-art-toc, 270px) minmax(0, 1fr);
}
.pwt-article__main.no-toc.no-cta {
	grid-template-columns: minmax(0, 1fr);
}
/* Đứng yên khi cuộn trên desktop */
.pwt-article__toc,
.pwt-article__cta {
	position: sticky;
	top: var(--pwt-art-sticky, 110px);
}
.pwt-article__toc .pwt-toc__list {
	max-height: calc(100vh - var(--pwt-art-sticky, 110px) - 210px);
}

/* ---------- Widget WT Post lẻ trong trang dựng bằng Elementor ---------- */
/* Mục lục và CTA đứng yên khi cuộn: sticky đặt trên khung widget. Cần đặt chúng trong container
   Grid (hoặc Flex) căn đầu (align start) thì sticky mới có tác dụng */
@media (min-width: 1025px) {
	.elementor-widget-pwt_post_toc,
	.elementor-widget-pwt_post_cta {
		position: sticky;
		top: 110px;
		align-self: start;
	}
}

/* ---------- Responsive ---------- */
/* Tablet + điện thoại: 1 cột, mục lục (thu gọn) → nội dung → CTA, không sticky */
@media (max-width: 1024px) {
	.pwt-article__main,
	.pwt-article__main.no-toc,
	.pwt-article__main.no-cta {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 64px;
	}
	.pwt-article__toc,
	.pwt-article__cta {
		position: static;
	}
	.pwt-article__toc .pwt-toc__list {
		max-height: none;
	}
}
@media (max-width: 767px) {
	.pwt-article__main {
		padding-right: 16px;
		padding-left: 16px;
	}
}
@media (max-width: 1199px) {
	.pwt-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pwt-topics li {
		flex-basis: calc((100% - 32px) / 3);
	}
}

@media (max-width: 991px) {
	.pwt-blog-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-top: 48px;
		padding-bottom: 72px;
	}
	/* Danh mục thành hàng cuộn ngang */
	.pwt-blog-cats {
		position: static;
	}
	.pwt-blog-cats__title {
		font-size: 18px;
	}
	.pwt-blog-cats__list {
		flex-direction: row;
		gap: 10px;
		margin: 0 -24px;
		padding: 0 24px 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.pwt-blog-cats__list::-webkit-scrollbar {
		display: none;
	}
	.pwt-blog-pill {
		padding: 9px 16px;
		white-space: nowrap;
	}
	.pwt-bw.has-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	/* Trong widget không có lề trang để kéo tràn, nên các nút danh mục xuống dòng thay vì cuộn ngang */
	.pwt-bw .pwt-blog-cats__list {
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.pwt-post-hero {
		padding: 48px 0 56px;
	}
	.pwt-post-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.pwt-post-hero__media {
		order: 2;
	}

	.pwt-toc__list {
		max-height: none;
	}
	/* Thanh tiến độ cố định ở mép trên màn hình khi đọc trên điện thoại */
	.pwt-toc__progress {
		display: none;
	}
	.pwt-blog-grid--3 > * {
		flex-basis: calc((100% - 28px) / 2);
	}
	.pwt-blog-grid--3 > :nth-child(3) {
		display: none;
	}
	.pwt-topics li {
		flex-basis: calc((100% - 16px) / 2);
	}
}

.pwt-read-bar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10000;
	width: 0;
	height: 3px;
	background: var(--primary-color, #003c7f);
	pointer-events: none;
}
@media (min-width: 992px) {
	.pwt-read-bar {
		display: none;
	}
}

@media (max-width: 767px) {
	.pwt-blog-wrap {
		padding: 0 16px;
	}
	.pwt-blog-cats__list {
		margin: 0 -16px;
		padding: 0 16px 6px;
	}
	.pwt-blog-hero {
		padding: 56px 0 64px;
	}
	.pwt-blog-hero__title {
		margin-top: 12px;
		font-size: 32px;
	}
	.pwt-blog-hero__desc {
		margin-top: 20px;
	}
	.pwt-blog-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.pwt-blog-grid--3 > * {
		flex-basis: 100%;
	}
	.pwt-blog-grid--3 > :nth-child(3) {
		display: flex;
	}
	.pwt-blog-card__title {
		font-size: 18px;
	}
	.pwt-post-meta {
		display: flex;
	}
	.pwt-post-meta__item {
		flex: 1 1 auto;
		padding: 12px 16px;
		font-size: 15px;
	}
	.pwt-post-content {
		font-size: 16px;
	}
	.pwt-post-content h2 {
		margin-top: 40px;
		font-size: 25px;
	}
	.pwt-post-content h3 {
		font-size: 20px;
	}
	.pwt-post-conclusion {
		padding: 24px 20px 4px;
		border-radius: 16px;
	}
	.pwt-blog-section {
		padding: 56px 0;
	}
	.pwt-blog-section__title {
		margin-bottom: 28px;
	}
	.pwt-topics {
		gap: 10px;
	}
	.pwt-topics li {
		flex-basis: 100%;
	}
	.pwt-topic {
		padding: 12px 16px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pwt-blog-card,
	.pwt-blog-card__media img,
	.pwt-topic,
	.pwt-cta-card__btn {
		transition: none;
	}
	.pwt-blog-card:hover,
	.pwt-topic:hover {
		transform: none;
	}
}
