/*
* HK page templates (template-publications.php, template-health-tourism.php)
*
* Sections
*   1. Shell, hero and section headings
*   2. Accreditation band
*   3. Publication cards
*   4. Books
*   5. Health tourism intro and services
*   6. Documents and partner logos
*   7. Advantages
*   8. Questions
*   9. Closing call to action
*  10. Small screens
*  11. Right to left
*/

/* ---------------------------------------------------------------------------
* 1. Shell, hero and section headings
* ------------------------------------------------------------------------- */

.hkx-page {
	--hkx-accent: var(--primary-color, #c9962c);
	--hkx-accent-strong: var(--hk-gold-strong, #b3801d);
	--hkx-green: var(--secondary-color, #53624e);
	--hkx-ink: #1a1b1a;
	--hkx-muted: #6f736a;
	--hkx-line: #e4e1da;
	--hkx-soft: #f7f6f3;
	--hkx-radius: 8px;
}

.hkx-page .hkx-main {
	padding-bottom: 0;
}

.hkx-wrap {
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 40px;
}

.hkx-section {
	padding: 84px 0;
}

.hkx-section + .hkx-section {
	border-top: 1px solid var(--hkx-line);
}

/* The site header overlaps the document, so the hero carries its own top
* padding rather than leaving the heading under the menu. */
.hkx-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 460px;
	padding: calc(var(--hk-header-h, 156px) + var(--hk-hero-gap, 72px)) 24px 78px;
	overflow: hidden;
	background-color: var(--hkx-green);
	color: #fff;
	text-align: center;
}

.hkx-hero-bg,
.hkx-hero .hkx-hero-media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	border-radius: 0;
}

.hkx-hero-bg {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.hkx-hero-photo:after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(14, 13, 10, 0.62) 0%, rgba(14, 13, 10, 0.42) 55%, rgba(14, 13, 10, 0.6) 100%);
	content: "";
}

/* The watermark sits low and to the side, where it does not compete with the
* heading — the one thing on the band that has to be read. */
.hkx-hero .hkx-hero-media .hkb-media-inner {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 0 4% 5%;
}

.hkx-hero .hkx-hero-media .hkb-media-logo {
	height: auto;
	width: 260px;
	max-width: 38%;
	max-height: 110px;
	opacity: 0.12;
}

.hkx-hero .hkx-hero-media:after {
	display: none;
}

.hkx-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 880px;
}

.hkx-hero .hkx-eyebrow {
	color: #fff;
	opacity: 0.72;
}

.hkx-hero-title {
	margin: 0 0 18px;
	color: #fff;
	font-family: var(--heading-font, inherit);
	font-size: 58px;
	line-height: 1.1;
}

.hkx-hero-lead {
	margin: 0 auto;
	max-width: 700px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 17px;
	line-height: 1.7;
}

.hkx-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 26px 0 0;
	padding: 9px 18px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hkx-hero-badge .hkx-icon {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--hk-gold-light, #e5b84f);
}

.hkx-eyebrow {
	margin: 0 0 12px;
	color: var(--hkx-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
}

.hkx-head {
	max-width: 780px;
	margin: 0 0 46px;
}

.hkx-head-center {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.hkx-head-title {
	margin: 0;
	color: var(--hkx-ink);
	font-family: var(--heading-font, inherit);
	font-size: 38px;
	line-height: 1.2;
}

.hkx-head-lead {
	margin: 16px 0 0;
	color: var(--hkx-muted);
	font-size: 16px;
	line-height: 1.75;
}

.hkx-content {
	padding: 0 0 70px;
}

/* ---------------------------------------------------------------------------
* 2. Accreditation band
*
* The licence is the page's strongest claim, so it gets the width of the screen
* and the gold, directly under the hero.
* ------------------------------------------------------------------------- */

.hkx-seal {
	background: linear-gradient(180deg, #faf8f4 0%, #f3efe6 100%);
	border-bottom: 1px solid var(--hkx-line);
}

.hkx-seal-inner {
	display: flex;
	align-items: flex-start;
	gap: 26px;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 46px 40px;
}

.hkx-seal-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	flex: none;
	border-radius: 50%;
	background: var(--hkx-accent);
	color: #fff;
}

.hkx-seal-mark .hkx-icon {
	width: 32px;
	height: 32px;
}

.hkx-seal-label {
	margin: 0 0 8px;
	color: var(--hkx-accent-strong);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.hkx-seal-title {
	margin: 0;
	color: var(--hkx-ink);
	font-family: var(--heading-font, inherit);
	font-size: 26px;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.hkx-seal-body {
	margin: 14px 0 0;
	max-width: 900px;
	color: var(--hkx-muted);
	font-size: 16px;
	line-height: 1.75;
}

/* ---------------------------------------------------------------------------
* 3. Publication cards
* ------------------------------------------------------------------------- */

.hkx-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.hkx-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hkx-line);
	border-radius: var(--hkx-radius);
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hkx-card:hover {
	transform: translateY(-4px);
	border-color: rgba(201, 150, 44, 0.45);
	box-shadow: 0 18px 40px rgba(26, 27, 26, 0.1);
}

.hkx-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--hkx-soft);
}

.hkx-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hkx-card:hover .hkx-card-media img {
	transform: scale(1.04);
}

.hkx-card-type {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--hkx-accent-strong);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hkx-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px 26px 28px;
}

.hkx-card-title {
	margin: 0 0 12px;
	font-family: var(--heading-font, inherit);
	font-size: 21px;
	line-height: 1.3;
}

.hkx-card-title a {
	color: var(--hkx-ink);
}

.hkx-card-title a:hover {
	color: var(--hkx-accent);
}

.hkx-card-text {
	margin: 0 0 22px;
	color: var(--hkx-muted);
	font-size: 15px;
	line-height: 1.7;
}

.hkx-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: auto;
	color: var(--hkx-accent-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hkx-link .hkx-icon {
	width: 17px;
	height: 17px;
	transition: transform 0.2s ease;
}

.hkx-link:hover {
	color: var(--hkx-green);
}

.hkx-link:hover .hkx-icon {
	transform: translateY(2px);
}

/* ---------------------------------------------------------------------------
* 4. Books
* ------------------------------------------------------------------------- */

.hkx-books {
	position: relative;
}

.hkx-books:before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: var(--hkx-soft);
	content: "";
}

.hkx-books > * {
	position: relative;
	z-index: 1;
}

.hkx-books-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.hkx-book {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--hkx-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(26, 27, 26, 0.06);
}

.hkx-book-media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #ece8e0;
}

.hkx-book-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hkx-book-body {
	padding: 26px 26px 28px;
}

.hkx-book-title {
	margin: 0 0 12px;
	color: var(--hkx-ink);
	font-family: var(--heading-font, inherit);
	font-size: 20px;
	line-height: 1.3;
}

.hkx-book-text {
	margin: 0 0 18px;
	color: var(--hkx-muted);
	font-size: 15px;
	line-height: 1.7;
}

.hkx-book-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--hkx-accent-strong);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hkx-book-meta .hkx-icon {
	width: 18px;
	height: 18px;
}

/* ---------------------------------------------------------------------------
* 5. Health tourism intro and services
* ------------------------------------------------------------------------- */

.hkx-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 60px;
}

.hkx-intro-title {
	margin: 0 0 20px;
	color: var(--hkx-ink);
	font-family: var(--heading-font, inherit);
	font-size: 40px;
	line-height: 1.18;
}

.hkx-intro-text p {
	margin: 0 0 18px;
	color: var(--hkx-muted);
	font-size: 16px;
	line-height: 1.8;
}

.hkx-intro-text p:last-child {
	margin-bottom: 0;
}

.hkx-intro-media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hkx-radius);
}

.hkx-intro-media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hkx-services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.hkx-service {
	padding: 34px 30px 32px;
	border: 1px solid var(--hkx-line);
	border-radius: var(--hkx-radius);
	background: #fff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hkx-service:hover {
	border-color: rgba(201, 150, 44, 0.45);
	box-shadow: 0 16px 36px rgba(26, 27, 26, 0.08);
}

.hkx-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: rgba(201, 150, 44, 0.12);
	color: var(--hkx-accent-strong);
}

.hkx-service-icon .hkx-icon {
	width: 26px;
	height: 26px;
}

.hkx-service-title {
	margin: 0 0 12px;
	color: var(--hkx-ink);
	font-family: var(--heading-font, inherit);
	font-size: 21px;
	line-height: 1.3;
}

.hkx-service-text {
	margin: 0 0 16px;
	color: var(--hkx-muted);
	font-size: 15px;
	line-height: 1.75;
}

.hkx-service-note {
	margin: 0;
	padding-left: 16px;
	border-left: 2px solid var(--hkx-accent);
	color: var(--hkx-ink);
	font-size: 14px;
	font-style: italic;
	line-height: 1.7;
}

/* ---------------------------------------------------------------------------
* 6. Documents and partner logos
* ------------------------------------------------------------------------- */

.hkx-media-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.hkx-figure {
	margin: 0;
	text-align: center;
}

.hkx-figure-media {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--hkx-line);
	border-radius: var(--hkx-radius);
	background: #fff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

a.hkx-figure-media:hover {
	border-color: rgba(201, 150, 44, 0.5);
	box-shadow: 0 14px 32px rgba(26, 27, 26, 0.1);
}

.hkx-media-documents .hkx-figure-media {
	aspect-ratio: 3 / 4;
	padding: 10px;
	background: var(--hkx-soft);
}

.hkx-media-documents .hkx-figure-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hkx-media-partners .hkx-figure-media {
	aspect-ratio: 3 / 2;
	padding: 26px;
}

.hkx-media-partners .hkx-figure-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.78;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.hkx-media-partners .hkx-figure:hover img {
	filter: none;
	opacity: 1;
}

.hkx-figure-caption {
	margin-top: 14px;
	color: var(--hkx-muted);
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
* 7. Advantages
* ------------------------------------------------------------------------- */

.hkx-advantages {
	position: relative;
	color: #fff;
}

.hkx-advantages:before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: var(--hkx-green);
	content: "";
}

.hkx-advantages > * {
	position: relative;
	z-index: 1;
}

.hkx-advantages .hkx-head-title {
	color: #fff;
}

.hkx-advantages .hkx-eyebrow {
	color: var(--hk-gold-light, #e5b84f);
}

.hkx-advantages .hkx-head-lead {
	color: rgba(255, 255, 255, 0.82);
}

.hkx-advantages-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hkx-advantage {
	padding: 30px 26px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--hkx-radius);
	background: rgba(255, 255, 255, 0.06);
}

.hkx-advantage-no {
	display: block;
	margin-bottom: 14px;
	color: var(--hk-gold-light, #e5b84f);
	font-family: var(--heading-font, inherit);
	font-size: 26px;
	line-height: 1;
}

.hkx-advantage-title {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--heading-font, inherit);
	font-size: 19px;
	line-height: 1.3;
}

.hkx-advantage-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	line-height: 1.7;
}

/* ---------------------------------------------------------------------------
* 8. Questions
* ------------------------------------------------------------------------- */

.hkx-faq-list {
	max-width: 900px;
	margin: 0 auto;
}

.hkx-faq-item {
	border-bottom: 1px solid var(--hkx-line);
}

.hkx-faq-item:first-child {
	border-top: 1px solid var(--hkx-line);
}

.hkx-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 4px;
	color: var(--hkx-ink);
	cursor: pointer;
	font-family: var(--heading-font, inherit);
	font-size: 18px;
	line-height: 1.4;
	list-style: none;
}

.hkx-faq-q::-webkit-details-marker {
	display: none;
}

/* The marker is drawn rather than imported: a plus that becomes a minus. */
.hkx-faq-q:after {
	width: 13px;
	height: 13px;
	flex: none;
	background: linear-gradient(var(--hkx-accent), var(--hkx-accent)) center/13px 2px no-repeat,
		linear-gradient(var(--hkx-accent), var(--hkx-accent)) center/2px 13px no-repeat;
	content: "";
	transition: transform 0.25s ease;
}

.hkx-faq-item[open] .hkx-faq-q:after {
	background: linear-gradient(var(--hkx-accent), var(--hkx-accent)) center/13px 2px no-repeat;
	transform: rotate(180deg);
}

.hkx-faq-q:hover {
	color: var(--hkx-accent-strong);
}

.hkx-faq-a {
	padding: 0 4px 24px;
}

.hkx-faq-a p {
	margin: 0;
	max-width: 760px;
	color: var(--hkx-muted);
	font-size: 16px;
	line-height: 1.8;
}

/* ---------------------------------------------------------------------------
* 9. Closing call to action
* ------------------------------------------------------------------------- */

.hkx-cta {
	background: var(--hkx-ink);
	color: #fff;
}

.hkx-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 62px 40px;
}

.hkx-cta-title {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--heading-font, inherit);
	font-size: 32px;
	line-height: 1.22;
}

.hkx-cta-sub {
	margin: 0;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.74);
	font-size: 16px;
	line-height: 1.7;
}

.hkx-cta-buttons {
	display: flex;
	flex: none;
	gap: 14px;
}

.hkx-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hkx-button .hkh-icon {
	width: 18px;
	height: 18px;
}

.hkx-button-whatsapp {
	background: #25d366;
	color: #0b2f18;
}

.hkx-button-whatsapp:hover {
	background: #1fb857;
	color: #0b2f18;
}

.hkx-button-ghost {
	border-color: rgba(255, 255, 255, 0.34);
	color: #fff;
}

.hkx-button-ghost:hover {
	border-color: var(--hkx-accent);
	background: var(--hkx-accent);
	color: #fff;
}

/* ---------------------------------------------------------------------------
* 10. Small screens
* ------------------------------------------------------------------------- */

@media only screen and (max-width: 1199px) {
	.hkx-wrap,
	.hkx-seal-inner,
	.hkx-cta-inner {
		padding-left: 30px;
		padding-right: 30px;
	}

	.hkx-cards,
	.hkx-books-list,
	.hkx-services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hkx-hero-title {
		font-size: 46px;
	}

	.hkx-intro-grid {
		gap: 40px;
	}

	.hkx-intro-title {
		font-size: 34px;
	}

	.hkx-advantages-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 991px) {
	.hkx-section {
		padding: 62px 0;
	}

	.hkx-intro-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hkx-media-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hkx-cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media only screen and (max-width: 767px) {
	.hkx-wrap,
	.hkx-seal-inner,
	.hkx-cta-inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.hkx-hero {
		min-height: 380px;
		padding: calc(var(--hk-header-h, 116px) + var(--hk-hero-gap, 36px)) 20px 56px;
	}

	.hkx-hero-title {
		font-size: 32px;
	}

	.hkx-hero-lead {
		font-size: 15px;
	}

	.hkx-hero-badge {
		font-size: 10px;
		letter-spacing: 0.08em;
		text-align: left;
	}

	.hkx-seal-inner {
		flex-direction: column;
		gap: 18px;
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.hkx-seal-mark {
		width: 52px;
		height: 52px;
	}

	.hkx-seal-title {
		font-size: 23px;
	}

	.hkx-head {
		margin-bottom: 32px;
	}

	.hkx-head-title {
		font-size: 27px;
	}

	.hkx-cards,
	.hkx-books-list,
	.hkx-services-grid,
	.hkx-advantages-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.hkx-card-body,
	.hkx-book-body {
		padding: 22px 20px 24px;
	}

	.hkx-intro-title {
		font-size: 27px;
	}

	.hkx-faq-q {
		font-size: 16px;
	}

	.hkx-cta-inner {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.hkx-cta-title {
		font-size: 25px;
	}

	.hkx-cta-buttons {
		width: 100%;
		flex-wrap: wrap;
	}

	.hkx-button {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ---------------------------------------------------------------------------
* 11. Right to left
* ------------------------------------------------------------------------- */

html[dir="rtl"] .hkx-service-note {
	padding-right: 16px;
	padding-left: 0;
	border-right: 2px solid var(--hkx-accent);
	border-left: 0;
}

html[dir="rtl"] .hkx-card-type {
	right: 14px;
	left: auto;
}

html[dir="rtl"] .hkx-head:not(.hkx-head-center) {
	text-align: right;
}

/* Background video in the page hero: the dark overlay and the text stay above
* it, the badge and heading readable over any frame. */
.hkx-hero-video .hkv {
	z-index: 0;
}

.hkx-hero-video:after {
	z-index: 1;
}

/* Width 100% plus side padding: the theme sets border-box globally, but these
* templates should not depend on it. */
.hkx-wrap,
.hkx-seal-inner,
.hkx-cta-inner {
	box-sizing: border-box;
}
