
/* Reset default margins, paddings, and WordPress block theme gaps */
html, body, .wp-site-blocks, .wp-block-group, main {
	margin: 0 !important;
	padding: 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	margin-inline-start: 0 !important;
	margin-inline-end: 0 !important;
	background-color: #fff9ef;
}

header, footer {
	margin: 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

:where(.wp-site-blocks) > header,
header {
	top: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

:where(.wp-site-blocks) > main,
main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

html {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

#wpadminbar {
	display: none !important;
}

/* Custom Bespoke Human Design Utilities */
.text-balance {
	text-wrap: balance;
}

.hairline-border {
	border: 1px solid rgba(40, 69, 149, 0.12);
}

.card-editorial-hover {
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-editorial-hover:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -15px rgba(40, 69, 149, 0.12);
	border-color: #E6C66E;
}

.step-num-badge {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, #284595, #1e3a8a);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.jp-badge {
	font-family: 'IBM Plex Sans', 'Hiragino Sans', sans-serif;
	letter-spacing: 0.15em;
}

.hero-image-stack {
	position: relative;
}

.hero-image-stack::after {
	content: '';
	position: absolute;
	inset: -12px;
	border: 2px stroke #E6C66E;
	border-radius: 1.5rem;
	z-index: -1;
	opacity: 0.4;
}

/* Nội dung từ editor (the_content) - Tailwind preflight đã reset style mặc định */
.entry-content {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1rem;
	line-height: 1.8;
	color: #4c4733;
	overflow-wrap: break-word;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	line-height: 1.3;
	color: #284595;
	margin-top: 2em;
	margin-bottom: 0.6em;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.625rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.125rem; }
.entry-content h5,
.entry-content h6 { font-size: 1rem; }

.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
	margin-top: 0;
}

.entry-content a {
	color: #284595;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #E6C66E;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: #705d00;
}

.entry-content strong,
.entry-content b {
	color: #1e1b11;
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content li::marker {
	color: #284595;
}

.entry-content blockquote {
	border-left: 4px solid #E6C66E;
	background: #fff;
	padding: 1em 1.5em;
	border-radius: 0 0.75rem 0.75rem 0;
	font-style: italic;
	color: #1e1b11;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

.entry-content figure,
.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	font-size: 0.875rem;
	color: #7e7761;
	text-align: center;
	margin-top: 0.5em;
}

.entry-content .alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content::after {
	content: '';
	display: table;
	clear: both;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	display: block;
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	border: 1px solid #cfc6ac;
	padding: 0.6em 0.9em;
	text-align: left;
}

.entry-content th {
	background: #284595;
	color: #fff;
	font-weight: 600;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid #cfc6ac;
	margin: 2.5em 0;
}

.entry-content iframe {
	max-width: 100%;
	border-radius: 1rem;
}

@media (max-width: 640px) {
	.entry-content h2 { font-size: 1.375rem; }
	.entry-content h3 { font-size: 1.2rem; }

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 0 auto 1em;
		display: block;
	}
}

/* Album ảnh: tab lọc */
.gallery-filter {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #284595;
	background: #fff;
	border: 1px solid rgba(40, 69, 149, 0.2);
	border-radius: 9999px;
	padding: 0.5rem 1.25rem;
	transition: all 0.2s ease;
}

.gallery-filter:hover {
	border-color: #E6C66E;
}

.gallery-filter.is-active {
	background: #284595;
	border-color: #284595;
	color: #fff;
}

.gallery-item.is-hidden {
	display: none;
}

/* Lightbox */
.nhm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(15, 20, 40, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	touch-action: pan-y;
}

.nhm-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.nhm-lightbox__figure {
	margin: 0;
	max-width: min(92vw, 1400px);
	text-align: center;
}

.nhm-lightbox__img {
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 0.75rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	margin: 0 auto;
}

.nhm-lightbox__caption {
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.9375rem;
	margin-top: 1rem;
	min-height: 1.5em;
}

.nhm-lightbox__count {
	color: #E6C66E;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

.nhm-lightbox__btn {
	position: absolute;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.nhm-lightbox__btn:hover {
	background: #E6C66E;
	color: #284595;
}

.nhm-lightbox__close { top: 1rem; right: 1rem; }
.nhm-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.nhm-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
	.nhm-lightbox__prev,
	.nhm-lightbox__next {
		top: auto;
		bottom: 1rem;
		transform: none;
	}
}

/* Phân trang (paginate_links) */
.nhm-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.nhm-pagination .page-numbers {
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	border: 1px solid rgba(40, 69, 149, 0.15);
	background: #fff;
	color: #284595;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	transition: all 0.2s ease;
}

.nhm-pagination a.page-numbers:hover {
	border-color: #E6C66E;
	background: #E6C66E;
	color: #284595;
}

.nhm-pagination .page-numbers.current {
	background: #284595;
	border-color: #284595;
	color: #fff;
}

.nhm-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: auto;
	padding: 0 0.25rem;
}

@media (max-width: 640px) {
	.nhm-pagination .page-numbers {
		min-width: 2.5rem;
		height: 2.5rem;
		font-size: 0.875rem;
	}
}

/* Chữ chỉ dành cho trình đọc màn hình */
.screen-reader-text {
	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;
}

/* Form liên hệ */
.contact-error {
	display: none;
	margin-top: 0.375rem;
	font-size: 0.8125rem;
	color: #ba1a1a;
}

.contact-error.is-visible {
	display: block;
}

[data-contact-form] .is-invalid {
	border-color: #ba1a1a !important;
}

.contact-alert {
	display: none;
	padding: 0.875rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.contact-alert.is-success {
	display: block;
	background: #e7f6ec;
	border: 1px solid #9fd8b2;
	color: #11643a;
}

.contact-alert.is-error {
	display: block;
	background: #ffdad6;
	border: 1px solid #f3a49c;
	color: #93000a;
}

@keyframes nhm-spin {
	to { transform: rotate(360deg); }
}

.is-spinning {
	animation: nhm-spin 0.9s linear infinite;
}

.contact-map iframe {
	width: 100% !important;
	height: 100% !important;
	border: 0;
	display: block;
}

/* Ảnh trong nội dung được nâng lên full cột (xem nhm_content_img_wide) */
.entry-content img.nhm-wide {
	display: block;
	width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	border-radius: 1rem;
}

.entry-content .wp-caption:has(img.nhm-wide),
.entry-content figure:has(img.nhm-wide) {
	width: 100% !important;
	margin-left: 0;
	margin-right: 0;
}

.entry-content p:has(> img.nhm-wide:only-child),
.entry-content p:has(> a:only-child > img.nhm-wide) {
	margin-top: 2em;
	margin-bottom: 2em;
}
