:root {
	--hera-navy: #12375d;
	--hera-blue: #295f92;
	--hera-sky: #a1dcf4;
	--hera-sand: #f5f0e7;
	--hera-ink: #183149;
}

html {
	font-size: 1vw;
	scroll-behavior: smooth;
}

@media screen and (max-width: 639px) {
	html {
		font-size: 4.266667vw;
	}
}

body.hera-article-page {
	margin: 0;
	background: #fff;
	color: var(--hera-ink);
	font-family: "SVN-Aptima", Arial, sans-serif;
	overflow-x: hidden;
}

.hera-article-page *,
.hera-article-page *::before,
.hera-article-page *::after {
	box-sizing: border-box;
}

.hera-article-page img {
	max-width: 100%;
	height: auto;
}

.hera-article-page .header {
	color: #fff;
}

.hera-article-page .header .site-header {
	left: clamp(24px, 7vw, 120px);
	right: clamp(24px, 7vw, 120px);
}

.hera-article-page .header .button-toggle-sidebar,
.hera-article-page .header .btn-close-sidebar {
	color: #fff;
}

.hera-article-page .site-logo > a {
	display: block;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: var(--hera-navy);
}

.single-post-main {
	min-height: 70vh;
}

.hera-post-hero {
	position: relative;
	display: flex;
	min-height: clamp(430px, 68vh, 760px);
	align-items: flex-end;
	isolation: isolate;
	overflow: hidden;
	background: var(--hera-navy);
	color: #fff;
}

.hera-post-hero__media,
.hera-post-hero__overlay {
	position: absolute;
	inset: 0;
}

.hera-post-hero__media {
	z-index: -2;
	background-image: url("../legacy/assets/images/homepage/the-hera-resort-quy-nhon-nen-mat-bien-tin-tuc.webp");
	background-position: center 45%;
	background-size: cover;
	transform: scale(1.015);
}

.hera-post-hero__overlay {
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(5, 25, 45, 0.22) 0%, rgba(9, 35, 59, 0.32) 42%, rgba(8, 31, 55, 0.88) 100%),
		linear-gradient(90deg, rgba(10, 44, 70, 0.36), transparent 65%);
}

.hera-post-hero__inner {
	width: calc(100% - clamp(40px, 12vw, 220px));
	margin: 0 auto;
	padding: 190px 0 clamp(52px, 7vw, 96px);
}

.hera-post-kicker {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--hera-sky);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.hera-post-title {
	width: 100%;
	margin: 0;
	color: #fff;
	font-family: "SVN-Butler", Georgia, serif;
	font-size: clamp(38px, 4.4vw, 72px);
	font-weight: 400;
	line-height: 1.08;
	text-wrap: balance;
}

.hera-post-meta {
	display: flex;
	margin-top: 24px;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
}

.hera-post-content {
	width: 100%;
	font-family: "SVN-Aptima", Arial, sans-serif;
	font-size: clamp(17px, 1.25vw, 20px);
	line-height: 1.75;
}

.hera-post-body {
	width: min(100% - 40px, 1180px);
	margin: 0 auto;
	padding: clamp(42px, 5vw, 72px) 0 clamp(64px, 7vw, 96px);
}

.hera-post-toc {
	display: grid;
	margin-bottom: clamp(40px, 5vw, 64px);
	padding: clamp(24px, 3vw, 40px);
	grid-template-columns: minmax(190px, 0.32fr) 1fr;
	gap: clamp(24px, 4vw, 64px);
	border: 1px solid #dce8f0;
	border-radius: 18px;
	background: linear-gradient(135deg, #f7fbfd 0%, #edf6fa 100%);
}

.hera-post-toc__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--hera-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hera-post-toc__heading h2 {
	margin: 0;
	color: var(--hera-navy);
	font-family: "SVN-Butler", Georgia, serif;
	font-size: clamp(28px, 2.4vw, 38px);
	font-weight: 500;
	line-height: 1.15;
}

.hera-post-toc__list {
	display: grid;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 36px;
	list-style: none;
	counter-reset: none;
}

.hera-post-toc__list li {
	border-bottom: 1px solid rgba(41, 95, 146, 0.16);
}

.hera-post-toc__list a {
	display: grid;
	min-height: 56px;
	padding: 10px 0;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: center;
	color: var(--hera-ink);
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
	transition: color 180ms ease;
}

.hera-post-toc__list a:hover,
.hera-post-toc__list a:focus-visible {
	color: var(--hera-blue);
}

.hera-post-toc__list a span {
	color: var(--hera-blue);
	font-family: "SVN-Butler", Georgia, serif;
	font-size: 13px;
}

.hera-post-content [id] {
	scroll-margin-top: 110px;
}

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

.hera-post-content p,
.hera-post-content ul,
.hera-post-content ol {
	margin: 0 0 1em;
}

.hera-post-content h2,
.hera-post-content h3,
.hera-post-content h4 {
	color: var(--hera-navy);
	font-family: "SVN-Butler", Georgia, serif;
	font-weight: 600;
	line-height: 1.2;
}

.hera-post-content h2 {
	width: 100%;
	margin: 1.25em 0 0.55em;
	font-size: clamp(30px, 3vw, 44px);
}

.hera-post-content h3 {
	width: 100%;
	margin: 1.2em 0 0.5em;
	font-size: clamp(24px, 2.2vw, 32px);
}

.hera-post-content a {
	color: var(--hera-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hera-post-content ul,
.hera-post-content ol {
	padding-left: 1.35em;
}

.hera-post-content li {
	margin-bottom: 0.55em;
}

.hera-post-content figure,
.hera-post-content .wp-block-image {
	margin: 2.4em 0;
}

.hera-post-content figure img,
.hera-post-content .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 12px;
	cursor: zoom-in;
}

.hera-post-content img[role="button"]:focus-visible,
.hera-post-content a[data-hera-lightbox-trigger]:focus-visible {
	outline: 3px solid var(--hera-blue);
	outline-offset: 5px;
}

.hera-post-content figcaption {
	margin-top: 10px;
	color: #64788a;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.hera-post-content blockquote {
	margin: 2em 0;
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--hera-sky);
	color: var(--hera-navy);
	font-family: "SVN-Butler", Georgia, serif;
	font-size: 1.18em;
}

.hera-post-tags {
	display: flex;
	margin-top: clamp(38px, 5vw, 64px);
	padding-top: 24px;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	border-top: 1px solid #dce5eb;
}

.hera-post-tags__label {
	margin-right: 4px;
	color: var(--hera-navy);
	font-weight: 700;
}

.hera-post-tags a {
	display: inline-flex;
	min-height: 38px;
	padding: 8px 14px;
	align-items: center;
	border: 1px solid #c7dbe7;
	border-radius: 999px;
	background: #f5fafc;
	color: var(--hera-blue);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hera-post-tags a:hover,
.hera-post-tags a:focus-visible {
	border-color: var(--hera-blue);
	background: var(--hera-blue);
	color: #fff;
}

body.hera-lightbox-open {
	overflow: hidden;
}

.hera-lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.hera-lightbox::backdrop {
	background: rgba(3, 14, 25, 0.94);
	backdrop-filter: blur(4px);
}

.hera-lightbox__panel {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
	padding: clamp(68px, 7vw, 96px) clamp(58px, 7vw, 112px) clamp(24px, 4vw, 52px);
	place-items: center;
}

.hera-lightbox__figure {
	display: flex;
	width: 100%;
	height: 100%;
	margin: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.hera-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 150px);
	border-radius: 4px;
	object-fit: contain;
	box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

.hera-lightbox__caption {
	max-width: 900px;
	min-height: 1.5em;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.hera-lightbox__close,
.hera-lightbox__arrow {
	position: absolute;
	z-index: 2;
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;
	background: rgba(5, 25, 45, 0.58);
	color: #fff;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.hera-lightbox__close:hover,
.hera-lightbox__arrow:hover,
.hera-lightbox__close:focus-visible,
.hera-lightbox__arrow:focus-visible {
	border-color: #fff;
	background: rgba(41, 95, 146, 0.94);
	outline: 3px solid rgba(161, 220, 244, 0.9);
	outline-offset: 3px;
}

.hera-lightbox__close {
	top: 20px;
	right: 24px;
}

.hera-lightbox__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.hera-lightbox__arrow--prev {
	left: 20px;
}

.hera-lightbox__arrow--next {
	right: 20px;
}

.hera-lightbox__arrow[hidden] {
	display: none;
}

.related-posts {
	padding: clamp(58px, 7vw, 96px) max(20px, calc((100% - 1180px) / 2));
	background: #f3f6f8;
	color: var(--hera-navy);
}

.related-posts__header {
	display: flex;
	margin-bottom: 36px;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.related-posts__header h2 {
	margin: 0;
	font-family: "SVN-Butler", Georgia, serif;
	font-size: clamp(34px, 3.5vw, 52px);
	font-weight: 400;
	line-height: 1.15;
}

.related-posts__controls {
	display: flex;
	gap: 12px;
}

.related-posts__arrow {
	display: grid;
	width: 50px;
	height: 50px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--hera-navy);
	color: #fff;
	cursor: pointer;
}

.related-posts__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.related-posts__track {
	display: grid;
	grid-auto-columns: calc((100% - 48px) / 3);
	grid-auto-flow: column;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.related-posts__track::-webkit-scrollbar {
	display: none;
}

.related-posts__empty {
	margin: 0;
	padding: 34px;
	border: 1px solid #dce5eb;
	border-radius: 14px;
	background: #fff;
	color: #63778a;
	font-size: 16px;
	text-align: center;
}

.related-post-card {
	overflow: hidden;
	scroll-snap-align: start;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(18, 55, 93, 0.07);
}

.related-post-card__image {
	position: relative;
	display: block;
	height: 250px;
	overflow: hidden;
	background: #dce9ef;
}

.related-post-card__image img,
.related-post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.related-post-card__placeholder {
	background: linear-gradient(135deg, #a1dcf4, #295f92);
}

.related-post-card:hover .related-post-card__image img {
	transform: scale(1.035);
}

.related-post-card__date {
	position: absolute;
	top: 18px;
	left: 18px;
	display: flex;
	min-width: 78px;
	padding: 10px 12px;
	flex-direction: column;
	align-items: center;
	border-radius: 10px;
	background: rgba(18, 55, 93, 0.94);
	color: #fff;
	font-size: 12px;
	line-height: 1.1;
}

.related-post-card__date strong {
	font-family: "SVN-Butler", Georgia, serif;
	font-size: 22px;
}

.related-post-card__body {
	padding: 24px 26px 28px;
}

.related-post-card__body h3 {
	margin: 0;
	font-family: "SVN-Butler", Georgia, serif;
	font-size: clamp(22px, 1.8vw, 28px);
	font-weight: 400;
	line-height: 1.35;
}

.related-post-card__body a {
	color: inherit;
	text-decoration: none;
}

.post-site-footer {
	padding: 64px max(24px, 7vw) 28px;
	background: var(--hera-navy);
	color: rgba(255, 255, 255, 0.82);
}

.post-site-footer__inner {
	display: grid;
	width: min(100%, 1120px);
	margin: 0 auto;
	grid-template-columns: minmax(180px, 280px) 1fr;
	gap: clamp(40px, 8vw, 120px);
	align-items: center;
}

.post-site-footer__brand img {
	width: 230px;
	filter: brightness(0) invert(1);
}

.post-site-footer__contact p {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.55;
}

.post-site-footer a {
	color: inherit;
}

.post-site-footer__legal {
	width: min(100%, 1120px);
	margin: 42px auto 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 13px;
	line-height: 1.5;
}

@media (max-width: 639.98px) {
	.hera-article-page .header .header-mb {
		background: rgba(9, 29, 52, 0.78);
	}

	.hera-post-hero {
		min-height: 580px;
	}

	.hera-post-hero__inner {
		width: min(100% - 32px, 760px);
		padding: 150px 0 48px;
	}

	.hera-post-title {
		font-size: clamp(34px, 10vw, 48px);
	}

	.hera-post-content {
		width: 100%;
		font-size: 17px;
		line-height: 1.7;
	}

	.hera-post-body {
		width: min(100% - 32px, 1180px);
		padding: 36px 0 64px;
	}

	.hera-post-toc {
		margin-bottom: 36px;
		padding: 22px 18px;
		grid-template-columns: 1fr;
		gap: 18px;
		border-radius: 14px;
	}

	.hera-post-toc__heading h2 {
		font-size: 28px;
	}

	.hera-post-toc__list {
		grid-template-columns: 1fr;
	}

	.hera-post-toc__list a {
		min-height: 52px;
	}

	.hera-post-content h2 {
		font-size: 30px;
	}

	.hera-lightbox__panel {
		padding: 64px 12px 20px;
	}

	.hera-lightbox__image {
		max-height: calc(100dvh - 130px);
	}

	.hera-lightbox__caption {
		padding: 0 50px;
		font-size: 13px;
	}

	.hera-lightbox__close,
	.hera-lightbox__arrow {
		width: 44px;
		height: 44px;
	}

	.hera-lightbox__close {
		top: 10px;
		right: 10px;
	}

	.hera-lightbox__arrow--prev {
		left: 8px;
	}

	.hera-lightbox__arrow--next {
		right: 8px;
	}

	.related-posts {
		padding: 52px 16px 64px;
	}

	.related-posts__header {
		margin-bottom: 26px;
		align-items: flex-end;
	}

	.related-posts__header h2 {
		max-width: 230px;
		font-size: 34px;
	}

	.related-posts__arrow {
		width: 44px;
		height: 44px;
	}

	.related-posts__track {
		grid-auto-columns: 86%;
		gap: 16px;
	}

	.related-post-card__image {
		height: 220px;
	}

	.post-site-footer {
		padding: 48px 20px 24px;
	}

	.post-site-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.post-site-footer__brand img {
		width: 190px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.related-posts__track {
		scroll-behavior: auto;
	}
}
