/*
Theme Name: thub-asia
Theme URI: https://thub.asia/
Author: KKCSI
Author URI: https://kkcsi.com/
Description: Custom WordPress theme converted from https://thub.asia/ (Trinity Hub)
Version: 1.0.1
Text Domain: thub-asia
*/

body {
    margin: 0;
    padding: 0;
}

/* Conversion, search and accessibility enhancements */
.thub-skip-link{position:fixed;top:8px;left:8px;z-index:10010;padding:10px 16px;background:#fff;color:#032536;font-weight:700;border-radius:6px;transform:translateY(-150%)}
.thub-skip-link:focus{transform:translateY(0)}
:where(a,button,input,textarea):focus-visible{outline:3px solid #55c8f3!important;outline-offset:3px}
.thub-programme-tools{max-width:680px;margin:0 auto 30px}.thub-programme-tools label{display:block;margin-bottom:8px;font-weight:700;color:#062c40}.thub-programme-tools input,.thub-contact-form input,.thub-contact-form textarea{box-sizing:border-box;width:100%;padding:13px 15px;border:1px solid #b9c8cf;border-radius:8px;background:#fff;color:#102a36;font:inherit}.thub-programme-tools input:focus,.thub-contact-form input:focus,.thub-contact-form textarea:focus{border-color:#00a7d5;box-shadow:0 0 0 3px rgba(0,167,213,.15)}
.thub-contact-form{max-width:760px;margin:34px auto 0;padding:28px;border:1px solid #dce7eb;border-radius:14px;background:#f7fbfc}.thub-contact-form label{display:block;margin:0 0 18px;font-weight:700;color:#062c40}.thub-contact-form label input,.thub-contact-form label textarea{display:block;margin-top:7px;font-weight:400}.thub-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.thub-contact-form button{border:0;border-radius:8px;padding:14px 24px;background:#00a9d7;color:#fff;font:700 16px inherit;cursor:pointer}.thub-contact-form button:hover{background:#007fa7}.thub-honeypot{position:absolute!important;left:-10000px!important}.thub-form-message{max-width:760px;margin:25px auto 0;padding:14px 18px;border-radius:8px}.thub-form-message.success{background:#e5f7ed;color:#176b3a}.thub-form-message.error{background:#fff0f0;color:#9d2727}
@media(max-width:600px){.thub-form-grid{grid-template-columns:1fr}.thub-contact-form{padding:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Ensure header navigation is always clickable and on top */
header.pagelayer-header,
.p-mym557,
.pagelayer-wp-menu-container,
.pagelayer-wp_menu-ul,
.pagelayer-wp_menu-ul li,
.pagelayer-wp_menu-ul li a {
    position: relative !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Empty mega-menus must never intercept clicks */
.pagelayer-mega-menu:empty {
    display: none !important;
    pointer-events: none !important;
}

/* Background video must not block pointer events */
.pagelayer-background-video {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Ensure menu anchor text is clearly readable */
.pagelayer-wp_menu-ul > li > a {
    text-decoration: none !important;
}

.thub-onepage-section {
	scroll-margin-top: 110px;
}

.thub-section-content {
	max-width: 1170px;
	margin: 0 auto;
	padding: 90px 30px;
	overflow: hidden;
}

.thub-onepage-section:nth-of-type(even) {
	background: #f4fafc;
}

.thub-section-title {
	margin: 0 0 45px !important;
	color: #13547e !important;
	font-size: 42px !important;
	font-weight: 700 !important;
	text-align: center;
}

.thub-section-content > h1,
.thub-section-content > h2,
.thub-section-content > h3,
.thub-section-content > h4,
.thub-section-content > h5,
.thub-section-content > h6 {
	color: #13547e;
}

.thub-section-content img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.thub-section-content {
		padding: 65px 20px;
	}

	.thub-section-title {
		font-size: 34px !important;
	}
}

/* Polished one-page layout */
body.pagelayer-body {
	background: #eef7fa;
	color: #243744;
}

header.pagelayer-header {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	left: 0 !important;
	z-index: 9999 !important;
	box-shadow: 0 6px 24px rgba(6, 64, 102, 0.2);
}

body.pagelayer-body {
	padding-top: 84px;
}

.pagelayer-header .p-c4c8057 {
	width: 260px !important;
	flex: 0 0 260px !important;
}

.pagelayer-header .p-p0h7792 {
	width: auto !important;
	flex: 1 1 auto !important;
}

.pagelayer-header .p-mym557 > .pagelayer-row-holder {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
}

.pagelayer-header .p-srd98 .pagelayer-ele-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.pagelayer-header .p-srd98 img {
	display: block;
	width: 48px;
	max-width: 48px !important;
	height: 48px;
	object-fit: contain;
}

.thub-site-title {
	color: #fff;
	font-family: "Muli", "Noto Sans", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.4px;
	white-space: nowrap;
}

/* Hero */
.thub-hero {
	position: relative;
	display: flex;
	min-height: calc(100vh - 84px);
	align-items: center;
	overflow: hidden;
	background: #06283d url("assets/images/Main-Page-3.png") center center / cover no-repeat;
	color: #fff;
	scroll-margin-top: 84px;
}

.thub-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(3, 24, 37, 0.94) 0%, rgba(5, 48, 73, 0.82) 48%, rgba(6, 64, 102, 0.35) 100%),
		linear-gradient(0deg, rgba(3, 24, 37, 0.28), transparent 50%);
}

.thub-hero-inner {
	position: relative;
	z-index: 1;
	width: min(1170px, calc(100% - 48px));
	margin: 0 auto;
	padding: 96px 0 72px;
}

.thub-hero-kicker {
	display: inline-flex;
	margin: 0 0 20px !important;
	padding: 8px 14px;
	border: 1px solid rgba(85, 200, 243, 0.55);
	border-radius: 999px;
	background: rgba(5, 48, 73, 0.62);
	color: #7edbff;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.2 !important;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.thub-hero h1 {
	max-width: 850px;
	margin: 0 !important;
	color: #fff !important;
	font-size: clamp(46px, 5.4vw, 78px) !important;
	font-weight: 600 !important;
	line-height: 1.06 !important;
	letter-spacing: -1.8px;
}

.thub-hero h1 span {
	color: #55c8f3;
}

.thub-hero-copy {
	max-width: 700px;
	margin: 26px 0 0 !important;
	color: rgba(255, 255, 255, 0.88);
	font-size: 19px !important;
	line-height: 1.7 !important;
}

.thub-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.thub-hero-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 0 25px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: "Noto Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.thub-hero-button:hover {
	transform: translateY(-2px);
}

.thub-hero-button-primary {
	background: #31b7e9;
	box-shadow: 0 12px 28px rgba(49, 183, 233, 0.28);
	color: #04283d !important;
}

.thub-hero-button-primary:hover {
	background: #72d4f7;
}

.thub-hero-button-secondary {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.06);
	color: #fff !important;
}

.thub-hero-button-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
}

.thub-hero-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 54px;
}

.thub-hero-highlights span {
	display: flex;
	min-height: 60px;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	background: rgba(3, 24, 37, 0.58);
	backdrop-filter: blur(8px);
	font-size: 14px;
}

.thub-hero-highlights strong {
	color: #55c8f3;
	font-size: 18px;
}

/* Replaced by the purpose-built hero above. */
.p-csb346 {
	display: none !important;
}

.thub-section-content {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(19, 84, 126, 0.1);
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(6, 64, 102, 0.1);
}

.thub-onepage-section {
	padding: 55px 24px;
}

.thub-onepage-section:nth-of-type(even) {
	background: linear-gradient(135deg, #eef8fb 0%, #dff1f6 100%);
}

.thub-section-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	margin: 16px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #1e76af, #31b7e9);
}

.thub-section-content > h2:not(.thub-section-title),
.thub-section-content > h3 {
	margin-top: 34px;
	margin-bottom: 14px;
	color: #13547e !important;
	line-height: 1.25;
}

.thub-section-content > p {
	margin: 0 0 18px;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	line-height: 1.85;
}

/* Footer refinement */
.pagelayer-footer .p-nro3884 {
	background: linear-gradient(135deg, #071e2c 0%, #0a3d5b 100%) !important;
	padding: 64px 24px 48px !important;
}

.pagelayer-footer .p-nro3884 > .pagelayer-row-holder {
	display: flex;
	gap: 52px;
	align-items: flex-start;
}

.pagelayer-footer .p-nro3884 .pagelayer-col {
	flex: 1 1 0;
}

.pagelayer-footer .p-nro3884 .p-cpj5594 {
	flex-basis: 46%;
}

.pagelayer-footer h5,
.pagelayer-footer .pagelayer-wp-title-heading {
	color: #55c8f3 !important;
}

.pagelayer-footer .pagelayer-list-li a,
.pagelayer-footer .pagelayer-phone-holder a,
.pagelayer-footer .pagelayer-email-holder a {
	display: inline-flex;
	padding: 5px 0;
	transition: color 180ms ease, transform 180ms ease;
}

.pagelayer-footer .pagelayer-list-li a:hover,
.pagelayer-footer .pagelayer-phone-holder a:hover,
.pagelayer-footer .pagelayer-email-holder a:hover {
	color: #55c8f3 !important;
	transform: translateX(4px);
}

.pagelayer-footer .p-gw35545 {
	background: #041722 !important;
	padding: 14px 24px !important;
}

.pagelayer-footer .p-f9n1885 .pagelayer-copyright {
	text-align: center !important;
}

.thub-back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9998;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #1e76af, #0b4f79);
	box-shadow: 0 10px 26px rgba(6, 64, 102, 0.34);
	color: #fff;
	font-size: 25px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.thub-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.thub-back-to-top:hover {
	box-shadow: 0 14px 30px rgba(6, 64, 102, 0.46);
}

.thub-menu-toggle {
	display: none;
}

@media (max-width: 768px) {
	.pagelayer-header {
		min-height: 68px;
	}

	.pagelayer-header .p-mym557 {
		padding: 8px 14px !important;
	}

	.pagelayer-header .p-mym557 > .pagelayer-row-holder {
		display: flex !important;
		flex-flow: row nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		min-height: 52px;
	}

	.pagelayer-header .p-c4c8057 {
		flex: 1 1 auto !important;
		width: auto !important;
	}

	.pagelayer-header .p-p0h7792 {
		position: static !important;
		flex: 0 0 52px !important;
		width: 52px !important;
	}

	.pagelayer-header .p-srd98 {
		margin: 0 !important;
	}

	.pagelayer-header .p-srd98 img {
		display: block;
		width: 48px;
		max-width: 48px !important;
		height: 48px;
		object-fit: contain;
	}

	.pagelayer-header .p-srd98 .pagelayer-image-holder {
		text-align: left;
	}

	.thub-site-title {
		font-size: 19px;
		letter-spacing: 0.2px;
	}

	.thub-hero {
		min-height: auto;
		background-position: 58% center;
	}

	.thub-hero-overlay {
		background: linear-gradient(90deg, rgba(3, 24, 37, 0.96), rgba(5, 48, 73, 0.82));
	}

	.thub-hero-inner {
		width: calc(100% - 36px);
		padding: 110px 0 58px;
	}

	.thub-hero-kicker {
		font-size: 11px !important;
		letter-spacing: 1.3px;
	}

	.thub-hero h1 {
		font-size: clamp(38px, 11vw, 54px) !important;
		letter-spacing: -1px;
	}

	.thub-hero-copy {
		font-size: 16px !important;
		line-height: 1.65 !important;
	}

	.thub-hero-actions {
		flex-direction: column;
	}

	.thub-hero-button {
		width: 100%;
	}

	.thub-hero-highlights {
		gap: 8px;
		margin-top: 38px;
	}

	.thub-hero-highlights span {
		width: 100%;
		min-height: 50px;
	}

	.thub-menu-toggle {
		position: relative;
		z-index: 10002;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		margin-left: auto;
		cursor: pointer;
	}

	.thub-menu-toggle i {
		position: relative;
		display: block;
		width: 28px;
		height: 3px;
		padding: 0 !important;
		border-radius: 99px;
		background: #fff !important;
		font-size: 0 !important;
		transition: background 180ms ease;
	}

	.thub-menu-toggle i::before,
	.thub-menu-toggle i::after {
		content: '';
		position: absolute;
		left: 0;
		width: 28px;
		height: 3px;
		border-radius: 99px;
		background: #fff;
		transition: transform 180ms ease, top 180ms ease;
	}

	.thub-menu-toggle i::before { top: -9px; }
	.thub-menu-toggle i::after { top: 9px; }

	.thub-menu-open .thub-menu-toggle i { background: transparent !important; }
	.thub-menu-open .thub-menu-toggle i::before { top: 0; transform: rotate(45deg); }
	.thub-menu-open .thub-menu-toggle i::after { top: 0; transform: rotate(-45deg); }

	.pagelayer-header .p-yqr9086,
	.pagelayer-header .pagelayer-wp-menu-holder {
		position: static !important;
	}

	.pagelayer-header .p-yqr9086 {
		animation: none !important;
		transform: none !important;
	}

	.pagelayer-wp-menu-container {
		position: fixed !important;
		top: 84px !important;
		right: 0 !important;
		left: 0 !important;
		display: none !important;
		width: 100% !important;
		background: rgba(4, 23, 34, 0.98) !important;
		box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
	}

	.thub-menu-open .pagelayer-wp-menu-container,
	body.thub-menu-open .pagelayer-wp-menu-container {
		display: block !important;
	}

	.pagelayer-wp_menu-close { display: none !important; }

	.pagelayer-wp_menu-ul {
		display: flex !important;
		flex-direction: column;
		margin: 0 !important;
		padding: 10px 18px 18px !important;
	}

	.pagelayer-wp_menu-ul > li > a {
		justify-content: flex-start !important;
		padding: 14px 12px !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		color: #fff !important;
	}

	.pagelayer-wp_menu-ul > li > a:hover,
	.pagelayer-wp_menu-ul > li.current-menu-item > a {
		color: #55c8f3 !important;
	}

	.thub-onepage-section {
		padding: 28px 14px;
		scroll-margin-top: 78px;
	}

	body.pagelayer-body {
		padding-top: 84px;
	}

	.thub-section-content {
		padding: 50px 22px;
		border-radius: 16px;
	}

	.thub-section-content > p {
		font-size: 15px;
		line-height: 1.75;
	}

	.pagelayer-footer .p-nro3884 {
		padding: 48px 24px 34px !important;
	}

	.pagelayer-footer .p-nro3884 > .pagelayer-row-holder {
		display: block !important;
	}

	.pagelayer-footer .p-nro3884 .pagelayer-col {
		width: 100% !important;
		padding: 0 0 26px !important;
		margin: 0 0 26px !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.pagelayer-footer .p-nro3884 .pagelayer-col:last-child {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
		border-bottom: 0;
	}

	.thub-back-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}
