/* =========================================================
   ChiaDeal Theme — main.css
   Tông màu: Cam / Đỏ (deal).
   ========================================================= */

:root {

	--color-primary: #ff5722;
	--color-primary-dark: #e64a19;
	--color-primary-light: #ff8a65;
	--color-accent: #e53935;
	--color-primary-soft: #fff1ec;
	--color-success: #16a34a;

	--color-text: #2a2f36;
	--color-text-soft: #5b6472;
	--color-muted: #949cab;
	--color-heading: #23282d;

	--color-bg: #ffffff;
	--color-surface: #ffffff;
	--color-border: #e7e9ee;
	--color-border-soft: #eef0f4;

	--radius-sm: 5px;
	--radius: 8px;

	--shadow-sm: 0 1px 3px rgba(20, 32, 44, .06);
	--shadow: 0 6px 20px rgba(20, 32, 44, .08);
	--shadow-lg: 0 14px 40px rgba(20, 32, 44, .12);

	--nav-bg: #ff5722;
	--nav-bg-dark: #e64a19;

	--container: 1200px;

	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	min-height: 100vh;
	overflow-x: clip; /* chặn tràn ngang từ menu off-canvas / dropdown mà KHÔNG phá position:sticky */
	display: flex;
	flex-direction: column;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
#content.site-content { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--color-heading); line-height: 1.3; font-weight: 700; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--color-primary); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================
   HEADER — hàng logo + banner
   ========================================================= */
.site-header { background: var(--color-surface); position: relative; z-index: 200; }
.header-top {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding-top: 22px; padding-bottom: 22px;
}
.site-branding { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.custom-logo { max-height: 56px; width: auto; }
.site-tagline { margin: 0; font-size: 13px; color: var(--color-text-soft); font-weight: 500; }

.header-promo { max-width: 600px; }
.header-promo img { display: block; height: auto; max-height: 100px; width: auto; }
.header-promo-widget { line-height: 0; }

/* =========================================================
   NAV BAR — thanh menu màu full-width
   ========================================================= */
.nav-bar {
	background: #fb7226;
	position: sticky; top: 0; z-index: 210;
}
.nav-inner { display: flex; align-items: center; min-height: 52px; gap: 8px; position: relative; }
.nav-mobile-logo { display: none; }
.main-navigation { display: flex; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu a {
	position: relative; display: flex; align-items: center; gap: 5px; padding: 15px 18px; color: #fff; font-weight: 700;
	font-size: 14px; text-transform: uppercase; letter-spacing: .3px; line-height: 1; transition: background .2s ease, color .2s ease;
}
.menu-item-has-children > a::after {
	content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
	border-top: 4px solid rgba(255, 255, 255, .8); margin-left: 2px; transition: border-top-color .2s ease;
}

.nav-menu > li > a::before {
	content: ""; position: absolute; left: 50%; right: 50%; bottom: 7px; height: 3px; border-radius: 3px;
	background: #fff; opacity: 0; box-shadow: 0 0 8px rgba(255, 255, 255, .7);
	transition: left .26s ease, right .26s ease, opacity .26s ease;
}
.nav-menu > li > a:hover::before { left: 16px; right: 16px; opacity: 1; }

.nav-menu > li.current-menu-item:not(.menu-item-has-children) > a::before { left: 16px; right: 16px; opacity: 1; }

.nav-menu a:focus-visible { outline: 2px solid #fff; outline-offset: -5px; border-radius: 4px; }

.nav-menu ul.sub-menu {
	list-style: none; position: absolute; top: 100%; left: 0; min-width: 170px;
	background: var(--color-surface); border: 1px solid var(--color-border-soft);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 8px; margin: 0; display: none; z-index: 50;
}
.nav-menu li:hover > ul.sub-menu { display: block; }
.nav-menu ul.sub-menu li + li { margin-top: 2px; }
.nav-menu ul.sub-menu a {
	padding: 10px 14px; font-size: 13.5px; color: var(--color-text);
	text-transform: uppercase; letter-spacing: .02em; font-weight: 600; border-radius: var(--radius-sm);
}
.nav-menu ul.sub-menu a::after { display: none; }
.nav-menu ul.sub-menu a:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.nav-menu ul.sub-menu .current-menu-item > a { background: var(--color-primary-soft); color: var(--color-primary-dark); }

.nav-menu ul.sub-menu ul.sub-menu { top: -9px; left: 100%; border-radius: var(--radius); }

.header-search { margin-left: auto; position: relative; }
.search-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 52px;
	border: none; background: none; color: #fff; cursor: pointer; transition: background .15s ease;
}
.search-toggle:hover { background: rgba(0, 0, 0, .12); }
.search-dropdown {
	position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: 80vw;
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .18s ease; z-index: 60;
}
.search-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.search-form { display: flex; align-items: center; gap: 6px; }
.search-field {
	flex: 1; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	font: inherit; font-size: 14.5px; background: #f6f7f9; color: var(--color-text); outline: none;
}
.search-field:focus { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(255, 87, 34, .12); }
.search-submit {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none;
	border: none; border-radius: var(--radius-sm); cursor: pointer; color: #fff;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}
.search-submit:hover { filter: brightness(1.05); }

.menu-toggle { display: none; flex-direction: column; gap: 4px; width: 46px; height: 52px; border: none; background: none; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle-bar { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all .2s ease; }

/* =========================================================
   LAYOUT
   ========================================================= */
.site-content { padding: 30px 0 40px; }
.content-area.with-sidebar {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start;
}

.content-area.with-sidebar > * { min-width: 0; }

/* =========================================================
   POST LIST — danh sách bài (thumb trái + nội dung phải)
   ========================================================= */
.post-list { display: flex; flex-direction: column; }
.post-item {
	display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start;
	padding: 24px 0; border-bottom: 1px solid var(--color-border-soft);
}
.post-item:first-child { padding-top: 4px; }
.post-item-thumb {
	display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
	background: var(--color-primary-soft);
}
.post-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-item-thumb:hover img { transform: scale(1.05); }

.post-item-body { min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.post-item-title { font-size: 21px; line-height: 1.35; margin: 0 0 10px; font-weight: 700; }
.post-item-title a { color: var(--color-heading); }
.post-item-title a:hover { color: var(--color-primary-dark); }
.post-item-excerpt { color: var(--color-text-soft); font-size: 15px; margin: 0; }

.post-item-meta, .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--color-muted); }
.post-item-meta { margin-top: auto; gap: 14px; }
.post-item-meta .meta-date { display: inline-flex; align-items: center; gap: 5px; }
.post-item-meta .meta-date .i-calendar { flex: none; }
.meta-comments { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; color: var(--color-muted); }
.meta-comments:hover { color: var(--color-primary-dark); }
.meta-comments .i-comment { flex: none; }
.post-meta .meta-sep { opacity: .5; }

.thumb-placeholder {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--color-primary-soft), #fde6df);
}

.cat-list {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 13px; line-height: 1.4;
}
.cat-list .cat-link {
	color: var(--color-primary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.cat-list .cat-link:hover { color: var(--color-primary); }
.cat-list .cat-sep { color: var(--color-primary); font-size: 20px; line-height: 0; }

/* =========================================================
   BUTTON OUTLINE
   ========================================================= */
.btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 12px 32px; border: 1.5px solid var(--color-primary); border-radius: 3px;
	background: transparent; color: var(--color-primary-dark); font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .4px; cursor: pointer; transition: all .18s ease;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
	font-size: 13px; color: var(--color-muted); margin: 0 0 18px; display: flex; flex-wrap: wrap;
	align-items: center; gap: 8px; line-height: 1.4;
}
.breadcrumbs a { color: var(--color-text-soft); font-weight: 600; }
.breadcrumbs a:hover { color: var(--color-primary-dark); }
.breadcrumbs .crumb-sep { color: var(--color-muted); }
.breadcrumbs .crumb-current { color: var(--color-muted); }

/* =========================================================
   PAGE / SECTION HEADER
   ========================================================= */
.page-header { margin-bottom: 20px; }
.page-title {
	font-size: 24px; font-weight: 800; position: relative; padding-left: 14px; margin: 0;
}
.page-title::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 5px; height: 24px; border-radius: 3px;
	background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}
.archive-header .archive-description { color: var(--color-text-soft); margin-top: 8px; }
.page-title span { color: var(--color-primary-dark); }

.category-intro {
	position: relative; overflow: hidden;
	margin-bottom: 26px; padding: 24px 26px;
	background: linear-gradient(135deg, #fff6f2 0%, var(--color-primary-soft) 55%, #ffe9e2 100%);
	border: 1px solid #ffddd1;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--color-text); line-height: 1.7;
}

.category-intro::before {
	content: ""; position: absolute; top: -60px; right: -50px;
	width: 180px; height: 180px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 87, 34, .18), transparent 70%);
	pointer-events: none;
}
.category-intro > * { position: relative; }
.category-intro > *:first-child { margin-top: 0; }
.category-intro > *:last-child { margin-bottom: 0; }
.category-intro img { max-width: 100%; height: auto; border-radius: 6px; }
.category-intro h2, .category-intro h3 { font-weight: 700; color: var(--color-heading); }
.category-intro a { font-weight: 600; }

/* =========================================================
   SIDEBAR / WIDGETS — tiêu đề IN HOA + gạch chân
   ========================================================= */
.widget-area { display: flex; flex-direction: column; gap: 28px; align-self: stretch; }
.widget { margin: 0; }

.widget.chiadeal-sticky { position: sticky; top: 20px; z-index: 2; }

.chiadeal-sticky-stack { position: sticky; top: 20px; z-index: 2; display: flex; flex-direction: column; gap: 28px; }
.widget-title {
	font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--color-heading);
	margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border);
	position: relative;
}
.widget-title::after {
	content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 2px 0; border-bottom: 1px dashed var(--color-border-soft); font-size: 14.5px; line-height: 1.45; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { display: inline-block; padding: 7px 0; color: var(--color-text); font-weight: 500; }
.widget ul li a:hover { color: var(--color-primary-dark); }
.widget_recent_entries ul li::before,
.widget_categories ul li::before { content: "›"; color: var(--color-primary); font-weight: 800; margin-right: 8px; }
.widget .wp-block-latest-comments { margin: 0; padding: 0; list-style: none; }
.widget .wp-block-latest-comments li { padding: 4px 0; }
.widget .wp-block-latest-comments a { display: inline-block; padding: 3px 0; }
.widget select { width: 100%; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
.header-promo-widget { margin: 0; }

.chiadeal-recent-comments { list-style: none; margin: 0; padding: 0; }
.chiadeal-recent-comments .crc-item {
	padding: 11px 0; border-bottom: 1px dashed var(--color-border-soft);
}
.chiadeal-recent-comments .crc-item:first-child { padding-top: 2px; }
.chiadeal-recent-comments .crc-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.chiadeal-recent-comments .crc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.chiadeal-recent-comments .crc-avatar { flex: 0 0 auto; line-height: 0; }
.chiadeal-recent-comments .crc-avatar img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.chiadeal-recent-comments .crc-author { font-weight: 700; font-size: 13.5px; color: var(--color-heading); }
.chiadeal-recent-comments .crc-time { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; color: var(--color-muted); }
.chiadeal-recent-comments .crc-bubble {
	display: block; width: auto; margin: 0 0 6px;
	padding: 8px 11px; background: #f4f5f7; color: var(--color-text-soft);
	font-size: 13px; line-height: 1.45; border-radius: 8px;
	text-decoration: none; transition: background .15s ease, color .15s ease;
}
.chiadeal-recent-comments .crc-bubble:hover { background: #eceef1; color: var(--color-text); }
.chiadeal-recent-comments .crc-post {
	font-size: 12px; color: var(--color-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chiadeal-recent-comments .crc-post a { display: inline; color: var(--color-primary-dark); font-weight: 600; padding: 0; }
.chiadeal-recent-comments .crc-post a:hover { text-decoration: underline; }

.chiadeal-banner { margin: 0; line-height: 0; }
.chiadeal-banner a { display: block; padding: 0; overflow: hidden; border-radius: var(--radius); }
.chiadeal-banner img {
	width: 100%; height: auto; display: block; border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.chiadeal-banner-square a, .chiadeal-banner-square img { border-radius: 0; }
.chiadeal-banner-slide[hidden] { display: none; }

.chiadeal-domain-price { position: relative; --cdp-frame: #f0f0f0; --cdp-price: var(--color-primary-dark); --cdp-provider: #666; }
.chiadeal-domain-price .cdp-tab-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }

.chiadeal-domain-price .cdp-tabs { display: flex; gap: 0; margin: 0 0 -3px; position: relative; z-index: 2; }
.chiadeal-domain-price .cdp-tab {
	display: inline-flex; align-items: center; padding: 7px 22px; cursor: pointer;
	font-weight: 700; font-size: 13px; color: var(--cdp-provider); text-transform: uppercase; letter-spacing: .3px;
	background: #fafafa; border: 3px solid var(--cdp-frame); border-bottom: 0;
	border-radius: 5px 5px 0 0; user-select: none;
	transition: color .15s ease, background .15s ease;
}
.chiadeal-domain-price .cdp-tab + .cdp-tab { margin-left: -3px; }
.chiadeal-domain-price .cdp-tab:hover { color: var(--color-primary-dark); }
.chiadeal-domain-price .cdp-tab-badge { display: block; height: 19px; width: auto; }
.chiadeal-domain-price .cdp-tab:has(.cdp-tab-badge) { padding: 7px 16px; }

.chiadeal-domain-price .cdp-panels {
	background: #fff; border: 3px solid var(--cdp-frame);
	border-radius: 4px; padding: 10px 12px;
}
.chiadeal-domain-price.has-tabs .cdp-panels { border-top-left-radius: 0; }
.chiadeal-domain-price .cdp-panel { display: none; }

.chiadeal-domain-price .cdp-tab-input:nth-of-type(1):checked ~ .cdp-panels .cdp-panel:nth-of-type(1),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(2):checked ~ .cdp-panels .cdp-panel:nth-of-type(2),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(3):checked ~ .cdp-panels .cdp-panel:nth-of-type(3),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(4):checked ~ .cdp-panels .cdp-panel:nth-of-type(4),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(5):checked ~ .cdp-panels .cdp-panel:nth-of-type(5),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(6):checked ~ .cdp-panels .cdp-panel:nth-of-type(6),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(7):checked ~ .cdp-panels .cdp-panel:nth-of-type(7),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(8):checked ~ .cdp-panels .cdp-panel:nth-of-type(8) { display: block; }

.chiadeal-domain-price .cdp-tab-input:nth-of-type(1):checked ~ .cdp-tabs .cdp-tab:nth-of-type(1),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(2):checked ~ .cdp-tabs .cdp-tab:nth-of-type(2),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(3):checked ~ .cdp-tabs .cdp-tab:nth-of-type(3),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(4):checked ~ .cdp-tabs .cdp-tab:nth-of-type(4),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(5):checked ~ .cdp-tabs .cdp-tab:nth-of-type(5),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(6):checked ~ .cdp-tabs .cdp-tab:nth-of-type(6),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(7):checked ~ .cdp-tabs .cdp-tab:nth-of-type(7),
.chiadeal-domain-price .cdp-tab-input:nth-of-type(8):checked ~ .cdp-tabs .cdp-tab:nth-of-type(8) {
	background: #fff; color: var(--color-heading);
}

.chiadeal-domain-price .cdp-tab-input:focus-visible + .cdp-tabs .cdp-tab { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.chiadeal-domain-price .cdp-provider { display: inline-flex; align-items: center; gap: 9px; color: var(--cdp-provider); font-weight: 400; padding: 0; }
.chiadeal-domain-price a.cdp-provider:hover { color: var(--color-primary-dark); }
.chiadeal-domain-price .cdp-logo { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; display: block; }
.chiadeal-domain-price .cdp-name { font-size: 15px; }

.chiadeal-domain-price .cdp-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; }
.chiadeal-domain-price .cdp-table th {
	text-align: right; padding: 8px 8px; font-size: 13.5px; font-weight: 700;
	color: var(--color-heading); border-bottom: 1px solid #ededed;
	width: 24%; white-space: nowrap;
}
.chiadeal-domain-price .cdp-table th.cdp-col-provider { text-align: left; width: 28%; padding-left: 0; }
.chiadeal-domain-price .cdp-table td { padding: 8px 8px; vertical-align: middle; border-bottom: 1px solid #ededed; }
.chiadeal-domain-price .cdp-table tbody tr:last-child td { border-bottom: 0; }
.chiadeal-domain-price .cdp-table td.cdp-col-provider { padding-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chiadeal-domain-price .cdp-table td.cdp-price { text-align: right; color: var(--cdp-price); font-weight: 400; white-space: nowrap; }
.chiadeal-domain-price .cdp-price-link { color: inherit; }
.chiadeal-domain-price .cdp-price-link:hover { color: inherit; }

.chiadeal-domain-price .cdp-list { list-style: none; margin: 0; padding: 0; }
.chiadeal-domain-price .cdp-list-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #f0f0f0; }
.chiadeal-domain-price .cdp-list-item:last-child { border-bottom: 0; }
.chiadeal-domain-price .cdp-list-item .cdp-price { flex: 0 0 auto; min-width: 58px; font-weight: 700; color: var(--color-heading); font-size: 15px; }
.chiadeal-domain-price .cdp-list-item .cdp-provider-wrap { flex: 1 1 auto; min-width: 0; }
.chiadeal-domain-price .cdp-list-item .cdp-provider { width: 100%; }
.chiadeal-domain-price .cdp-list-item .cdp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chiadeal-domain-price .cdp-ext { flex: 0 0 auto; color: var(--cdp-price); line-height: 0; padding: 4px; border-radius: var(--radius-sm); }
.chiadeal-domain-price .cdp-ext:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* =========================================================
   SINGLE POST
   ========================================================= */
article.single-post { padding: 0 0 26px; margin-bottom: 6px; }
.single-header { margin-bottom: 18px; }
.single-header .cat-list { margin-bottom: 14px; }
.single-title { font-size: 32px; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 8px; }
.single-thumb { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.single-thumb img { width: 100%; }

.entry-content { font-size: 16.5px; line-height: 1.8; color: #2a323d; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 24px; margin: 1.5em 0 .6em; }
.entry-content h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry-content a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--color-accent); }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content blockquote {
	margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--color-primary);
	background: var(--color-primary-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--color-text-soft);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre {
	background: #23282d; color: #f4f4f5; padding: 16px 18px; border-radius: var(--radius);
	overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.entry-content code { background: var(--color-primary-soft); color: var(--color-primary-dark); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre code { background: none; color: inherit; padding: 0; }

.cd-terminal {
	--tm-bg: #23282d;
	--tm-bar: #32383f;
	--tm-text: #e8eaed;
	--tm-comment: var(--color-primary-light);

	margin: 1.8em 0;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tm-bg);
	box-shadow: var(--shadow);
}
.cd-terminal__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 34px;
	padding: 0 12px;
	background: var(--tm-bar);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.cd-terminal__dots { display: inline-flex; gap: 7px; }
.cd-terminal__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cd-terminal__dots i:nth-child(2) { background: #febc2e; }
.cd-terminal__dots i:nth-child(3) { background: #28c840; }
.cd-terminal__title {
	font-size: 12.5px; font-weight: 600; color: #a9b1bb;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cd-terminal__copy {
	margin-left: auto; flex: none;
	padding: 3px 12px; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .09); color: #c8ced6;
	font: inherit; font-size: 12px; font-weight: 600; line-height: 1.6;
	cursor: pointer; transition: background .15s ease, color .15s ease;
}
.cd-terminal__copy:hover { background: var(--color-primary); color: #fff; }
.cd-terminal__copy.is-copied { background: #28c840; color: #0d2b12; }

.entry-content .cd-terminal__body {
	margin: 0;
	padding: 20px 22px;
	background: transparent;
	color: var(--tm-text);
	border-radius: 0;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre;
	tab-size: 4;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.entry-content .cd-terminal__body code { background: none; color: inherit; padding: 0; font-size: inherit; }
.cd-terminal .tm-comment { color: var(--tm-comment); }

.entry-content .wp-block-table,
.entry-content .table-responsive {
	margin: 1.6em 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.entry-content .wp-block-table > table,
.entry-content .table-responsive > table { margin: 0; }

.entry-content table {
	width: 100%;
	margin: 1.6em 0;
	font-size: 15px;
	line-height: 1.55;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.entry-content th,
.entry-content td {
	padding: 12px 16px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--color-border-soft);
	vertical-align: middle;
}

.entry-content th + th,
.entry-content td + td { border-left: 1px solid var(--color-border-soft); }

.entry-content thead th,
.entry-content tr:first-child th {
	background: linear-gradient(180deg, #fff6f2 0%, var(--color-primary-soft) 100%);
	color: var(--color-heading);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
	border-bottom: 1px solid #f3d9cf;
}

.entry-content tbody tr:nth-child(even) { background: #fcfcfd; }
.entry-content tbody tr:hover { background: var(--color-primary-soft); }

.entry-content tbody tr:last-child td,
.entry-content tr:last-child td { border-bottom: 0; }

.entry-content thead tr:first-child th:first-child,
.entry-content tr:first-child th:first-child { border-top-left-radius: 12px; }
.entry-content thead tr:first-child th:last-child,
.entry-content tr:first-child th:last-child { border-top-right-radius: 12px; }
.entry-content tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.entry-content tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

.entry-content table caption {
	caption-side: bottom;
	padding-top: 10px;
	font-size: 13.5px;
	color: var(--color-muted);
	text-align: left;
}

.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }

.single-footer { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--color-border-soft); }
.post-tags .tags-label { font-weight: 700; margin-right: 6px; }
.post-tags a {
	display: inline-block; background: #f6f7f9; border: 1px solid var(--color-border);
	padding: 4px 12px; border-radius: 999px; font-size: 13px; margin: 0 4px 6px 0; color: var(--color-text-soft);
}
.post-tags a:hover { background: var(--color-primary-soft); border-color: var(--color-primary-light); color: var(--color-primary-dark); }

.post-navigation { margin-bottom: 26px; }
.post-navigation .nav-links { display: flex; gap: 16px; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a {
	display: block; background: var(--color-surface); border: 1px solid var(--color-border);
	border-radius: var(--radius); padding: 14px 18px; transition: all .18s ease;
}
.post-navigation a:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-sm); }
.post-navigation .nav-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--color-muted); margin-bottom: 4px; }
.post-navigation .nav-title { font-weight: 600; color: var(--color-heading); }

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area {
	background: #fafbfc; border: 1px solid var(--color-border); border-radius: var(--radius);
	padding: 26px 30px; margin-top: 20px;
}
.comments-title, .comment-reply-title { font-size: 20px; margin-bottom: 18px; }

.comment-pending-notice {
	background: var(--color-primary-soft); border: 1px solid var(--color-primary-light);
	border-radius: var(--radius-sm); color: var(--color-primary-dark);
	padding: 12px 16px; margin: 0 0 18px; font-size: 14.5px; line-height: 1.5;
}

.comment-reply-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.comment-reply-title small { font-size: 0; line-height: 0; }
.comment-reply-title small a#cancel-comment-reply-link {
	display: inline-flex; align-items: center; line-height: 1; font-size: 12.5px; font-weight: 600; color: var(--color-text-soft);
	padding: 5px 13px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff;
}
.comment-reply-title small a#cancel-comment-reply-link:hover { color: var(--color-primary-dark); border-color: var(--color-primary-light); background: var(--color-primary-soft); }

.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list li.comment-row { list-style: none; }
.comment-list ol.children {
	list-style: none; margin: 6px 0 0; padding-left: 24px;
	border-left: 2px solid var(--color-border-soft); position: relative;
}
.comment-list ol.children > li.comment-row { position: relative; }

.comment-list ol.children > li.comment-row > .comment-body::before {
	content: ""; position: absolute; left: -24px; top: 34px; width: 18px; height: 2px;
	background: var(--color-border-soft);
}

.comment-body { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; position: relative; }
.comment-list > li.comment-row + li.comment-row > .comment-body,
.comment-list ol.children > li.comment-row + li.comment-row > .comment-body { border-top: 1px solid var(--color-border-soft); }

.comment-avatar { flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 60px; }
.comment-avatar .avatar {
	width: 54px; height: 54px; border-radius: 50%; display: block; object-fit: cover;
	padding: 2px; background: #fff; border: 1px solid var(--color-border);
}

.comment-avatar:has(.comment-badge--admin) .avatar { border: 2px solid var(--color-primary-light); }
.comment-main { flex: 1 1 auto; min-width: 0; padding-top: 2px; }

.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.comment-author-name { font-weight: 700; color: var(--color-primary-dark); font-size: 14.5px; line-height: 1.2; }
.comment-time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-muted); }
.comment-time .i-clock { opacity: .8; }

.comment-reply-to {
	display: inline-flex; align-items: center; gap: 5px; margin: 0 0 7px; font-size: 12px;
	color: var(--color-muted); padding: 3px 9px 3px 7px; background: var(--color-border-soft);
	border-radius: 999px;
}
.comment-reply-to .i-quote { flex: none; opacity: .75; }
.comment-reply-to em { font-style: normal; color: #5c6b8a; font-weight: 600; }

.comment-badge {
	display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
	line-height: 1; letter-spacing: .3px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
	color: #fff; background: var(--color-primary);
}
.comment-badge--admin { background: var(--color-primary); }
.comment-badge--author { background: var(--color-text-soft); }

.comment-count-pill {
	display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; line-height: 1;
	padding: 4px 9px; border-radius: 999px; color: var(--color-text-soft);
	background: #f0f2f5; border: 1px solid var(--color-border);
}
.comment-count-pill .i-chat { flex: none; opacity: .7; }

.comment-content { font-size: 14.5px; line-height: 1.6; color: var(--color-text); }
.comment-content p { margin: 0 0 .6em; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-awaiting-moderation { font-size: 12.5px; color: var(--color-primary-dark); margin: 6px 0 0; }

.comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.comment-actions > * { margin: 0; display: inline-flex; align-items: center; }
.comment-actions a {
	display: inline-flex; align-items: center; gap: 5px; line-height: 1; font-size: 12.5px; font-weight: 600;
	color: var(--color-text-soft); transition: color .15s ease;
}
.comment-actions a:hover { color: var(--color-primary-dark); }
.comment-actions .i-reply { flex: none; opacity: .85; }

.comment-list .comment-respond { padding-bottom: 20px; }

.comments-area > .comment-respond { margin-bottom: 30px; }

.comment-form--compact {
	display: grid;

	grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px 18px;
}
.comment-form--compact p { margin: 0; }

/* Bám cả hai class để thắng .comment-form--compact .form-submit bên dưới — rule
   đó cũng đặt display nên nếu chỉ dùng một class thì nó ghi đè ngược lại. */
.comment-form--compact.comment-form--collapsed .cf-field,
.comment-form--compact.comment-form--collapsed .form-submit,
.comment-form--compact.comment-form--collapsed .comment-notes,
.comment-form--compact.comment-form--collapsed .logged-in-as,
.comment-form--compact.comment-form--collapsed .comment-form-cookies-consent { display: none; }
.comment-form--guest .comment-form-author { grid-column: 2; grid-row: 2; }
.comment-form--guest .comment-form-email { grid-column: 2; grid-row: 3; }
.comment-form--guest .comment-form-url { grid-column: 2; grid-row: 4; }
.comment-form--guest .form-submit { grid-column: 3; grid-row: 2 / 5; }

.comment-form--logged .form-submit { grid-column: 2 / -1; grid-row: 2; }
.comment-form--compact .comment-notes,
.comment-form--compact .logged-in-as { grid-column: 2 / -1; font-size: 12.5px; color: var(--color-muted); margin: -4px 0 2px; }

.comment-form-comment { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: flex-start; gap: 18px; }
.comment-form-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; margin-top: 2px; object-fit: cover; }
.comment-form-comment textarea {
	flex: 1 1 auto; min-width: 0; width: 100%; padding: 12px 14px;
	border: 1px solid var(--color-border); border-radius: var(--radius);
	font: inherit; font-size: 15px; line-height: 1.55; background: #fff; color: var(--color-text);
	outline: none; resize: vertical; min-height: 62px; transition: border-color .15s ease, box-shadow .15s ease;
}

.cf-field { position: relative; margin: 0; }
.cf-field label.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.comment-form--compact input[type="text"],
.comment-form--compact input[type="email"],
.comment-form--compact input[type="url"] {
	width: 100%; height: 44px; padding: 0 12px 0 40px;
	border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	font: inherit; font-size: 14px; background: #fff; color: var(--color-text);
	outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}

.cf-field::before {
	content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px; opacity: .5; pointer-events: none;
	background-repeat: no-repeat; background-position: center; background-size: contain;
}
.cf-icon-user::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.cf-icon-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.cf-icon-link::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }

.comment-form--compact input:focus,
.comment-form-comment textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255, 87, 34, .12); }
.comment-form--compact input:focus + label,
.cf-field:focus-within::before { opacity: .9; }

.comment-form--compact .form-submit {
	margin: 0;
	display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

.comment-form--compact .form-submit input[type="submit"] { margin-top: auto; align-self: flex-end; }

.cf-captcha {
	width: max-content; max-width: 100%; min-height: 65px;
	display: flex; align-items: flex-start; justify-content: flex-end;
}

.cf-captcha-badge,
.cf-captcha-error {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 600; line-height: 1.4; text-align: right;
}
.cf-captcha-badge { color: var(--color-success); }
.cf-captcha-badge::before { content: "✓"; font-size: 15px; }

.cf-captcha-error { display: block; white-space: pre-line; color: var(--color-accent); }

.cf-captcha > div { max-width: 100%; }
.form-submit input[type="submit"], input#submit {
	height: 44px; padding: 0 22px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
	white-space: nowrap; cursor: pointer;
	box-shadow: 0 4px 12px rgba(255, 87, 34, .28);
}
.form-submit input[type="submit"]:hover, input#submit:hover { opacity: .9; }

.comment-form--compact .comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--color-muted); }
.comment-form--compact .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form--compact .comment-form-cookies-consent input { margin: 0; }

/* =========================================================
   PAGINATION (danh sách bài + bình luận)
   ========================================================= */
.pagination, .navigation.pagination { margin-top: 24px; }
.post-pagination { margin-top: 30px; }
.pagination ul.page-numbers { margin: 0; }
.pagination .nav-links li { list-style: none; margin: 0; }
.pagination .nav-links, .pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; }
a.page-numbers, span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	color: var(--color-text); font-weight: 600; transition: all .15s ease;
}
a.page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
span.page-numbers.current, a.page-numbers.current {
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; border-color: transparent;
}
span.page-numbers.dots { border: none; background: none; }

/* =========================================================
   NO RESULTS / 404
   ========================================================= */
.no-results, .error-404 {
	background: #fafbfc; border: 1px solid var(--color-border); border-radius: var(--radius);
	padding: 44px 34px; text-align: center;
}
.error-code { font-size: 72px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: 0; }
.error-code::before { display: none; }
.error-lead { font-size: 18px; color: var(--color-text-soft); }
.no-results .page-title { padding-left: 0; }
.no-results .page-title::before { display: none; }
.no-results .search-form { max-width: 420px; margin: 20px auto; }
.error-back { margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 3px; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }

/* =========================================================
   FOOTER — 3 cột
   ========================================================= */
.site-footer { background: #26292d; color: #b9bfc7; margin-top: 30px; }
.footer-cols {
	display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; padding: 48px 20px 40px;
}
.footer-title {
	color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
	margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(255, 255, 255, .12); position: relative;
}
.footer-title::after {
	content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.footer-about p { color: #9aa0a8; font-size: 14.5px; line-height: 1.7; }
.footer-about strong { color: #fff; }

.footer-post-list { list-style: none; margin: 0; padding: 0; }
.footer-post-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-post-list li:last-child { border-bottom: 0; }
.fp-thumb { display: block; width: 70px; height: 52px; overflow: hidden; border-radius: 5px; background: #3a3f45; }
.fp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-title { color: #d5dae0; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.fp-title:hover { color: var(--color-primary-light); }

.top-commenter-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.top-commenter-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.top-commenter-list li:last-child { border-bottom: 0; }
.tc-rank {
	flex: none; width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 800; color: #fff; background: #3a3f45;
}
.tc-rank-1 { background: linear-gradient(135deg, #ffb300, #ff6f00); }
.tc-rank-2 { background: linear-gradient(135deg, #b0bec5, #78909c); }
.tc-rank-3 { background: linear-gradient(135deg, #bf8a5a, #8d6e63); }
.tc-avatar { flex: none; border-radius: 50%; }
.tc-name { color: #d5dae0; font-size: 14px; font-weight: 600; }
.tc-count { color: #8a9098; font-weight: 500; }
.tc-empty { color: #8a9098; font-size: 14px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: #1f2226; }
.footer-bottom-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 18px 20px; font-size: 13.5px;
}
.site-info { margin: 0; color: #8a9098; }
.footer-credit { margin: 0; color: #8a9098; }
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-menu a { color: #b9bfc7; font-weight: 500; }
.footer-menu a:hover { color: var(--color-primary-light); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
#back-to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 300;
	width: 44px; height: 44px; border-radius: 6px; border: none; cursor: pointer; color: #fff;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	box-shadow: 0 8px 20px rgba(255, 87, 34, .35);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s ease;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-2px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.content-area.with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
	.header-promo { max-width: 600px; }
}

@media (max-width: 900px) {

	.header-top { display: none; }
	.header-promo { display: none; }

	.nav-mobile-logo {
		display: flex; align-items: center;
		position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
		background: #fff; border-radius: 6px; padding: 3px 10px;
	}
	.nav-mobile-logo img { display: block; max-height: 30px; width: auto; }

	.menu-toggle { display: inline-flex; }
	.nav-inner { min-height: 50px; }
	.main-navigation {
		position: fixed; top: 0; left: -100%; width: 82%; max-width: 320px; height: 100vh;
		background: var(--nav-bg-dark); box-shadow: var(--shadow-lg); padding: 20px 0; overflow-y: auto;
		transition: left .28s ease; z-index: 250; display: block;
	}
	.main-navigation.is-open { left: 0; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu a { padding: 14px 22px; }
	.nav-menu li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nav-menu li:hover > ul.sub-menu,
	.nav-menu ul.sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
		background: rgba(0, 0, 0, .18); padding: 0; display: none; border-top: none;
	}
	.nav-menu ul.sub-menu a { color: #fff; padding-left: 36px; }
	.nav-menu li.submenu-open > ul.sub-menu { display: block; }
	.header-search { margin-left: auto; }

	body.menu-open { overflow: hidden; }

	body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(20, 32, 44, .45); z-index: 190; }

	.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	.content-area.with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.widget-area { position: static; align-self: auto; margin-top: 16px; padding-top: 20px; border-top: 3px solid var(--color-border); }
	.widget.chiadeal-sticky { position: static; top: auto; }
	.chiadeal-sticky-stack { position: static; top: auto; }
}

@media (max-width: 600px) {
	body { font-size: 15.5px; }

	.post-item { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
	.post-item-thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); }
	.post-item-title { font-size: 18px; margin-bottom: 6px; }
	.post-item-excerpt { display: none; }
	.post-item-meta { margin-top: 2px; }
	.single-title { font-size: 25px; }
	.comments-area { padding: 20px 16px; }

	.comment-form--compact { grid-template-columns: 1fr; }
	.comment-form--guest .comment-form-comment,
	.comment-form--guest .comment-form-author,
	.comment-form--guest .comment-form-email,
	.comment-form--guest .comment-form-url,
	.comment-form--guest .form-submit,
	.comment-form--logged .form-submit,
	.comment-form--compact .comment-notes,
	.comment-form--compact .logged-in-as { grid-column: 1; grid-row: auto; }
	.comment-form-avatar { width: 40px; height: 40px; }
	.comment-form--compact .form-submit { align-items: stretch; }
	.comment-form--compact .form-submit input[type="submit"] { width: 100%; align-self: stretch; }
	.cf-captcha { width: 100%; }
	.comment-list ol.children { padding-left: 14px; margin-left: 0; }
	.comment-list ol.children > li.comment-row > .comment-body::before { left: -14px; width: 10px; }
	.comment-body { gap: 10px; }
	.comment-avatar { width: 48px; }
	.comment-avatar .avatar { width: 44px; height: 44px; }
	.comment-list ol.children > li.comment-row > .comment-body::before { top: 34px; }
	.footer-cols { grid-template-columns: 1fr; gap: 32px; padding: 34px 20px 28px; }
	.entry-content { font-size: 16px; }
	.entry-content table { font-size: 14px; min-width: 480px; }
	.entry-content th, .entry-content td { padding: 10px 12px; }
	.post-navigation .nav-links { flex-direction: column; }
	.post-navigation .nav-next { text-align: left; }
	.footer-bottom-inner { justify-content: center; text-align: center; }
}