/* AllCancer header, footer, and Astra/Elementor integration */
:root {
	--ac-ink: #06111f;
	--ac-green: #106efd;
	--ac-green-dark: #0b4fc4;
	--ac-mint: #8fc2ff;
	--ac-gold: #8fc2ff;
	--ac-line: #dfe8f4;
}

body.ac-elementor-page,
body.elementor-page {
	background: #fff;
}

body.ac-elementor-page .site-content > .ast-container,
body.ac-elementor-page #content .ast-container,
body.elementor-page .site-content > .ast-container,
body.elementor-page #content .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.ac-elementor-page .ast-article-single,
body.elementor-page .ast-article-single {
	padding: 0;
}

body.ac-elementor-page .entry-header,
body.elementor-page .entry-header,
body.ac-elementor-page .ast-breadcrumbs-wrapper,
body.elementor-page .ast-breadcrumbs-wrapper {
	display: none;
}

/* Header */
.ac-header-shell {
	position: relative;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid rgba(6, 17, 31, 0.08);
	box-shadow: 0 6px 30px rgba(6, 17, 31, 0.05);
	backdrop-filter: blur(10px);
}

.ac-header-main > .e-con-inner {
	max-width: 1400px;
	margin: 0 auto;
	min-height: 82px;
	width: 100%;
	display: flex !important;
	flex-wrap: nowrap !important;
	padding-top: 3px !important;
	padding-bottom: 3px !important;
}

.ac-header-brand {
	flex: 0 0 236px !important;
	width: 236px !important;
	min-width: 0;
}

.ac-header-brand img {
	display: block;
	width: 218px !important;
	height: auto !important;
}

.ac-header-nav {
	flex: 1 1 0% !important;
	width: auto !important;
	min-width: 0;
	justify-content: center !important;
}

.ac-header-actions {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: max-content;
	min-width: 0;
	justify-content: flex-end !important;
}

.ac-nav,
.ac-nav .elementor-widget-container,
.ac-header-nav .hfe-nav-menu {
	width: auto !important;
	max-width: 100%;
	min-width: 0;
}

.ac-nav {
	flex: 1 1 auto !important;
}

.ac-header-nav .hfe-nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ac-header-nav .hfe-nav-menu ul.hfe-nav-menu {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	width: max-content !important;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac-header-nav .hfe-nav-menu ul.hfe-nav-menu > li {
	display: inline-block !important;
	flex: 0 0 auto;
}

.ac-nav .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 13px !important;
	color: var(--ac-ink) !important;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	position: relative;
	transition: color 0.2s ease;
}

.ac-nav .hfe-nav-menu > li.menu-item > a.hfe-menu-item::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 5px;
	height: 2px;
	background: var(--ac-green);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.ac-nav .hfe-nav-menu > li.menu-item:hover > a.hfe-menu-item,
.ac-nav .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item,
.ac-nav .hfe-nav-menu > li.current-menu-ancestor > a.hfe-menu-item {
	color: var(--ac-green) !important;
}

.ac-nav .hfe-nav-menu > li.menu-item:hover > a.hfe-menu-item::after,
.ac-nav .hfe-nav-menu > li.current-menu-item > a.hfe-menu-item::after,
.ac-nav .hfe-nav-menu > li.current-menu-ancestor > a.hfe-menu-item::after {
	transform: scaleX(1);
}

.ac-nav .hfe-nav-menu li ul.sub-menu {
	top: calc(100% - 2px);
	min-width: 190px;
	padding: 8px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(6, 17, 31, 0.14);
	list-style: none;
}

.ac-nav .hfe-nav-menu li ul.sub-menu li a {
	display: block;
	padding: 10px 14px;
	border-radius: 6px;
	color: var(--ac-ink);
	font-size: 14px;
	line-height: 1.45;
	white-space: nowrap;
}

.ac-nav .hfe-nav-menu li ul.sub-menu li a:hover {
	background: #f3f8ff;
	color: var(--ac-green);
}

.ac-nav .hfe-nav-menu__toggle {
	color: var(--ac-ink);
	font-size: 26px;
	padding: 4px 8px;
}

body .ac-header-cta .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 23px;
	border-radius: 999px;
	background: var(--ac-green);
	color: #fff;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(16, 110, 253, 0.22);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body .ac-header-cta .elementor-button:hover {
	background: var(--ac-green-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 11px 26px rgba(16, 110, 253, 0.28);
}

body .ac-header-cta .elementor-button::after {
	content: "↗";
	font-size: 15px;
	line-height: 1;
}

.ac-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.ac-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--ac-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ac-ink);
	font-size: 17px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ac-search-toggle:hover {
	background: #f3f8ff;
	border-color: #cfe0ff;
	color: var(--ac-green);
}

.ac-search-panel {
	position: absolute;
	top: calc(100% + 13px);
	right: 0;
	z-index: 99;
	width: min(360px, calc(100vw - 32px));
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(6, 17, 31, 0.18);
}

.ac-search-panel[hidden] {
	display: none !important;
}

.ac-search-panel form {
	display: flex;
	gap: 8px;
	margin: 0;
}

.ac-search-panel input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #dfe8f4;
	border-radius: 7px;
	color: var(--ac-ink);
	background: #fff;
}

.ac-search-panel button {
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 7px;
	background: var(--ac-green);
	color: #fff;
	cursor: pointer;
}

/* Footer */
.ac-footer {
	background: #06111f;
	color: #c9d8ea;
	overflow: hidden;
}

.ac-footer > .e-con-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.ac-footer .elementor-heading-title {
	color: #fff;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.ac-footer .elementor-widget-text-editor,
.ac-footer .elementor-widget-text-editor p,
.ac-footer .elementor-widget-text-editor a {
	color: #9fb3c9;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 13px;
	line-height: 1.8;
}

.ac-footer .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.ac-footer .elementor-icon-list-items {
	margin: 0;
	padding: 0;
}

.ac-footer .elementor-icon-list-item {
	padding: 3px 0;
}

.ac-footer .elementor-icon-list-text,
.ac-footer .elementor-icon-list-text a {
	color: #a9bfd9;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 13px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

body .ac-footer .elementor-icon-list-text a,
body .ac-footer .elementor-icon-list-item > a,
body .ac-footer .elementor-widget-text-editor a {
	color: #a9bfd9 !important;
}

body .ac-footer .elementor-icon-list-text a:hover,
body .ac-footer .elementor-icon-list-item > a:hover,
body .ac-footer .elementor-widget-text-editor a:hover {
	color: #8fc2ff !important;
}

.ac-footer .elementor-icon-list-item:hover .elementor-icon-list-text,
.ac-footer .elementor-icon-list-item:hover .elementor-icon-list-text a {
	color: var(--ac-mint);
}

.ac-footer .elementor-icon-list-icon {
	color: #78b0ff;
	font-size: 12px;
}

.ac-footer .elementor-icon-list-icon i {
	color: #78b0ff;
}

.ac-footer-logo img {
	width: 218px !important;
	max-width: 100%;
	height: auto !important;
	filter: brightness(0) invert(1);
	opacity: 0.96;
}

.ac-footer-brand .elementor-widget-text-editor {
	max-width: 440px;
}

body .ac-footer-cta .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	background: #106efd;
	color: #fff;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}

body .ac-footer-cta .elementor-button:hover {
	background: #0b5bd8;
	color: #fff;
	transform: translateY(-1px);
}

.ac-newsletter h4 {
	margin: 0 0 10px;
	color: #fff;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.ac-newsletter-form {
	display: flex;
	gap: 0;
	max-width: 390px;
	margin: 0;
	border: 1px solid rgba(169, 191, 217, 0.3);
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
}

.ac-newsletter-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 45px;
	padding: 0 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 13px;
}

.ac-newsletter-form input[type="email"]::placeholder {
	color: #8299b0;
}

.ac-newsletter-form button {
	flex: 0 0 auto;
	height: 45px;
	padding: 0 20px;
	border: 0;
	background: var(--ac-green);
	color: #fff;
	font-family: "DM Sans", "Noto Sans HK", sans-serif;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ac-newsletter-form button:hover {
	background: #106efd;
}

.ac-newsletter-msg {
	min-height: 18px;
	margin: 8px 0 0;
	color: var(--ac-mint) !important;
	font-size: 12px !important;
}

.ac-footer-bottom {
	border-top: 1px solid rgba(169, 191, 217, 0.16);
}

.ac-footer-bottom .elementor-widget-text-editor,
.ac-footer-bottom .elementor-widget-text-editor p,
.ac-footer-bottom .elementor-widget-text-editor a {
	color: #7f94aa;
	font-size: 12px;
	line-height: 1.7;
}

.ac-footer-bottom a:hover {
	color: var(--ac-mint);
}

/* Responsive header */
@media (max-width: 1200px) {
	.ac-header-brand {
		flex-basis: 210px !important;
		width: 210px !important;
	}

	.ac-header-brand img {
		width: 192px !important;
	}

	.ac-nav .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
		padding-left: 9px !important;
		padding-right: 9px !important;
		font-size: 14px;
	}

	.ac-header-cta .elementor-button {
		padding: 12px 18px;
		font-size: 13px;
	}
}

@media (max-width: 1024px) {
	.ac-header-main > .e-con-inner {
		min-height: 72px;
		flex-wrap: nowrap;
	}

	.ac-header-main,
	.ac-header-nav,
	.ac-nav {
		position: static !important;
	}

	.ac-header-brand {
		flex: 1 1 auto !important;
		width: auto !important;
	}

	.ac-header-nav {
		flex: 0 0 auto !important;
		width: auto !important;
	}

	.ac-header-actions {
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: max-content;
	}

	.ac-nav {
		flex: 0 0 auto !important;
		width: auto !important;
	}

	.ac-header-cta {
		display: none !important;
	}

	.ac-header-nav .hfe-nav-menu ul.hfe-nav-menu {
		display: none !important;
	}

	.ac-nav .hfe-nav-menu__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.ac-nav .hfe-nav-menu__layout-horizontal {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		display: block;
		max-height: 0;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 18px 35px rgba(6, 17, 31, 0.13);
		transition: max-height 0.25s ease;
	}

	.ac-nav .hfe-nav-menu__layout-horizontal.hfe-nav-menu__open {
		max-height: 75vh;
		overflow-y: auto;
	}

	.ac-nav .hfe-nav-menu__layout-horizontal.ac-menu-open {
		max-height: 75vh;
		overflow-y: auto;
	}

	.ac-nav .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal {
		height: auto !important;
		max-height: 75vh !important;
		opacity: 1 !important;
		overflow-y: auto !important;
		visibility: visible !important;
	}

	.ac-nav .hfe-nav-menu__layout-horizontal.ac-menu-open ul.hfe-nav-menu,
	.ac-nav .hfe-nav-menu__layout-horizontal.hfe-nav-menu__open ul.hfe-nav-menu {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.ac-nav .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
		display: block;
		padding: 10px 20px 18px;
	}

	.ac-nav .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li > a.hfe-menu-item {
		display: flex;
		justify-content: space-between;
		width: 100%;
		padding: 12px 4px !important;
		border-bottom: 1px solid var(--ac-line);
	}

	.ac-nav .hfe-nav-menu__layout-horizontal .hfe-nav-menu li ul.sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
	}

	.ac-footer .e-con-inner {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.ac-header-main > .e-con-inner {
		min-height: 64px;
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.ac-header-brand img {
		width: 172px !important;
	}

	.ac-header-brand {
		flex-basis: 178px !important;
	}

	.ac-search-toggle {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.ac-footer > .e-con-inner {
		gap: 34px !important;
	}

	.ac-footer-brand,
	.ac-footer-col {
		flex: 1 1 100% !important;
		width: 100% !important;
	}

	.ac-footer-bottom > .e-con-inner {
		align-items: flex-start !important;
	}
}

/* Keep page widgets flush inside the Elementor canvas. */
.elementor-widget-html > .elementor-widget-container {
	width: 100%;
}

.elementor-widget-html .ac-legacy {
	width: 100%;
}

/* Imported legacy widgets must stay full-width on narrow screens. */
.ac-elementor-page .elementor-element-330e574 {
	flex-direction: column;
	align-items: stretch;
}

.ac-elementor-page .elementor-widget-html,
.ac-elementor-page .elementor-widget-text-editor {
	min-width: 0;
	max-width: 100%;
}

.ac-elementor-page .ac-legacy {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: normal;
}

.ac-elementor-page .ac-legacy li,
.ac-elementor-page .ac-legacy p,
.ac-elementor-page .ac-legacy td,
.ac-elementor-page .ac-legacy th {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ac-elementor-page .elementor-widget-text-editor,
.ac-elementor-page .elementor-widget-text-editor * {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: normal;
}

@media (max-width: 767px) {
	.ac-elementor-page .ac-legacy table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Mobile drawer: lock background scroll while open (QA-01) */
html.ac-nav-open,
html.ac-nav-open body {
	overflow: hidden !important;
	touch-action: none;
}

html.ac-nav-open .ac-nav .hfe-nav-menu__layout-horizontal.ac-menu-open {
	touch-action: pan-y;
}

/* Mobile search panel: keep inside viewport (QA-02) */
@media (max-width: 767px) {
	.ac-search-panel {
		position: fixed;
		top: 74px;
		left: 12px;
		right: 12px;
		width: auto;
	}
}

/* Mobile tap-target polish */
@media (max-width: 767px) {
	.ac-search-toggle {
		height: 44px;
		width: 44px;
	}

	.ac-footer .elementor-widget-text-editor a,
	.ac-footer .elementor-icon-list-item a {
		display: inline-block;
		padding: 9px 0;
	}

	.ac-footer .elementor-button {
		min-height: 44px;
	}
}

/* TranslatePress language switcher (header) */
.ac-lang-widget { display: flex; align-items: center; flex: 0 0 auto; }
.ac-lang-widget .trp-language-switcher { position: relative; font-family: "DM Sans", "Noto Sans HK", sans-serif; }
.ac-lang-widget .trp-flag-image { display: none !important; }
.ac-lang-widget .trp-current-language-item__wrapper {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 13px;
	border: 1px solid #e3e8ef;
	border-radius: 999px;
	background: #fff;
	color: #0b1b2b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ac-lang-widget .trp-current-language-item__wrapper:hover { border-color: #106efd; box-shadow: 0 6px 18px rgba(16,110,253,.12); }
.ac-lang-widget .trp-language-item { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: inherit; font: inherit; }
.ac-lang-widget .trp-language-item-name { font: inherit; color: inherit; }
.ac-lang-widget .trp-shortcode-arrow { width: 13px; height: 13px; opacity: .55; }
.ac-lang-widget .trp-shortcode-arrow path { stroke: currentColor; }
.ac-lang-widget .trp-switcher-dropdown-list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 168px;
	padding: 6px;
	border: 1px solid #e3e8ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(8,25,45,.14);
	z-index: 120;
}
.ac-lang-widget .trp-switcher-dropdown-list a { padding: 9px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.ac-lang-widget .trp-switcher-dropdown-list a:hover { background: #f2f6ff; color: #106efd; }
@media (max-width: 1024px) {
	.ac-lang-widget .trp-current-language-item__wrapper { min-height: 38px; padding: 0 10px; font-size: 12px; }
}

@media (max-width: 767px) {
	.ac-header-main > .e-con-inner { padding-left: 14px !important; padding-right: 10px !important; gap: 8px !important; }
	.ac-header-brand img { width: 148px !important; }
	.ac-lang-widget .trp-language-item-name { display: none; }
	.ac-lang-widget .trp-current-language-item__wrapper { padding: 0 9px; min-height: 36px; gap: 4px; }
	.ac-lang-widget .trp-current-language-item__wrapper::before { content: "EN"; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
	html[lang="zh-HK"] .ac-lang-widget .trp-current-language-item__wrapper::before { content: "繁"; }
	.ac-lang-widget .trp-switcher-dropdown-list { min-width: 148px; }
	.ac-lang-widget .trp-switcher-dropdown-list .trp-language-item-name { display: inline; }
	.ac-search-toggle { width: 38px !important; height: 38px !important; }
}

.ac-lang-widget .trp-language-switcher[aria-hidden="true"],
.ac-lang-widget .trp-language-switcher[inert] { display: none !important; }

/* === Header parity with allcancer.com (80px, 50px gutters) === */
body .ac-header-main > .e-con-inner {
	min-height: 80px !important;
	padding: 0 50px !important;
	flex-wrap: nowrap !important;
}
body .ac-header-logo img { width: 225px !important; height: 50px !important; object-fit: contain; }
body .ac-nav .hfe-nav-menu > li.menu-item > a.hfe-menu-item,
body .ac-nav .hfe-nav-menu > li.menu-item .hfe-has-submenu-container > a.hfe-menu-item {
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase;
	padding: 10px 13px !important;
}
body .ac-header-cta .elementor-button {
	background: #106efd !important;
	color: #fff !important;
	border-radius: 4px !important;
	padding: 12px 30px !important;
	min-height: 50px;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
}
body .ac-header-cta .elementor-button::after { content: none !important; }
body .ac-header-cta .elementor-button:hover { background: #0b58d0 !important; transform: none; box-shadow: none; }
.ac-lang-widget .trp-current-language-item__wrapper { border-radius: 4px; min-height: 42px; }

/* === Footer parity (black, 4 columns) === */
body .ac-footer { background: #000 !important; color: #c9d8ea; }
body .ac-footer .ac-footer-main > .e-con-inner {
	display: grid !important;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 48px !important;
	align-items: start;
	padding: 60px 0 40px !important;
	max-width: 1384px;
	margin: 0 auto;
}
body .ac-footer .ac-footer-col { width: auto !important; max-width: none !important; }
body .ac-footer .elementor-heading-title {
	color: #fff !important;
	font-family: "Sora", "Noto Sans HK", sans-serif !important;
	font-size: 24px !important;
	line-height: 32px !important;
	font-weight: 500 !important;
	margin-bottom: 18px;
}
body .ac-footer .elementor-icon-list-item a,
body .ac-footer .elementor-widget-text-editor,
body .ac-footer .elementor-widget-text-editor p { color: #c9d8ea !important; font-size: 15px !important; line-height: 26px; }
body .ac-footer .elementor-icon-list-item a:hover { color: #fff !important; }
body .ac-footer .ac-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
body .ac-footer .ac-footer-bottom .elementor-widget-text-editor p { font-size: 13px !important; color: #9fb0c4 !important; }
@media (max-width: 1024px) {
	body .ac-footer .ac-footer-main > .e-con-inner { grid-template-columns: 1fr 1fr; gap: 32px !important; }
	body .ac-header-main > .e-con-inner { padding: 0 20px !important; }
}
@media (max-width: 767px) {
	body .ac-footer .ac-footer-main > .e-con-inner { grid-template-columns: 1fr; }
	body .ac-header-logo img { width: 150px !important; height: 34px !important; }
}

/* === Exact header geometry: 1440 frame, 80px tall, 50px gutters === */
body .ac-header-main {
	padding: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
body .ac-header-shell {
	border-bottom: 0 !important;
}
body .ac-header-main > .e-con-inner {
	max-width: 1440px !important;
	height: 80px !important;
	min-height: 80px !important;
	padding: 0 50px !important;
	gap: 0 !important;
	align-items: center !important;
}
body .ac-header-brand {
	flex: 0 0 225px !important;
	width: 225px !important;
	height: 50px !important;
	padding: 0 !important;
	align-items: center !important;
}
body .ac-header-logo,
body .ac-header-logo .elementor-widget-container {
	width: 225px !important;
	height: 50px !important;
	line-height: 0 !important;
}
body .ac-header-logo img {
	width: 225px !important;
	height: 50px !important;
	object-fit: contain !important;
}
body .ac-header-nav {
	height: 50px !important;
	padding: 0 !important;
	align-items: center !important;
}
body .ac-nav,
body .ac-nav .elementor-widget-container,
body .ac-nav .hfe-nav-menu,
body .ac-nav .hfe-nav-menu__layout-horizontal,
body .ac-nav ul.hfe-nav-menu {
	height: 50px !important;
	min-height: 50px !important;
	display: flex !important;
	align-items: center !important;
}
body .ac-nav .hfe-nav-menu > li.menu-item {
	margin: 0 10px !important;
}
body .ac-nav .hfe-nav-menu > li.menu-item:first-child { margin-left: 0 !important; }
body .ac-nav .hfe-nav-menu > li.menu-item:last-child { margin-right: 0 !important; }
body .ac-nav .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
	min-height: 44px !important;
	padding: 0 !important;
	line-height: 44px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
}
body .ac-header-actions {
	height: 50px !important;
	padding: 0 !important;
	gap: 0 !important;
	align-items: center !important;
}
body .ac-lang-widget {
	flex: 0 0 154px !important;
	width: 154px !important;
	height: 42px !important;
	margin: 0 16px 0 0 !important;
	padding: 0 !important;
}
body .ac-lang-widget .elementor-shortcode,
body .ac-lang-widget .trp-shortcode-switcher__wrapper {
	display: flex !important;
	align-items: center !important;
	width: 139px !important;
	height: 42px !important;
	line-height: 1 !important;
}
body .ac-lang-widget .trp-shortcode-overlay {
	display: inline-flex !important;
	align-items: center !important;
	width: 139px !important;
	height: 42px !important;
	padding: 0 !important;
}
body .ac-lang-widget .trp-current-language-item__wrapper {
	width: 139px !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 13px !important;
	justify-content: space-between !important;
}
body .ac-lang-widget .trp-language-item__current {
	width: auto !important;
	padding: 0 !important;
}
body .ac-search {
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 16px 0 0 !important;
}
body .ac-search .ac-search-wrap,
body .ac-search-toggle {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	padding: 0 !important;
}
body .ac-search-toggle svg {
	width: 18px !important;
	height: 18px !important;
}
body .ac-header-cta {
	flex: 0 0 168px !important;
	width: 168px !important;
	height: 50px !important;
}
body .ac-header-cta .elementor-widget-container,
body .ac-header-cta .elementor-button-wrapper {
	height: 50px !important;
}
body .ac-header-cta .elementor-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 168px !important;
	min-width: 168px !important;
	height: 50px !important;
	min-height: 50px !important;
	padding: 12px 30px !important;
	background: #106efd !important;
	color: #fff !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: .02em !important;
	text-transform: uppercase !important;
}

/* === Footer parity: subscribe row + three information columns === */
body .ac-footer {
	padding: 0 !important;
	background: #000 !important;
	color: #c9d8ea !important;
}
body .ac-footer-top {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 40px !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 1440px !important;
	margin: 0 auto !important;
	padding: 32px 10px 26px !important;
}
body .ac-footer-brandline,
body .ac-footer-newsletter {
	width: auto !important;
	max-width: none !important;
	padding: 0 20px !important;
}
body .ac-footer-brandline {
	align-items: flex-start !important;
}
body .ac-footer-logo,
body .ac-footer-logo .elementor-widget-container,
body .ac-footer-logo img {
	width: 350px !important;
	max-width: 100% !important;
	height: auto !important;
}
body .ac-footer .ac-footer-newsletter .elementor-heading-title {
	font-family: "Sora", "Noto Sans HK", sans-serif !important;
	font-size: 30px !important;
	line-height: 1.18 !important;
	font-weight: 500 !important;
	color: #fff !important;
	margin: 0 0 20px !important;
}
body .ac-footer .ac-newsletter-form {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: 100% !important;
	max-width: none !important;
	height: 55px !important;
	gap: 20px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	overflow: visible !important;
	background: transparent !important;
}
body .ac-footer .ac-newsletter-form input[type="email"] {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: 55px !important;
	padding: 10px 20px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #f4f9f6 !important;
	color: #313956 !important;
	font-size: 14px !important;
}
body .ac-footer .ac-newsletter-form input[type="email"]::placeholder {
	color: #7c8ba1 !important;
}
body .ac-footer .ac-newsletter-form button {
	flex: 0 0 auto !important;
	height: 55px !important;
	min-height: 55px !important;
	padding: 12px 30px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #106efd !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
}
body .ac-footer-main {
	display: grid !important;
	grid-template-columns: minmax(0, 1.62fr) minmax(0, .96fr) minmax(0, .6fr) !important;
	gap: 56px !important;
	align-items: start !important;
	width: 100% !important;
	max-width: 1440px !important;
	margin: 40px auto 0 !important;
	padding: 0 32px 62px !important;
}
body .ac-footer-about,
body .ac-footer-links,
body .ac-footer-cancer {
	width: auto !important;
	max-width: none !important;
	padding: 0 10px !important;
}
body .ac-footer-main .elementor-heading-title {
	font-family: "Sora", "Noto Sans HK", sans-serif !important;
	font-size: 24px !important;
	line-height: 32px !important;
	font-weight: 500 !important;
	color: #fff !important;
	margin: 0 0 16px !important;
}
body .ac-footer-about .elementor-widget-text-editor p {
	margin: 0 0 14px !important;
	font-size: 15px !important;
	line-height: 26px !important;
	color: #c9d8ea !important;
}
body .ac-footer-linklist .elementor-icon-list-items,
body .ac-footer-contact .elementor-icon-list-items {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
body .ac-footer-contact .elementor-icon-list-items {
	gap: 14px !important;
}
body .ac-footer-linklist .elementor-icon-list-item,
body .ac-footer-contact .elementor-icon-list-item {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}
body .ac-footer-linklist .elementor-icon-list-icon {
	display: none !important;
}
body .ac-footer-linklist .elementor-icon-list-text,
body .ac-footer-contact .elementor-icon-list-text {
	padding: 0 !important;
	font-size: 16px !important;
	color: #c9d8ea !important;
}
body .ac-footer-linklist .elementor-icon-list-text {
	line-height: 16px !important;
}
body .ac-footer-linklist .elementor-icon-list-item a {
	display: block !important;
	padding: 10px 0 !important;
	line-height: 16px !important;
}
body .ac-footer-contact .elementor-icon-list-text {
	line-height: 26px !important;
}
body .ac-footer-contact .elementor-icon-list-text {
	padding-left: 8px !important;
}
body .ac-footer-contact .elementor-icon-list-icon {
	display: inline-flex !important;
	width: 16px !important;
	color: #106efd !important;
}
body .ac-footer-contact .elementor-icon-list-icon i {
	font-size: 13px !important;
}
body .ac-footer-cta {
	margin-top: 4px !important;
}
body .ac-footer-cta .elementor-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 50px !important;
	padding: 12px 30px !important;
	background: #106efd !important;
	color: #fff !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
}
body .ac-footer-bottom {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 1440px !important;
	margin: 0 auto !important;
	padding: 18px 32px !important;
	border-top: 1px solid rgba(255,255,255,.12) !important;
}
body .ac-footer-bottom .elementor-widget-text-editor p {
	margin: 0 !important;
	color: #9fb0c4 !important;
	font-size: 13px !important;
	line-height: 24px !important;
}
body .ac-footer-bottom .elementor-widget-text-editor a {
	color: #9fb0c4 !important;
}

@media (max-width: 1024px) {
	body .ac-header-main > .e-con-inner {
		height: 74px !important;
		min-height: 74px !important;
		padding: 0 20px !important;
		gap: 6px !important;
	}
	body .ac-header-brand {
		order: 1 !important;
		flex: 1 1 auto !important;
		width: auto !important;
		height: 44px !important;
	}
	body .ac-header-actions {
		order: 2 !important;
		flex: 0 0 auto !important;
		width: auto !important;
		height: 42px !important;
	}
	body .ac-header-nav {
		order: 3 !important;
		flex: 0 0 40px !important;
		width: 40px !important;
		height: 40px !important;
		margin-left: 10px !important;
	}
	body .ac-header-logo,
	body .ac-header-logo .elementor-widget-container,
	body .ac-header-logo img {
		width: 154px !important;
		height: 34px !important;
	}
	body .ac-search,
	body .ac-header-cta {
		display: none !important;
	}
	body .ac-lang-widget {
		flex: 0 0 auto !important;
		width: auto !important;
		height: 38px !important;
		margin: 0 !important;
	}
	body .ac-lang-widget .elementor-shortcode,
	body .ac-lang-widget .trp-shortcode-switcher__wrapper,
	body .ac-lang-widget .trp-shortcode-overlay {
		width: auto !important;
		height: 38px !important;
	}
	body .ac-lang-widget .trp-current-language-item__wrapper {
		width: auto !important;
		min-width: 0 !important;
		height: 38px !important;
		min-height: 38px !important;
		padding: 0 10px !important;
	}
	body .ac-footer-top {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 28px !important;
		padding: 28px 20px 24px !important;
	}
	body .ac-footer-brandline,
	body .ac-footer-newsletter {
		padding: 0 !important;
	}
	body .ac-footer-main {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: 36px !important;
		margin-top: 32px !important;
		padding: 0 20px 36px !important;
	}
	body .ac-footer-about {
		grid-column: 1 / -1;
	}
	body .ac-footer-about { order: 1; }
	body .ac-footer-cancer { order: 2; }
	body .ac-footer-links { order: 3; }
	body .ac-footer-cta { display: none !important; }
	body .ac-footer-bottom {
		padding: 18px 20px !important;
	}
}

@media (max-width: 767px) {
	body .ac-header-main > .e-con-inner {
		padding: 0 10px !important;
	}
	body .ac-header-logo,
	body .ac-header-logo .elementor-widget-container,
	body .ac-header-logo img {
		width: 140px !important;
		height: 31px !important;
	}
	body .ac-footer-logo,
	body .ac-footer-logo .elementor-widget-container,
	body .ac-footer-logo img {
		width: 250px !important;
	}
	body .ac-footer .ac-footer-newsletter .elementor-heading-title {
		font-size: 24px !important;
	}
	body .ac-footer .ac-newsletter-form {
		flex-wrap: wrap !important;
		height: auto !important;
	}
	body .ac-footer .ac-newsletter-form input[type="email"] {
		flex: 1 1 100% !important;
		width: 100% !important;
	}
	body .ac-footer-main {
		grid-template-columns: minmax(0, 1fr) !important;
		padding: 0 20px 32px !important;
	}
	body .ac-footer-about {
		grid-column: auto;
	}
	body .ac-footer-bottom {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 6px !important;
	}
}

/* ============================================================
   Mobile header fix: reference-style right drawer + language pill
   Loaded last so it wins over the desktop 50px nav rules above.
   ============================================================ */
@media (max-width: 1024px) {
	/* Language switcher: show the full language name like the reference header */
	body .ac-lang-widget .trp-language-item-name {
		display: inline !important;
		font-size: 13px !important;
	}
	body .ac-lang-widget .trp-current-language-item__wrapper {
		width: auto !important;
		min-width: 0 !important;
		height: 40px !important;
		min-height: 40px !important;
		padding: 0 10px !important;
		gap: 6px !important;
		font-size: 13px !important;
	}
	body .ac-lang-widget .trp-current-language-item__wrapper::before {
		content: none !important;
		display: none !important;
	}
	body .ac-lang-widget .trp-language-item__current {
		font-size: 13px !important;
		line-height: 1 !important;
	}
	body .ac-lang-widget .trp-shortcode-arrow {
		width: 12px !important;
		height: 12px !important;
	}

	/* Right-side drawer (same geometry as allcancer.com) */
	body .ac-nav .hfe-nav-menu__layout-horizontal {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		width: 300px !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: 100vh !important;
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #ffffff !important;
		box-shadow: -18px 0 40px rgba(6, 17, 31, 0.16) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		transform: translateX(102%) !important;
		opacity: 0 !important;
		visibility: hidden !important;
		transition: transform 0.45s ease, opacity 0.35s ease, visibility 0.35s !important;
		z-index: 1000 !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal.ac-menu-open,
	body .ac-nav .hfe-nav-menu__layout-horizontal.hfe-nav-menu__open {
		transform: translateX(0) !important;
		opacity: 1 !important;
		visibility: visible !important;
		max-height: 100vh !important;
	}

	/* Menu list */
	body .ac-nav .hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu,
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 80px 0 24px !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu > li.menu-item {
		display: block !important;
		width: auto !important;
		margin: 0 8px !important;
		padding: 0 !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu > li.menu-item > a.hfe-menu-item,
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu > li.menu-item > .hfe-has-submenu-container > a.hfe-menu-item {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		height: auto !important;
		min-height: 54px !important;
		padding: 20px !important;
		border: 0 !important;
		line-height: 1.2 !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		letter-spacing: 0 !important;
		color: #000d0f !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu > li.menu-item.current-menu-item > a.hfe-menu-item {
		color: #106efd !important;
	}

	/* Submenu: collapsed by default, expands in place */
	body .ac-nav .hfe-nav-menu__layout-horizontal .hfe-has-submenu-container {
		display: flex !important;
		align-items: center !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal .hfe-has-submenu-container > a.hfe-menu-item {
		flex: 1 1 auto !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal .hfe-menu-toggle.sub-arrow {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 0 0 24px !important;
		width: 24px !important;
		height: 24px !important;
		margin: 0 20px 0 0 !important;
		font-size: 12px !important;
		color: #4c5d73 !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li ul.sub-menu {
		position: static !important;
		display: none;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 0 8px 16px !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		z-index: auto !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li .hfe-has-submenu-container.hfe-active-menu + ul.sub-menu,
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li.hfe-active-menu > ul.sub-menu {
		display: block !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li ul.sub-menu li.menu-item {
		display: block !important;
		width: auto !important;
		margin: 0 !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li ul.sub-menu li a.hfe-sub-menu-item {
		display: block !important;
		width: 100% !important;
		padding: 12px 20px !important;
		border: 0 !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		color: #000d0f !important;
	}

	/* Blue overlay behind the drawer, inside the header stacking context */
	html.ac-nav-open .ac-header-nav::after {
		content: "" !important;
		position: fixed !important;
		inset: 0 !important;
		background: rgba(16, 110, 253, 0.8) !important;
		z-index: 999 !important;
	}

	/* Hamburger button */
	body .ac-nav .hfe-nav-menu__toggle {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 40px !important;
		height: 40px !important;
		padding: 0 !important;
		color: #06111f !important;
		cursor: pointer !important;
	}
	body .ac-nav .hfe-nav-menu__toggle .hfe-nav-menu-icon {
		color: #06111f !important;
	}
	body .ac-nav .hfe-nav-menu__toggle .hfe-nav-menu-icon svg {
		width: 25px !important;
		height: 25px !important;
		fill: currentColor !important;
	}
}

/* Mobile drawer corrections */
@media (max-width: 1024px) {
	html {
		overflow-x: hidden !important;
		overflow-x: clip !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal {
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li .hfe-has-submenu-container.sub-menu-active + ul.sub-menu,
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li ul.sub-menu.sub-menu-open {
		display: block !important;
		height: auto !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal ul.hfe-nav-menu li ul.sub-menu.sub-menu-open {
		opacity: 1 !important;
		visibility: visible !important;
	}
	body .ac-nav .hfe-nav-menu__layout-horizontal .hfe-menu-toggle.sub-arrow {
		color: #06111f !important;
	}
}

/* Ensure the open drawer keeps full viewport height (beats the legacy toggle sibling rule) */
@media (max-width: 1024px) {
	html body .ac-nav .hfe-nav-menu__layout-horizontal.ac-menu-open,
	html body .ac-nav .hfe-nav-menu__layout-horizontal.hfe-nav-menu__open,
	html body .ac-nav .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal {
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		transform: translateX(0) !important;
		opacity: 1 !important;
		visibility: visible !important;
		display: block !important;
	}
}


/* Overlay must cover the full visual viewport */
@media (max-width: 1024px) {
	html.ac-nav-open .ac-header-nav::after {
		width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		inset: 0 !important;
	}
}



/* 2026-10-30 language switcher click/tap fix */
body .ac-lang-widget .trp-shortcode-switcher.trp-shortcode-overlay {
  overflow: visible !important;
}
body .ac-lang-widget .trp-shortcode-overlay .trp-switcher-dropdown-list {
  z-index: 100000 !important;
}
/* 2026-10-30: keep the closed TranslatePress dropdown fully hidden.
   The plugin removes [hidden]/[inert] when the switcher opens. */
body .ac-lang-widget .trp-switcher-dropdown-list[hidden],
body .ac-lang-widget .trp-switcher-dropdown-list[inert] {
	display: none !important;
}