/* MT Hero Section — front-end styles */

.mt-hero {
	position: relative;
	/* Break out of any theme/page wrapper while remaining centred in the viewport. */
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	padding: 80px 24px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	font-family: "Ubuntu", sans-serif;
	height: 450px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.wpb-content-wrapper:has(.mt-hero) {
	margin: 0;
	max-width: none;
	width: 100%;
}

.wpb-content-wrapper:has(.mt-hero) {
	margin: 0;
	max-width: none;
	width: 100%;
}

.entry-content:has(.mt-hero) {
	padding: 0;
}

.mt-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 50vw;
	width: 50vw;
	margin: 0 1vw;
	display: flex;
	align-items: center;
	gap: 48px;
}

/* Dark overlay for the background-image layout */
.mt-hero--overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 0;
}

.mt-hero__content {
	flex: 1 1 0;
	min-width: 0;
}

.mt-hero__media {
	flex: 1 1 0;
	min-width: 0;
}

/* Image left = reverse the flex order, keeps DOM order for screen readers */
.mt-hero--left .mt-hero__inner {
	flex-direction: row-reverse;
}

/* Background layout: single centred column */
.mt-hero--bg .mt-hero__inner {
	display: block;
}

.mt-hero--bg .mt-hero__content {
	max-width: 1200px;
}

/* Background text position option */
.mt-hero--bg-text-right {
	justify-content: flex-end;
}

.mt-hero--bg-text-left {
	justify-content: flex-start;
}

.mt-hero--align-center .mt-hero__content {
	text-align: center;
}

.mt-hero--align-center.mt-hero--bg .mt-hero__content {
	margin-inline: auto;
}

.mt-hero--align-center .mt-hero__buttons {
	justify-content: center;
}

.mt-hero__heading {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.15;
	color: #0aadd6;
	font-weight: 700;
}

.mt-hero__heading span,
.mt-hero__subheading span {
	font-size: inherit;
	line-height: inherit;
}

.mt-hero__subheading {
	margin: 0 0 1em;
	font-size: 30px;
	font-weight: 500;
	opacity: .9;
	color: #ffffff;
	line-height: 1.2;
}

.mt-hero__text {
	margin-bottom: 1.75em;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #4a4a4a;
}

.mt-hero__text :last-child {
	margin-bottom: 0;
}

.mt-hero__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---- Buttons ---- */
.mt-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 2.5em;
}

.mt-hero__btn {
	display: inline-block;
	/*padding: 14px 32px;*/
	padding: 10px 25px;
	border: 2px solid transparent;
	border-radius: 25px;
	font-weight: 300;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity .2s ease, transform .2s ease;
	font-size: 16px;
}

.mt-hero__btn:hover,
.mt-hero__btn:focus {
	opacity: .85;
	transform: translateY(-1px);
}

/* Visible keyboard focus — do not remove */
.mt-hero__btn:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Defaults, overridden by the client's colorpicker values via inline style */
.mt-hero__btn--filled {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.mt-hero__btn--outline {
	background: transparent;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.mt-hero__btn--text {
	padding: 14px 0;
	background: none;
	border: 0;
	text-decoration: underline;
	color: #1a1a1a;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
	.mt-hero {
		padding: 56px 20px;
	}

	.mt-hero__inner {
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.mt-hero {
		padding: 44px 18px;
		height: auto;
	}

	/* Stack, and always put the image below the text on mobile */
	.mt-hero__inner,
	.mt-hero--left .mt-hero__inner {
		flex-direction: column;
	}

	.mt-hero__content,
	.mt-hero__media {
		width: 100%;
	}

	.mt-hero__buttons {
		align-items: stretch;
	}

	.mt-hero__btn {
		text-align: center;
		font-size: 14px;
		padding: 8px 16px;
	}

	.mt-hero__btn--text {
		text-align: inherit;
	}

	.mt-hero__subheading {
		font-size: 15px;
	}

	.mt-hero__heading {
		font-size: 20px;
	}

	.mt-hero--bg .mt-hero__content {
		max-width: 50vw;
	}
}

/* @media (min-width: 768px) {
	.mt-hero--bg {
		background-position: right;
		background-size: contain;
		background-repeat: no-repeat;
	}
} */

@media (prefers-reduced-motion: reduce) {
	.mt-hero__btn {
		transition: none;
	}

	.mt-hero__btn:hover,
	.mt-hero__btn:focus {
		transform: none;
	}
}

/* Hide the theme's default title/breadcrumb panel when MT Hero exists */
body.mt-has-hero .top_panel_title_wrap {
	display: none !important;
}