/*
Theme Name: HKGET Association
Theme URI: https://hkget.com/
Author: HKGET
Author URI: https://hkget.com/
Description: Official custom theme for 香港資優（天才）教育培訓總會 / HONG KONG GIFTED EDUCATION AND TALENT DEVELOPMENT ASSOCIATION.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: hkget-association
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--hkget-white: #ffffff;
	--hkget-ink: #11141a;
	--hkget-navy: #12233f;
	--hkget-navy-deep: #0b1930;
	--hkget-gold: #b8944f;
	--hkget-gold-light: #d8bd82;
	--hkget-muted: #5f6670;
	--hkget-line: #dcd9d2;
	--hkget-light: #f5f6f8;
	--hkget-serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
	--hkget-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
	--hkget-max: 1440px;
	--hkget-content: 1320px;
	--hkget-header-height: 124px;
	--hkget-space-section: clamp(5rem, 8vw, 9rem);
	--hkget-transition: 220ms ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hkget-header-height) + 24px);
}

body {
	margin: 0;
	background: var(--hkget-white);
	color: var(--hkget-ink);
	font-family: var(--hkget-sans);
	font-size: 17px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.menu-open {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin-top: 0;
}

h1,
h2,
h3 {
	font-family: var(--hkget-serif);
	font-weight: 600;
	line-height: 1.26;
}

svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.screen-reader-text {
	position: absolute !important;
	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 {
	position: fixed !important;
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--hkget-white);
	color: var(--hkget-navy);
	box-shadow: 0 0 0 3px var(--hkget-gold);
}

.section-space {
	padding: var(--hkget-space-section) max(5vw, 32px);
}

.section-english {
	margin-bottom: 0.6rem;
	color: var(--hkget-gold);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.gold-rule {
	display: block;
	width: 72px;
	height: 3px;
	margin: 1.7rem 0 2rem;
	background: var(--hkget-gold);
}

.gold-rule-centered {
	margin-right: auto;
	margin-left: auto;
}

.button,
.text-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	min-height: 58px;
	padding: 0.85rem 1.8rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	transition:
		color var(--hkget-transition),
		background var(--hkget-transition),
		border-color var(--hkget-transition),
		transform var(--hkget-transition);
}

.button svg,
.text-link svg {
	width: 24px;
	height: 24px;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
	transform: translateX(3px);
}

.button:focus-visible,
.text-link:focus-visible,
.primary-menu a:focus-visible,
.gallery-item:focus-visible,
.programme-link:focus-visible {
	outline: 3px solid var(--hkget-gold);
	outline-offset: 4px;
}

.button-primary {
	border: 1px solid var(--hkget-navy);
	background: var(--hkget-navy);
	color: var(--hkget-white);
}

.button-primary:hover,
.button-primary:focus-visible {
	border-color: var(--hkget-gold);
	background: var(--hkget-gold);
	color: var(--hkget-navy-deep);
}

.button-secondary {
	border: 1px solid var(--hkget-navy);
	background: transparent;
	color: var(--hkget-navy);
}

.button-secondary:hover,
.button-secondary:focus-visible {
	background: var(--hkget-navy);
	color: var(--hkget-white);
}

.button-wide {
	width: min(100%, 540px);
	justify-content: space-between;
}

.text-link {
	min-height: auto;
	padding: 0;
	color: var(--hkget-navy);
}

/* Header */
.site-header {
	position: sticky;
	z-index: 999;
	top: 0;
	min-height: var(--hkget-header-height);
	border-bottom: 1px solid var(--hkget-line);
	background: rgba(255, 255, 255, 0.98);
}

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

.header-inner {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 145px;
	align-items: center;
	gap: 1.25rem;
	width: min(100%, var(--hkget-max));
	min-height: var(--hkget-header-height);
	margin: 0 auto;
	padding: 12px 30px;
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-branding .custom-logo-link,
.default-logo-link {
	display: block;
	width: 122px;
}

.site-branding .custom-logo,
.default-logo-link img {
	width: 100%;
	max-height: 98px;
	object-fit: contain;
}

.primary-navigation {
	justify-self: end;
	min-width: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.85rem, 1.45vw, 1.6rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu > li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 0.6rem 0;
	color: var(--hkget-ink);
	font-size: 0.88rem;
	font-weight: 550;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.primary-menu a::after {
	position: absolute;
	right: 50%;
	bottom: 0;
	left: 50%;
	height: 2px;
	background: var(--hkget-gold);
	content: "";
	transition:
		right var(--hkget-transition),
		left var(--hkget-transition);
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after,
.primary-menu .current-menu-item > a::after {
	right: 0;
	left: 0;
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 220px;
	padding: 0.8rem 1rem;
	margin: 0;
	border: 1px solid var(--hkget-line);
	background: var(--hkget-white);
	box-shadow: 0 16px 35px rgba(18, 35, 63, 0.1);
	list-style: none;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition:
		opacity var(--hkget-transition),
		transform var(--hkget-transition);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.header-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--hkget-navy);
	background: var(--hkget-navy);
	color: var(--hkget-white);
	font-size: 0.93rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition:
		background var(--hkget-transition),
		border-color var(--hkget-transition),
		color var(--hkget-transition);
}

.header-whatsapp svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
	stroke: none;
}

.header-whatsapp:hover,
.header-whatsapp:focus-visible {
	border-color: var(--hkget-gold);
	background: var(--hkget-gold);
	color: var(--hkget-navy-deep);
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 12px;
	border: 1px solid var(--hkget-navy);
	background: transparent;
	color: var(--hkget-navy);
	cursor: pointer;
}

.menu-toggle-lines {
	display: grid;
	gap: 5px;
}

.menu-toggle-lines span {
	display: block;
	height: 2px;
	background: currentColor;
	transition:
		transform var(--hkget-transition),
		opacity var(--hkget-transition);
}

/* Hero */
.hero-section {
	display: grid;
	grid-template-columns: minmax(0, 48%) minmax(0, 52%);
	min-height: min(740px, calc(100vh - var(--hkget-header-height)));
	border-bottom: 1px solid var(--hkget-line);
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 6vw, 7.2rem);
}

.hero-copy h1 {
	max-width: 690px;
	margin-bottom: 0;
	color: var(--hkget-ink);
	font-size: clamp(3.1rem, 5.4vw, 5.9rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.23;
}

.hero-description {
	max-width: 720px;
	margin-bottom: 1.6rem;
	color: #353a42;
	font-size: clamp(1rem, 1.35vw, 1.24rem);
	line-height: 2;
}

.hero-english {
	max-width: 720px;
	margin-bottom: 2.3rem;
	color: var(--hkget-navy);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.17em;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
}

.hero-actions .button {
	min-width: 210px;
}

.hero-art {
	min-height: 600px;
	overflow: hidden;
	background: var(--hkget-navy);
}

.hero-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mission-strip {
	padding: 3.8rem max(5vw, 32px);
	border-bottom: 1px solid var(--hkget-line);
	background: var(--hkget-white);
	text-align: center;
}

.mission-strip-inner {
	max-width: 850px;
	margin: 0 auto;
}

.mission-strip h2 {
	margin-bottom: 0;
	color: var(--hkget-ink);
	font-size: clamp(2rem, 3.2vw, 3.1rem);
}

.mission-strip p {
	margin-bottom: 0;
	color: #30343b;
	font-size: 1.06rem;
}

/* About */
.about-section {
	display: grid;
	grid-template-columns: 1fr 0.95fr 1.15fr;
	gap: clamp(2.5rem, 4vw, 5.5rem);
	align-items: center;
	width: min(100%, var(--hkget-content));
	margin: 0 auto;
}

.section-intro h2,
.programmes-heading h2,
.news-topline h2,
.gallery-topline h2,
.contact-copy h2 {
	margin-bottom: 0;
	color: var(--hkget-navy);
	font-size: clamp(2.8rem, 4.6vw, 5rem);
	font-weight: 550;
}

.section-intro > p:not(.section-english),
.programmes-heading > p:not(.section-english),
.contact-copy > p:not(.section-english) {
	color: #454a52;
	line-height: 2;
}

.section-intro .text-link {
	margin-top: 1.5rem;
}

.history-timeline {
	position: relative;
	display: grid;
	gap: 3.6rem;
	padding-left: 3.2rem;
}

.history-timeline::before {
	position: absolute;
	top: 1rem;
	bottom: 1rem;
	left: 0.8rem;
	width: 1px;
	background: var(--hkget-gold);
	content: "";
}

.history-item {
	position: relative;
}

.history-item::before {
	position: absolute;
	top: 1.3rem;
	left: -2.78rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hkget-gold);
	content: "";
}

.history-year {
	margin-bottom: 0.25rem;
	color: var(--hkget-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.6rem, 4vw, 4.4rem);
	line-height: 1;
}

.history-item h3 {
	margin-bottom: 0.8rem;
	color: var(--hkget-gold);
	font-family: var(--hkget-sans);
	font-size: 1.12rem;
}

.history-item p:last-child {
	margin-bottom: 0;
	color: #555a62;
}

.mission-quote {
	position: relative;
	padding: clamp(2.8rem, 4vw, 5rem);
	margin: 0;
	background: var(--hkget-navy);
	color: var(--hkget-white);
}

.quote-mark {
	display: block;
	height: 0.6em;
	color: var(--hkget-gold-light);
	font-family: Georgia, serif;
	font-size: 5rem;
	line-height: 1;
}

.mission-quote > p {
	margin-bottom: 2.4rem;
	font-family: var(--hkget-serif);
	font-size: clamp(1.35rem, 2.1vw, 2.1rem);
	line-height: 1.85;
}

.mission-quote footer {
	padding-top: 1.4rem;
	border-top: 1px solid rgba(216, 189, 130, 0.45);
	color: var(--hkget-gold-light);
	font-size: 0.92rem;
	letter-spacing: 0.08em;
}

/* Programmes */
.programmes-section {
	display: grid;
	grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
	gap: clamp(3rem, 7vw, 8rem);
	max-width: var(--hkget-max);
	margin: 0 auto;
	border-top: 1px solid var(--hkget-line);
}

.programmes-heading {
	align-self: start;
}

.programme-list {
	border-top: 1px solid var(--hkget-line);
}

.programme-row {
	display: grid;
	grid-template-columns: 92px minmax(260px, 1.25fr) minmax(220px, 1fr) 46px;
	gap: 1.6rem;
	align-items: center;
	min-height: 190px;
	border-bottom: 1px solid var(--hkget-line);
}

.programme-number {
	margin: 0;
	color: var(--hkget-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4rem;
	line-height: 1;
}

.programme-title h3 {
	margin-bottom: 0.4rem;
	color: var(--hkget-navy);
	font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.programme-title p {
	margin-bottom: 0;
	color: var(--hkget-gold);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.programme-description {
	margin-bottom: 0;
	color: #555a62;
	font-size: 0.95rem;
}

.programme-link {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	color: var(--hkget-gold);
	transition:
		color var(--hkget-transition),
		transform var(--hkget-transition);
}

.programme-link svg {
	width: 32px;
	height: 32px;
}

.programme-row:hover .programme-link,
.programme-link:focus-visible {
	color: var(--hkget-navy);
	transform: translateX(5px);
}

/* News */
.news-section {
	max-width: var(--hkget-max);
	margin: 0 auto;
	border-top: 1px solid var(--hkget-line);
}

.news-topline,
.gallery-topline {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 3.2rem;
}

.news-topline h2,
.gallery-topline h2 {
	font-size: clamp(2.6rem, 4vw, 4.5rem);
}

.news-layout {
	display: grid;
	grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
	gap: clamp(2.5rem, 5vw, 5rem);
}

.news-feature {
	min-height: 520px;
	overflow: hidden;
}

.news-feature img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms ease;
}

.news-feature:hover img {
	transform: scale(1.018);
}

.news-list {
	border-top: 1px solid var(--hkget-line);
}

.news-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	gap: 1rem;
	align-content: center;
	min-height: 170px;
	border-bottom: 1px solid var(--hkget-line);
}

.news-row time {
	grid-column: 1;
	margin-bottom: 0.45rem;
	color: var(--hkget-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.news-row h3 {
	grid-column: 1;
	margin-bottom: 0;
	color: var(--hkget-navy);
	font-size: clamp(1.35rem, 2vw, 2rem);
}

.news-row h3 a {
	transition: color var(--hkget-transition);
}

.news-row h3 a:hover,
.news-row h3 a:focus-visible {
	color: var(--hkget-gold);
}

.news-arrow {
	display: grid;
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	width: 42px;
	height: 42px;
	place-items: center;
	color: var(--hkget-navy);
}

.news-arrow svg {
	width: 30px;
	height: 30px;
	transition: transform var(--hkget-transition);
}

.news-row:hover .news-arrow svg {
	transform: translateX(5px);
}

/* Gallery */
.gallery-section {
	max-width: var(--hkget-max);
	margin: 0 auto;
	border-top: 1px solid var(--hkget-gold);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.gallery-item {
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: var(--hkget-white);
}

.gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	transition: transform 700ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
	transform: scale(1.035);
}

.gallery-caption {
	display: block;
	min-height: 118px;
	padding: 1.35rem 1.6rem;
	background: var(--hkget-navy);
	color: var(--hkget-white);
}

.gallery-caption strong,
.gallery-caption small {
	display: block;
}

.gallery-caption strong {
	font-family: var(--hkget-serif);
	font-size: clamp(1.25rem, 1.75vw, 1.75rem);
	line-height: 1.45;
}

.gallery-caption small {
	margin-top: 0.45rem;
	color: var(--hkget-gold-light);
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gallery-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 2rem 0 0;
}

.gallery-note p {
	max-width: 850px;
	margin-bottom: 0;
	color: #555a62;
}

/* English */
.english-summary {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(3rem, 8vw, 9rem);
	max-width: var(--hkget-max);
	margin: 0 auto;
	border-top: 1px solid var(--hkget-line);
	background: var(--hkget-white);
}

.english-summary h2 {
	max-width: 640px;
	margin-bottom: 0;
	color: var(--hkget-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.2rem, 3.8vw, 4rem);
	font-weight: 500;
	line-height: 1.25;
}

.english-summary > div:last-child {
	align-self: center;
}

.english-summary p {
	color: #444a53;
	font-size: 1.02rem;
	line-height: 1.9;
}

/* Contact */
.contact-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
	gap: clamp(4rem, 10vw, 11rem);
	max-width: var(--hkget-max);
	margin: 0 auto;
	border-top: 1px solid var(--hkget-line);
}

.contact-copy > p:not(.section-english) {
	max-width: 680px;
}

.contact-list {
	margin: 2.8rem 0 0;
}

.contact-list > div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 1.2rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--hkget-line);
}

.contact-list dt {
	color: var(--hkget-gold);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.contact-list dd {
	margin: 0;
	color: var(--hkget-navy);
}

.contact-list a:hover,
.contact-list a:focus-visible {
	color: var(--hkget-gold);
}

.contact-address {
	position: relative;
	align-self: center;
	min-height: 420px;
	padding: 3.2rem;
	border-left: 1px solid var(--hkget-gold);
	overflow: hidden;
}

.location-icon {
	display: grid;
	width: 58px;
	height: 58px;
	margin-bottom: 1.5rem;
	border: 1px solid var(--hkget-gold);
	border-radius: 50%;
	place-items: center;
	color: var(--hkget-gold);
}

.location-icon svg {
	width: 28px;
	height: 28px;
}

.contact-address h3 {
	margin-bottom: 1.1rem;
	color: var(--hkget-navy);
	font-size: 2rem;
}

.contact-address > p {
	position: relative;
	z-index: 1;
	max-width: 520px;
	color: #333943;
	font-family: var(--hkget-serif);
	font-size: clamp(1.25rem, 2vw, 1.8rem);
	line-height: 1.8;
}

.location-lines {
	position: absolute;
	right: -20px;
	bottom: 20px;
	width: 70%;
	height: 160px;
	opacity: 0.72;
}

.location-lines span {
	position: absolute;
	display: block;
	height: 1px;
	background: var(--hkget-gold);
	transform-origin: left center;
}

.location-lines span:nth-child(1) {
	top: 25px;
	left: 0;
	width: 95%;
	transform: rotate(-10deg);
}

.location-lines span:nth-child(2) {
	top: 65px;
	left: 8%;
	width: 84%;
	transform: rotate(16deg);
}

.location-lines span:nth-child(3) {
	top: 110px;
	left: 2%;
	width: 90%;
	transform: rotate(-28deg);
}

.location-lines span:nth-child(4) {
	top: 135px;
	left: 35%;
	width: 55%;
	transform: rotate(5deg);
}

/* Footer */
.site-footer {
	padding: 5rem max(5vw, 32px) 2rem;
	background: var(--hkget-navy);
	color: var(--hkget-white);
}

.footer-inner {
	display: grid;
	grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 0.75fr));
	gap: clamp(2.5rem, 5vw, 6rem);
	max-width: var(--hkget-content);
	margin: 0 auto;
}

.footer-logo {
	display: block;
	width: min(100%, 250px);
	padding: 0.8rem;
	margin-bottom: 1.5rem;
	background: var(--hkget-white);
}

.footer-brand > p {
	margin-bottom: 0.35rem;
}

.footer-brand > p:first-of-type {
	font-family: var(--hkget-serif);
	font-size: 1.2rem;
}

.footer-brand > p[lang="en"] {
	max-width: 460px;
	color: #cbd3df;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	line-height: 1.7;
}

.footer-inner h2 {
	margin-bottom: 1.1rem;
	color: var(--hkget-gold-light);
	font-family: var(--hkget-sans);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-menu li {
	margin-bottom: 0.55rem;
}

.footer-menu a,
.footer-contact a {
	color: #d8dee8;
	font-size: 0.92rem;
	transition: color var(--hkget-transition);
}

.footer-menu a:hover,
.footer-menu a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
	color: var(--hkget-gold-light);
}

.footer-contact p {
	margin-bottom: 0.5rem;
	color: #d8dee8;
	font-size: 0.88rem;
	line-height: 1.65;
}

.footer-legal {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--hkget-content);
	padding-top: 1.8rem;
	margin: 3.5rem auto 0;
	border-top: 1px solid rgba(216, 189, 130, 0.45);
}

.footer-legal p {
	margin-bottom: 0;
	color: #b8c0ce;
	font-size: 0.76rem;
}

/* Internal content */
.content-shell {
	width: min(100% - 40px, 1040px);
	min-height: 55vh;
	padding: clamp(4rem, 8vw, 8rem) 0;
	margin: 0 auto;
}

.content-shell-wide {
	width: min(100% - 40px, var(--hkget-content));
}

.page-header {
	padding-bottom: 2.5rem;
	margin-bottom: 3rem;
	border-bottom: 1px solid var(--hkget-line);
}

.page-header h1 {
	margin-bottom: 0.7rem;
	color: var(--hkget-navy);
	font-size: clamp(2.6rem, 5vw, 5rem);
}

.entry-meta {
	color: var(--hkget-gold);
	font-size: 0.82rem;
	letter-spacing: 0.05em;
}

.entry-content {
	font-size: 1.03rem;
}

.entry-content > * {
	max-width: 820px;
}

.entry-content > .alignwide {
	max-width: 1140px;
	margin-right: auto;
	margin-left: auto;
}

.entry-content > .alignfull {
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2.5rem;
	color: var(--hkget-navy);
}

.entry-content h2 {
	font-size: clamp(2rem, 3vw, 3rem);
}

.entry-content a {
	color: var(--hkget-navy);
	text-decoration: underline;
	text-decoration-color: var(--hkget-gold);
	text-underline-offset: 0.2em;
}

.single-featured-image {
	margin: 0 0 3rem;
	overflow: hidden;
	background: var(--hkget-light);
}

.single-featured-image img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	padding-top: 2rem;
	margin-top: 4rem;
	border-top: 1px solid var(--hkget-line);
}

.post-navigation a {
	color: var(--hkget-navy);
	font-weight: 600;
}

.post-navigation a:last-child {
	margin-left: auto;
	text-align: right;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.post-card {
	padding-bottom: 1.8rem;
	border-bottom: 1px solid var(--hkget-line);
}

.post-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 1.5rem;
	overflow: hidden;
	background: var(--hkget-light);
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.025);
}

.post-card h2 {
	margin-bottom: 0.8rem;
	color: var(--hkget-navy);
	font-size: 1.65rem;
}

.post-card p {
	color: #5b6068;
}

.navigation.pagination {
	margin-top: 3rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers {
	display: grid;
	width: 42px;
	height: 42px;
	border: 1px solid var(--hkget-line);
	place-items: center;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--hkget-navy);
	background: var(--hkget-navy);
	color: var(--hkget-white);
}

.not-found {
	text-align: center;
}

.not-found .error-code {
	margin-bottom: 0;
	color: var(--hkget-gold);
	font-family: Georgia, serif;
	font-size: clamp(6rem, 18vw, 14rem);
	line-height: 1;
}

/* Responsive */
@media (max-width: 1240px) {
	:root {
		--hkget-header-height: 108px;
	}

	.header-inner {
		grid-template-columns: 138px minmax(0, 1fr) auto;
		gap: 1.3rem;
	}

	.site-branding .custom-logo-link,
	.default-logo-link {
		width: 98px;
	}

	.primary-menu {
		gap: 1rem;
	}

	.primary-menu a {
		font-size: 0.82rem;
	}

	.hero-copy {
		padding-right: 4vw;
		padding-left: 5vw;
	}

	.programme-row {
		grid-template-columns: 70px minmax(230px, 1.1fr) minmax(190px, 0.9fr) 40px;
		gap: 1rem;
	}
}

@media (max-width: 1050px) {
	:root {
		--hkget-header-height: 96px;
	}

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

	.header-inner {
		grid-template-columns: 118px 1fr auto;
	}

	.site-branding .custom-logo-link,
	.default-logo-link {
		width: 82px;
	}

	.menu-toggle {
		display: block;
		grid-column: 3;
		grid-row: 1;
	}

	.header-whatsapp {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	.primary-navigation {
		position: fixed;
		z-index: 998;
		top: var(--hkget-header-height);
		right: 0;
		bottom: 0;
		left: 0;
		display: none;
		padding: 2rem max(6vw, 24px);
		overflow-y: auto;
		background: var(--hkget-white);
	}

	.admin-bar .primary-navigation {
		top: calc(var(--hkget-header-height) + 32px);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-menu {
		display: block;
	}

	.primary-menu > li {
		border-bottom: 1px solid var(--hkget-line);
	}

	.primary-menu a {
		padding: 1rem 0;
		font-size: 1.2rem;
	}

	.primary-menu a::after {
		display: none;
	}

	.primary-menu .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0.8rem 1.2rem;
		border: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.hero-section {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hero-copy {
		min-height: 620px;
		padding: 5rem 7vw;
	}

	.hero-art {
		min-height: 560px;
	}

	.about-section {
		grid-template-columns: 1fr 1fr;
	}

	.mission-quote {
		grid-column: 1 / -1;
	}

	.programmes-section {
		grid-template-columns: 1fr;
	}

	.programmes-heading {
		max-width: 720px;
	}

	.news-layout {
		grid-template-columns: 1fr;
	}

	.news-feature {
		min-height: 520px;
	}

	.contact-section {
		gap: 4rem;
	}

	.footer-inner {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.footer-contact {
		grid-column: 2 / -1;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar .primary-navigation {
		top: calc(var(--hkget-header-height) + 46px);
	}
}

@media (max-width: 760px) {
	:root {
		--hkget-header-height: 88px;
		--hkget-space-section: 5rem;
	}

	body {
		font-size: 16px;
	}

	.section-space {
		padding-right: 22px;
		padding-left: 22px;
	}

	.header-inner {
		grid-template-columns: 90px 1fr 48px;
		gap: 0.8rem;
		padding: 8px 16px;
	}

	.site-branding .custom-logo-link,
	.default-logo-link {
		width: 72px;
	}

	.header-whatsapp {
		min-height: 44px;
		padding: 0.65rem 0.85rem;
	}

	.header-whatsapp span {
		display: none;
	}

	.header-whatsapp svg {
		width: 24px;
		height: 24px;
	}

	.hero-copy {
		min-height: 560px;
		padding: 4.5rem 22px;
	}

	.hero-copy h1 {
		font-size: clamp(3rem, 13vw, 4.8rem);
	}

	.hero-description {
		font-size: 1rem;
	}

	.hero-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.hero-actions .button {
		min-width: 0;
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.hero-art {
		min-height: 390px;
	}

	.mission-strip {
		padding: 3.5rem 22px;
	}

	.about-section {
		grid-template-columns: 1fr;
	}

	.history-timeline {
		margin-top: 1rem;
	}

	.mission-quote {
		grid-column: auto;
	}

	.programme-row {
		grid-template-columns: 58px 1fr 40px;
		gap: 0.9rem;
		min-height: 0;
		padding: 2rem 0;
	}

	.programme-number {
		font-size: 2.8rem;
	}

	.programme-title {
		grid-column: 2;
	}

	.programme-description {
		grid-column: 2 / -1;
	}

	.programme-link {
		grid-column: 3;
		grid-row: 1;
	}

	.news-topline,
	.gallery-topline,
	.gallery-note {
		align-items: flex-start;
		flex-direction: column;
	}

	.news-feature {
		min-height: 390px;
	}

	.news-row {
		min-height: 145px;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-note {
		display: flex;
	}

	.english-summary,
	.contact-section {
		grid-template-columns: 1fr;
	}

	.contact-address {
		min-height: 360px;
		padding: 2.2rem 0 0 2.2rem;
	}

	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand,
	.footer-contact {
		grid-column: 1 / -1;
	}

	.footer-legal {
		flex-direction: column;
		gap: 0.5rem;
	}

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

@media (max-width: 480px) {
	.hero-copy h1 {
		font-size: 2.85rem;
	}

	.hero-actions {
		grid-template-columns: 1fr;
	}

	.hero-art {
		min-height: 320px;
	}

	.section-intro h2,
	.programmes-heading h2,
	.news-topline h2,
	.gallery-topline h2,
	.contact-copy h2 {
		font-size: 2.65rem;
	}

	.contact-list > div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-brand,
	.footer-contact {
		grid-column: auto;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
