/*
Theme Name: Nhà Đất Duy Tân
Theme URI: https://nhadatduytan.com/
Author: Nhà Đất Duy Tân
Description: Theme viết tay cho Nhà Đất Duy Tân — nhà phố Bình Tân cho gia đình mua để ở. Phong cách học từ tanphuland.vn (không chép nội dung). Tin nhà là post type nha_ban, giữ đường dẫn web cũ. Không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: duytan
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây (số đo theo phan-tich/tanphuland.vn/thong-so.md)
   ========================================================================== */
:root {
	--c-primary: #004a9c;        /* navy logo Duy Tân */
	--c-primary-dark: #0b1f5c;   /* navy đậm logo */
	--c-primary-soft: #e8f0fa;
	--c-heading: #0b1f5c;
	--c-accent: #e0a526;         /* vàng nhấn */
	--c-price: #e5372f;
	--c-bg: #ffffff;
	--c-bg-alt: #f6f9fc;
	--c-bg-dark: #0b1f5c;
	--c-text: #4d5f73;
	--c-text-muted: #6b7d90;
	--c-text-invert: #ffffff;
	--c-border: #dee6ed;

	--g-primary: linear-gradient(135deg, #0b3f86 0%, #004a9c 45%, #0a5fb8 100%);
	--g-dark: linear-gradient(135deg, #071437 0%, #0b1f5c 45%, #0b3a7e 100%);

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Lexend", "Be Vietnam Pro", system-ui, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.0625rem;
	--fs-h3: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--fs-h2: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
	--fs-h1: clamp(1.4rem, 1rem + 1.9vw, 2.375rem);

	--radius: 17px;
	--radius-md: 13px;
	--radius-sm: 9px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 25px 50px -12px rgba(11, 31, 92, 0.22);

	--space-section: clamp(3rem, 2.2rem + 3vw, 5rem);
	--container: 1280px;
	--gutter: 16px;
	--header-h: 68px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.6; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.25; margin: 0 0 0.6em; color: var(--c-heading); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: 2.5rem; }
.section--alt { background: var(--c-bg-alt); }
.section--soft { background: linear-gradient(180deg, #fff 0%, var(--c-bg-alt) 100%); }
.section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__head h2 { margin-bottom: 0.35em; }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); margin-bottom: 0; }
.section__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 2rem; }
.section__bar > div { max-width: 720px; }
.section__bar h2 { margin-bottom: 0.25em; }
.pill { display: inline-block; margin-bottom: 0.9rem; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--c-primary-soft); color: var(--c-primary); font-size: 0.8125rem; font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-primary); }
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow--accent { color: #c58a0e; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.media-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, var(--c-primary-soft), #f3f7fc); color: #9db4d4; }
.media-ph .icon { width: 48px; height: 48px; }

/* ==========================================================================
   3. Nút, nhãn
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--g-primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 74, 156, 0.6); }
.btn--primary:hover { color: #fff; box-shadow: 0 10px 20px -6px rgba(0, 74, 156, 0.7); }
.btn--accent { background: linear-gradient(135deg, #f0b43a, #e0951c); color: #fff; box-shadow: 0 8px 18px -8px rgba(224, 149, 28, 0.8); }
.btn--accent:hover { color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.btn--outline { border-color: var(--c-border); color: var(--c-heading); background: #fff; }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: var(--c-primary-soft); color: var(--c-primary); }
.btn--light:hover { background: #d9e6f6; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.section__lead + .btn-group, p + .btn-group { margin-top: 1.25rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.badge .icon { width: 12px; height: 12px; fill: currentColor; }
.badge--hot { background: linear-gradient(135deg, #f0b43a, #e0951c); color: #fff; }
.badge--type { background: rgba(0, 74, 156, 0.92); color: #fff; }
.badge--new { background: var(--c-primary); color: #fff; }
.tone--blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tone--purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.tone--orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.tone--green { background: linear-gradient(135deg, #34d399, #059669); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-border); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(11, 31, 92, 0.25); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.custom-logo-link, .site-logo { display: flex; align-items: center; margin-right: auto; font-family: var(--f-heading); font-size: 1.15rem; font-weight: 700; color: var(--c-primary-dark); text-decoration: none; white-space: nowrap; }
.custom-logo-link img { max-height: 44px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: -8px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--c-heading); position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 12px var(--gutter) 96px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.25s; }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 12px 0; color: var(--c-heading); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a { padding-left: 16px; font-weight: 400; color: var(--c-text); }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--c-primary); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--c-heading); cursor: pointer; }
.icon-btn:hover { background: var(--c-bg-alt); }
.icon-btn .icon { width: 22px; height: 22px; }
.header-cta span { display: none; }
.header-cta { width: 42px; padding: 0; min-height: 42px; border-radius: 50%; }
.header-search { border-top: 1px solid var(--c-border); background: #fff; padding-block: 12px; }
.header-search__form { display: flex; align-items: center; gap: 10px; }
.header-search__form > .icon { color: var(--c-text-muted); }
.header-search__form input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; font-size: 1rem; }

/* ==========================================================================
   5. Hero — banner + hộp nổi + thanh tìm kiếm + 4 lối tắt
   ========================================================================== */
.hero { position: relative; padding-bottom: 1rem; }
.hero__banner { position: relative; height: 220px; overflow: hidden; background: var(--g-dark); }
.hero__banner::before { content: ""; position: absolute; inset: 0; background:
	radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.45), transparent 40%),
	radial-gradient(circle at 85% 20%, rgba(224, 165, 38, 0.25), transparent 35%),
	repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px); }
.hero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 20, 55, 0.15), rgba(7, 20, 55, 0.45)); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__box { position: relative; z-index: 2; margin-top: -90px; padding: 28px 18px 22px; border-radius: 24px; background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 38%); box-shadow: var(--shadow-lg); text-align: center; }
.hero__title { margin-bottom: 0.6rem; font-size: var(--fs-h1); line-height: 1.35; }
.hero__brand { display: block; color: var(--c-heading); }
.hero__sub { display: block; color: var(--c-primary); text-wrap: balance; }
.hero__lead { max-width: 680px; margin: 0 auto 1.4rem; color: var(--c-text); font-size: var(--fs-base); text-wrap: pretty; }
.hero-search { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 900px; margin: 0 auto; padding: 8px; border-radius: 18px; background: #eef3f9; box-shadow: inset 0 0 0 1px #e1e9f2; text-align: left; }
.hero-search__field { position: relative; display: flex; align-items: center; min-width: 0; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.hero-search__field--q { grid-column: 1 / -1; }
.hero-search__field > .icon { position: absolute; left: 14px; color: #7d8fa3; pointer-events: none; }
.hero-search input, .hero-search select { width: 100%; min-width: 0; min-height: 52px; padding: 10px 14px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--c-heading); outline: 0; }
.hero-search__field--q input { padding-left: 44px; }
.hero-search select { appearance: none; padding-right: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237d8fa3' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.hero-search__field:focus-within { box-shadow: 0 0 0 2px rgba(0, 74, 156, 0.35); }
.hero-search__btn { grid-column: 1 / -1; min-height: 52px; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.4rem 0 0; padding: 0; list-style: none; text-align: left; }
.shortcut { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.shortcut:hover { border-color: #c7d6e7; box-shadow: var(--shadow); transform: translateY(-2px); }
.shortcut__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: #fff; }
.shortcut__icon .icon { width: 22px; height: 22px; }
.shortcut__text { display: grid; min-width: 0; }
.shortcut__text strong { font-family: var(--f-heading); font-size: 0.95rem; font-weight: 600; color: var(--c-heading); }
.shortcut__text small { display: none; color: var(--c-text-muted); font-size: 0.8125rem; line-height: 1.4; }

/* ==========================================================================
   6. Khám phá theo loại hình
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 22px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; text-align: center; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.cat-card:hover { transform: translateY(-3px); border-color: #c7d6e7; box-shadow: var(--shadow); }
.cat-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 14px; background: linear-gradient(135deg, #0ea5c6, #004a9c); color: #fff; box-shadow: 0 8px 16px -8px rgba(0, 74, 156, 0.7); }
.cat-card__icon .icon { width: 26px; height: 26px; }
.cat-card strong { font-family: var(--f-heading); font-size: 0.95rem; font-weight: 600; color: var(--c-heading); line-height: 1.35; }
.cat-card small { color: var(--c-text-muted); font-size: 0.8125rem; }

/* Trang chủ — "Tìm nhà đúng nhu cầu gia đình": nút tầm giá, thẻ nhu cầu, bảng kiểm tra navy, nút tuyến đường. */
.section--cats { background: #fff; }
.price-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.price-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-heading); font-family: var(--f-heading); font-weight: 600; text-decoration: none; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.price-chip span { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--c-primary-soft); color: var(--c-primary); font-size: 0.75rem; }
.price-chip:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: var(--shadow); }

.needs { display: grid; gap: 16px; }
.needs__grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.need-card { display: flex; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.need-card:hover { border-color: #c7d6e7; box-shadow: var(--shadow); transform: translateY(-2px); }
.need-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
.need-card__icon .icon { width: 22px; height: 22px; }
.need-card__body { display: grid; gap: 4px; align-content: start; }
.need-card__body strong { font-family: var(--f-heading); font-size: 1.02rem; font-weight: 600; color: var(--c-heading); }
.need-card__body > span { color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.55; }
.need-card__body em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--c-primary); font-size: 0.85rem; font-style: normal; font-weight: 600; }
.need-card__body em .icon { width: 15px; height: 15px; transition: transform 0.2s; }
.need-card:hover em .icon { transform: translateX(4px); }

.checklist { padding: 26px 24px; border-radius: var(--radius); background: var(--g-dark); color: #fff; box-shadow: var(--shadow-lg); }
.checklist h3 { margin: 0 0 14px; color: #fff; font-size: 1.1rem; line-height: 1.4; }
.checklist ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: ck; }
.checklist li { counter-increment: ck; display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; line-height: 1.5; }
.checklist li::before { content: counter(ck); display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary-dark); font-size: 0.75rem; font-weight: 700; }

.route-chips { margin-top: 36px; text-align: center; }
.route-chips__title { margin: 0 0 14px; color: var(--c-text-muted); font-family: var(--f-heading); font-weight: 600; }
.route-chips ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.route-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-heading); font-weight: 600; font-size: 0.925rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.route-chips a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.route-chips__pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fdf3dc; color: #b9821a; }
.route-chips__pin .icon { width: 15px; height: 15px; }
.route-chips small { color: var(--c-text-muted); font-weight: 500; }

/* ==========================================================================
   7. Người đại diện
   ========================================================================== */
.agent { display: grid; gap: 24px; }
.person-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.person-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.person-card__avatar { display: grid; place-items: center; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c-primary-soft); }
.person-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card__avatar .icon { width: 30px; height: 30px; }
.person-card__name { margin: 0; font-family: var(--f-heading); font-size: 1.05rem; font-weight: 700; color: var(--c-heading); text-transform: uppercase; }
.person-card__role { margin: 0; color: var(--c-text-muted); font-size: 0.875rem; }
.person-card__area { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--c-primary); font-size: 0.8125rem; font-weight: 500; }
.person-card__area .icon { width: 14px; height: 14px; }
.person-card__quote { color: var(--c-text); font-size: 0.9375rem; font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--c-primary-soft); color: var(--c-primary); font-size: 0.75rem; font-weight: 600; }
.person-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.agent__story > p { color: var(--c-text); text-align: justify; text-align-last: left; }
.reasons { display: grid; gap: 12px; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.reason { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff; }
.reason__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--c-primary-soft); color: var(--c-primary); }
.reason__icon .icon { width: 20px; height: 20px; }
.reason h3 { margin-bottom: 0.2em; font-size: 0.95rem; }
.reason p { margin: 0; font-size: 0.875rem; color: var(--c-text-muted); }

/* ==========================================================================
   8. Kiến thức (1 lớn + danh sách)
   ========================================================================== */
.news { display: grid; gap: 20px; }
.news__lead { overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.news__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-primary-soft); }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news__lead:hover .news__media img { transform: scale(1.03); }
.news__media .badge { position: absolute; top: 14px; left: 14px; }
.news__body { padding: 20px 22px 22px; }
.news--even .news__lead { display: flex; flex-direction: column; }
.news--even .news__body { display: flex; flex: 1; flex-direction: column; }
.news--even .news__body .meta { margin-top: auto; }
.news__body h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem); font-weight: 700; }
.news__body h3 a { color: inherit; text-decoration: none; }
.news__body h3 a:hover { color: var(--c-primary); }
.news__body > p { color: var(--c-text-muted); }
.meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; color: var(--c-text-muted); font-size: 0.8125rem; }
.meta span, .news__item small { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon, .news__item small .icon { width: 14px; height: 14px; }
.news__list { display: grid; gap: 12px; align-content: start; margin: 0; padding: 0; list-style: none; }
.news__item { display: flex; gap: 14px; padding: 10px; border-radius: var(--radius-md); text-decoration: none; transition: background 0.2s; }
.news__item:hover { background: #fff; box-shadow: var(--shadow-sm); }
.news__thumb { display: grid; place-items: center; flex: none; width: 104px; height: 76px; overflow: hidden; border-radius: 10px; background: var(--c-primary-soft); color: #9db4d4; }
.news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news__item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; color: var(--c-heading); font-family: var(--f-heading); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.news__item small { color: var(--c-text-muted); font-size: 0.75rem; }

/* ==========================================================================
   9. Thẻ tin nhà
   ========================================================================== */
.listing-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.listing { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-primary-soft); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.listing:hover .listing__media img { transform: scale(1.04); }
.listing__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(4, 14, 40, 0.78)); pointer-events: none; }
.listing__badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.listing__price { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: grid; color: #fff; line-height: 1.1; }
.listing__price strong { font-family: var(--f-heading); font-size: 1.6rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.listing__price small { font-size: 0.75rem; opacity: 0.85; }
.listing__count { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 0.75rem; }
.listing__count .icon { width: 14px; height: 14px; }
.listing__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.listing__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.listing__title a { color: var(--c-heading); text-decoration: none; }
.listing__title a:hover { color: var(--c-primary); }
.listing__loc { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; color: var(--c-text-muted); font-size: 0.8125rem; }
.listing__loc .icon { width: 14px; height: 14px; }
.listing__specs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--c-heading); font-size: 0.8125rem; font-weight: 500; }
.listing__specs li { display: inline-flex; align-items: center; gap: 5px; }
.listing__specs .icon { width: 16px; height: 16px; color: var(--c-primary); }
.listing__foot { display: flex; justify-content: space-between; gap: 8px; margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--c-border); color: var(--c-text-muted); font-size: 0.75rem; }

/* ==========================================================================
   10. Khối tư vấn nền navy + số liệu
   ========================================================================== */
.consult { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); background: var(--g-dark); color: rgba(255, 255, 255, 0.85); }
.consult::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.35), transparent 40%), radial-gradient(circle at 90% 80%, rgba(14, 165, 198, 0.25), transparent 40%); pointer-events: none; }
.consult__inner { position: relative; display: grid; gap: 32px; align-items: center; }
.consult h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.consult p { font-size: var(--fs-lg); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1rem; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.8125rem; font-weight: 500; }
.live-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stat { display: grid; justify-items: center; gap: 6px; padding: 22px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); text-align: center; backdrop-filter: blur(6px); }
.stat__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; }
.stat__icon .icon { width: 20px; height: 20px; }
.stat strong { font-family: var(--f-heading); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; color: #fff; }
.stat span:last-child { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   11. Form, thông báo
   ========================================================================== */
.form { display: grid; gap: 14px; padding: 22px; background: #fff; color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 14px; }
.form label { display: block; margin-bottom: 4px; color: var(--c-heading); font-weight: 500; font-size: var(--fs-sm); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-heading); }
.form textarea { min-height: 100px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 74, 156, 0.12); }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: 0.8125rem; color: var(--c-text-muted); }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); }
.notice--ok { background: #e8f6ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   12. Trang con, danh sách, chi tiết nhà, bài viết
   ========================================================================== */
.page-hero { padding-block: 32px; background: linear-gradient(180deg, #eef4fb 0%, var(--c-bg-alt) 100%); border-bottom: 1px solid var(--c-border); }
.page-hero--slim { padding-block: 14px; }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero__desc { max-width: 820px; color: var(--c-text); }
.page-hero__desc p:last-child { margin-bottom: 0; }
.page-hero .hero-search { margin: 1.5rem 0 0; max-width: none; }
.breadcrumb { margin-bottom: 8px; font-size: 0.8125rem; color: var(--c-text-muted); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }
.result-count { margin-bottom: 1.25rem; color: var(--c-text-muted); font-size: 0.9375rem; }
.empty { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 40px 24px; border: 1px dashed var(--c-border); border-radius: var(--radius); text-align: center; }
.empty > .icon { width: 40px; height: 40px; color: #9db4d4; }
.split--form { display: grid; gap: 32px; align-items: center; }
.property__head { display: grid; gap: 16px; margin-bottom: 20px; }
.property__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.property__title { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem); }
.property__loc { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--c-text-muted); }
.property__loc .icon { width: 16px; height: 16px; }
.property__price { display: grid; align-content: start; gap: 2px; }
.property__price strong { font-family: var(--f-heading); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; color: var(--c-price); }
.property__price span { color: var(--c-heading); font-weight: 500; }
.property__price small { color: var(--c-text-muted); font-size: 0.8125rem; }
.property__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.property__gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-primary-soft); }
.property__gallery a.is-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.property__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property__gallery a:hover img { transform: scale(1.03); }
.property__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 14, 40, 0.55); color: #fff; font-weight: 600; }
.property__layout { display: grid; gap: 28px; }
.property__main > h2 { margin-top: 1.5rem; }
.property__main > h2:first-child { margin-top: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.specs__item { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff; }
.specs__icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); }
.specs__icon .icon { width: 18px; height: 18px; }
.specs dt { font-size: 0.75rem; color: var(--c-text-muted); }
.specs dd { margin: 0; color: var(--c-heading); font-weight: 600; font-size: 0.9375rem; }
.note { display: flex; gap: 12px; margin: 1.5rem 0; padding: 14px 16px; border-radius: var(--radius-md); background: #fff8e8; color: #7a5a10; font-size: 0.875rem; }
.note .icon { color: #c58a0e; }
.note p { margin: 0; }
.property__form { margin-top: 2rem; }
.aside-card { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.aside-card .person-card__head { margin-bottom: 4px; }
.aside-card__text { margin: 0 0 4px; font-size: 0.875rem; }
.entry { max-width: 780px; margin-inline: auto; color: #3b4b5c; }
.entry--wide { max-width: none; }
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry img { border-radius: var(--radius-sm); }
.entry h2 { margin-top: 1.6em; }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; background: var(--c-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card__title { margin-bottom: 0.4em; font-size: 1.05rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-text-muted); font-size: 0.9375rem; }
.card__meta { margin-top: auto; color: var(--c-text-muted); font-size: 0.8125rem; }
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); font-size: 1.4rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--g-primary); color: #fff; font-weight: 700; }
.steps h3 { margin-bottom: 0.25em; }
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font-weight: 600; font-size: var(--fs-lg); color: var(--c-heading); cursor: pointer; }
.faq__q::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-primary); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 18px; color: var(--c-text); }
.faq__a[hidden] { display: none; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); color: var(--c-heading); text-decoration: none; }
.nav-links .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.cta-band { padding-block: 56px; background: var(--g-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.4em; }
.cta-band .btn-group { justify-content: center; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: linear-gradient(180deg, #081740 0%, #061133 100%); color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-news { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-block: 32px; }
.footer-news__inner { display: grid; gap: 18px; align-items: center; }
.footer-news__title { margin-bottom: 0.2em; color: #f0b43a; font-size: 1.25rem; }
.footer-news p { margin: 0; }
.footer-news__form { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.footer-news__form > .icon { position: absolute; left: 18px; top: 22px; color: rgba(255, 255, 255, 0.5); width: 18px; height: 18px; }
.footer-news__form input[type="text"]:not([name="website"]) { flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 8px 12px 8px 40px; border: 0; background: transparent; color: #fff; outline: 0; }
.footer-news__form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-news__form .notice { flex-basis: 100%; }
.footer-grid { display: grid; gap: 28px; padding-block: 44px 28px; }
.footer-brand__logo { display: inline-block; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: #fff; }
.footer-brand__logo img { max-height: 40px; width: auto; }
.footer-contact { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 2px; color: #f0b43a; }
.footer-col h3 { margin-bottom: 1rem; color: #fff; font-size: 1rem; }
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; }
.footer-social a:hover { background: var(--c-primary); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-social .icon--zalo { width: 24px; height: 24px; }
.site-footer__bottom { padding-block: 18px 88px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8125rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ==========================================================================
   14. Nút liên hệ nổi — mobile: thanh 3 nút dưới đáy; desktop: bong bóng góc phải
   ========================================================================== */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.float-contact__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 0.75rem; font-weight: 600; color: #fff; text-decoration: none; }
.float-contact__btn:hover { color: #fff; }
.float-contact__btn .icon { width: 22px; height: 22px; }
.float-contact__btn .icon--zalo { width: 26px; height: 26px; color: #fff; }
.float-contact__phone { background: var(--c-primary); }
.float-contact__zalo { background: #0068ff; }
.float-contact__form { background: #e0951c; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.form__row { grid-template-columns: 1fr 1fr; }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.needs__grid { grid-template-columns: 1fr 1fr; }
	.listing-grid { grid-template-columns: repeat(2, 1fr); }
	.shortcut__text small { display: block; }
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.specs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.hero__banner { height: 340px; }
	.hero__box { margin-top: -110px; padding: 44px 40px 30px; }
	.hero-search { grid-template-columns: 2fr 1fr 1fr 1fr auto; padding: 8px; }
	.hero-search__field--q { grid-column: auto; }
	.hero-search__btn { grid-column: auto; padding-inline: 26px; }
	.shortcuts { grid-template-columns: repeat(4, 1fr); gap: 14px; }
	.page-hero .hero-search { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
	.agent { grid-template-columns: 1fr 1.5fr; align-items: start; }
	.reasons { grid-template-columns: 1fr 1fr; }
	.stats { gap: 18px; }
	.footer-news__inner { grid-template-columns: 1fr 1.2fr; }
	.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
	.split--form { grid-template-columns: 1fr 1.1fr; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.property__head { grid-template-columns: 1fr auto; align-items: end; }
	.property__price { text-align: right; }
	.property__gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); }
	.property__gallery a.is-main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
	.property__gallery a:not(.is-main) { aspect-ratio: 4 / 3; }
	.property__gallery--single { grid-template-columns: 1fr; grid-template-rows: auto; }
	.property__gallery--single a.is-main { aspect-ratio: 16 / 9; grid-row: auto; }
}
@media (min-width: 1024px) {
	:root { --fs-base: 1.0625rem; --header-h: 70px; }
	.nav-toggle { display: none; }
	.custom-logo-link, .site-logo { margin-right: 0; }
	.primary-nav { position: static; flex: 1; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav > ul, .primary-nav > div > ul { display: flex; justify-content: center; gap: 4px; }
	.primary-nav a { padding: 10px 14px; border: 0; border-radius: 10px; font-size: 0.9375rem; white-space: nowrap; }
	.primary-nav > ul > li > a:hover { background: var(--c-bg-alt); }
	.primary-nav li { position: relative; }
	.primary-nav .menu-item-has-children > a { display: flex; align-items: center; gap: 4px; }
	.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
	.primary-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a { padding: 9px 12px; font-size: 0.9rem; }
	.primary-nav .sub-menu a:hover { background: var(--c-bg-alt); }
	.header-cta { width: auto; padding: 9px 16px; border-radius: var(--radius-md); }
	.header-cta span { display: inline; }
	.hero__banner { height: 470px; }
	.hero__box { margin-top: -130px; padding: 52px 64px 36px; }
	.hero__title { line-height: 1.3; }
	.cat-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
	.needs { grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: stretch; }
	.needs__grid { grid-template-rows: 1fr 1fr; }
	.need-card { flex-direction: column; gap: 16px; padding: 24px; }
	.need-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--g-primary); color: #fff; box-shadow: 0 10px 18px -10px rgba(11, 31, 92, 0.6); }
	.need-card__body { flex: 1; grid-template-rows: auto 1fr auto; }
	.need-card__body strong { font-size: 1.1rem; }
	.checklist { padding: 30px; }
	.news { grid-template-columns: 1.35fr 1fr; gap: 28px; }
	.news--even { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.news--even .news__body h3 { font-size: 1.1rem; }
	.consult__inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.property__layout { grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
	.property__aside { align-self: stretch; }
	.specs { grid-template-columns: repeat(3, 1fr); }
	.float-contact { left: auto; right: 22px; bottom: 22px; grid-template-columns: none; grid-auto-flow: row; gap: 12px; background: none; box-shadow: none; }
	.float-contact__btn { width: 56px; height: 56px; min-height: 0; border-radius: 50%; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35); }
	.float-contact__btn span { display: none; }
	.float-contact__zalo { order: -1; background: #fff; box-shadow: 0 0 0 3px #0068ff, 0 8px 20px -6px rgba(0, 104, 255, 0.6); }
	.float-contact__zalo .icon--zalo { width: 40px; height: 40px; color: #0068ff; }
	.float-contact__form { display: none; }
	.site-footer__bottom { padding-bottom: 18px; }
}
@media (min-width: 1024px) and (min-height: 700px) {
	.aside-card { position: sticky; top: calc(var(--header-h) + 20px); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.float-contact__zalo, .footer-social { --zalo-text: #0068ff; }
.footer-social { --zalo-text: #081740; }
@media (min-width: 1024px) { .float-contact__zalo { --zalo-text: #fff; } }
@media (max-width: 1023px) {
	.primary-nav .sub-menu { display: none; }
	.primary-nav .is-open > .sub-menu { display: block; }
}

/* ==========================================================================
   16. Trang con: liên hệ, giới thiệu, ký gửi, tuyến đường, bài viết
   ========================================================================== */
.contact-cards { display: grid; gap: 12px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-cards li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff; }
.contact-cards small { display: block; color: var(--c-text-muted); font-size: 0.75rem; }
.contact-cards a, .contact-cards span:not(.reason__icon) { color: var(--c-heading); font-weight: 600; text-decoration: none; word-break: break-word; }
.about { display: grid; gap: 28px; }
.about .aside-card { display: grid; gap: 10px; }
.reasons--4 { margin: 0; }
.cat-grid--routes { grid-template-columns: repeat(2, 1fr); }
.post-layout { display: grid; gap: 32px; }
.post-cover { display: block; width: 100%; height: auto; max-height: 440px; aspect-ratio: 16 / 9; margin-bottom: 1.75rem; border-radius: var(--radius); object-fit: cover; object-position: center 45%; box-shadow: var(--shadow-sm); } /* ảnh dọc/ngang đều về khung ngang gọn */
.post-title { max-width: 900px; text-wrap: balance; }
.page-hero .meta a { color: inherit; }
.aside-links { display: grid; gap: 4px; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--c-border); list-style: none; }
.aside-links a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--c-heading); font-size: 0.9rem; text-decoration: none; }
.aside-links a:hover { color: var(--c-primary); }
.aside-links .icon { width: 14px; height: 14px; color: var(--c-primary); }
@media (min-width: 768px) {
	.contact-cards { grid-template-columns: 1fr 1fr; }
	.reasons--4 { grid-template-columns: repeat(2, 1fr); }
	.cat-grid--routes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.about { grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
	.reasons--4 { grid-template-columns: repeat(4, 1fr); }
	.reasons--4 .reason { flex-direction: column; }
	.cat-grid--routes { grid-template-columns: repeat(5, 1fr); }
	.post-layout { grid-template-columns: 1fr 320px; gap: 48px; }
	.sidebar { align-self: stretch; }
}
@media (min-width: 1024px) and (min-height: 700px) {
	.sidebar__sticky, .sticky-col, .about aside .aside-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* Vòng so ảnh 1: ô chọn không cắt chữ; mobile ô thứ 4 trải hết hàng */
@media (max-width: 767px) {
	.hero-search > .hero-search__field:nth-child(4) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
	.hero-search, .page-hero .hero-search { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; }
}
.property__gallery a[hidden] { display: none; }
.entry h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.entry h3 { font-size: 1.1rem; }
@media (min-width: 768px) {
	.property__gallery { grid-template-rows: repeat(2, clamp(150px, 16vw, 230px)); }
	.property__gallery a:not(.is-main) { aspect-ratio: auto; }
	.property__gallery--single { grid-template-rows: auto; }
}
/* Banner ảnh thật: lớp phủ nhẹ phía trên, đậm dần xuống chỗ hộp tìm kiếm */
.hero__banner::after { background: linear-gradient(180deg, rgba(7, 20, 55, 0.05) 0%, rgba(7, 20, 55, 0.25) 55%, rgba(7, 20, 55, 0.6) 100%); }
.hero__bg { object-position: center 35%; }

/* Banner thiết kế (có chữ trong ảnh): khung theo đúng tỉ lệ ảnh, hộp nổi chỉ đè phần nền dưới */
.hero__banner { height: auto; aspect-ratio: 750 / 520; }
.hero__banner::before, .hero__banner::after { content: none; }
.hero__bg { object-position: center top; }
.hero__box { margin-top: -18.6vw; }
@media (min-width: 768px) {
	.hero__banner { height: auto; aspect-ratio: 1920 / 640; max-height: 640px; }
	.hero__box { margin-top: min(-9vw, -60px); }
}
@media (min-width: 1920px) {
	.hero__banner { aspect-ratio: auto; height: 640px; }
	.hero__box { margin-top: -173px; }
}

/* ==========================================================================
   Video mới nhất (YouTube) — trang chủ, ngay dưới banner
   ========================================================================== */
.section--video { padding-top: calc(var(--space-section) * 0.8); }
.video-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; list-style: none; }
.video-grid::-webkit-scrollbar { display: none; }
.video-grid > li { scroll-snap-align: start; }
.video-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.video-card:hover { transform: translateY(-3px); border-color: #c7d6e7; box-shadow: var(--shadow); }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1f5c; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 31, 92, 0.35)); }
.video-card__play { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; padding-left: 3px; border-radius: 50%; background: rgba(229, 55, 47, 0.95); color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3); transition: transform 0.2s; }
.video-card:hover .video-card__play { transform: scale(1.12); }
.video-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.video-card__new { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-primary-dark); font-size: 0.75rem; font-weight: 700; }
.video-card__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.video-card__body strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--f-heading); font-size: 0.98rem; font-weight: 600; line-height: 1.45; color: var(--c-heading); }
.video-card__body time { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-muted); font-size: 0.8125rem; }
.video-card__body time .icon { width: 14px; height: 14px; }
.video-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.btn--yt { background: #e5372f; color: #fff; box-shadow: 0 6px 16px -6px rgba(229, 55, 47, 0.6); }
.btn--yt:hover { color: #fff; background: #cc2a23; }
.lightbox__video { width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox__video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) {
	.video-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; overflow: visible; }
}

/* ==========================================================================
   Trang chi tiết: nút hành động, video căn nhà, ước tính vay
   ========================================================================== */
.property__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-heading); font: 600 0.875rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.chip-btn .icon { width: 17px; height: 17px; color: var(--c-primary); }
.chip-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }

.video-card--wide { margin-bottom: 1.6rem; }
.video-card--wide .video-card__thumb { aspect-ratio: 16 / 9; }
.video-card__play--center { top: 50%; left: 50%; right: auto; bottom: auto; width: 68px; height: 68px; transform: translate(-50%, -50%); }
.video-card--wide:hover .video-card__play--center { transform: translate(-50%, -50%) scale(1.1); }
.video-card__label { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(11, 31, 92, 0.85); color: #fff; font-size: 0.85rem; font-weight: 600; }

.loan { margin: 2rem 0; padding: 22px; border: 1px solid var(--c-border); border-radius: var(--radius); background: linear-gradient(180deg, #f6f9fc, #fff 60%); scroll-margin-top: calc(var(--header-h) + 16px); }
.loan__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.loan__head h2 { margin: 0 0 4px; }
.loan__head p { margin: 0; color: var(--c-text-muted); font-size: 0.9rem; }
.loan__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
.loan__icon .icon { width: 22px; height: 22px; }
.loan__body { display: grid; gap: 18px; }
.loan__inputs { display: grid; gap: 16px; align-content: start; }
.loan__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loan__field { display: grid; gap: 6px; }
.loan__field label { display: flex; justify-content: space-between; align-items: center; color: var(--c-heading); font-size: 0.9rem; font-weight: 600; }
.loan__field output { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; }
.loan__field small { color: var(--c-text-muted); font-size: 0.85rem; }
.loan__field select, .loan__field input[type="number"] { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--c-heading); }
.loan__field input[type="range"] { --fill: 71%; width: 100%; height: 8px; margin: 10px 0 4px; border-radius: 99px; background: linear-gradient(90deg, var(--c-primary) var(--fill), var(--c-border) var(--fill)); appearance: none; -webkit-appearance: none; cursor: pointer; }
.loan__field input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50%; background: var(--c-primary); box-shadow: 0 2px 8px rgba(11, 31, 92, 0.35); -webkit-appearance: none; }
.loan__field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: var(--c-primary); box-shadow: 0 2px 8px rgba(11, 31, 92, 0.35); }
.loan__result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.loan__result > div { padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; }
.loan__result dt { color: var(--c-text-muted); font-size: 0.8rem; }
.loan__result dd { margin: 2px 0 0; color: var(--c-heading); font: 700 1.05rem/1.3 var(--f-heading); }
.loan__result .loan__big { grid-column: 1 / -1; border: 0; background: var(--g-dark); }
.loan__big dt { color: rgba(255, 255, 255, 0.75); }
.loan__big dd { color: #fff; font-size: 1.7rem; }
.loan__note { margin: 16px 0 0; color: var(--c-text-muted); font-size: 0.8rem; line-height: 1.55; }

/* Danh sách nhà: số căn + sắp xếp */
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.result-bar .result-count { margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { color: var(--c-text-muted); font-size: 0.875rem; }
.sort-form select { min-height: 40px; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; font: 600 0.875rem var(--f-body); color: var(--c-heading); cursor: pointer; }

/* Nút "Nhắn Zalo" (ghost) đặt trên nền sáng → viền + chữ đậm để không bị tàng hình */
.split--form .btn--ghost { border-color: var(--c-border); color: var(--c-heading); background: #fff; }
.split--form .btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

@media (min-width: 768px) {
	.loan { padding: 28px; }
	.loan__body { grid-template-columns: 1fr 1.1fr; gap: 24px; }
}

/* Lưới tin nhà: 2 cột (600px+) → 4 cột (1100px+), mỗi trang 8 căn = 2 hàng đều */
@media (min-width: 1100px) {
	.listing-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* Khối tư vấn không có ô số liệu: chữ + nút canh giữa, gọn chiều cao */
.consult:has(.consult__inner--solo) { padding-block: clamp(2.75rem, 2rem + 3vw, 4.25rem); }
.consult__inner--solo { max-width: 860px; text-align: center; }
.consult__inner--solo .live-pill { margin-inline: auto; }
.consult__inner--solo h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.consult__inner--solo p { max-width: 640px; margin-inline: auto; }
.consult__inner--solo .btn-group { justify-content: center; }
@media (min-width: 1024px) {
	.consult__inner.consult__inner--solo { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Điện thoại (< 600px): gọn, cân đối, dễ bấm — chủ web yêu cầu 01/11/2026
   ========================================================================== */
@media (max-width: 599px) {
	:root { --space-section: 2.6rem; }
	h2 { letter-spacing: -0.01em; }
	.section__lead { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.95rem; }
	.section__bar { gap: 12px; }

	/* Hộp tìm kiếm đầu trang: bỏ đoạn mô tả dài, tiêu đề gọn */
	.hero__lead { display: none; }
	.hero__box { padding-top: 22px; padding-bottom: 20px; }

	/* Dải vuốt ngang dùng chung: thẻ nhà nổi bật, căn tương tự, nút giá, tuyến đường */
	.listing-grid--scroll, .price-chips, .route-chips ul, .property__actions { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.listing-grid--scroll::-webkit-scrollbar, .price-chips::-webkit-scrollbar, .route-chips ul::-webkit-scrollbar, .property__actions::-webkit-scrollbar { display: none; }
	.listing-grid--scroll { grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; }
	.listing-grid--scroll > * { scroll-snap-align: start; }
	.listing-grid--scroll .listing:hover { transform: none; }
	.price-chips, .route-chips ul { justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
	.price-chips > li, .route-chips li { flex: none; scroll-snap-align: start; }
	.price-chips { margin-bottom: 18px; }
	.route-chips { margin-top: 26px; text-align: left; }
	.property__actions { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.property__actions .chip-btn { flex: none; }

	/* Trang danh sách: thẻ nhà nằm ngang (ảnh trái, thông tin phải) — xem được nhiều căn hơn mỗi lần cuộn */
	.listing-grid:not(.listing-grid--scroll) { gap: 12px; }
	.listing-grid:not(.listing-grid--scroll) .listing { display: grid; grid-template-columns: 41% 1fr; }
	.listing-grid:not(.listing-grid--scroll) .listing__media { aspect-ratio: auto; min-height: 100%; height: 100%; }
	.listing-grid:not(.listing-grid--scroll) .listing__badges { top: 8px; left: 8px; }
	.listing-grid:not(.listing-grid--scroll) .listing__badges .badge--type { display: none; }
	.listing-grid:not(.listing-grid--scroll) .listing__price { left: 10px; bottom: 9px; }
	.listing-grid:not(.listing-grid--scroll) .listing__price strong { font-size: 1.2rem; }
	.listing-grid:not(.listing-grid--scroll) .listing__count { display: none; }
	.listing-grid:not(.listing-grid--scroll) .listing__body { padding: 12px 12px 10px; }
	.listing-grid:not(.listing-grid--scroll) .listing__title { -webkit-line-clamp: 3; font-size: 0.9rem; line-height: 1.4; }
	.listing-grid:not(.listing-grid--scroll) .listing__loc { margin-bottom: 8px; font-size: 0.75rem; }
	.listing-grid:not(.listing-grid--scroll) .listing__specs { gap: 4px 10px; margin-bottom: 8px; font-size: 0.75rem; }
	.listing-grid:not(.listing-grid--scroll) .listing__specs .icon { width: 14px; height: 14px; }
	.listing-grid:not(.listing-grid--scroll) .listing__foot span:last-child { display: none; }
	.result-bar { margin-bottom: 12px; }

	/* Tìm theo nhu cầu: 4 thẻ thành lưới 2×2 gọn (bỏ câu mô tả) */
	.needs__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.need-card { flex-direction: column; gap: 10px; padding: 14px; }
	.need-card__icon { width: 40px; height: 40px; }
	.need-card__body > span { display: none; }
	.need-card__body strong { font-size: 0.92rem; line-height: 1.35; }
	.need-card__body em { margin-top: 2px; font-size: 0.8rem; }
	.checklist { padding: 20px 18px; }
	.checklist li { padding: 9px 0; font-size: 0.9rem; }

	/* Người đại diện: 4 lý do thành lưới 2×2, chỉ tiêu đề */
	.reasons { grid-template-columns: 1fr 1fr; gap: 10px; }
	.reason { flex-direction: column; gap: 8px; padding: 12px; }
	.reason p { display: none; }
	.reason h3 { font-size: 0.85rem; line-height: 1.35; }
	.agent__story > p { font-size: 0.95rem; }

	/* Kiến thức: bài dạng dòng gọn (ảnh nhỏ trái) */
	.news--even { gap: 12px; }
	.news--even .news__lead { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; }
	.news--even .news__media { aspect-ratio: auto; height: 100%; min-height: 104px; }
	.news--even .news__media .badge { display: none; }
	.news--even .news__body { padding: 12px 14px; }
	.news--even .news__body h3 { margin-bottom: 6px; font-size: 0.95rem; line-height: 1.4; }
	.news--even .news__body > p:not(.meta) { display: none; }
	.news--even .meta { gap: 10px; font-size: 0.75rem; }

	/* Chân trang: 3 cột link xếp 2 cột, link cao dễ bấm */
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-block: 34px 20px; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-col ul { gap: 2px; }
	.footer-col li a { display: inline-block; padding-block: 7px; }

	/* Trang chi tiết: giá nổi bật ngay dưới tiêu đề */
	.property__head { gap: 8px; }
	.property__head > div:first-child { display: contents; }
	.property__tags { order: 1; margin: 0; }
	.property__title { order: 2; margin: 0; font-size: 1.35rem; }
	.property__loc { order: 3; margin: 0; }
	.property__price { order: 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
	.property__price small { flex-basis: 100%; }
	.property__actions { order: 5; margin-top: 6px; }
	.property__price strong { font-size: 1.9rem; }
	.loan { padding: 18px 16px; }
	.loan__big dd { font-size: 1.45rem; }
	.breadcrumb { font-size: 0.75rem; }
}

/* ==========================================================================
   Thẻ bài viết dùng chung (.card--post): ảnh đầy đủ 3:4, 4 cột — trang chủ, /blogs/, bài viết khác
   ========================================================================== */
.post-grid { gap: 20px; }
.card--post { box-shadow: var(--shadow-sm); }
.card--post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--post .card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-primary-soft); }
.card--post .card__media img { transition: transform 0.4s; }
.card--post:hover .card__media img { transform: scale(1.04); }
.card__cat { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: var(--radius-pill); background: rgba(11, 31, 92, 0.85); color: #fff; font-size: 0.75rem; font-weight: 600; }
.card--post .card__body { padding: 16px 18px 14px; }
.card--post .card__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; font-size: 1rem; line-height: 1.45; }
.card--post .card__title a { color: var(--c-heading); text-decoration: none; }
.card--post .card__title a:hover { color: var(--c-primary); }
.card--post .card__text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0 0 12px; color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.55; }
.card--post .card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--c-border); color: var(--c-text-muted); font-size: 0.75rem; }
.card--post .card__meta > * { display: inline-flex; align-items: center; gap: 5px; }
.card--post .card__meta .icon { width: 14px; height: 14px; }
@media (min-width: 1100px) {
	.post-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 599px) {
	.post-grid { gap: 12px; }
	.card--post { display: grid; grid-template-columns: 112px 1fr; }
	.card--post .card__media { aspect-ratio: auto; height: 100%; min-height: 128px; }
	.card--post .card__cat, .card--post .card__text { display: none; }
	.card--post .card__body { padding: 12px 14px; }
	.card--post .card__title { -webkit-line-clamp: 3; font-size: 0.95rem; }
	.card--post .card__meta { padding-top: 8px; }
}
