/* =====================================================================
 * MindLift — Connections-style design system
 * ===================================================================== */

:root {
	--ml-teal: #2AA7A0;
	--ml-teal-dark: #1E8A84;
	--ml-teal-soft: #E8F5F4;
	--ml-accent: #E8824E;
	--ml-accent-dark: #D16A38;
	--ml-navy: #1F3A4D;
	--ml-navy-dark: #162A38;
	--ml-ink: #222B33;
	--ml-muted: #5C6B76;
	--ml-cream: #F7F4EE;
	--ml-line: #E6E1D8;
	--ml-white: #ffffff;
	--ml-shadow: 0 10px 30px rgba(31, 58, 77, 0.08);
	--ml-shadow-lg: 0 20px 50px rgba(31, 58, 77, 0.12);
	--ml-radius: 14px;
	--ml-radius-lg: 20px;
	--ml-font-head: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--ml-font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--ml-container: 1200px;

	/* Override Kadence palette: replace olive primary (#7f834e) and olive hover (#9a9e5d)
	   with MindLift teal so Kadence-driven button hovers and palette-1/2 elements stay on-brand. */
	--global-palette1: #2AA7A0;       /* was #7f834e — MindLift teal */
	--global-palette2: #1E8A84;       /* was #9a9e5d — MindLift teal-dark for hover */
	--global-palette1rgb: 42, 167, 160;
	--global-palette2rgb: 30, 138, 132;
}

/* ---------- Reset-ish ---------- */
.ml-site,
.ml-site * { box-sizing: border-box; }
.ml-site { font-family: var(--ml-font-body); color: var(--ml-ink); line-height: 1.6; }
.ml-site h1, .ml-site h2, .ml-site h3, .ml-site h4, .ml-site h5, .ml-site h6,
.ml-site .wp-block-heading {
	font-family: var(--ml-font-head);
	color: var(--ml-navy);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0 0 0.6em;
}
.ml-site a { color: var(--ml-teal); text-decoration: none; transition: color 150ms ease; }
.ml-site a:hover { color: var(--ml-teal-dark); }
.ml-site img { max-width: 100%; height: auto; display: block; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 9999; }

/* =====================================================================
 * Header
 * ===================================================================== */
.ml-header { position: sticky; top: 0; z-index: 9999; background: #fff; box-shadow: 0 1px 0 var(--ml-line); }

.ml-header__utility {
	background: var(--ml-navy);
	color: #CFD8DE;
	font-size: 0.82rem;
}
.ml-header__utility-inner {
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: 0.55rem 1.5rem;
	display: flex;
	gap: 0.85rem;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
}
.ml-utility-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #CFD8DE;
}
.ml-utility-item:hover { color: #fff; }
.ml-utility-sep { color: #425C73; }

.ml-utility-btns {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}
.ml-utility-btn {
	display: inline-block;
	padding: 0.4rem 1.1rem;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.6;
	transition: opacity .15s;
}
.ml-utility-btn:hover { opacity: .85; color: #fff !important; }
.ml-utility-btn--accent   { background: var(--ml-accent); }
.ml-utility-btn--yellow   { background: #f59e0b; }
.ml-utility-btn--primary  { background: var(--ml-teal); }

.ml-header__main { background: #fff; position: relative; }
.ml-header__inner {
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: 0.9rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.ml-header__brand { flex: 0 0 auto; }
.ml-header__brand .custom-logo,
.ml-header__brand img { max-height: 56px; width: auto; }
.ml-header__wordmark {
	font-family: var(--ml-font-head);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ml-navy);
}

.ml-header__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.ml-nav {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 0.25rem;
	align-items: center;
}
.ml-nav li { position: relative; }
.ml-nav a {
	display: block;
	font-family: var(--ml-font-head);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--ml-navy);
	padding: 0.6rem 0.95rem;
	border-radius: 8px;
	white-space: nowrap;
}
.ml-nav a:hover,
.ml-nav .current-menu-item > a,
.ml-nav .current_page_item > a {
	color: var(--ml-teal);
	background: var(--ml-teal-soft);
}

/* submenus — level 2 (drops down) */
.ml-nav .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: 12px;
	box-shadow: var(--ml-shadow);
	padding: 0.5rem;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 160ms ease;
	z-index: 50;
}
.ml-nav li:hover > .sub-menu,
.ml-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ml-nav .sub-menu a { font-size: 0.9rem; padding: 0.55rem 0.75rem; }

/* submenus — level 3 (flies out right) */
.ml-nav .sub-menu .sub-menu {
	top: -0.5rem; left: 100%;
	transform: translateX(6px);
	margin-left: 4px;
}
.ml-nav .sub-menu li:hover > .sub-menu,
.ml-nav .sub-menu li:focus-within > .sub-menu { transform: none; }
/* arrow indicator on items that have a fly-out */
.ml-nav .sub-menu .menu-item-has-children > a {
	display: flex; justify-content: space-between; align-items: center;
}
.ml-nav .sub-menu .menu-item-has-children > a::after {
	content: "›"; font-size: 1.1em; line-height: 1; flex-shrink: 0; margin-left: 0.5rem; opacity: 0.5;
}

.ml-header__cta { flex: 0 0 auto; }

/* Mobile toggle */
.ml-header__toggle {
	display: none;
	flex: 0 0 auto;
	width: 42px; height: 42px;
	background: transparent;
	border: 1px solid var(--ml-line);
	border-radius: 10px;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.ml-header__toggle span {
	display: block;
	width: 20px; height: 2px; background: var(--ml-navy); border-radius: 2px;
}
.ml-header__mobile[hidden] { display: none !important; }
.ml-header__mobile { display: none; }

/* Header search */
.ml-header__search-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--ml-line);
	background: #fff;
	color: var(--ml-navy);
	border-radius: 999px;
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	margin-left: 0.5rem;
	transition: all .15s;
}
.ml-header__search-btn svg {
	flex: 0 0 auto;
	color: var(--ml-teal);
	transition: color .15s;
}
.ml-header__search-btn:hover,
.ml-header__search-btn[aria-expanded="true"] {
	background: var(--ml-teal-soft);
	border-color: var(--ml-teal);
	color: var(--ml-teal);
}
.ml-header__search-btn:hover svg,
.ml-header__search-btn[aria-expanded="true"] svg {
	color: var(--ml-teal);
}

.ml-header__search-panel[hidden] { display: none !important; }
.ml-header__search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid var(--ml-line);
	box-shadow: 0 12px 24px rgba(0,0,0,.06);
	z-index: 60;
}
.ml-header__search-form {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: 1rem 1.5rem;
}
.ml-header__search-icon {
	flex: 0 0 auto;
	color: var(--ml-muted);
}
.ml-header__search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--ml-line);
	background: #fff;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--ml-navy);
	-webkit-appearance: none;
	appearance: none;
}
.ml-header__search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--ml-teal);
	box-shadow: 0 0 0 3px var(--ml-teal-soft);
}
.ml-header__search-submit {
	flex: 0 0 auto;
	border: 0;
	background: var(--ml-teal);
	color: #fff;
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.65rem 1.1rem;
	border-radius: 8px;
	cursor: pointer;
}
.ml-header__search-submit:hover { background: var(--ml-navy); }
.ml-header__search-close {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: var(--ml-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}
.ml-header__search-close:hover { background: var(--ml-cream); color: var(--ml-navy); }

.ml-header__search-form--mobile {
	padding: 0.25rem 0 1rem;
	border-bottom: 1px solid var(--ml-line);
	margin-bottom: 0.5rem;
}
.ml-header__search-form--mobile input[type="search"] { font-size: 0.95rem; }

@media (max-width: 960px) {
	.ml-utility-btns { display: none; }
	.ml-header__mobile:not([hidden]) {
		display: block;
		border-top: 1px solid var(--ml-line);
		padding: 1rem 1.5rem 1.5rem;
		background: #fff;
	}
	.ml-header__mobile .ml-nav { flex-direction: column; align-items: stretch; gap: 0; }
	.ml-header__mobile .ml-nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--ml-line); border-radius: 0; }
	.ml-header__mobile .ml-btn { margin-top: 0.6rem; }

	/* Mobile submenus: accordion — collapsed by default, tap toggle to expand */
	.ml-header__mobile .ml-nav .sub-menu {
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none !important;
		border: none !important;
		border-left: 3px solid var(--ml-teal-soft) !important;
		background: transparent !important;
		padding: 0.25rem 0 0.25rem 0.75rem !important;
		margin: 0 !important;
		list-style: none !important;
		display: none !important;
	}
	.ml-header__mobile .ml-nav .sub-menu .sub-menu {
		border-left-color: var(--ml-line) !important;
		padding-left: 0.75rem !important;
	}
	.ml-header__mobile .ml-nav li.menu-item-has-children.is-open > .sub-menu {
		display: block !important;
	}
	/* Chevron indicator on parent links */
	.ml-header__mobile .ml-nav .menu-item-has-children > a::after {
		content: "▾";
		float: right;
		margin-left: 0.5rem;
		transition: transform 150ms ease;
		opacity: 0.5;
	}
	.ml-header__mobile .ml-nav .menu-item-has-children.is-open > a::after {
		transform: rotate(180deg);
	}
	.ml-header__mobile .ml-nav .sub-menu a {
		padding: 0.7rem 0.5rem !important; font-size: 0.9rem;
	}
}

/* =====================================================================
 * Buttons
 * ===================================================================== */
.ml-btn,
.ml-site .wp-block-button .wp-block-button__link,
.ml-site .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	padding: 0.85em 1.75em;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
	text-decoration: none;
}
.ml-btn--primary,
.ml-site .is-style-fill.ml-btn-primary .wp-block-button__link,
.ml-site .wp-block-button.ml-btn-primary .wp-block-button__link {
	background: var(--ml-teal) !important;
	color: #fff !important;
	border-color: var(--ml-teal) !important;
}
.ml-btn--primary:hover,
.ml-site .wp-block-button.ml-btn-primary .wp-block-button__link:hover {
	background: var(--ml-teal-dark) !important;
	border-color: var(--ml-teal-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
.ml-btn--accent {
	background: var(--ml-accent) !important;
	color: #fff !important;
	border-color: var(--ml-accent) !important;
}
.ml-btn--accent:hover {
	background: var(--ml-accent-dark) !important;
	border-color: var(--ml-accent-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
/* Secondary (white / outlined-dark) button variant */
.ml-btn--secondary {
	background: #fff !important;
	color: var(--ml-navy) !important;
	border-color: var(--ml-navy) !important;
}
.ml-btn--yellow {
	background: #F4B740 !important;
	color: var(--ml-navy) !important;
	border-color: #F4B740 !important;
}
.ml-btn--yellow:hover {
	background: #E0A22A !important;
	border-color: #E0A22A !important;
	color: var(--ml-navy) !important;
	transform: translateY(-1px);
}
.ml-btn--secondary:hover {
	background: var(--ml-navy) !important;
	color: #fff !important;
	border-color: var(--ml-navy) !important;
}

@media (min-width: 961px) {
	.ml-header__cta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 960px) {
	.ml-header__nav,
	.ml-header__cta { display: none !important; }
	.ml-header__toggle { display: inline-flex !important; margin-left: auto; }
}

/* =====================================================================
 * Kadence Simple Share — floating left column, white icons
 * ===================================================================== */
.kt_simple_share_container {
	position: fixed !important;
	top: 50% !important;
	left: 14px !important;
	right: auto !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	z-index: 90 !important;
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 0.5rem !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	max-width: 52px !important;
}
.kt_simple_share_container .kt_simple_share_container {
	position: static !important;
	transform: none !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}
.kt_simple_share_container a,
.kt_simple_share_container .kt_facebook_share,
.kt_simple_share_container .kt_twitter_share,
.kt_simple_share_container .kt_linkedin_share,
.kt_simple_share_container .kt_pinterest_share,
.kt_simple_share_container .kt_reddit_share,
.kt_simple_share_container .kt_email_share,
.kt_simple_share_container .kt_tumblr_share,
.kt_simple_share_container .kt_whatsapp_share,
.kt_simple_share_container .kt_xing_share,
.kt_simple_share_container .kt_vk_share,
.kt_simple_share_container .kt_digg_share,
.kt_simple_share_container .kt_stumbleupon_share {
	background: rgba(31, 58, 77, 0.55) !important;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.28) !important;
	border-radius: 50% !important;
	width: 38px !important;
	height: 38px !important;
	line-height: 38px !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 150ms ease, transform 150ms ease !important;
	backdrop-filter: blur(4px) !important;
}
.kt_simple_share_container a:hover { background: var(--ml-teal) !important; transform: translateX(2px) !important; }
.kt_simple_share_container svg,
.kt_simple_share_container a svg,
.kt_simple_share_container .kt-social-svg-icon,
.kt_simple_share_container a path,
.kt_simple_share_container svg path {
	fill: #fff !important;
	color: #fff !important;
}
.kt_simple_share_container .kt_before_share_text { display: none !important; }
@media (max-width: 900px) { .kt_simple_share_container { display: none !important; } }

/* =====================================================================
 * Hero flush against header — kill Kadence container padding on this page
 * ===================================================================== */
body.ml-fullwidth .content-container,
body.ml-fullwidth .site-container,
body.ml-fullwidth .entry-content-wrap,
body.ml-fullwidth .entry-content,
body.ml-fullwidth article.page,
body.ml-fullwidth .ml-content,
body.ml-fullwidth main#content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}
body.ml-fullwidth .entry-header,
body.ml-fullwidth .page-title,
body.ml-hide-title .entry-header,
body.ml-hide-title .page-title,
body.ml-hide-title h1.entry-title { display: none !important; }

/* =====================================================================
 * Testimonial — force centered quote, kill theme's left-border
 * ===================================================================== */
.ml-testimonial .ml-testimonial__quote,
blockquote.ml-testimonial__quote {
	text-align: center !important;
	border: none !important;
	border-left: 0 !important;
	padding: 0 !important;
	margin: 0 auto !important;
	max-width: 820px !important;
	quotes: none !important;
}
.ml-testimonial .ml-testimonial__quote::before,
.ml-testimonial .ml-testimonial__quote::after { content: none !important; }
.ml-btn--outline-light,
.ml-site .is-style-outline.ml-btn-outline .wp-block-button__link,
.ml-site .wp-block-button.ml-btn-outline .wp-block-button__link {
	background: transparent;
	color: #fff !important;
	border-color: #fff !important;
}
.ml-btn--outline-light:hover,
.ml-site .wp-block-button.ml-btn-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--ml-teal) !important;
}
.ml-btn--block { display: flex; width: 100%; }
.ml-btn--outline-dark {
	background: transparent !important;
	color: var(--ml-navy) !important;
	border-color: var(--ml-navy) !important;
}
.ml-btn--outline-dark:hover {
	background: var(--ml-navy) !important;
	color: #fff !important;
	border-color: var(--ml-navy) !important;
	transform: translateY(-1px);
}
.ml-btn--teal {
	background: var(--ml-teal) !important;
	color: #fff !important;
	border-color: var(--ml-teal) !important;
}
.ml-btn--teal:hover {
	background: var(--ml-teal-dark) !important;
	border-color: var(--ml-teal-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* =====================================================================
 * Homepage content — hide default page title on redesign page
 * ===================================================================== */
.ml-content { display: block; }
.page.page-id-home-redesign .entry-header,
body.ml-hide-title .entry-header,
body.ml-hide-title .entry-title,
body.ml-hide-title .page-title { display: none !important; }

/* Remove default page padding on homepage so sections go edge-to-edge */
body.ml-fullwidth .ml-content,
body.ml-fullwidth .entry-content,
body.ml-fullwidth .site-container,
body.ml-fullwidth .content-container,
body.ml-fullwidth article.page {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}
body.ml-fullwidth .entry-content > * { max-width: none; }

/* =====================================================================
 * Homepage — sections
 * ===================================================================== */
.ml-section { padding: clamp(3.5rem, 7vw, 6rem) 1.5rem; }
.ml-section__inner { max-width: var(--ml-container); margin: 0 auto; }
.ml-section__eyebrow {
	display: inline-block;
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ml-teal);
	margin: 0 0 0.75rem;
}
.ml-section__title {
	font-size: clamp(1.85rem, 3.4vw, 2.6rem);
	margin: 0 0 1rem;
}
.ml-section__lede {
	color: var(--ml-muted);
	font-size: 1.1rem;
	max-width: 720px;
	margin: 0 0 2.5rem;
}
.ml-section--center { text-align: center; }
.ml-section--center .ml-section__lede { margin-left: auto; margin-right: auto; }

/* --- Hero --- */
.ml-hero {
	position: relative;
	min-height: 620px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
	isolation: isolate;
}
.ml-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(110deg, rgba(22, 42, 56, 0.88) 0%, rgba(22, 42, 56, 0.55) 55%, rgba(22, 42, 56, 0.25) 100%);
	z-index: -1;
}
.ml-hero__inner {
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: clamp(4rem, 10vw, 7rem) 1.5rem;
	width: 100%;
}
.ml-hero__content { max-width: 640px; }
.ml-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ml-teal-soft);
	background: rgba(42, 167, 160, 0.18);
	border: 1px solid rgba(42, 167, 160, 0.45);
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	margin-bottom: 1.5rem;
}
.ml-hero__title {
	color: #fff !important;
	font-size: clamp(2.25rem, 4.6vw, 3.6rem);
	line-height: 1.08;
	margin: 0 0 1.1rem;
	font-weight: 700;
}
.ml-hero__lede {
	color: #DCE6EC;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.6;
	margin: 0 0 2rem;
	max-width: 560px;
}
.ml-hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- Services trio (primary) --- */
.ml-services { background: var(--ml-cream); }
.ml-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 900px) { .ml-services__grid { grid-template-columns: 1fr; } }
.ml-service-card {
	background: #fff;
	border-radius: var(--ml-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ml-line);
	box-shadow: var(--ml-shadow);
	transition: transform 200ms ease, box-shadow 200ms ease;
	display: flex;
	flex-direction: column;
}
.ml-service-card:hover { transform: translateY(-4px); box-shadow: var(--ml-shadow-lg); }
.ml-service-card__media {
	aspect-ratio: 16 / 10;
	background: var(--ml-teal-soft);
	background-size: cover;
	background-position: center;
}
.ml-service-card__body { padding: 1.75rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.ml-service-card__title { font-size: 1.35rem; margin: 0 0 0.65rem; }
.ml-service-card__text { color: var(--ml-muted); margin: 0 0 1.25rem; flex: 1 1 auto; }
.ml-service-card__link {
	font-family: var(--ml-font-head);
	font-weight: 600;
	color: var(--ml-teal);
	display: inline-flex; align-items: center; gap: 0.35rem;
	align-self: flex-start;
}
.ml-service-card__link::after { content: "→"; transition: transform 150ms ease; }
.ml-service-card__link:hover::after { transform: translateX(3px); }

/* --- Intro band --- */
.ml-intro { background: #fff; text-align: center; }
.ml-intro .ml-section__lede { font-size: 1.15rem; }

/* --- Split section (image + copy) --- */
.ml-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
@media (max-width: 900px) { .ml-split { grid-template-columns: 1fr; } }
.ml-split__media img {
	border-radius: var(--ml-radius-lg);
	box-shadow: var(--ml-shadow);
}
.ml-split--flip .ml-split__media { order: 2; }
@media (max-width: 900px) { .ml-split--flip .ml-split__media { order: 0; } }
.ml-split__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.ml-split--cream { background: var(--ml-cream); }
.ml-split--navy { background: var(--ml-navy); color: #fff; }
.ml-split--navy h1, .ml-split--navy h2, .ml-split--navy h3 { color: #fff; }
.mla-hub-hero h1, .mla-hub-hero .mla-hub-hero__h1 { color: #fff; }
.ml-split--navy .ml-section__lede { color: #CFD8DE; }

/* --- Feature tile row (3-col mini cards) --- */
.ml-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
@media (max-width: 900px) { .ml-tiles { grid-template-columns: 1fr; } }
.ml-tile {
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius);
	padding: 1.5rem;
}
.ml-tile__title {
	font-size: 1.1rem;
	color: var(--ml-navy);
	margin: 0 0 0.5rem;
}
.ml-tile__text { color: var(--ml-muted); margin: 0 0 1rem; font-size: 0.95rem; }
.ml-tile { display: flex; flex-direction: column; }
.ml-tile__cta {
	display: inline-block;
	margin-top: auto;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ml-teal);
	text-decoration: none;
}
.ml-tile__cta:hover { color: var(--ml-navy); }

/* --- Stat --- */
.ml-stat { background: #fff; text-align: center; }
.ml-stat__num {
	font-family: var(--ml-font-head);
	font-weight: 700;
	color: var(--ml-teal);
	font-size: clamp(3.5rem, 8vw, 6rem);
	line-height: 1;
	margin: 0 0 0.5rem;
}
.ml-stat__label { max-width: 560px; margin: 0 auto; color: var(--ml-muted); font-size: 1.1rem; }

/* --- Testimonial --- */
.ml-testimonial { background: var(--ml-cream); text-align: center; }
.ml-testimonial__quote {
	max-width: 820px;
	margin: 0 auto;
	font-family: var(--ml-font-head);
	font-size: clamp(1.2rem, 2.1vw, 1.6rem);
	line-height: 1.45;
	color: var(--ml-navy);
	font-style: italic;
}
.ml-testimonial__attr { margin-top: 1.25rem; color: var(--ml-teal); font-weight: 600; }

/* --- CTA bar --- */
.ml-cta { background: var(--ml-navy); color: #fff; text-align: center; }
.ml-cta .ml-section__title { color: #fff; }
.ml-cta .ml-section__lede { color: #CFD8DE; margin-left: auto; margin-right: auto; }
.ml-cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* =====================================================================
 * FAQ accordion (native <details>)
 * ===================================================================== */
.ml-faq-item {
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius);
	padding: 0;
	margin-bottom: 0.75rem;
	overflow: hidden;
	transition: box-shadow 150ms ease;
}
.ml-faq-item[open] { box-shadow: var(--ml-shadow); }
.ml-faq-item summary {
	cursor: pointer;
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ml-navy);
	padding: 1rem 1.25rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.ml-faq-item summary::-webkit-details-marker { display: none; }
.ml-faq-item summary::after {
	content: "+";
	font-size: 1.5rem;
	color: var(--ml-teal);
	transition: transform 150ms ease;
	line-height: 1;
	flex: 0 0 auto;
}
.ml-faq-item[open] summary::after { content: "–"; }
.ml-faq-item summary:hover { color: var(--ml-teal); }
.ml-faq-answer {
	padding: 0 1.25rem 1.25rem;
	color: var(--ml-muted);
	line-height: 1.65;
}
.ml-faq-answer a { color: var(--ml-teal); }

/* =====================================================================
 * Footer
 * ===================================================================== */
.ml-footer { background: #0f2233; color: #8fa3b1; }
.ml-footer__inner {
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: 4.5rem 1.5rem 3rem;
	display: grid;
	grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
	gap: 3rem;
}
@media (max-width: 900px) { .ml-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .ml-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; } }

.ml-footer__brand-name {
	font-family: var(--ml-font-head);
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.75rem;
	letter-spacing: 0.01em;
}
.ml-footer__brand-desc {
	font-size: 0.875rem;
	color: #7a94a5;
	line-height: 1.7;
	margin: 0 0 0.75rem;
}
.ml-footer__mandarin { font-size: 0.82rem; }

.ml-footer__heading {
	color: #fff;
	font-family: var(--ml-font-head);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
	margin: 0 0 1.1rem;
}
.ml-footer__col ul { list-style: none; padding: 0; margin: 0; }
.ml-footer__col li { padding: 0.25rem 0; }
.ml-footer__col a {
	color: #8fa3b1;
	font-size: 0.9rem;
	text-decoration: none;
	transition: color .15s;
}
.ml-footer__col a:hover { color: #fff; }

.ml-footer__col address {
	font-style: normal;
	font-size: 0.9rem;
	color: #8fa3b1;
	line-height: 1.7;
	margin-bottom: 0.75rem;
}
.ml-footer__contact-list { margin-top: 0.5rem; }

.ml-footer__social {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.1rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: #4a6375;
}
.ml-footer__social a {
	color: #8fa3b1;
	text-decoration: none;
	transition: color .15s;
}
.ml-footer__social a:hover { color: #fff; }
.ml-footer__social span { color: #2f4a5c; }

.ml-footer__divider {
	max-width: var(--ml-container);
	margin: 0 auto;
	border-top: 1px solid rgba(255,255,255,0.07);
}
.ml-footer__bottom {
	padding: 1.5rem;
	text-align: center;
	font-size: 0.8rem;
	color: #4a6375;
	line-height: 1.8;
}

/* =====================================================================
 * Read-more toggles
 * ===================================================================== */
.ml-read-more__content { display: none; }
.ml-read-more__content.is-open { display: block; }

.ml-read-more__btn {
	display: inline-block;
	margin-top: 0.85rem;
	background: none;
	border: none;
	color: var(--ml-teal);
	font-family: var(--ml-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 150ms ease;
}
.ml-read-more__btn:hover { color: var(--ml-teal-dark); }

/* Read-more btn inside dark navy split panels */
.ml-split--navy .ml-read-more__btn { color: #5FD5CE; }
.ml-split--navy .ml-read-more__btn:hover { color: #8DE6E2; }

/* Tile read-more */
.ml-tile__more-content { display: none; }
.ml-tile__more-content.is-open { display: inline; }

.ml-tile__more-btn {
	display: block;
	margin-top: 0.4rem;
	background: none;
	border: none;
	color: var(--ml-teal);
	font-family: var(--ml-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 150ms ease;
}
.ml-tile__more-btn:hover { color: var(--ml-teal-dark); }

/* =====================================================================
 * FAQ question spacing (.ml-faq-q items from redesign tool)
 * ===================================================================== */
.ml-faq-q {
	padding-bottom: 1.75rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--ml-line);
}
.ml-faq-q:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.ml-faq-q__question {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}
.ml-faq-q p { margin: 0; color: var(--ml-muted); line-height: 1.7; }
.ml-footer__bottom p { margin: 0.2rem 0; }

/* =====================================================================
 * ACEP credential badge components
 * ===================================================================== */

/* Full-width bar between page sections (academy landing, CE pages) */
.ml-acep-bar {
	background: #EDF2F6;
	padding: 2.25rem 0;
	border-bottom: 1px solid var(--ml-line);
}
.ml-acep-bar__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	gap: 2rem;
}
.ml-acep-bar__badge {
	flex-shrink: 0;
	width: 120px;
	height: auto;
	border-radius: 6px;
}
.ml-acep-bar__body {
	color: var(--ml-navy);
	font-size: .95rem;
	line-height: 1.65;
}
.ml-acep-bar__body strong {
	display: block;
	font-size: 1rem;
	margin-bottom: .4rem;
}
.ml-acep-bar__body a { color: var(--ml-teal-dark); }

/* Inline strip (inside a section, e.g. below tiles or next to a CTA) */
.ml-acep-strip {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	background: var(--ml-cream);
	border: 1px solid var(--ml-line);
	border-radius: 8px;
	padding: 1rem 1.5rem;
	margin: 2.5rem auto 2.5rem;
	max-width: 680px;
	text-align: left;
}
.ml-acep-strip__badge {
	flex-shrink: 0;
	width: 80px;
	height: auto;
	border-radius: 4px;
}
.ml-acep-strip__body {
	font-size: .9rem;
	color: var(--ml-navy);
	line-height: 1.6;
}
.ml-acep-strip__body strong {
	display: block;
	margin-bottom: .2rem;
}
.ml-acep-strip__body a { color: var(--ml-teal-dark); }

@media (max-width: 520px) {
	.ml-acep-bar__inner,
	.ml-acep-strip { flex-direction: column; text-align: center; }
}

/* =====================================================================
 * Provider / Team grid
 * ===================================================================== */
.ml-team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin-top: 2.5rem;
}
.ml-team-card {
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: 14px;
	padding: 2rem 1.5rem 1.75rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ml-team-card--leader {
	border-color: var(--ml-teal);
	box-shadow: 0 0 0 2px var(--ml-teal-light, #b2e8e5);
}
.ml-team-card--coming-soon {
	background: #f8f9fa;
	border-style: dashed;
	border-color: #c8d4db;
	opacity: .75;
}
.ml-team-card__photo {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	display: block;
	margin: 0 auto 1.25rem;
	border: 4px solid var(--ml-cream);
}
.ml-team-card__photo-placeholder {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: #e2eaee;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	font-size: 3rem;
	color: #aabbc6;
}
.ml-team-card__badge {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ml-teal-dark);
	background: #e0f5f4;
	border-radius: 20px;
	padding: .2rem .75rem;
	margin-bottom: .6rem;
}
.ml-team-card__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ml-navy);
	margin: 0 0 .15rem;
}
.ml-team-card__credentials {
	font-size: .82rem;
	font-weight: 600;
	color: var(--ml-teal-dark);
	margin: 0 0 .3rem;
}
.ml-team-card__role {
	font-size: .85rem;
	color: var(--ml-muted);
	font-style: italic;
	margin: 0 0 .75rem;
}
.ml-team-card__specialty {
	font-size: .875rem;
	color: var(--ml-muted);
	line-height: 1.6;
	margin: 0 0 1rem;
	flex: 1;
}
.ml-team-card__link {
	font-size: .85rem;
	font-weight: 600;
	color: var(--ml-teal-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-top: auto;
}
.ml-team-card__link:hover { color: var(--ml-navy); }

@media (max-width: 900px) {
	.ml-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.ml-team-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* ── Hour-grid tiles ── */
.ml-tiles--hour-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 700px) {
	.ml-tiles--hour-grid { grid-template-columns: repeat(2, 1fr); }
}
.ml-tile--link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem 1rem;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
	gap: .35rem;
}
.ml-tile--link:hover {
	border-color: #2b7a78;
	box-shadow: 0 4px 16px rgba(43,122,120,.12);
	transform: translateY(-2px);
}
.ml-tile__hours {
	font-size: 1.8rem;
	font-weight: 800;
	color: #2b7a78;
	line-height: 1;
}
.ml-tile__label {
	font-size: .95rem;
	font-weight: 700;
	color: #17384e;
}
.ml-tile__count {
	font-size: .82rem;
	color: #777;
}

/* =====================================================================
 * Courses-by-Hour track toggle
 * ===================================================================== */
.ml-cbh-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}
.ml-cbh-toggle__btn {
	padding: 0.55rem 1.2rem;
	border: 1px solid var(--ml-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ml-navy);
	font-family: var(--ml-font-head);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.2;
	transition: all .15s;
}
.ml-cbh-toggle__btn:hover,
.ml-cbh-toggle__btn:focus-visible {
	background: var(--ml-teal-soft);
	border-color: var(--ml-teal);
	color: var(--ml-teal);
}
.ml-cbh-toggle__btn.is-active,
.ml-cbh-toggle__btn.is-active:hover,
.ml-cbh-toggle__btn.is-active:focus-visible {
	background: var(--ml-teal);
	border-color: var(--ml-teal);
	color: #fff;
}
.ml-cbh-toggle__count {
	margin-left: 0.25rem;
	opacity: 0.85;
	font-weight: 500;
}

/* =====================================================================
 * Mega menu — applied only to nav items tagged .ml-mega (Services)
 * ===================================================================== */
@media (min-width: 961px) {
	.ml-nav .ml-mega {
		position: relative;
	}

	.ml-nav .ml-mega > .sub-menu {
		top: 100%;
		left: 50%;
		right: auto;
		width: 90vw;
		max-width: var(--ml-container);
		margin: 0;
		padding: 1.75rem 2rem;
		columns: 4;
		column-gap: 2rem;
		transform: translateX(-50%) translateY(8px);
		pointer-events: none;
	}

	.ml-nav .ml-mega:hover > .sub-menu,
	.ml-nav .ml-mega:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
		pointer-events: auto;
	}

	.ml-nav .ml-mega > .sub-menu > li {
		break-inside: avoid;
		page-break-inside: avoid;
		-webkit-column-break-inside: avoid;
		margin: 0 0 1.1rem;
		position: static;
	}

	.ml-nav .ml-mega > .sub-menu > li > a {
		font-family: var(--ml-font-head);
		font-weight: 600;
		font-size: 0.9rem;
		color: var(--ml-navy);
		padding: 0.4rem 0.5rem;
		border-radius: 6px;
		display: block;
	}

	.ml-nav .ml-mega > .sub-menu > li > a:hover,
	.ml-nav .ml-mega > .sub-menu > li > a:focus {
		color: var(--ml-teal);
		background: var(--ml-teal-soft);
	}

	/* Hide the fly-out arrow on mega-menu column heads */
	.ml-nav .ml-mega .menu-item-has-children > a::after {
		content: none !important;
	}

	/* Inline the third-level submenus instead of flying out */
	.ml-nav .ml-mega > .sub-menu > li > .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
		margin: 0.15rem 0 0;
		min-width: 0;
		display: block;
	}

	.ml-nav .ml-mega > .sub-menu > li > .sub-menu a {
		font-family: var(--ml-font-body);
		font-size: 0.82rem;
		font-weight: 400;
		color: var(--ml-muted);
		padding: 0.25rem 0.5rem 0.25rem 1rem;
		border-radius: 6px;
		display: block;
	}

	.ml-nav .ml-mega > .sub-menu > li > .sub-menu a:hover,
	.ml-nav .ml-mega > .sub-menu > li > .sub-menu a:focus {
		color: var(--ml-teal);
		background: var(--ml-teal-soft);
	}
}

/* =====================================================================
 * Courses-by-Hour mla-* grid (used in templates/page-courses-by-hour.php)
 * ===================================================================== */
.mla-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
@media (max-width: 900px) { .mla-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mla-grid { grid-template-columns: 1fr; } }
.mla-card {
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s, transform .18s;
}
.mla-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.mla-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.mla-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ml-navy);
	margin: 0 0 .5rem;
	line-height: 1.35;
}
.mla-card .ml-cbh-enroll-btn {
	margin-top: auto;
}
