/* =========================================================
   Vinhomes Gardenia BQT - Theme Stylesheet
   Color: Gardenia Green + Warm Gold
   ========================================================= */

:root {
	/* Palette từ vinhomesgardenia.vn — sage green + dark slate */
	--primary: #5f7835;
	--primary-dark: #4a5e2a;
	--primary-light: #82a045;
	--primary-50: #f3f7e9;
	--primary-100: #dde8c4;

	--accent: #d4a843;
	--accent-dark: #b8902f;
	--accent-light: #e8c264;

	--text: #32373c;
	--text-soft: #505050;
	--text-muted: #6e7378;

	--bg: #ffffff;
	--bg-alt: #f1f1f1;
	--bg-band: #4a5e2a;

	--border: #e0e0e0;
	--border-strong: #c4c4c4;

	--shadow-sm: 0 1px 2px rgba(50, 55, 60, 0.06), 0 1px 3px rgba(50, 55, 60, 0.04);
	--shadow-md: 0 4px 14px rgba(50, 55, 60, 0.08), 0 2px 6px rgba(50, 55, 60, 0.05);
	--shadow-lg: 0 12px 30px rgba(50, 55, 60, 0.12), 0 4px 12px rgba(50, 55, 60, 0.08);

	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;

	--container: 1200px;
	--gap: 24px;

	/* Font stack: Lato body, Playfair Display cho heading sang trọng, Dancing Script cho tagline trang trí */
	--font-sans: "Lato", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: "Playfair Display", "Lora", Georgia, serif;
	--font-script: "Dancing Script", "Lora", cursive;
	--font-serif: "Lora", Georgia, serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); line-height: 1.25; margin: 0 0 .6em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

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

/* ----- Buttons ----- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: all .2s ease;
	text-decoration: none;
	line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--text); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: var(--text); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ----- Topbar ----- */
.topbar {
	background: var(--primary-dark);
	color: rgba(255, 255, 255, .92);
	font-size: .85rem;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--accent-light); text-decoration: none; }
.topbar-inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 20px; gap: 16px; flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	font-size: .7rem;
	font-weight: 600;
}
.topbar-social a:hover { background: var(--accent); color: var(--primary-dark); }

/* ----- Header ----- */
.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	position: sticky; top: 0;
	z-index: 100;
}
.site-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 20px; gap: 24px;
}
.site-branding .custom-logo-link img { max-height: 64px; width: auto; }

/* Logo image (real PNG) — column layout: logo trên, chip dưới */
.site-logo-link {
	display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
	text-decoration: none;
}
.site-logo-link:hover { text-decoration: none; }
.site-logo-img {
	display: block;
	height: 60px; width: auto;
	max-width: 200px;
}
.site-logo-tag {
	display: inline-block;
	padding: 3px 14px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
}

/* Footer variant of logo */
.site-logo-link--footer { flex-direction: column; align-items: flex-start; gap: 10px; }
.site-logo-img--footer {
	height: 80px; max-width: 260px;
	background: rgba(255, 255, 255, .97);
	padding: 12px 18px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Main Nav — uppercase + letter-spacing kiểu luxury hotel, ép 1 dòng */
.main-nav { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: flex-end; }
.main-nav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 0;
	flex-wrap: nowrap;
}
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a {
	display: inline-block;
	padding: 10px 13px;
	color: var(--text);
	font-weight: 600;
	font-size: .76rem;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	transition: all .2s;
	white-space: nowrap;
	position: relative;
}
.main-nav .menu > li > a::before {
	content: "";
	position: absolute;
	left: 50%; bottom: 4px;
	width: 0; height: 2px;
	background: var(--primary);
	transition: width .25s ease, left .25s ease;
}
.main-nav .menu > li > a:hover::before,
.main-nav .menu > li.current-menu-item > a::before,
.main-nav .menu > li.current-menu-parent > a::before {
	width: calc(100% - 26px); left: 13px;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-parent > a {
	color: var(--primary-dark);
	text-decoration: none;
}

/* Submenus */
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 240px;
	list-style: none; margin: 0; padding: 8px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 10;
}
.main-nav .menu li:hover > .sub-menu,
.main-nav .menu li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu li a {
	display: block;
	padding: 10px 14px;
	color: var(--text);
	font-size: .88rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	border-radius: var(--radius-sm);
}
.main-nav .sub-menu li a:hover {
	background: var(--primary-50);
	color: var(--primary-dark);
	text-decoration: none;
}
.main-nav .menu-item-has-children > a::after {
	content: " \25BE";
	font-size: .7em;
	margin-left: 4px;
	opacity: .6;
}

.menu-fallback { display: flex; gap: 4px; flex-wrap: wrap; }
.menu-hint {
	font-size: .8rem; color: var(--text-muted); margin: 8px 0 0;
	width: 100%;
}

/* Header search */
.header-search {
	display: flex; align-items: stretch;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--bg-alt);
	transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--primary); }
.header-search input {
	border: 0; background: transparent;
	padding: 7px 12px; width: 140px; min-width: 0; outline: none;
	font-size: .85rem;
}
.header-search:focus-within input { width: 200px; transition: width .2s; }
.header-search button {
	background: transparent; border: 0;
	padding: 0 14px;
	color: var(--primary);
	font-size: 1rem;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: transparent; border: 0;
	width: 44px; height: 44px;
	flex-direction: column; gap: 5px;
	align-items: center; justify-content: center;
	border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--primary-50); }
.menu-toggle-bar {
	display: block; width: 24px; height: 2px;
	background: var(--primary-dark);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) 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(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
	position: relative;
	background: linear-gradient(170deg, #fafdf3 0%, #ffffff 60%, #f6f9ec 100%);
	overflow: hidden;
	padding: 64px 0 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Decorative backgrounds — hoa nhài + lá xanh từ site chính */
.hero-blob {
	position: absolute;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}
.hero-blob-1 {
	width: 320px; height: 760px;
	background-image: url("../images/bg-left.png");
	background-position: bottom left;
	bottom: -40px; left: -30px;
	opacity: .85;
}
.hero-blob-2 {
	width: 230px; height: 400px;
	background-image: url("../images/bg-right.png");
	background-position: top right;
	top: -20px; right: -10px;
	opacity: .9;
}
.hero-blob-3 {
	width: 240px; height: 200px;
	background-image: url("../images/bg-right-bottom.png");
	background-position: bottom right;
	bottom: 0; right: 60px;
	opacity: .75;
}

@media (max-width: 1024px) {
	.hero-blob-1 { width: 220px; height: 520px; opacity: .55; }
	.hero-blob-2 { width: 160px; height: 280px; opacity: .55; }
	.hero-blob-3 { display: none; }
}
@media (max-width: 640px) {
	.hero-blob-1, .hero-blob-2 { display: none; }
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 48px;
	align-items: center;
}
.hero-eyebrow {
	display: inline-block;
	background: rgba(31, 122, 58, 0.12);
	color: var(--primary-dark);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--primary-dark);
}
.hero-sub {
	font-size: 1.075rem;
	color: var(--text-soft);
	max-width: 600px;
	margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
	display: flex; gap: 32px; flex-wrap: wrap;
	list-style: none; padding: 0; margin: 0;
}
.hero-stats li {
	display: flex; flex-direction: column;
	border-left: 3px solid var(--accent);
	padding-left: 14px;
}
.hero-stats strong {
	font-size: 1.6rem; font-weight: 800; color: var(--primary-dark);
	line-height: 1;
}
.hero-stats span {
	font-size: .85rem; color: var(--text-soft); margin-top: 4px;
}

.hero-card {
	background: #fff;
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
}
.hero-card h2 {
	font-size: 1.15rem;
	color: var(--primary-dark);
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-50);
}
.hero-card-list { list-style: none; padding: 0; margin: 0; }
.hero-card-list li {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.hero-card-list li:last-child { border-bottom: 0; }
.hero-card-icon {
	flex-shrink: 0;
	width: 36px; height: 36px;
	border-radius: 10px;
	background: var(--primary-50);
	color: var(--primary-dark);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.05rem;
}
.hero-card-list strong { display: block; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.hero-card-list a, .hero-card-list span:not(.hero-card-icon) {
	color: var(--text); font-weight: 600; font-size: .95rem;
}

/* ----- Sections ----- */
.home-section { padding: 64px 0; }
.home-section--alt { background: var(--bg-alt); }
.section-head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	margin-bottom: 32px;
}
.section-eyebrow {
	display: block;
	color: var(--accent-dark);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.section-title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 2.8vw, 2.4rem);
	font-weight: 400;
	color: var(--primary-dark);
	margin: 0;
	letter-spacing: 0;
}
.section-link {
	font-weight: 600;
	font-size: .95rem;
	color: var(--primary);
	transition: gap .2s;
}
.section-link:hover { color: var(--primary-dark); text-decoration: none; }
.section-link span { transition: transform .2s; display: inline-block; }
.section-link:hover span { transform: translateX(4px); }

/* ----- Card grid ----- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary-light);
}
.card-thumb {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
	display: block;
	background: var(--primary-50);
}
.card-thumb img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .35s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--primary), var(--primary-light));
	color: #fff;
	font-size: 3rem; font-weight: 800;
}
.card-badge {
	position: absolute; top: 12px; left: 12px;
	background: rgba(255,255,255,.95);
	color: var(--primary-dark);
	padding: 4px 10px;
	font-size: .72rem;
	font-weight: 700;
	border-radius: 999px;
	letter-spacing: .3px;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-title {
	font-size: 1.05rem; font-weight: 700; line-height: 1.4;
	margin: 0 0 8px;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); text-decoration: none; }
.card-meta {
	font-size: .82rem; color: var(--text-muted);
	margin-bottom: 10px;
}
.card-excerpt {
	font-size: .92rem; color: var(--text-soft);
	margin: 0 0 14px;
	flex: 1;
}
.card-readmore {
	font-size: .85rem; font-weight: 600; color: var(--primary);
	align-self: flex-start;
}
.card-readmore:hover { color: var(--primary-dark); text-decoration: none; }

/* ----- Docs grid (homepage) ----- */
.home-docs { padding: 64px 0; background: var(--bg-alt); }
.docs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.doc-card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	color: var(--text);
	position: relative;
	transition: all .25s;
	overflow: hidden;
}
.doc-card::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0;
	width: 4px; background: var(--accent);
	transform: scaleY(0); transform-origin: bottom;
	transition: transform .25s;
}
.doc-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-light);
	color: var(--text);
	text-decoration: none;
}
.doc-card:hover::before { transform: scaleY(1); transform-origin: top; }
.doc-icon {
	font-size: 2rem;
	margin-bottom: 12px;
	color: var(--primary);
}
.doc-card h3 {
	font-size: 1rem; font-weight: 700;
	margin: 0 0 4px; color: var(--primary-dark);
}
.doc-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.doc-arrow {
	position: absolute; top: 24px; right: 24px;
	color: var(--primary);
	transition: transform .2s;
}
.doc-card:hover .doc-arrow { transform: translateX(4px); }

/* ----- CTA Band ----- */
.cta-band {
	background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
	color: #fff;
	padding: 56px 0;
	position: relative;
	overflow: hidden;
}
.cta-band::after {
	content: "";
	position: absolute; top: -100px; right: -100px;
	width: 400px; height: 400px;
	background: var(--accent);
	border-radius: 50%;
	opacity: .12;
	filter: blur(40px);
}
.cta-band-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; flex-wrap: wrap;
	position: relative;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 600px; }

/* ----- Page wrap (inner pages) ----- */
.page-wrap { padding: 32px 20px 64px; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: " / "; color: var(--border-strong); margin-left: 6px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.page-header { margin-bottom: 28px; }
.page-title, .archive-title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 2.8vw, 2.5rem);
	font-weight: 400;
	color: var(--primary-dark);
	margin: 0 0 8px;
}
.archive-hero {
	background: linear-gradient(135deg, var(--primary-50), #fff);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	margin-bottom: 32px;
}
.archive-description, .archive-hero p { color: var(--text-soft); margin: 0; }

.content-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: flex-start;
}
.content-main { min-width: 0; }

/* Single post */
.single-post .entry-header,
.single-page .entry-header { margin-bottom: 24px; }
.entry-badge {
	display: inline-block;
	background: var(--accent);
	color: var(--text);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.entry-title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 400;
	color: var(--primary-dark);
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0 0 14px;
}
.entry-meta {
	display: flex; flex-wrap: wrap; gap: 8px;
	font-size: .9rem; color: var(--text-muted);
	margin-bottom: 20px;
}
.entry-meta-sep { opacity: .5; }
.entry-meta a { color: var(--primary); }
.entry-thumb {
	margin: 0 0 28px;
	border-radius: var(--radius);
	overflow: hidden;
}
.entry-content {
	font-size: 1.05rem; line-height: 1.75;
	color: var(--text-soft);
}
.entry-content h2, .entry-content h3 { color: var(--primary-dark); margin-top: 1.6em; }
.entry-content blockquote {
	border-left: 4px solid var(--accent);
	background: var(--bg-alt);
	padding: 16px 22px;
	margin: 1.5em 0;
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--text);
}
.entry-content table {
	width: 100%; border-collapse: collapse; margin: 1.5em 0;
	font-size: .95rem;
}
.entry-content th, .entry-content td {
	padding: 10px 14px; border: 1px solid var(--border);
	text-align: left;
}
.entry-content th { background: var(--primary-50); color: var(--primary-dark); font-weight: 700; }
.entry-content code {
	background: var(--bg-alt); padding: 2px 6px; border-radius: 4px;
	font-size: .9em; color: var(--primary-dark);
}
.entry-content img { border-radius: var(--radius); margin: 1em 0; }

.entry-footer {
	margin-top: 32px; padding-top: 24px;
	border-top: 1px solid var(--border);
}
.entry-tax { margin: 0 0 8px; font-size: .9rem; color: var(--text-soft); }
.entry-share { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.entry-share a {
	padding: 6px 14px;
	background: var(--bg-alt);
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: .85rem;
}
.entry-share a:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* Post nav */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 40px 0;
}
.post-nav a {
	display: flex; flex-direction: column; gap: 4px;
	padding: 18px 22px;
	background: var(--bg-alt);
	border-radius: var(--radius);
	color: var(--text);
}
.post-nav a:hover { background: var(--primary-50); text-decoration: none; }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: .8rem; color: var(--text-muted); }
.post-nav strong { font-size: .98rem; color: var(--primary-dark); }

/* ----- Sidebar ----- */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 92px; }
.widget {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
}
.widget-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--primary-dark);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-50);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	font-size: .92rem;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary); text-decoration: none; }
.widget .recent-date { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.widget .count { color: var(--text-muted); font-size: .85rem; }

.widget-cta {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	border: 0;
}
.widget-cta .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.widget-cta p { color: rgba(255,255,255,.92); font-size: .92rem; margin-bottom: 14px; }
.widget-cta .btn-accent { width: 100%; }

.search-form {
	display: flex; gap: 8px;
}
.search-form input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-alt);
}
.search-form input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }

/* ----- Pagination ----- */
.pagination-wrap { margin-top: 40px; }
.pagination-wrap .nav-links {
	display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.pagination-wrap .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	font-size: .9rem;
}
.pagination-wrap .page-numbers:hover {
	background: var(--primary-50);
	border-color: var(--primary);
	text-decoration: none;
}
.pagination-wrap .page-numbers.current {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}
.pagination-wrap .dots { border: 0; }

/* ----- Footer ----- */
.site-footer {
	background: linear-gradient(180deg, #0e3d1a 0%, #0a2f14 100%);
	color: rgba(255,255,255,.85);
	padding: 56px 0 0;
	margin-top: 56px;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--accent-light); text-decoration: none; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}
.footer-tagline {
	font-family: var(--font-script);
	color: var(--accent-light);
	font-size: 1.4rem;
	font-weight: 600;
	margin: 4px 0 14px;
	letter-spacing: .2px;
}
.footer-tagline em { font-style: normal; }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-top: 0; max-width: 360px; color: rgba(255,255,255,.78); }
.footer-desc strong { color: var(--accent-light); }
.footer-col .widget-title, .footer-col h4 {
	color: #fff; font-size: .95rem;
	letter-spacing: 1px; text-transform: uppercase;
	margin: 0 0 16px; padding-bottom: 12px;
	border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 6px 0; font-size: .9rem; border: 0; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 20px 0;
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-size: .85rem;
}
.copyright { margin: 0; color: rgba(255,255,255,.65); }
.footer-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: 18px; flex-wrap: wrap;
}
.footer-menu a { color: rgba(255,255,255,.75); font-size: .85rem; }

/* Back to top */
.back-to-top {
	position: fixed; bottom: 24px; right: 24px;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	border: 0;
	font-size: 1.2rem;
	box-shadow: var(--shadow-lg);
	display: flex; align-items: center; justify-content: center;
	z-index: 50;
	transition: opacity .2s, transform .2s;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* 404 */
.not-found {
	text-align: center;
	max-width: 600px; margin: 60px auto;
	padding: 40px;
}
.not-found-code {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 400;
	color: var(--primary-light);
	line-height: 1;
	margin-bottom: 12px;
	letter-spacing: 0;
}
.not-found-title { color: var(--primary-dark); margin-bottom: 12px; }
.not-found-text { color: var(--text-soft); margin-bottom: 24px; }
.not-found-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.not-found-search { max-width: 400px; margin: 0 auto; }

.no-results {
	padding: 32px;
	background: var(--bg-alt);
	border-radius: var(--radius);
	color: var(--text-soft);
	text-align: center;
}

/* Comments */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body {
	background: var(--bg-alt);
	padding: 18px;
	border-radius: var(--radius);
	margin-bottom: 14px;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--primary-dark); font-style: normal; }
.comment-metadata { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-form { background: var(--bg-alt); padding: 20px; border-radius: var(--radius); margin-top: 24px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 14px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: #fff; margin-bottom: 12px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.comment-form .submit { background: var(--primary); color: #fff; border: 0; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--primary-dark); }

/* ====== Responsive ====== */
@media (max-width: 1280px) {
	.header-search { display: none; }
	.main-nav .menu > li > a { padding: 10px 10px; font-size: .72rem; letter-spacing: 1.2px; }
}

@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; }
	.content-with-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.topbar-info { gap: 12px; font-size: .78rem; }
	.topbar-social { display: none; }

	.site-logo-tag { display: none; }
	.site-logo-img { height: 44px; }

	.menu-toggle { display: flex; }
	.main-nav {
		position: fixed; top: 0; right: -100%;
		width: 320px; max-width: 90vw; height: 100vh;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 80px 24px 24px;
		box-shadow: var(--shadow-lg);
		transition: right .3s ease;
		overflow-y: auto;
		z-index: 99;
	}
	.main-nav.is-open { right: 0; }
	.main-nav .menu { flex-direction: column; gap: 0; align-items: stretch; }
	.main-nav .menu > li { width: 100%; border-bottom: 1px solid var(--border); }
	.main-nav .menu > li > a { padding: 14px 8px; display: block; }
	.main-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0;
		padding: 0 0 8px 16px;
		min-width: 0;
	}
	.main-nav .menu-item-has-children > a::after { float: right; }
	.header-search { margin-top: 16px; }

	.menu-overlay {
		position: fixed; inset: 0;
		background: rgba(20, 32, 25, .5);
		backdrop-filter: blur(2px);
		z-index: 98;
		display: none;
	}
	.menu-overlay.is-visible { display: block; }

	.hero { padding: 40px 0 48px; }
	.hero-stats { gap: 18px; }
	.home-section, .home-docs { padding: 48px 0; }
	.cta-band-inner { text-align: left; }

	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { text-align: left; }

	.footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
}

@media (max-width: 480px) {
	.card-grid { grid-template-columns: 1fr; }
	.hero-cta { width: 100%; }
	.hero-cta .btn { flex: 1; min-width: 140px; }
	.hero-card { padding: 22px; }
	.btn-lg { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
