@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("assets/fonts/roboto-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url("assets/fonts/roboto-condensed-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url("assets/fonts/roboto-condensed-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--zs-navy: #004078;
	--zs-ink: #00264d;
	--zs-green: #5cc33a;
	--zs-green-light: #7fd862;
	--zs-green-deep: #17703a;
	--zs-red: #b3261e;
	--zs-mist: #eaf2f7;
	--zs-line: #cfdde7;
	--zs-text: #1b2b3a;
	--zs-body: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--zs-display: "Roboto Condensed", "Arial Narrow", Roboto, Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--zs-body);
}

body {
	color: var(--zs-text);
	font-size: 18px;
	line-height: 1.55;
}

/* Khung chung của các dải màu trên trang chủ. */
.zs-band {
	margin: 0;
	padding: clamp(48px, 7vw, 96px) max(16px, calc((100% - 1200px) / 2));
}

.zs-front .zs-band > * {
	margin-block-start: 0;
}

.zs-front p {
	margin: 0 0 1em;
}

.zs-band h2 {
	margin: 0 0 0.45em;
	color: inherit;
	font: 800 clamp(2.2rem, 4.6vw, 3.25rem) / 1.08 var(--zs-display);
}

.zs-band h3 {
	margin: 0 0 0.3em;
	color: inherit;
	font: 800 1.6rem / 1.12 var(--zs-display);
}

.zs-lead {
	max-width: 44rem;
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	line-height: 1.4;
}

.zs-front .zs-small {
	margin-top: 1.5rem;
	font-size: 15px;
	line-height: 1.45;
}

.zs-front .wp-block-columns.zs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
}

/* Astra chừa 20px dưới mỗi cột trên điện thoại, làm các ô cùng hàng lệch nhau. */
.zs-front .wp-block-columns > .wp-block-column {
	min-width: 0;
	margin: 0;
}

.zs-front figure {
	margin: 0;
}

.zs-front img {
	display: block;
	width: 100%;
	height: auto;
}

.zs-hero img {
	aspect-ratio: 1240 / 1060;
}

.zs-topic img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.zs-product img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.zs-expect img {
	aspect-ratio: 1;
	object-fit: cover;
}

/* Nút bấm. */
.zs-front .wp-block-buttons {
	gap: 12px;
}

.zs-front .wp-block-button__link,
.zs-btn {
	display: inline-block;
	padding: 0.8em 1.3em;
	border: 0;
	border-radius: 6px;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.zs-buy .wp-block-button__link,
.zs-btn,
.entry-content a.zs-btn {
	background: var(--zs-green);
	color: var(--zs-ink);
	text-decoration: none;
}

.zs-buy .wp-block-button__link:hover,
.zs-btn:hover,
.entry-content a.zs-btn:hover {
	background: var(--zs-green-light);
	color: var(--zs-ink);
}

.zs-ghost .wp-block-button__link {
	background: transparent;
	box-shadow: inset 0 0 0 2px #fff;
	color: #fff;
}

.zs-ghost .wp-block-button__link:hover {
	background: #fff;
	color: var(--zs-ink);
}

.zs-on-color,
.zs-on-color .wp-block-button__link {
	width: 100%;
}

.zs-on-color .wp-block-button__link {
	background: #fff;
	color: var(--zs-ink);
}

.zs-on-color .wp-block-button__link:hover {
	background: var(--zs-ink);
	color: #fff;
}

/* Màn hình đầu. */
.zs-hero {
	padding-block: clamp(28px, 4vw, 56px);
	overflow: hidden;
	background: var(--zs-navy);
	color: #fff;
}

.zs-front .wp-block-columns.zs-hero__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	margin: 0;
}

.zs-band.zs-hero h1 {
	margin: 0 0 0.3em;
	color: #fff;
	font: 800 clamp(2.75rem, 6.2vw, 4.75rem) / 1.02 var(--zs-display);
}

.zs-hero h1 strong {
	display: block;
	color: var(--zs-green);
	font-weight: 800;
}

.zs-hero__price {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5em;
	align-items: baseline;
	font-size: 1.1rem;
}

.zs-hero__price strong {
	font: 800 2.75rem / 1.05 var(--zs-display);
}

/* Bốn chủ đề. */
.zs-topics {
	background: #fff;
	color: var(--zs-ink);
}

.zs-topic h3 {
	margin-top: 0.55em;
}

.zs-topic h3 a {
	color: var(--zs-navy);
	text-decoration: none;
}

.zs-topic h3 a:hover {
	color: var(--zs-green-deep);
	text-decoration: underline;
}

.zs-topic p {
	margin: 0;
	color: var(--zs-text);
}

/* Khi nào cần đi khám. */
.zs-alert {
	background: var(--zs-red);
	color: #fff;
}

.zs-front .wp-block-columns.zs-alert__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	margin: 0;
}

.zs-alert ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.zs-alert li {
	margin-bottom: 0.3em;
}

.zs-alert__urgent {
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
	color: var(--zs-text);
}

.zs-band .zs-alert__urgent h3 {
	color: var(--zs-red);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.zs-alert__urgent ul {
	margin-bottom: 0;
}

.zs-front .zs-source {
	margin: 1.5rem 0 0;
	font-size: 15px;
}

.zs-source a {
	color: #fff;
}

/* Sản phẩm. */
.zs-compare {
	background: var(--zs-mist);
	color: var(--zs-ink);
}

.zs-compare .zs-lead {
	margin-bottom: 1.5em;
}

.zs-product {
	display: flex;
	flex-direction: column;
	padding-bottom: 16px;
	color: #fff;
}

.zs-product--red {
	background: #c62a12;
}

.zs-product--indigo {
	background: #27337f;
}

.zs-product--teal {
	background: #0f6f6a;
}

.zs-product--orange {
	background: #b4520b;
}

.zs-product > :not(figure) {
	margin-inline: 16px;
}

.zs-product > .wp-block-image {
	margin-block-end: 14px;
}

.zs-product p {
	margin-bottom: 0.5em;
	line-height: 1.35;
}

.zs-product .zs-price {
	margin-block: auto 0.15em;
	padding-top: 0.15em;
	font: 800 clamp(2.5rem, 4vw, 3rem) / 1 var(--zs-display);
}

.zs-product .zs-review-link {
	margin-block: 0.75em 0;
	font-size: 1rem;
	text-align: center;
}

.zs-review-link a {
	color: #fff;
}

.zs-review-link a:hover {
	color: #fff;
	text-decoration: none;
}

/* Kỳ vọng thực tế. */
.zs-expect {
	background: #fff;
	color: var(--zs-text);
}

.zs-expect h2 {
	color: var(--zs-ink);
}

.zs-front .wp-block-columns.zs-expect__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
	margin: 0;
}

.zs-yes,
.zs-no {
	padding-left: 16px;
	font-size: 1.15rem;
	line-height: 1.4;
}

.zs-yes {
	border-left: 6px solid var(--zs-green);
}

.zs-no {
	border-left: 6px solid var(--zs-red);
}

.zs-more a {
	color: var(--zs-navy);
	font-weight: 800;
}

/* Cách đặt hàng. */
.zs-steps {
	background: var(--zs-navy);
	color: #fff;
}

.zs-steps .zs-grid {
	counter-reset: zs-step;
}

.zs-step {
	padding-top: 12px;
	border-top: 4px solid var(--zs-green);
	counter-increment: zs-step;
}

.zs-step::before {
	content: counter(zs-step);
	display: block;
	color: var(--zs-green);
	font: 800 3.5rem / 1.05 var(--zs-display);
}

.zs-step p {
	margin: 0;
}

/* Câu hỏi thường gặp. */
.zs-faq {
	padding-inline: max(16px, calc((100% - 860px) / 2));
	background: #fff;
	color: var(--zs-ink);
}

.zs-faq .wp-block-details {
	margin: 0;
	padding: 1rem 0;
	border-top: 2px solid var(--zs-line);
}

.zs-faq summary {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.3;
	cursor: pointer;
}

.zs-faq details p {
	margin: 0.75em 0 0;
	color: var(--zs-text);
}

/* Bài mới. */
.zs-latest {
	background: var(--zs-mist);
	color: var(--zs-ink);
}

.zs-latest .wp-block-post-template {
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zs-latest .wp-block-post-title {
	margin: 0.55em 0 0;
	font-size: 1.4rem;
	line-height: 1.15;
}

.zs-latest .wp-block-post-title a {
	color: var(--zs-navy);
	text-decoration: none;
}

.zs-latest .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Lời mời cuối trang. */
.zs-final {
	background: var(--zs-green-deep);
	color: #fff;
}

.zs-final .wp-block-button {
	width: auto;
}

/* Bài viết. */
.single header.entry-header:not(.related-entry-header) .entry-title {
	color: var(--zs-ink);
	font-size: clamp(2rem, 4.6vw, 2.9rem);
	line-height: 1.08;
}

/* Astra đặt gốc rem còn 14,6px, cỡ chữ cho người đọc lớn tuổi ghi bằng px. */
.single .entry-content {
	font-size: 18px;
	line-height: 1.65;
}

.single .entry-content h2 {
	margin-top: 1.4em;
	color: var(--zs-ink);
	font-size: clamp(1.7rem, 3.4vw, 2.2rem);
	line-height: 1.12;
}

.single .entry-content h3 {
	color: var(--zs-ink);
	font-size: 1.4rem;
	line-height: 1.2;
}

.entry-content a {
	color: var(--zs-navy);
}

/* Astra đổ bóng cho mọi ảnh trong bài, dùng đúng bộ chọn của Astra để ghi đè. */
.ast-article-single figure,
.ast-article-single img:not(figure img) {
	box-shadow: none;
}

/* Tab của Starbox chỉ có chữ tiếng Anh, giữ lại phần giới thiệu tác giả. */
.abh_tabs {
	display: none;
}

/* Khối ảnh GenerateBlocks mang chiều rộng cố định, trên điện thoại sẽ tràn khỏi màn hình. */
.entry-content :is(img, .gb-media) {
	max-width: 100%;
	height: auto;
}

/* Liên kết mua đứng riêng một dòng trong bài cũ hiển thị thành nút, không sửa nội dung bài. */
.entry-content p.has-text-align-center > a[href*="/go/"] {
	display: inline-block;
	padding: 0.8em 1.3em;
	border-radius: 6px;
	background: var(--zs-green);
	color: var(--zs-ink);
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
}

.entry-content p.has-text-align-center > a[href*="/go/"]:hover {
	background: var(--zs-green-light);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.entry-content :is(th, td) {
	padding: 0.6em 0.8em;
	border: 1px solid var(--zs-line);
	text-align: left;
}

/* Bảng có thead thì tô thead, bảng cũ không có thead thì tô dòng đầu. */
.entry-content thead tr,
.entry-content table:not(:has(thead)) tr:first-child {
	background: var(--zs-mist);
	font-weight: 700;
}

/* Cột cố định bằng nhau làm từ bị ngắt giữa chừng trên điện thoại. */
.entry-content .wp-block-table table {
	table-layout: auto;
}

.entry-content .wp-block-table .has-fixed-layout :is(th, td) {
	overflow-wrap: normal;
	word-break: normal;
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

.zs-disclosure {
	margin: 0 0 1.2em;
	padding: 0.65em 0.9em;
	background: var(--zs-mist);
	color: #33475a;
	font-size: 15px;
	line-height: 1.4;
}

.zs-box {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	margin: 1.6em 0;
	background: var(--zs-navy);
	color: #fff;
}

.entry-content img.zs-box__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zs-box__body {
	padding: 20px clamp(16px, 3vw, 28px);
}

.zs-box p {
	margin: 0;
}

.zs-box .zs-box__name {
	font: 800 1.9rem / 1.05 var(--zs-display);
}

.zs-box .zs-box__detail {
	font-size: 16px;
	line-height: 1.35;
}

.zs-box .zs-box__price {
	margin: 0.2em 0;
	font: 800 2.9rem / 1 var(--zs-display);
}

.zs-box .zs-box__note {
	margin-top: 0.75em;
	font-size: 13px;
	line-height: 1.35;
}

/* Trang danh mục và bài liên quan. */
.site-content #primary {
	margin-block: clamp(20px, 3vw, 40px);
}

.ast-archive-title {
	color: var(--zs-ink);
	font-size: clamp(2.2rem, 4.6vw, 3.25rem);
	line-height: 1.08;
}

.ast-article-inner,
.ast-related-post-content {
	border-radius: 0;
	box-shadow: none;
}

article .ast-article-inner img,
.ast-blog-featured-section img {
	border-radius: 0;
}

.archive .entry-title,
.ast-related-post-title {
	font: 800 1.5rem / 1.15 var(--zs-display);
}

.archive .entry-title a,
.ast-related-post-title a {
	color: var(--zs-navy);
}

.archive .ast-excerpt-container,
.archive .ast-excerpt-container p {
	font-size: 16px;
	line-height: 1.45;
}

.ast-related-posts-title {
	color: var(--zs-ink);
	font: 800 1.9rem / 1.1 var(--zs-display);
}

/* Astra ép ảnh đại diện ở trang danh sách về 16:9 mà không cắt, ảnh khác tỉ lệ sẽ bị kéo dãn. */
.ast-blog-featured-section img,
.ast-related-post img {
	object-fit: cover;
	object-position: center;
}

/* Chân trang. */
.site-footer :is(.widget-title, h2) {
	margin-bottom: 0.4em;
	color: #fff;
	font: 800 1.5rem / 1.15 var(--zs-display);
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin-bottom: 0.35em;
}

@media (max-width: 921px) {
	.site-footer .ast-builder-grid-row-container-inner {
		padding-inline: 16px;
	}
}

/* Thanh mua cố định, chỉ có trên điện thoại. */
.zs-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--zs-ink);
	color: #fff;
}

.zs-bar[hidden] {
	display: none;
}

.zs-bar .zs-btn {
	flex: none;
	padding-block: 0.65em;
}

.zs-bar__text {
	min-width: 0;
	line-height: 1.2;
}

/* Banner cookie: hàng nút ngắn gọn trên điện thoại. */
@media (max-width: 576px) {
	.cky-consent-container .cky-consent-bar {
		padding: 12px 16px;
	}

	.cky-consent-container .cky-title {
		display: none;
	}

	.cky-consent-container .cky-notice-des,
	.cky-consent-container .cky-notice-des p {
		margin: 0;
		font-size: 14px;
		line-height: 1.35;
	}

	.cky-consent-container .cky-notice-btn-wrapper {
		flex-direction: row;
		gap: 8px;
		margin-top: 10px;
		margin-left: 0;
	}

	.cky-consent-container .cky-notice-btn-wrapper .cky-btn {
		flex: 1 1 0;
		margin: 0;
		padding: 8px 4px;
		font-size: 14px;
	}
}

@media (min-width: 783px) {
	.zs-bar {
		display: none;
	}
}

@media (max-width: 900px) {
	.zs-front .wp-block-columns.zs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.zs-front .zs-steps .wp-block-columns.zs-grid {
		gap: 24px 16px;
	}

	.zs-band h3 {
		font-size: 1.4rem;
	}
}

@media (max-width: 781px) {
	.zs-front .wp-block-columns:is(.zs-hero__cols, .zs-alert__cols, .zs-expect__cols) {
		grid-template-columns: minmax(0, 1fr);
	}

	.zs-hero .wp-block-button {
		width: 100%;
	}

	.zs-hero .wp-block-button__link {
		width: 100%;
	}

	.zs-box {
		grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
	}

	.zs-box__body {
		padding: 12px 14px;
	}

	.zs-box .zs-btn {
		display: block;
		font-size: 1rem;
	}

	.zs-box .zs-box__price {
		font-size: 2.35rem;
	}
}

@media (max-width: 600px) {
	.zs-front .zs-steps .wp-block-columns.zs-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.entry-content table {
		font-size: 15px;
	}

	.entry-content :is(th, td) {
		padding: 0.5em 0.35em;
	}

	.zs-product > :not(figure) {
		margin-inline: 12px;
	}

	.zs-product .wp-block-button__link {
		padding-inline: 0.5em;
		font-size: 1rem;
	}

	.zs-latest .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}
