/* =========================================================================
   GKG – Trang bài viết (single.php) + phần dùng chung với trang dự án (single-du_an.php)
   Nạp trong inc/assets.php cho bài viết, trang dự án (template mặc định) và trang danh mục dự án (mô tả danh mục).
   1. Biến   2. Đầu bài viết   3. Nội dung .gkg-prose (:where → độ ưu tiên thấp)
   4. Tag    5. Mục liên quan (tiêu đề, slider, lưới, card tin)   6. Responsive
   ========================================================================= */

/* ---------- 1. Biến: khai báo ở :root trong style.css (--p-* là bí danh của --gkg-*). ---------- */

/* ---------- 2. Đầu bài viết ---------- */
.gkg-post { padding-top: 0 !important; } /* style.css: .page-wrapper { padding: 15px 0 !important } */
.gkg-post__wrap { max-width: 860px; margin: 0; } /* cột đọc 860px, căn trái thẳng hàng với breadcrumb / mục liên quan */
.gkg-post__header { padding: 24px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--p-line); }
.gkg-post__cat {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
	font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--p-gold-2);
}
.gkg-post__cat::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.gkg-post__cat:hover { color: var(--p-navy); }
.gkg-post .gkg-post__title {
	margin: 0 0 16px; text-align: left; /* thắng .titleduan { text-align: center } */ font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 700;
	letter-spacing: -.01em; color: var(--p-ink);
}
.gkg-post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--p-muted); }
.gkg-post__meta span { display: inline-flex; align-items: center; gap: 8px; }
.gkg-post__meta span + span::before { content: ""; width: 4px; height: 4px; margin-right: 10px; border-radius: 50%; background: var(--p-gold); }

/* ---------- 3. Nội dung ---------- */
.gkg-prose { padding-top: 0; color: var(--p-text); font-size: 17px; line-height: 1.8; }
.gkg-prose :where(h2) {
	margin: 1.8em 0 .6em; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 700; color: var(--p-ink);
}
.gkg-prose :where(h3) { margin: 1.5em 0 .5em; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; font-weight: 700; color: var(--p-ink); }
.gkg-prose :where(h4) { margin: 1.3em 0 .4em; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--p-ink); }
.gkg-prose :where(h5, h6) {
	margin: 1.4em 0 .5em; font-size: 14px; line-height: 1.5; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--p-gold-2);
}
.gkg-prose :where(h2, h3, h4, h5):first-child { margin-top: 0; }
.gkg-prose :where(p) { margin-bottom: 1.1em; }
.gkg-prose :where(a:not(.button):not([class*="btn"]):not([class*="ftwp"]):not([class*="title"])) {
	color: var(--p-navy); text-decoration: underline; text-decoration-color: rgba(201, 164, 92, .6);
	text-underline-offset: 3px;
}
.gkg-prose :where(a:not(.button):not([class*="btn"]):not([class*="ftwp"]):not([class*="title"])):hover { color: var(--p-gold-2); }
.gkg-prose :where(strong, b) { color: var(--p-ink); }

/* Danh sách: dấu chấm vàng */
.gkg-prose :where(ul:not([class])) { margin-left: 0; padding-left: 0; list-style: none; }
.gkg-prose :where(ul:not([class]) > li) { position: relative; margin-bottom: .5em; padding-left: 22px; }
.gkg-prose :where(ul:not([class]) > li)::before {
	content: ""; position: absolute; left: 4px; top: .75em;
	width: 7px; height: 7px; border-radius: 50%; background: var(--p-gold);
}
.gkg-prose :where(ol:not([class])) { padding-left: 1.4em; }
.gkg-prose :where(ol:not([class]) > li) { margin-bottom: .5em; padding-left: 4px; }
.gkg-prose :where(ol:not([class]) > li)::marker { color: var(--p-gold-2); font-weight: 700; }

/* Ảnh trong bài */
.gkg-prose :where(figure) { margin-left: 0; margin-right: 0; }
.gkg-prose :where(.wp-block-image img, figure img, p > img, p > a > img, .wp-caption img) { border-radius: 12px; }
.gkg-prose :where(.wp-caption) { max-width: 100%; }
.gkg-prose :where(figcaption, .wp-caption-text) {
	margin-top: 8px; font-size: 14px; font-style: italic; color: var(--p-muted); text-align: center;
}

/* Bản đồ / video nhúng: co theo khung, bo góc */
.gkg-prose :where(iframe:not([class])) {
	display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9;
	margin: 1em 0 1.4em; border: 0; border-radius: 12px; background: var(--p-cream);
}

/* Bảng */
.gkg-prose :where(table) {
	width: 100%; margin: 1em 0 1.6em; border-collapse: separate; border-spacing: 0;
	border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; font-size: 15px; line-height: 1.55;
}
.gkg-prose :where(th, td) { border: 0; border-bottom: 1px solid var(--p-line); text-align: left; vertical-align: top; }
.gkg-prose :where(tr:last-child > th, tr:last-child > td) { border-bottom: 0; }
.gkg-prose :where(th, thead td) { background: var(--p-navy); font-weight: 600; }
.gkg-prose :where(tbody tr:nth-child(even) td) { background: #faf8f4; }
.gkg-prose :where(tr > td:first-child:nth-last-child(2)) { width: 34%; font-weight: 600; }
/* style.css đặt `table th, table td { color: #000 !important; padding: 8px !important }` cho mọi bảng */
.gkg-prose th,
.gkg-prose td { padding: 12px 16px !important; color: var(--p-text) !important; }
.gkg-prose th,
.gkg-prose thead td { color: #fff !important; }

/* Trích dẫn / hộp ghi chú (ghi đè blockquote viền xanh trong style.css) */
.gkg-prose blockquote {
	margin: 1.4em 0; padding: 18px 22px; border: 0; border-left: 4px solid var(--p-gold);
	border-radius: 0 12px 12px 0; background: var(--p-cream); color: var(--p-ink);
	font-size: inherit; font-style: normal;
}
.gkg-prose blockquote p:last-child { margin-bottom: 0; }
.gkg-prose :where(hr) { margin: 2em 0; border: 0; border-top: 1px solid var(--p-line); }

/* Mục lục (plugin Fixed TOC) */
.gkg-prose #ftwp-container-outer.ftwp-in-post { margin: 0 0 1.8em; }
.gkg-prose #ftwp-container-outer.ftwp-in-post #ftwp-contents {
	overflow: hidden; border: 1px solid var(--p-line) !important; border-radius: 12px; background: var(--p-cream) !important;
	box-shadow: none !important;
}
.gkg-prose #ftwp-container-outer.ftwp-in-post #ftwp-header { padding: 14px 18px; border-bottom: 1px solid var(--p-line); background: transparent !important; color: var(--p-ink) !important; }
.gkg-prose #ftwp-container-outer.ftwp-in-post #ftwp-header-title { font-weight: 700; }
.gkg-prose #ftwp-container-outer.ftwp-in-post #ftwp-list { padding: 10px 18px 14px; }
.gkg-prose #ftwp-container-outer.ftwp-in-post .ftwp-anchor { color: var(--p-text) !important; text-decoration: none; }
.gkg-prose #ftwp-container-outer.ftwp-in-post .ftwp-anchor:hover { color: var(--p-navy) !important; }

/* ---------- 4. Tag ---------- */
.gkg-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; padding-top: 24px; border-top: 1px solid var(--p-line); }
.gkg-post__tags a {
	margin: 0; padding: 7px 14px; border: 1px solid var(--p-line); border-radius: 999px;
	background: #fff; font-size: 14px; line-height: 1.3; color: var(--p-ink);
}
.gkg-post__tags a:hover { border-color: var(--p-navy); background: #fff; color: var(--p-navy); }

/* ---------- 5. Mục liên quan ---------- */
.gkg-related { padding-top: 48px !important; }
.gkg-related:last-child { padding-bottom: 24px !important; }
.gkg-sechead-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gkg-sechead {
	position: relative; margin: 0 0 24px; padding-bottom: 12px;
	font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 700; color: var(--p-ink);
}
.gkg-sechead::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--p-gold); }
.gkg-sechead__link { margin-bottom: 28px; font-size: 15px; font-weight: 600; color: var(--p-navy); white-space: nowrap; }
.gkg-sechead__link::after { content: " →"; }
.gkg-sechead__link:hover { color: var(--p-gold-2); }

/* Slider (Flickity của Flatsome) */
.gkg-related .gkg-related-slider { max-height: none; } /* style.css: .row-slider { max-height: 310px } cắt mất card */
.gkg-related-slider .flickity-viewport { padding-bottom: 6px; }
.gkg-related-slider > .col,
.gkg-related-slider .flickity-slider > .col,
.gkg-related-grid > .col { padding-bottom: 24px !important; }
.gkg-related-slider .flickity-prev-next-button {
	width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--p-navy);
	box-shadow: 0 4px 14px rgba(16, 24, 40, .14); opacity: 1;
}
.gkg-related-slider .flickity-prev-next-button:hover { background: var(--p-navy); color: #fff; }
.gkg-related-slider .flickity-prev-next-button svg { padding: 12px; }
.gkg-related-slider .flickity-prev-next-button.previous { left: 0; }
.gkg-related-slider .flickity-prev-next-button.next { right: 0; }

/* Card tin (template-parts/posts/card-news.php) */
.gkg-ncard__media { flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e6df; }
.gkg-ncard__media img {
	display: block; width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: cover;
	border-radius: 0; transition: transform .6s ease;
}
@supports not (aspect-ratio: 1 / 1) {
	.gkg-ncard__media { position: relative; height: 0; padding-top: 62.5%; }
	.gkg-ncard__media img { position: absolute; top: 0; left: 0; }
}
.gkg-ncard:hover .gkg-ncard__media img { transform: scale(1.05); }
.gkg-ncard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.gkg-ncard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; line-height: 1.4; color: var(--p-muted); }
.gkg-ncard__date { font-size: 13px; color: var(--p-muted); }
.gkg-ncard__title { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 700; }
.gkg-ncard__title a {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-size: inherit; color: var(--p-ink);
}
.gkg-ncard__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.gkg-ncard:hover .gkg-ncard__title a { color: var(--p-navy); }

/* ---------- Mô tả danh mục (gkg_term_description_box) ---------- */
.gkg-termdesc-row { margin-top: 16px; }
.gkg-termdesc {
	position: relative; padding: 36px 40px 32px;
	border: 1px solid var(--p-line); border-radius: 16px; background: #fff;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.gkg-termdesc__body { max-width: none; padding: 0; } /* nội dung rộng hết khung */
/* Cột phụ (ví dụ ACF duanlienke): bám theo khi cuộn trên desktop */
.gkg-termdesc--aside { padding: 24px 24px 20px; font-size: 15px; }
.gkg-termdesc--aside :where(h2, h3, h4) { margin: 0 0 12px; font-size: 17px; }
@media (min-width: 850px) {
	.gkg-termdesc--aside { position: sticky; top: 100px; }
}
/* Thu gọn (chỉ khi JS bật và nội dung dài) */
.gkg-termdesc.is-collapsed .gkg-termdesc__body { position: relative; max-height: 560px; overflow: hidden; }
.gkg-termdesc.is-collapsed .gkg-termdesc__body::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
}
.gkg-termdesc__toggle[hidden] { display: none; }
.gkg-termdesc__toggle {
	display: flex; align-items: center; gap: 8px; margin: 20px auto 0; height: 46px; padding: 0 26px;
	border: 1.5px solid var(--p-navy); border-radius: 999px; background: #fff;
	color: var(--p-navy); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.gkg-termdesc__toggle::after {
	content: ""; width: 7px; height: 7px; margin-top: -4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
	transition: transform .2s, margin .2s;
}
.gkg-termdesc__toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.gkg-termdesc__toggle:hover { background: var(--p-navy); color: #fff; }
/* Danh sách chỉ gồm liên kết (khu vực, chủ đầu tư…) → lưới nút */
:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: .4em 0 1.4em;
}
:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) > li { margin: 0; padding: 0; }
:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) > li::before { display: none; }
:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) > li > a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%;
	padding: 10px 14px; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-cream);
	font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--p-ink); text-decoration: none;
	transition: border-color .2s, background-color .2s, color .2s;
}
:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) > li > a::after { content: "→"; color: var(--p-gold-2); }
:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) > li > a:hover { border-color: var(--p-navy); background: #fff; color: var(--p-navy); }

/* ---------- Danh mục có giao diện riêng (ACF gdproperty) ---------- */
.gkg-landing-sec { padding-bottom: 24px !important; }
.gkg-landing { padding-top: 0; }
.gkg-landing :where(iframe:not([class])) { max-height: 440px; }
/* Mỗi phần lớn (H2) có đường kẻ phía trên để trang dài dễ theo dõi */
.gkg-landing :where(h2) { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--p-line); }
.gkg-landing :where(h2):first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.gkg-landing :where(h3) { color: var(--p-navy); }
/* Sau lưới card tin chèn trong bài */
.gkg-landing .row + p,
.gkg-landing .row + div { margin-top: .4em; }
/* "Xem thêm tin đăng": đoạn chỉ có 1 link ngay sau lưới card → nút viên thuốc */
.gkg-landing .row + p:has(> a:only-child) > a {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px;
	border: 1.5px solid var(--p-navy); border-radius: 999px; background: #fff;
	color: var(--p-navy); font-size: 15px; font-weight: 600; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.gkg-landing .row + p:has(> a:only-child) > a::after { content: "→"; }
.gkg-landing .row + p:has(> a:only-child) > a:hover { background: var(--p-navy); color: #fff; }

/* ---------- Card bảng giá (template-parts/bang-gia/card.php) ---------- */
.gkg-bcol { padding-bottom: 24px !important; }
.gkg-bcard__media { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e6df; }
.gkg-bcard__media img {
	display: block; width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: cover;
	border-radius: 0; transition: transform .6s ease;
}
@supports not (aspect-ratio: 1 / 1) {
	.gkg-bcard__media { height: 0; padding-top: 62.5%; }
	.gkg-bcard__media img { position: absolute; top: 0; left: 0; }
}
@media (hover: hover) and (pointer: fine) {
	.gkg-bcard:hover .gkg-bcard__media img { transform: scale(1.05); }
}
.gkg-bcard .label-custom { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.gkg-bcard :where(.labelcus) { background: var(--p-navy); } /* nền mặc định cho key lạ – độ ưu tiên thấp để bảng màu chung thắng */
.gkg-bcard__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.gkg-bcard__title { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 700; }
.gkg-bcard__title a {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-size: inherit; color: var(--p-ink);
}
.gkg-bcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* cả card bấm được */
.gkg-bcard:hover .gkg-bcard__title a { color: var(--p-navy); }
.gkg-bcard__address { display: flex; gap: 7px; font-size: 14px; line-height: 1.5; color: var(--p-muted); }
.gkg-bcard__address svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 3px; color: var(--p-gold-2); }
.gkg-bcard__address span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gkg-bcard__foot {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	margin-top: auto; padding-top: 12px; border-top: 1px solid #f0ede6;
}
.gkg-bcard__price { display: flex; flex-direction: column; gap: 1px; }
.gkg-bcard__price span { font-size: 12.5px; color: var(--p-muted); }
.gkg-bcard__price strong { font-size: 18px; line-height: 1.25; font-weight: 700; color: #c72528; }
.gkg-bcard__more { flex: none; font-size: 14px; font-weight: 600; color: var(--p-gold-2); }
.gkg-bcard__more::after { content: " →"; }

/* ---------- Sidebar dạng thẻ (danh mục bảng giá…) ---------- */
.gkg-sidebar .widget {
	margin-bottom: 20px; padding: 22px 22px 16px; border: 1px solid var(--p-line); border-radius: 14px; background: #fff;
}
.gkg-sidebar .widget-title,
.gkg-sidebar .widgettitle {
	display: block; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--p-line);
	font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--p-ink);
}
.gkg-sidebar .is-divider { display: none; }
.gkg-sidebar ul { margin: 0; padding: 0; list-style: none; }
.gkg-sidebar li { margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--p-line); line-height: 1.45; }
.gkg-sidebar li:last-child { border-bottom: 0; }
.gkg-sidebar li a { font-size: 14.5px; font-weight: 600; color: var(--p-ink); }
.gkg-sidebar li a:hover { color: var(--p-navy); }
@media (min-width: 850px) {
	.gkg-sidebar > .col-inner,
	.gkg-sidebar > #secondary { position: sticky; top: 100px; }
}

/* ---------- Danh sách tin: chuyên mục / thẻ / tìm kiếm (template-parts/posts/archive-list.php) ----------
   .gkg-ncard--list = card có chân "Đọc tiếp" (card-archive.php). Lưới 3 cột (2 trên tablet);
   mobile chuyển thành hàng ngang gọn (ảnh trái – tiêu đề phải) để lướt nhanh. */
.gkg-post-grid { margin-top: 8px; }
.gkg-post-grid > .gkg-ncol { padding-bottom: 28px !important; }
.gkg-ncard__excerpt {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	margin: 2px 0 0 !important; font-size: 14.5px; line-height: 1.6; color: var(--p-muted);
}
.gkg-ncard--list .gkg-ncard__body { flex: 1; gap: 8px; padding: 18px 20px 16px; }
.gkg-ncard--list .gkg-ncard__title { font-size: 17px; line-height: 1.42; }
.gkg-ncard__date,
.gkg-ncard__read { display: inline-flex; align-items: center; gap: 5px; }
.gkg-ncard--list .gkg-ncard__date::before,
.gkg-ncard--list .gkg-ncard__read::before {
	content: ""; width: 13px; height: 13px; flex: none; background: currentColor; opacity: .75;
	-webkit-mask: var(--gkg-ico) center / contain no-repeat; mask: var(--gkg-ico) center / contain no-repeat;
}
.gkg-ncard--list .gkg-ncard__date { --gkg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
.gkg-ncard--list .gkg-ncard__read { --gkg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.gkg-ncard__foot {
	display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px;
	border-top: 1px solid #f0ede6; font-size: 14px; font-weight: 600; color: var(--p-gold-2);
}
.gkg-ncard__foot::after { content: "→"; transition: transform .2s; }
.gkg-ncard:hover .gkg-ncard__foot::after { transform: translateX(4px); }
.gkg-ncard--list .gkg-ncard__excerpt { margin-bottom: 6px !important; }

/* Nhãn "Mới nhất" – bài đầu trang 1 */
.gkg-ncard__badge {
	display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px;
	background: var(--p-gold); color: #1d1608; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

/* Bài nổi bật: ảnh trái 58%, chữ phải; chân card thành nút viền */
.gkg-ncard--featured .gkg-ncard__title { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; }
.gkg-ncard--featured .gkg-ncard__title a { -webkit-line-clamp: 3; }
.gkg-ncard--featured .gkg-ncard__foot {
	align-self: flex-start; margin-top: 10px; padding: 10px 20px; border: 1px solid var(--p-navy);
	border-radius: 999px; color: var(--p-navy); transition: background .2s, color .2s;
}
.gkg-ncard--featured:hover .gkg-ncard__foot { background: var(--p-navy); color: #fff; }
@media (min-width: 850px) {
	.gkg-post-grid--news > .gkg-ncol.is-featured { padding-bottom: 36px !important; }
	.gkg-ncard--featured { flex-direction: row; min-height: 0; }
	.gkg-ncard--featured .gkg-ncard__media { flex: 0 0 58%; aspect-ratio: 16 / 9; }
	.gkg-ncard--featured .gkg-ncard__body { flex: 1; justify-content: center; gap: 14px; padding: 36px 40px; }
	.gkg-ncard--featured .gkg-ncard__excerpt { font-size: 15.5px; -webkit-line-clamp: 4; }
	/* thanh vàng mảnh bên trái phần chữ */
	.gkg-ncard--featured .gkg-ncard__body { position: relative; }
	.gkg-ncard--featured .gkg-ncard__body::before {
		content: ""; position: absolute; top: 36px; bottom: 36px; left: 0; width: 3px;
		border-radius: 0 3px 3px 0; background: var(--p-gold);
	}
}
@media (max-width: 549px) {
	.gkg-post-grid--news > .gkg-ncol { padding-bottom: 14px !important; }
	.gkg-post-grid--news > .gkg-ncol.is-featured { padding-bottom: 20px !important; }
	.gkg-ncard--featured .gkg-ncard__body { gap: 10px; padding: 18px 18px 20px; }
	.gkg-ncard--featured .gkg-ncard__foot { display: none; }
	/* Card thường: hàng ngang ảnh 38% – chữ */
	.gkg-ncard--list:not(.gkg-ncard--featured) { flex-direction: row; align-items: stretch; border-radius: 12px; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 104px; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__media img { position: absolute; inset: 0; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__media { position: relative; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__body { order: 2; gap: 6px; padding: 12px 14px; justify-content: center; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__meta { order: 2; font-size: 12px; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__read { display: none; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__title { order: 1; font-size: 15px; line-height: 1.4; }
	.gkg-ncard--list:not(.gkg-ncard--featured) .gkg-ncard__title a { -webkit-line-clamp: 3; }
	.gkg-ncard--list:not(.gkg-ncard--featured) :is(.gkg-ncard__excerpt, .gkg-ncard__foot) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gkg-ncard__foot, .gkg-ncard__foot::after { transition: none; }
}
/* Phân trang (trang tìm kiếm) */
.gkg-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 40px; }
.gkg-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid #e6e2d9; border-radius: 999px; background: #fff; color: #1c2733; font-weight: 600;
}
.gkg-pagination .page-numbers.current,
.gkg-pagination a.page-numbers:hover { border-color: #0f2a44; background: #0f2a44; color: #fff; }
.gkg-pagination .dots { border: 0; background: none; }

/* ---------- Card chủ đầu tư (template-parts/chu-dau-tu/card.php) ---------- */
.gkg-ncard--cdt .gkg-ncard__media { aspect-ratio: 16 / 9; }
.gkg-ncard--cdt .gkg-ncard__body { flex: 1; gap: 10px; padding: 16px 18px 18px; }
.gkg-ncard--cdt .gkg-ncard__title { font-size: 17px; }
.gkg-ncard__more { align-self: flex-end; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--p-gold-2); }
.gkg-ncard__more::after { content: " →"; }

/* ---------- Khối liên kết dự án [block id="link-du-an"] (trang dự án, chủ đầu tư) ---------- */
.gkg-project__links { margin-top: 40px; padding: 32px 0 8px !important; border-top: 1px solid var(--p-line); background: var(--p-cream); }

/* ---------- Trang tìm kiếm (search.php) ---------- */
.gkg-search-head .page-title { margin-bottom: 18px !important; }
.gkg-search-head__count { margin: 0 0 18px !important; font-size: 15px; color: var(--p-muted); }
.gkg-search-head__count strong { color: var(--p-ink); }
.gkg-search-form {
	display: flex; gap: 8px; max-width: 640px; margin: 0 auto 18px !important; padding: 8px;
	border: 1px solid var(--p-line); border-radius: 16px; background: #fff;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}
.gkg-search-form input[type="search"] {
	flex: 1; min-width: 0; height: 50px; margin: 0; padding: 0 16px;
	border: 1px solid transparent; border-radius: 10px; box-shadow: none;
	background: var(--p-cream); color: var(--p-ink); font-size: 16px;
}
.gkg-search-form input[type="search"]:focus { border-color: var(--p-gold); background: #fff; box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.gkg-search-form button {
	display: inline-flex; align-items: center; gap: 8px; height: 50px; margin: 0; padding: 0 22px;
	border: 0; border-radius: 10px; background: var(--p-navy); color: #fff;
	font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.gkg-search-form button:hover { background: #173b5f; }
.gkg-search-form button svg { width: 18px; height: 18px; }
.gkg-search-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.gkg-search-tabs a {
	padding: 7px 16px; border: 1px solid var(--p-line); border-radius: 999px; background: #fff;
	font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--p-ink);
	transition: border-color .2s, background-color .2s, color .2s;
}
.gkg-search-tabs a:hover { border-color: var(--p-navy); color: var(--p-navy); }
.gkg-search-tabs a.is-active { border-color: var(--p-navy); background: var(--p-navy); color: #fff; }
.gkg-search-grid { margin-top: 12px; }
.gkg-search-empty {
	max-width: 640px; margin: 8px auto 48px; padding: 28px 24px; text-align: center;
	border: 1px dashed var(--p-line); border-radius: 16px; background: var(--p-cream); color: var(--p-text);
}
.gkg-search-empty p:last-child { margin-bottom: 0 !important; }
.gkg-search-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.gkg-search-empty__links a {
	padding: 9px 18px; border: 1.5px solid var(--p-navy); border-radius: 999px; color: var(--p-navy); font-weight: 600;
}
.gkg-search-empty__links a:hover { background: var(--p-navy); color: #fff; }

/* ---------- 6. Responsive ---------- */
@media (max-width: 849px) {
	.gkg-related-slider .flickity-prev-next-button { display: none; }
}
@media (max-width: 549px) {
	.gkg-post__header { padding: 16px 0 20px; margin-bottom: 20px; }
	.gkg-post .gkg-post__title { font-size: 26px; }
	.gkg-post__meta { font-size: 13px; }
	.gkg-prose { font-size: 16px; line-height: 1.75; }
	.gkg-prose :where(table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.gkg-prose th,
	.gkg-prose td { padding: 10px 12px !important; }
	.gkg-related { padding-top: 32px !important; }
	.gkg-sechead-wrap { align-items: center; }
	.gkg-sechead__link { margin-bottom: 24px; font-size: 14px; }
	.gkg-related-slider .col { max-width: 86% !important; flex-basis: 86% !important; }
	.gkg-ncard:hover { transform: none; }
	.gkg-bcol { padding-bottom: 16px !important; }
	.gkg-search-form { padding: 6px; border-radius: 14px; }
	.gkg-search-form input[type="search"],
	.gkg-search-form button { height: 46px; }
	.gkg-search-form button { padding: 0 14px; }
	.gkg-search-form button span { display: none; }
	.gkg-search-tabs { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -10px 8px; padding: 0 10px 4px; /* cột của site đệm 10px (style.css) */ overflow-x: auto; scrollbar-width: none; }
	.gkg-search-tabs::-webkit-scrollbar { display: none; }
	.gkg-search-tabs a { flex: none; white-space: nowrap; }
	.gkg-bcard:hover { transform: none; }
	.gkg-bcard__body { padding: 14px 16px 16px; }
	.gkg-bcard__title { font-size: 16px; }
	.gkg-termdesc { padding: 22px 18px 20px; border-radius: 14px; }
	.gkg-termdesc.is-collapsed .gkg-termdesc__body { max-height: 480px; }
	:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) { grid-template-columns: 1fr 1fr; }
	:is(.gkg-termdesc .gkg-prose, .gkg-landing) ul:not([class]):has(> li > a:only-child) > li > a { padding: 9px 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.gkg-ncard, .gkg-ncard__media img { transition: none; }
}
