/*
Theme Name: NexQN WP QNRealty
Theme URI: https://quynhonrealty.vn/
Author: NexQN
Description: Block theme (Full Site Editing) cho website bất động sản Quy Nhon Realty. Giữ nguyên toàn bộ URL hiện có, để Rank Math quản lý SEO, không phụ thuộc page builder.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexqn-wp-qnrealty
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, wide-blocks, one-column, two-columns, blog, news
*/

/* Phần lớn style nằm trong theme.json. File này chỉ chứa những gì theme.json chưa diễn đạt được. */

/* ---------- Truy cập (WCAG 2.1 AA) ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--sm);
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	z-index: 100000;
}

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

/* ---------- Header dính trên desktop ---------- */
@media (min-width: 782px) {
	.nexqn-qnr-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.admin-bar .nexqn-qnr-header {
		top: 32px;
	}
}

/* Các vùng topbar / header / main / footer nối liền, không có khoảng blockGap. */
body .wp-site-blocks > * {
	margin-block-start: 0;
}

.screen-reader-text:not(:focus) {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Breadcrumb (Rank Math) ---------- */
.nexqn-qnr-breadcrumb {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.nexqn-qnr-breadcrumb p {
	margin: 0;
}

.nexqn-qnr-breadcrumb a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.nexqn-qnr-breadcrumb a:hover {
	color: var(--wp--preset--color--secondary);
	text-decoration: underline;
}

.nexqn-qnr-breadcrumb .separator {
	margin: 0 0.375rem;
}

/* ---------- Archive & Trang /du-an/ ---------- */
.nexqn-qnr-main--projects {
	background: linear-gradient(180deg, #f8fafd 0%, #ffffff 360px);
}

.nexqn-qnr-archive-header {
	margin-top: 0.75rem;
	margin-bottom: var(--wp--preset--spacing--50);
}

.nexqn-qnr-archive-header--projects {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e7edf5;
}

.nexqn-qnr-archive-header .wp-block-query-title,
.nexqn-qnr-archive-header .wp-block-post-title {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 1.5rem + 1.8vw, 2.65rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.18;
	color: var(--wp--preset--color--primary);
}

.nexqn-qnr-archive-header .wp-block-term-description {
	max-width: 780px;
	margin-top: 0.65rem !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.nexqn-qnr-archive-header .wp-block-term-description p {
	margin: 0;
}

.nexqn-qnr-subcategories {
	margin-top: 1.25rem !important;
}

.nexqn-qnr-subcategories__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexqn-qnr-subcategories__list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.35rem;
	padding: 0.3rem 1.05rem;
	border: 1px solid #dce3ee;
	border-radius: var(--wp--custom--radius--pill);
	background: #ffffff;
	box-shadow: 0 2px 8px rgb(10 36 83 / 0.04);
	color: var(--wp--preset--color--primary);
	font-size: 0.84375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.nexqn-qnr-subcategories__list a:hover,
.nexqn-qnr-subcategories__list .current-cat > a {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 8px 18px rgb(207 44 39 / 0.22);
	color: #ffffff;
	transform: translateY(-1px);
}

.nexqn-qnr-card__body .wp-block-post-title {
	margin: 0;
}

.nexqn-qnr-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Chuyên mục tin tức (.nexqn-qnr-card-grid-featured): bài đầu nằm ngang toàn chiều rộng, 9 bài còn lại chia 3 cột. */
@media (min-width: 1024px) {
	.nexqn-qnr-card-grid-featured > li:first-child {
		grid-column: 1 / -1;
	}

	.nexqn-qnr-card-grid-featured > li:first-child .is-style-nexqn-qnr-card {
		flex-direction: row;
	}

	.nexqn-qnr-card-grid-featured > li:first-child .wp-block-post-featured-image {
		flex: 0 0 58%;
	}

	.nexqn-qnr-card-grid-featured > li:first-child .nexqn-qnr-card__body {
		align-self: center;
		padding: var(--wp--preset--spacing--50) !important;
	}

	.nexqn-qnr-card-grid-featured > li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large) !important;
	}
}

/* Phân trang (Pagination) đồng bộ thiết kế trang chủ */
.wp-block-query-pagination {
	margin-top: 2.75rem !important;
	gap: 0.5rem !important;
}

.wp-block-query-pagination-numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid #d9e1ec;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 3px 10px rgb(10 36 83 / 0.05);
	color: var(--wp--preset--color--primary);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.wp-block-query-pagination :is(.page-numbers:hover, .wp-block-query-pagination-previous:hover, .wp-block-query-pagination-next:hover) {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	transform: translateY(-1px);
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 8px 18px rgb(207 44 39 / 0.24);
	color: #ffffff;
}

/* ---------- Single: cột nội dung + sidebar (chỉ desktop) ---------- */
@media (max-width: 1023px) {
	.nexqn-qnr-layout__sidebar {
		display: none;
	}

	.nexqn-qnr-layout > .nexqn-qnr-layout__main {
		flex-basis: 100% !important;
	}
}

.is-project-single .nexqn-qnr-layout > .nexqn-qnr-layout__main > article {
	max-width: 920px;
	margin-inline: auto;
}

/* Trang chi tiết dự án: triệt tiêu khoảng trắng thừa giữa khối tư vấn (.nexqn-qnr-consult) và chân trang (footer) */
.is-project-single .nexqn-qnr-main {
	padding-bottom: 0 !important;
}

.is-project-single .nexqn-qnr-layout {
	margin-bottom: clamp(2.5rem, 2rem + 1.5vw, 3.75rem);
}

.is-project-single .nexqn-qnr-main > .nexqn-qnr-consult {
	margin-bottom: 0 !important;
}

.nexqn-qnr-layout__main > article > .wp-block-post-title {
	margin: 0.25rem 0 0 !important;
	color: var(--wp--preset--color--primary);
	font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.26;
}

.nexqn-qnr-layout__main > article > .wp-block-template-part {
	margin-block-start: 0.75rem !important;
}

.nexqn-qnr-entry {
	margin-block-start: 1.5rem !important;
	color: #1e293b;
	font-size: 1.0625rem;
	line-height: 1.8;
	overflow-wrap: break-word;
}

.nexqn-qnr-entry > :first-child {
	margin-block-start: 0 !important;
}

.nexqn-qnr-entry p {
	margin-block: 0 1.15rem !important;
}

.nexqn-qnr-entry span[style*="color: #000000"] {
	color: inherit !important;
}

.nexqn-qnr-entry :is(ul, ol) {
	margin-block: 0 1.25rem !important;
	padding-left: 1.5rem;
}

.nexqn-qnr-entry li + li {
	margin-top: 0.45rem;
}

.nexqn-qnr-entry li::marker {
	color: var(--wp--preset--color--secondary);
	font-weight: 700;
}

.nexqn-qnr-entry a {
	color: var(--wp--preset--color--secondary) !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgb(207 44 39 / 0.35);
	text-underline-offset: 3px;
	transition: color var(--wp--custom--transition), text-decoration-color var(--wp--custom--transition);
}

.nexqn-qnr-entry a:hover {
	color: var(--wp--preset--color--primary) !important;
	text-decoration-color: var(--wp--preset--color--primary);
}

.nexqn-qnr-entry hr {
	margin-block: 2rem !important;
	border: 0;
	border-top: 1px solid #e5ebf3;
}

.nexqn-qnr-related > .wp-block-heading {
	margin: 0 !important;
	padding-top: 1.75rem;
	border-top: 1px solid #e7edf5;
	color: var(--wp--preset--color--primary);
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
	font-weight: 700;
	line-height: 1.25;
}

.nexqn-qnr-rating {
	display: flex;
	justify-content: flex-end;
	text-align: right;
}

.nexqn-qnr-rating .kk-star-ratings {
	justify-content: flex-end;
	margin-left: auto;
}

.nexqn-qnr-rating:empty {
	display: none;
}

/* ---------- Tìm kiếm ---------- */
.nexqn-qnr-search {
	max-width: 640px;
}

/* ---------- Topbar ---------- */
.nexqn-qnr-topbar p {
	margin: 0;
}

.nexqn-qnr-topbar a {
	text-decoration: none;
}

@media (max-width: 599px) {
	.nexqn-qnr-hide-mobile {
		display: none;
	}
}

/* ---------- Logo (SVG trong theme, tỷ lệ 505:132) ---------- */
.wp-block-image.nexqn-qnr-logo {
	flex-shrink: 0;
	margin: 0;
}

.nexqn-qnr-logo img {
	display: block;
	max-width: 100%;
	height: auto;
	aspect-ratio: 505 / 132;
}

/* ---------- Header ---------- */

.nexqn-qnr-header__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgb(207 44 39 / 0.22);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
	white-space: nowrap;
}

.nexqn-qnr-header__cta .wp-block-button__link::after {
	content: "→";
	font-size: 0.95em;
	transition: transform var(--wp--custom--transition);
}

.nexqn-qnr-header__cta .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary) !important;
	color: #ffffff !important;
	box-shadow: 0 6px 16px rgb(10 36 83 / 0.22);
}

.nexqn-qnr-header__cta .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.nexqn-qnr-main-nav .wp-block-navigation-item__content:hover,
.nexqn-qnr-main-nav .current-menu-item > .wp-block-navigation-item__content,
.nexqn-qnr-main-nav [aria-current="page"] {
	color: var(--wp--preset--color--secondary);
}

/* Menu con nhiều cấp (dropdown desktop, không áp dụng trong overlay mobile) */
.nexqn-qnr-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	min-width: 15rem;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--md);
	padding: 0.375rem 0;
	font-weight: 500;
}

/* Menu 6 mục + nút CTA không vừa tablet: dùng menu overlay tới 1023px (core chỉ tới 599px). */
@media (min-width: 600px) and (max-width: 1023px) {
	.nexqn-qnr-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.nexqn-qnr-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Overlay mobile: căn trái, menu con thụt lề thay vì hộp dropdown */
.nexqn-qnr-main-nav .wp-block-navigation__responsive-container.is-menu-open,
.nexqn-qnr-main-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}

.nexqn-qnr-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 0.75rem;
}

.nexqn-qnr-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.0625rem;
	padding-block: 0.25rem;
}

.nexqn-qnr-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	gap: 0.5rem !important;
	padding: 0.5rem 0 0 1rem !important;
	border: 0 !important;
	border-left: 2px solid var(--wp--preset--color--border) !important;
	box-shadow: none;
	font-weight: 500;
}

.nexqn-qnr-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1rem;
}

@media (max-width: 599px) {
	.nexqn-qnr-header .nexqn-qnr-logo img {
		width: 146px !important;
	}
}

/* Màn hình rất hẹp: ẩn nút "Nhận tư vấn" (đã có nút liên hệ nổi). Cần thắng .wp-block-buttons.is-layout-flex của core. */
@media (max-width: 359px) {
	.nexqn-qnr-header .wp-block-buttons.nexqn-qnr-header__cta {
		display: none;
	}
}

/* ---------- Footer ---------- */
.nexqn-qnr-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-top: 1px solid rgb(255 255 255 / 0.08);
	background-color: #04152d;
	background-image: linear-gradient(180deg, #061d3e 0%, #04152d 100%);
}

.nexqn-qnr-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--nexqn-qnr-footer-bg, none);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: var(--nexqn-qnr-footer-bg-opacity, 0.25);
	pointer-events: none;
}

.nexqn-qnr-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 2.5rem 2.25rem;
	align-items: start;
}

.nexqn-qnr-footer__grid > * {
	margin-block-start: 0 !important;
}

@media (min-width: 1024px) {
	.nexqn-qnr-footer__col {
		padding-left: 2.25rem;
		border-left: 1px solid rgb(255 255 255 / 0.08);
	}
}

.nexqn-qnr-footer__brand p {
	max-width: 22rem;
	margin: 1rem 0 0;
	color: rgb(255 255 255 / 0.72);
	font-size: 0.84375rem;
	line-height: 1.65;
}

.nexqn-qnr-footer h2 {
	margin: 0 0 1.1rem;
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

.nexqn-qnr-footer-nav .wp-block-navigation-item__content {
	color: rgb(255 255 255 / 0.72);
	font-size: 0.84375rem;
	line-height: 1.5;
	text-decoration: none;
	transition: color var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.nexqn-qnr-footer-nav .wp-block-navigation-item__content:hover {
	color: #ffffff;
	text-decoration: none;
	transform: translateX(2px);
}

.nexqn-qnr-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexqn-qnr-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: rgb(255 255 255 / 0.76);
	font-size: 0.84375rem;
	line-height: 1.5;
}

.nexqn-qnr-footer__contact li::before {
	content: "";
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	background-color: rgb(255 255 255 / 0.78);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.nexqn-qnr-footer__contact li.is-address::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.nexqn-qnr-footer__contact li.is-phone::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.nexqn-qnr-footer__contact li.is-email::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.nexqn-qnr-footer__contact li.is-hours::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.nexqn-qnr-footer__contact a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--transition);
}

.nexqn-qnr-footer__contact a:hover {
	color: #ffffff;
	text-decoration: none;
}

.nexqn-qnr-footer__social {
	margin-top: 1.25rem !important;
}

.nexqn-qnr-footer__social .wp-block-social-link {
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgb(255 255 255 / 0.16);
	border-radius: 8px;
	background: rgb(255 255 255 / 0.03);
	transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.nexqn-qnr-footer__social .wp-block-social-link-anchor {
	display: inline-grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.nexqn-qnr-footer__social .wp-block-social-link svg {
	width: 1.05rem;
	height: 1.05rem;
}

.nexqn-qnr-footer__social .wp-social-link-zalo svg {
	width: 1.2rem;
	height: 1.2rem;
}

.nexqn-qnr-footer__social .wp-block-social-link:hover {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	transform: translateY(-2px);
}

.nexqn-qnr-footer__social .wp-block-social-link:hover svg {
	fill: #ffffff;
}

.nexqn-qnr-footer__bar {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	background: transparent;
	color: rgb(255 255 255 / 0.56);
	font-size: 0.78125rem;
}

.nexqn-qnr-footer__bar p {
	margin: 0;
}

.nexqn-qnr-footer__bar a {
	color: rgb(255 255 255 / 0.68);
	text-decoration: none;
	transition: color var(--wp--custom--transition);
}

.nexqn-qnr-footer__bar a:hover {
	color: #ffffff;
}

.nexqn-qnr-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.nexqn-qnr-footer__legal span {
	color: rgb(255 255 255 / 0.24);
}

@media (max-width: 1023px) {
	.nexqn-qnr-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.nexqn-qnr-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599px) {
	.nexqn-qnr-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Sidebar ---------- */
@media (min-width: 1024px) {
	.nexqn-qnr-sidebar {
		position: sticky;
		top: calc(var(--wp--custom--header--height) + 1.5rem);
	}

	.admin-bar .nexqn-qnr-sidebar {
		top: calc(var(--wp--custom--header--height) + 1.5rem + 32px);
	}
}

.nexqn-qnr-sidebar .wp-block-post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nexqn-qnr-category-list {
	padding-left: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
}

.nexqn-qnr-category-list li {
	padding: 0.375rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.nexqn-qnr-category-list .children {
	list-style: none;
	padding-left: 1rem;
	margin-top: 0.375rem;
}

.nexqn-qnr-category-list a {
	text-decoration: none;
}

/* ---------- Post meta ---------- */
.nexqn-qnr-post-meta {
	padding-bottom: 1.1rem;
	border-bottom: 1px solid #e7edf5;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.nexqn-qnr-post-meta__date::before {
	content: "Đăng: ";
}

.nexqn-qnr-post-meta__modified::before {
	content: "Cập nhật: ";
}

/* ---------- Nội dung bài viết & dự án (Headings, Images, Tables, Galleries) ---------- */
.wp-block-post-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.35rem auto;
	box-shadow: 0 8px 26px rgb(10 36 83 / 0.08);
}

.nexqn-qnr-entry :is(img, .wp-caption) {
	border-radius: 12px;
}

.nexqn-qnr-entry h2 {
	margin-block: 2rem 0.95rem !important;
	color: var(--wp--preset--color--primary);
	font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.625rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.34;
}

.nexqn-qnr-entry h3 {
	margin-block: 1.65rem 0.8rem !important;
	color: var(--wp--preset--color--primary);
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.325rem);
	font-weight: 700;
	line-height: 1.38;
}

.nexqn-qnr-entry h4 {
	margin-block: 1.35rem 0.6rem !important;
	color: var(--wp--preset--color--primary);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.45;
}

.nexqn-qnr-entry :is(h2, h3, h4) :is(span[style*="color"], a) {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
}

.wp-block-post-content .aligncenter,
.wp-block-post-content img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-post-content .alignleft:not(.wp-block-image) {
	float: left;
	margin: 0.375rem 1.5rem 1rem 0;
}

.wp-block-post-content .alignright:not(.wp-block-image) {
	float: right;
	margin: 0.375rem 0 1rem 1.5rem;
}

.wp-block-post-content .wp-caption {
	width: 100% !important;
	max-width: 100% !important;
	margin: 1.5rem auto;
}

.wp-block-post-content .wp-caption img {
	margin: 0 auto;
}

.wp-block-post-content .wp-caption-text,
.wp-block-post-content .gallery-caption,
.nexqn-qnr-entry figcaption {
	margin-top: 0.6rem;
	color: #64748b;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.5;
	text-align: center;
}

.wp-block-post-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.wp-block-post-content .gallery .gallery-item {
	width: auto !important;
	margin: 0 !important;
}

.wp-block-post-content .gallery img {
	margin: 0;
	border: 1px solid #e6ecf5 !important;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgb(10 36 83 / 0.06);
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.wp-block-post-content .gallery a:hover img {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgb(10 36 83 / 0.12);
}

.nexqn-qnr-table-wrap,
.wp-block-post-content .wp-block-table {
	margin: 1.5rem 0;
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 20px rgb(10 36 83 / 0.05);
}

.wp-block-post-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 0;
	font-size: 0.96875rem;
	line-height: 1.6;
}

.wp-block-post-content table thead th {
	padding: 0.85rem 1.15rem;
	border: 0;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	font-weight: 700;
	text-align: left;
}

.wp-block-post-content table tbody :is(th, td) {
	padding: 0.8rem 1.15rem;
	border: 0;
	border-top: 1px solid #edf2f7;
	vertical-align: top;
}

.wp-block-post-content table tbody tr:first-child :is(th, td) {
	border-top: 0;
}

.wp-block-post-content table tbody tr:nth-child(even) {
	background: #f8fafd;
}

.wp-block-post-content table tbody tr:hover {
	background: #f1f5fb;
}

.wp-block-post-content table tbody td:first-child:has(> strong:only-child) {
	width: 32%;
	min-width: 145px;
	color: var(--wp--preset--color--primary);
}

.wp-block-post-content blockquote:not(.wp-block-quote) {
	margin: 1.5rem 0;
	padding: 1.1rem 1.5rem;
	border-left: 4px solid var(--wp--preset--color--secondary);
	border-radius: 0 12px 12px 0;
	background: #f8fafd;
	color: var(--wp--preset--color--primary);
	font-style: italic;
}

.wp-block-post-content iframe,
.wp-block-post-content video {
	max-width: 100%;
}

.wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Hiệu ứng khi cuộn (assets/js/animate.js) ---------- */
.nexqn-qnr-reveal,
.nexqn-qnr-stagger > * {
	transition: opacity 700ms cubic-bezier(0.2, 0.65, 0.3, 1), transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.nexqn-qnr-stagger > * {
	transition-delay: calc(var(--nexqn-qnr-i, 0) * 90ms);
}

.nexqn-qnr-js .nexqn-qnr-reveal:not(.is-visible),
.nexqn-qnr-js .nexqn-qnr-stagger:not(.is-visible) > * {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
}

/* JS không chạy được: tự hiện sau 3 giây. */
.nexqn-qnr-js:not(.nexqn-qnr-anim-ready) .nexqn-qnr-reveal,
.nexqn-qnr-js:not(.nexqn-qnr-anim-ready) .nexqn-qnr-stagger > * {
	animation: nexqn-qnr-unhide 0s 3s forwards;
}

@keyframes nexqn-qnr-unhide {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Nút ---------- */
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--md);
}

/* ---------- Đầu section ---------- */
.nexqn-qnr-section {
	position: relative;
}

.nexqn-qnr-section__head {
	gap: var(--wp--preset--spacing--30);
}

.nexqn-qnr-section__titles > * + * {
	margin-top: 0.45rem;
}

.nexqn-qnr-section__head h2 {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.18;
	text-wrap: balance;
}

.nexqn-qnr-section__head h2 mark {
	color: var(--wp--preset--color--secondary);
}

.nexqn-qnr-section__desc {
	max-width: 600px;
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* Đầu section Dự án nổi bật: Tiêu đề bên trái | vạch dọc | mô tả ở giữa | link bên phải */
@media (min-width: 960px) {
	.nexqn-qnr-section--featured .nexqn-qnr-section__titles {
		display: grid;
		grid-template-columns: auto minmax(260px, 460px);
		column-gap: 1.75rem;
		align-items: center;
	}

	.nexqn-qnr-section--featured .nexqn-qnr-section__titles > * {
		margin-block-start: 0 !important;
	}

	.nexqn-qnr-section--featured .nexqn-qnr-section__titles .nexqn-qnr-eyebrow {
		grid-column: 1 / -1;
		margin-bottom: 0.35rem !important;
	}

	.nexqn-qnr-section--featured .nexqn-qnr-section__titles .nexqn-qnr-section__desc {
		margin: 0 !important;
		padding-left: 1.75rem;
		border-left: 1px solid #d5dce6;
		font-size: 0.875rem;
		line-height: 1.55;
	}
}

.nexqn-qnr-section__head.is-center {
	text-align: center;
}

.nexqn-qnr-section__head.is-center .nexqn-qnr-section__desc {
	margin-inline: auto;
}

.nexqn-qnr-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--secondary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.nexqn-qnr-section__more {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.nexqn-qnr-section__more a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0 0 0.25rem;
	border-bottom: 1px solid rgb(207 44 39 / 0.45);
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	transition: border-color var(--wp--custom--transition), color var(--wp--custom--transition);
}

.nexqn-qnr-section__more a::after {
	content: "→";
	transition: transform var(--wp--custom--transition);
}

.nexqn-qnr-section__more a:hover {
	border-bottom-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.nexqn-qnr-section__more a:hover::after {
	transform: translateX(4px);
}

/* ---------- Thẻ dự án tiêu biểu (4 cột) ---------- */
.nexqn-qnr-featured-grid > li,
.nexqn-qnr-featured-grid > li > .nexqn-qnr-pcard,
.nexqn-qnr-card-grid > li,
.nexqn-qnr-card-grid > li > .is-style-nexqn-qnr-card {
	height: 100%;
}

.nexqn-qnr-pcard {
	display: flex;
	flex-direction: column;
	border: 1px solid #e7ecf3 !important;
	border-radius: 14px !important;
	background: var(--wp--preset--color--base);
	box-shadow: 0 6px 24px rgb(10 36 83 / 0.06) !important;
}

.nexqn-qnr-pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.nexqn-qnr-pcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.nexqn-qnr-pcard:hover .nexqn-qnr-pcard__img {
	transform: scale(1.06);
}

.nexqn-qnr-pcard__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	padding: 0.25rem 0.625rem;
	border-radius: 5px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.nexqn-qnr-pcard__badge.is-red {
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
}

.nexqn-qnr-pcard__badge.is-gold {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}

.nexqn-qnr-pcard__badge.is-navy {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

.nexqn-qnr-pcard__badge.is-green {
	background: #15803d;
	color: #ffffff;
}

.nexqn-qnr-pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 1.15rem 1.15rem;
}

.nexqn-qnr-pcard__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.35;
	text-transform: uppercase;
}

.nexqn-qnr-pcard__title a {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	transition: color var(--wp--custom--transition);
}

.nexqn-qnr-pcard:hover .nexqn-qnr-pcard__title a {
	color: var(--wp--preset--color--secondary);
}

.nexqn-qnr-pcard__loc {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.nexqn-qnr-pcard__loc svg {
	flex-shrink: 0;
	width: 0.9rem;
	height: 0.9rem;
	color: var(--wp--preset--color--secondary);
}

.nexqn-qnr-pcard__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid #edf1f6;
}

.nexqn-qnr-pcard__body > .nexqn-qnr-pcard__footer {
	margin-top: 0.9rem;
}

.nexqn-qnr-pcard--archive .nexqn-qnr-pcard__footer .nexqn-qnr-pcard__loc {
	margin: 0;
}

@media (min-width: 1024px) {
	.wp-block-post-template.nexqn-qnr-project-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

.nexqn-qnr-pcard__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.nexqn-qnr-pcard__meta-icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	color: var(--wp--preset--color--primary);
}

.nexqn-qnr-pcard__meta-icon svg {
	width: 1.15rem;
	height: 1.15rem;
}

.nexqn-qnr-pcard__meta-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.nexqn-qnr-pcard__meta-text strong {
	overflow: hidden;
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nexqn-qnr-pcard__meta-text span {
	overflow: hidden;
	color: var(--wp--preset--color--muted);
	font-size: 0.71875rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nexqn-qnr-pcard__btn {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border: 1px solid #d9e1ec;
	border-radius: 50%;
	color: var(--wp--preset--color--primary);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.nexqn-qnr-pcard:hover .nexqn-qnr-pcard__btn {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
	transform: translateX(2px);
}

/* ---------- Thẻ bài chuẩn ---------- */
.is-style-nexqn-qnr-card .nexqn-qnr-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.is-style-nexqn-qnr-card .wp-block-post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.is-style-nexqn-qnr-card .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nexqn-qnr-read-more {
	margin-top: auto !important;
	padding-top: 0.35rem;
	color: var(--wp--preset--color--secondary) !important;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.nexqn-qnr-read-more::after {
	content: "→";
	display: inline-block;
	margin-left: 0.375rem;
	transition: transform var(--wp--custom--transition);
}

.is-style-nexqn-qnr-card:hover .nexqn-qnr-read-more::after {
	transform: translateX(4px);
}

.nexqn-qnr-card-grid-compact .wp-block-post-title {
	font-size: 1rem !important;
	line-height: 1.4;
}

/* ---------- Lưới bài Tin tức - Thị trường ---------- */
.nexqn-qnr-news-grid {
	row-gap: 2.25rem !important;
}

@media (min-width: 1024px) {
	.wp-block-post-template.nexqn-qnr-news-grid--archive {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

.nexqn-qnr-news-grid > li,
.nexqn-qnr-news-grid > li > .is-style-nexqn-qnr-card {
	height: 100%;
}

.nexqn-qnr-news-grid > li > .is-style-nexqn-qnr-card {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.nexqn-qnr-news-grid > li > .is-style-nexqn-qnr-card:hover {
	transform: translateY(-3px);
}

.nexqn-qnr-news-grid .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px rgb(10 36 83 / 0.07);
}

.nexqn-qnr-news-grid .nexqn-qnr-card__body {
	padding: 0.9rem 0 0 !important;
	gap: 0.45rem !important;
}

.nexqn-qnr-news-grid .wp-block-post-date {
	font-size: 0.75rem !important;
}

.nexqn-qnr-news-grid .wp-block-post-title {
	font-size: 0.96875rem !important;
	line-height: 1.42 !important;
}

.nexqn-qnr-news-grid .wp-block-post-excerpt {
	font-size: 0.84375rem !important;
	line-height: 1.55 !important;
}

/* ---------- Hero tĩnh (khi tắt slider) ---------- */
.nexqn-qnr-hero h1 {
	text-wrap: balance;
}

@media (max-width: 599px) {
	.nexqn-qnr-hero {
		min-height: 480px !important;
	}
}

/* ---------- Dải 4 cam kết ngang (USP Strip) ---------- */
.nexqn-qnr-usp-band {
	border-top: 1px solid #e9eef5;
	border-bottom: 1px solid #e9eef5;
	background: #f6f8fb !important;
}

.nexqn-qnr-usp-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
}

.nexqn-qnr-usp-strip > * {
	margin-block-start: 0 !important;
}

.nexqn-qnr-usp-item {
	position: relative;
	padding: 0.25rem 1.25rem 0.25rem 4.25rem;
	border-left: 1px solid #e1e7f0;
}

.nexqn-qnr-usp-item:first-child {
	padding-left: 3.35rem;
	border-left: 0;
}

.nexqn-qnr-usp-item::after {
	content: "";
	position: absolute;
	top: 0.35rem;
	left: 1.25rem;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--wp--preset--color--secondary);
	-webkit-mask: var(--nexqn-qnr-icon) center / contain no-repeat;
	mask: var(--nexqn-qnr-icon) center / contain no-repeat;
	transition: transform var(--wp--custom--transition);
}

.nexqn-qnr-usp-item:first-child::after {
	left: 0.35rem;
}

.nexqn-qnr-usp-item:hover::after {
	transform: scale(1.08);
}

/* 1: Kim cương, 2: Tài liệu, 3: Bắt tay, 4: Khiên tích */
.nexqn-qnr-usp-item:nth-child(1) {
	--nexqn-qnr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9Z'/%3E%3Cpath d='M11 3 8 9l4 12 4-12-3-6'/%3E%3Cpath d='M2 9h20'/%3E%3C/svg%3E");
}

.nexqn-qnr-usp-item:nth-child(2) {
	--nexqn-qnr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='14' y2='17'/%3E%3C/svg%3E");
}

.nexqn-qnr-usp-item:nth-child(3) {
	--nexqn-qnr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17 2 2a1 1 0 1 0 3-3'/%3E%3Cpath d='m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4'/%3E%3Cpath d='m21 3 1 11h-2'/%3E%3Cpath d='M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3'/%3E%3Cpath d='M3 4h8'/%3E%3C/svg%3E");
}

.nexqn-qnr-usp-item:nth-child(4) {
	--nexqn-qnr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.nexqn-qnr-usp-item__title {
	margin: 0 !important;
	color: var(--wp--preset--color--primary);
	font-size: 0.9375rem;
	font-weight: 700;
}

.nexqn-qnr-usp-item__text {
	margin: 0.25rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

@media (max-width: 1023px) {
	.nexqn-qnr-usp-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1.5rem;
	}

	.nexqn-qnr-usp-item:nth-child(odd) {
		padding-left: 3.35rem;
		border-left: 0;
	}

	.nexqn-qnr-usp-item:nth-child(odd)::after {
		left: 0.35rem;
	}
}

@media (max-width: 599px) {
	.nexqn-qnr-usp-strip {
		grid-template-columns: 1fr;
	}

	.nexqn-qnr-usp-item {
		padding-left: 3.35rem;
		border-left: 0;
	}

	.nexqn-qnr-usp-item::after {
		left: 0.35rem;
	}
}

/* ---------- Về Quy Nhon Realty ("Đồng hành kiến tạo giá trị bền vững") ---------- */
.nexqn-qnr-btn-arrow .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.5rem;
	transition: transform var(--wp--custom--transition);
}

.nexqn-qnr-btn-arrow .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.nexqn-qnr-about-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	padding-top: 1.5rem;
	border-top: 1px solid #ebeff5;
}

.nexqn-qnr-about-stats > * {
	margin-block-start: 0 !important;
}

.nexqn-qnr-about-stat {
	padding: 0 1.25rem;
	border-left: 1px solid #e2e8f0;
}

.nexqn-qnr-about-stat:first-child {
	padding-left: 0;
	border-left: 0;
}

.nexqn-qnr-about-stat__num {
	margin: 0 !important;
	color: var(--wp--preset--color--secondary);
	font-size: clamp(1.65rem, 1.2rem + 1.2vw, 2.2rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.nexqn-qnr-about-stat__label {
	margin: 0.35rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.nexqn-qnr-about__media {
	position: relative;
	isolation: isolate;
	padding: 0 0 1.25rem 1.75rem;
}

.nexqn-qnr-about__media > *,
.nexqn-qnr-about__showcase > * {
	margin-block-start: 0 !important;
}

/* Tấm nền xanh nhạt lệch phía sau bên trái ảnh chính */
.nexqn-qnr-about__media::before {
	content: "";
	position: absolute;
	top: 10%;
	bottom: 14%;
	left: 0;
	z-index: -1;
	width: 55%;
	border-radius: 22px;
	background: linear-gradient(180deg, #d7ebfc 0%, #eaf3fc 100%);
}

.nexqn-qnr-about__showcase {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 22px;
	box-shadow: 0 22px 50px rgb(10 36 83 / 0.16);
}

.nexqn-qnr-about__img {
	margin: 0;
}

.nexqn-qnr-about__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

.nexqn-qnr-about__showcase::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgb(6 20 48 / 0) 35%, rgb(6 20 48 / 0.72) 100%);
	pointer-events: none;
}

.nexqn-qnr-about__caption {
	position: absolute;
	right: 1.5rem;
	bottom: 1.65rem;
	left: 1.5rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: #ffffff;
}

.nexqn-qnr-about__play {
	margin: 0 0 0.75rem !important;
}

.nexqn-qnr-about__play a {
	display: inline-grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding-left: 0.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 8px rgb(207 44 39 / 0.25), 0 8px 20px rgb(0 0 0 / 0.3);
	color: #ffffff !important;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: transform var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.nexqn-qnr-about__play a:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary) !important;
	transform: scale(1.08);
}

.nexqn-qnr-about__caption-title {
	margin: 0 !important;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 2px 10px rgb(0 0 0 / 0.35);
}

.nexqn-qnr-about__caption-sub {
	margin: 0.2rem 0 0 !important;
	color: rgb(255 255 255 / 0.88);
	font-size: 0.875rem;
}

.nexqn-qnr-about__thumb {
	position: absolute;
	bottom: 0;
	left: 0.25rem;
	z-index: 3;
	width: clamp(92px, 21%, 132px);
	margin: 0;
	overflow: hidden;
	border: 4px solid #ffffff;
	border-radius: 16px;
	box-shadow: 0 14px 30px rgb(10 36 83 / 0.22);
}

.nexqn-qnr-about__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* ---------- Bất động sản theo loại hình (4 cột / hàng, Carousel tự chạy + 2 nút điều hướng) ---------- */
.nexqn-qnr-type-carousel {
	--nexqn-qnr-type-cols: 1;
	--nexqn-qnr-type-gap: 1.15rem;
	position: relative;
}

@media (min-width: 540px) {
	.nexqn-qnr-type-carousel {
		--nexqn-qnr-type-cols: 2;
	}
}

@media (min-width: 782px) {
	.nexqn-qnr-type-carousel {
		--nexqn-qnr-type-cols: 3;
		--nexqn-qnr-type-gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.nexqn-qnr-type-carousel {
		--nexqn-qnr-type-cols: 4;
		--nexqn-qnr-type-gap: 1.5rem;
	}
}

.nexqn-qnr-type-carousel__viewport {
	overflow: hidden;
	margin: -0.5rem -0.35rem -1rem;
	padding: 0.5rem 0.35rem 1rem;
}

.nexqn-qnr-type-tiles {
	display: flex;
	gap: var(--nexqn-qnr-type-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.nexqn-qnr-type-tile {
	flex: 0 0 calc((100% - (var(--nexqn-qnr-type-cols) - 1) * var(--nexqn-qnr-type-gap)) / var(--nexqn-qnr-type-cols));
	min-width: 0;
}

.nexqn-qnr-type-carousel__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.625rem;
	margin-top: 1.25rem;
}

.nexqn-qnr-type-carousel__btn {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid #d5dde8;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 4px 12px rgb(10 36 83 / 0.06);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.nexqn-qnr-type-carousel__btn svg {
	width: 1.15rem;
	height: 1.15rem;
}

.nexqn-qnr-type-carousel__btn:hover {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 8px 20px rgb(207 44 39 / 0.25);
	color: #ffffff;
	transform: translateY(-2px);
}

.nexqn-qnr-type-tile a {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #eaedf3;
	border-radius: 14px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 4px 18px rgb(10 36 83 / 0.05);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition), border-color var(--wp--custom--transition);
}

.nexqn-qnr-type-tile a:hover {
	border-color: rgb(207 44 39 / 0.35);
	box-shadow: 0 16px 36px rgb(10 36 83 / 0.12);
	transform: translateY(-4px);
}

.nexqn-qnr-type-tile__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.nexqn-qnr-type-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.nexqn-qnr-type-tile a:hover .nexqn-qnr-type-tile__img {
	transform: scale(1.07);
}

.nexqn-qnr-type-tile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.9rem 1.05rem 1.15rem;
}

.nexqn-qnr-type-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 1.75rem;
	height: 1.75rem;
	margin-bottom: 0.15rem;
	color: var(--wp--preset--color--secondary);
}

.nexqn-qnr-type-tile__icon svg {
	width: 1.65rem;
	height: 1.65rem;
}

.nexqn-qnr-type-tile__name {
	color: var(--wp--preset--color--primary);
	font-size: 0.96875rem;
	font-weight: 700;
	line-height: 1.3;
	transition: color var(--wp--custom--transition);
}

.nexqn-qnr-type-tile a:hover .nexqn-qnr-type-tile__name {
	color: var(--wp--preset--color--secondary);
}

.nexqn-qnr-type-tile__desc {
	color: var(--wp--preset--color--muted);
	font-size: 0.78125rem;
	line-height: 1.5;
}

/* ---------- Khối Banner CTA Tư vấn (.nexqn-qnr-consult) ---------- */
.nexqn-qnr-consult,
.nexqn-qnr-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.nexqn-qnr-consult {
	container-type: inline-size;
	scroll-margin-top: calc(var(--wp--custom--header--height) + 1rem);
	background-color: #09224f;
	background-image: url("assets/images/consult-cta-bg.svg?v=2");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

:where(.nexqn-qnr-layout__main, .wp-block-column) > .nexqn-qnr-consult {
	border-radius: var(--wp--custom--radius--lg);
}

.nexqn-qnr-consult__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.75rem 3rem;
}

.nexqn-qnr-consult__inner > * {
	margin-block-start: 0 !important;
}

.nexqn-qnr-consult__copy {
	max-width: 40rem;
}

.nexqn-qnr-consult__eyebrow {
	margin: 0 0 0.35rem !important;
	color: rgb(255 255 255 / 0.85) !important;
	font-size: 0.78125rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.nexqn-qnr-consult__copy h2 {
	margin: 0 !important;
	color: #ffffff;
	font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.nexqn-qnr-consult__copy p:not(.nexqn-qnr-consult__eyebrow) {
	margin: 0.45rem 0 0 !important;
	color: rgb(255 255 255 / 0.88);
	font-size: 0.96875rem;
	line-height: 1.6;
}

.nexqn-qnr-consult__actions {
	flex-shrink: 0;
}

.nexqn-qnr-consult__btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3.1rem;
	padding: 0.85rem 1.85rem !important;
	border: 0;
	border-radius: 8px !important;
	background: #ffffff !important;
	box-shadow: 0 10px 28px rgb(0 0 0 / 0.22);
	color: var(--wp--preset--color--secondary) !important;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.nexqn-qnr-consult__btn .wp-block-button__link::after {
	content: "→";
	font-size: 1.05em;
	transition: transform var(--wp--custom--transition);
}

.nexqn-qnr-consult__btn .wp-block-button__link:hover {
	background: var(--wp--preset--color--secondary) !important;
	box-shadow: 0 14px 32px rgb(207 44 39 / 0.38);
	color: #ffffff !important;
	transform: translateY(-2px);
}

.nexqn-qnr-consult__btn .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.nexqn-qnr-quick-form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.nexqn-qnr-quick-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 0.875rem;
}

@media (max-width: 599px) {
	.nexqn-qnr-quick-form__row {
		grid-template-columns: 1fr;
	}
}

.nexqn-qnr-quick-form__field {
	position: relative;
	display: flex;
	align-items: flex-start;
}

.nexqn-qnr-quick-form__field .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.nexqn-qnr-quick-form__icon {
	position: absolute;
	top: 0.92rem;
	left: 0.9rem;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	color: #8a94a6;
	pointer-events: none;
}

.nexqn-qnr-quick-form__icon svg {
	width: 1.05rem;
	height: 1.05rem;
}

.nexqn-qnr-quick-form__field :is(input, select),
.wpcf7-form .nexqn-qnr-quick-form__field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select) {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.95rem;
	margin-top: 0;
	padding: 0.65rem 0.9rem 0.65rem 2.55rem;
	border: 1px solid #e2e7f0;
	border-radius: 8px;
	background: #f9fafc;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.875rem;
	transition: border-color var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.nexqn-qnr-quick-form__field :is(input, select):focus,
.wpcf7-form .nexqn-qnr-quick-form__field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select):focus {
	border-color: var(--wp--preset--color--primary);
	background: #ffffff;
}

.nexqn-qnr-quick-form__submit,
.wpcf7-form .nexqn-qnr-quick-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--secondary);
	color: #ffffff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.nexqn-qnr-quick-form__submit:hover,
.wpcf7-form .nexqn-qnr-quick-form__submit:hover {
	background: var(--wp--preset--color--primary);
	transform: translateY(-1px);
}

.wpcf7-form .nexqn-qnr-quick-form .wpcf7-spinner {
	display: none;
}

.wpcf7-form .nexqn-qnr-quick-form .wpcf7-not-valid {
	border-color: var(--wp--preset--color--secondary) !important;
	background: #fffafa;
}

.wpcf7-form .nexqn-qnr-quick-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	color: var(--wp--preset--color--secondary);
	font-size: 0.78125rem;
	font-weight: 500;
	line-height: 1.35;
}

.nexqn-qnr-cta {
	background-image: linear-gradient(115deg, var(--wp--preset--color--secondary) 0%, #a71f1b 100%);
}

/* ---------- Header khi cuộn ---------- */
.nexqn-qnr-header .nexqn-qnr-header__bar {
	transition: box-shadow var(--wp--custom--transition);
}

.nexqn-qnr-header.is-scrolled .nexqn-qnr-header__bar {
	box-shadow: var(--wp--preset--shadow--md);
}

/* Contact Form 7 */
.wpcf7-form p {
	margin: 0 0 0.875rem;
}

.wpcf7-form label {
	display: block;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	margin-top: 0.25rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid #b8bec8;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.wpcf7-form textarea {
	max-height: 9rem;
}

.wpcf7-form .wpcf7-submit {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7-form .wpcf7-submit:hover {
	background: var(--wp--preset--color--primary);
}

/* ---------- Trang Liên hệ (/lien-he/) ---------- */
.nexqn-qnr-contact-layout {
	align-items: start;
}

.nexqn-qnr-contact-cards {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.nexqn-qnr-contact-cards > * {
	margin-block-start: 0 !important;
}

.nexqn-qnr-contact-card {
	position: relative;
	padding: 1.15rem 1.25rem 1.15rem 4.35rem;
	border: 1px solid #e6ecf5;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 6px 20px rgb(10 36 83 / 0.05);
	transition: transform var(--wp--custom--transition), border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.nexqn-qnr-contact-card:hover {
	border-color: rgb(207 44 39 / 0.35);
	box-shadow: 0 12px 28px rgb(10 36 83 / 0.09);
	transform: translateY(-2px);
}

.nexqn-qnr-contact-card > * {
	margin-block-start: 0 !important;
}

.nexqn-qnr-contact-card::before {
	content: "";
	position: absolute;
	top: 1.2rem;
	left: 1.15rem;
	width: 2.45rem;
	height: 2.45rem;
	border-radius: 10px;
	background: #fdf2f2;
}

.nexqn-qnr-contact-card::after {
	content: "";
	position: absolute;
	top: 1.78rem;
	left: 1.73rem;
	width: 1.3rem;
	height: 1.3rem;
	background-color: var(--wp--preset--color--secondary);
	-webkit-mask: var(--nexqn-qnr-cicon) center / contain no-repeat;
	mask: var(--nexqn-qnr-cicon) center / contain no-repeat;
}

.nexqn-qnr-contact-card.is-phone {
	--nexqn-qnr-cicon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.nexqn-qnr-contact-card.is-zalo {
	--nexqn-qnr-cicon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.nexqn-qnr-contact-card.is-email {
	--nexqn-qnr-cicon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.nexqn-qnr-contact-card.is-address {
	--nexqn-qnr-cicon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.nexqn-qnr-contact-card__label {
	margin: 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nexqn-qnr-contact-card__value {
	margin: 0.2rem 0 0 !important;
	color: var(--wp--preset--color--primary);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.3;
}

.nexqn-qnr-contact-card__value a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--transition);
}

.nexqn-qnr-contact-card__value a:hover {
	color: var(--wp--preset--color--secondary);
}

.nexqn-qnr-contact-card__note {
	margin: 0.25rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.nexqn-qnr-contact-box {
	scroll-margin-top: calc(var(--wp--custom--header--height) + 1.5rem);
	padding: 2rem 2.25rem;
	border: 1px solid #e4ebf4;
	border-top: 4px solid var(--wp--preset--color--secondary);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 46px rgb(10 36 83 / 0.08);
}

.nexqn-qnr-contact-box__head {
	margin-bottom: 1.5rem;
}

.nexqn-qnr-contact-box__title {
	margin: 0.35rem 0 0 !important;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--primary);
}

.nexqn-qnr-contact-box__desc {
	margin: 0.5rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

.nexqn-qnr-quick-form__field.is-textarea textarea,
.wpcf7-form .nexqn-qnr-quick-form__field.is-textarea textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 0;
	padding: 0.75rem 0.95rem;
	border: 1px solid #e2e7f0;
	border-radius: 8px;
	background: #f9fafc;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.5;
	resize: vertical;
	transition: border-color var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.nexqn-qnr-quick-form__field.is-textarea textarea:focus,
.wpcf7-form .nexqn-qnr-quick-form__field.is-textarea textarea:focus {
	border-color: var(--wp--preset--color--primary);
	background: #ffffff;
}

.nexqn-qnr-contact-box__privacy {
	margin: 0.25rem 0 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.78125rem;
	text-align: center;
}

@media (max-width: 599px) {
	.nexqn-qnr-contact-box {
		padding: 1.5rem 1.25rem;
	}
}

/* ---------- Nút liên hệ nổi ---------- */
/* Dưới 1400px, cột chữ bên phải và nội dung bài (khi không còn sidebar) chạy dưới nút liên hệ nổi. */
@media (max-width: 1399px) {
	.nexqn-qnr-about__content,
	.nexqn-qnr-consult__inner,
	.nexqn-qnr-cta .wp-block-columns,
	.nexqn-qnr-cta .wp-block-group.alignwide {
		box-sizing: border-box;
		padding-right: 4.5rem;
	}
}

@media (max-width: 1023px) {
	.nexqn-qnr-entry,
	.nexqn-qnr-archive-header,
	.nexqn-qnr-card-grid,
	.nexqn-qnr-news-grid,
	.nexqn-qnr-project-grid,
	.nexqn-qnr-magazine,
	.nexqn-qnr-type-carousel {
		box-sizing: border-box;
		padding-right: 4.5rem;
	}
}

.nexqn-qnr-floating-contact {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.nexqn-qnr-fc {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: var(--wp--preset--shadow--md);
	color: #ffffff;
	text-decoration: none;
	transition: transform var(--wp--custom--transition);
}

.nexqn-qnr-fc:hover {
	color: #ffffff;
	transform: scale(1.06);
}

.nexqn-qnr-fc--phone {
	background: var(--wp--preset--color--secondary);
	animation: nexqn-qnr-pulse 2s infinite;
}

.nexqn-qnr-fc--zalo {
	background: #0068ff;
}

.nexqn-qnr-fc--messenger {
	background: #0a7cff;
}

.nexqn-qnr-fc__label {
	position: absolute;
	right: calc(100% + 0.5rem);
	padding: 0.25rem 0.625rem;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--contrast);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--wp--custom--transition);
}

.nexqn-qnr-fc:is(:hover, :focus-visible) .nexqn-qnr-fc__label {
	opacity: 1;
}

@keyframes nexqn-qnr-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(207, 44, 39, 0.5);
	}

	70% {
		box-shadow: 0 0 0 12px rgba(207, 44, 39, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(207, 44, 39, 0);
	}
}

@media (max-width: 599px) {
	.nexqn-qnr-floating-contact {
		right: 12px;
		bottom: 12px;
	}

	.nexqn-qnr-fc {
		width: 46px;
		height: 46px;
	}
}
