/* OM Article — single News / Events article design
   Tokens mirror the .omn namespace used on the /news/ listing page. */

.oma-hero,
.oma-body,
.oma-foot {
	--navy: #22335B;
	--navy2: #1B2A4A;
	--navy3: #17233F;
	--orange: #F47B20;
	--orange2: #F5A45C;
	--ink: #1F2937;
	--mut: #5B6472;
	--line: #E4E7EC;
	--wa: #25D366;
	box-sizing: border-box;
}

.oma-hero *,
.oma-foot * {
	box-sizing: border-box;
}

/* Kill the padding Elementor puts around the post-content widget so the hero
   can run full-bleed. */
.oma-active .elementor-widget-wrap.elementor-element-populated:has(.oma-hero) {
	padding: 0 !important;
}

/* Hide the old grey "News / Events" banner and the duplicated post title. */
.oma-hide-banner .elementor-location-single > .elementor-section:first-child {
	display: none !important;
}

.oma-active .elementor-widget-theme-post-title {
	display: none !important;
}

/* Hiding the title widget leaves its section behind as an empty card. Drop
   any section whose only widget was the title. The JS pass catches other
   empty sections; this rule avoids a flash of empty card before it runs. */
.oma-active .oma-body .elementor-top-section:has(.elementor-widget-theme-post-title):not(:has(.elementor-widget:not(.elementor-widget-theme-post-title))) {
	display: none !important;
}

.oma-active .oma-body .elementor-top-section.oma-empty {
	display: none !important;
}

/* Light page background behind the article cards. */
.oma-cards .site-content {
	background: #F6F7F9;
}

/* ---------------------------------------------------------------- Hero -- */

.oma-hero {
	position: relative;
	width: var(--oma-vw, 100vw);
	margin-left: calc(50% - (var(--oma-vw, 100vw) / 2));
	margin-right: calc(50% - (var(--oma-vw, 100vw) / 2));
	padding: 54px 24px 46px;
	color: #fff;
	background: linear-gradient(100deg, var(--navy3), var(--navy2));
	background-size: cover;
	background-position: center 35%;
}

.oma-hero.hasimg {
	background-image: linear-gradient(100deg, rgba(23, 35, 63, .94), rgba(27, 42, 74, .74)), var(--oma-hero-img);
}

.oma-hero .in {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.oma-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #C9D3E6;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color .15s ease;
}

.oma-back:hover,
.oma-back:focus-visible {
	color: var(--orange2);
	text-decoration: none;
}

.oma-chip {
	display: inline-block;
	background: var(--orange);
	color: #fff;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 11.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 5px 14px;
}

.oma-hero h1 {
	font-family: 'Archivo', sans-serif !important;
	font-weight: 800;
	font-size: clamp(27px, 4vw, 44px);
	line-height: 1.16;
	color: #fff !important;
	margin: 0;
	max-width: 20ch;
	text-align: left;
}

.oma-meta {
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	color: #C9D3E6;
}

/* ------------------------------------------------------------ Article -- */

.oma-body {
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 0 8px;
	font-family: 'Inter', sans-serif;
	color: var(--ink);
}

/* Neutralise the old per-section grey bands. */
.oma-cards .oma-body .elementor-top-section {
	background-color: transparent !important;
	background-image: none !important;
	margin-bottom: 22px;
	padding: 0 !important;
}

.oma-cards .oma-body .elementor-top-section > .elementor-container {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	padding: 26px 30px;
}

.oma-body .elementor-widget-text-editor,
.oma-body .elementor-widget-text-editor p,
.oma-body .elementor-widget-text-editor li {
	font-family: 'Inter', sans-serif !important;
	font-size: 17px !important;
	line-height: 1.75 !important;
	color: var(--ink) !important;
}

.oma-body .elementor-widget-text-editor p {
	margin: 0 0 1.05em;
}

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

.oma-body .elementor-widget-text-editor strong,
.oma-body .elementor-widget-text-editor b {
	color: var(--navy) !important;
	font-weight: 700;
}

.oma-body .elementor-widget-heading .elementor-heading-title {
	font-family: 'Archivo', sans-serif !important;
	font-weight: 800 !important;
	color: var(--navy) !important;
	line-height: 1.25;
}

.oma-body .elementor-widget-image img {
	border-radius: 12px;
	display: block;
}

.oma-body .elementor-widget-video .elementor-wrapper,
.oma-body .elementor-widget-video iframe {
	border-radius: 12px;
	overflow: hidden;
}

/* In-article buttons — several older posts still carry the old blue theme
   button. Bring them into the navy/orange system. */
.oma-body .elementor-widget-button .elementor-button {
	font-family: 'Archivo', sans-serif !important;
	font-weight: 700 !important;
	font-size: 14.5px !important;
	letter-spacing: 0 !important;
	background-color: var(--orange) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 13px 26px !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.oma-body .elementor-widget-button .elementor-button:hover,
.oma-body .elementor-widget-button .elementor-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 24, 40, .18);
	filter: brightness(1.05);
}

/* -------------------------------------------------------------- Share -- */

.oma-foot {
	max-width: 1140px;
	margin: 0 auto;
	padding: 8px 0 56px;
	font-family: 'Inter', sans-serif;
}

.oma-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 18px 0 26px;
	border-top: 1px solid var(--line);
	margin-top: 10px;
}

.oma-share-label {
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mut);
}

.oma-share-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.oma-sbtn {
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--navy);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 18px;
	cursor: pointer;
	text-decoration: none !important;
	transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.oma-sbtn:hover,
.oma-sbtn:focus-visible {
	border-color: var(--orange);
	color: var(--orange);
	box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}

.oma-sbtn.copied {
	border-color: var(--wa);
	color: #128C3E;
}

/* ---------------------------------------------------------------- CTA -- */

.oma-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 26px;
	background: linear-gradient(100deg, var(--navy3), var(--navy2));
	border-radius: 18px;
	padding: 34px 38px;
	color: #fff;
	margin: 0 0 46px;
}

.oma-cta-copy {
	flex: 1 1 380px;
	border-left: 5px solid var(--orange);
	padding-left: 20px;
}

.oma-cta h2 {
	font-family: 'Archivo', sans-serif !important;
	font-weight: 800;
	font-size: 23px;
	line-height: 1.3;
	color: #fff !important;
	margin: 0 0 8px;
}

.oma-cta p {
	font-size: 15px;
	line-height: 1.65;
	color: #C9D3E6;
	margin: 0;
}

.oma-cta-btns {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.oma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 14.5px;
	border-radius: 999px;
	padding: 13px 26px;
	text-decoration: none !important;
	color: #fff !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.oma-btn:hover,
.oma-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
	filter: brightness(1.05);
}

.oma-btn-orange {
	background: var(--orange);
}

.oma-btn-wa {
	background: var(--wa);
}

/* ------------------------------------------------------------ Related -- */

.oma-rel-title {
	font-family: 'Archivo', sans-serif !important;
	font-weight: 800;
	font-size: 22px;
	color: var(--navy) !important;
	margin: 0 0 18px;
}

.oma-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.oma-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}

.oma-card:hover,
.oma-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(16, 24, 40, .12);
}

.oma-card .thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	background: #EEF2F8;
}

.oma-card .noimg {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: linear-gradient(120deg, var(--navy2), var(--navy));
	display: block;
}

.oma-card .cb {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.oma-card h3 {
	font-family: 'Archivo', sans-serif !important;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--navy) !important;
	margin: 0;
	line-height: 1.4;
}

.oma-card .date {
	font-size: 12.5px;
	color: var(--mut);
}

.oma-card .more {
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--orange);
}

.oma-allwrap {
	margin-top: 24px;
}

.oma-all {
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--navy);
	text-decoration: none !important;
	border-bottom: 2px solid var(--orange);
	padding-bottom: 3px;
	transition: color .15s ease;
}

.oma-all:hover,
.oma-all:focus-visible {
	color: var(--orange);
}

/* ------------------------------------------------------------- Reveal -- */

/* Only hide when JS is confirmed running (the oma-js class is set inline in
   the head). Without JS the content stays visible — it just doesn't animate. */
.oma-js .oma-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .5s ease, transform .5s ease;
}

.oma-js .oma-reveal.in {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------- Responsive -- */

/* The Elementor container maxes out at 1140px, so below ~1180px the cards
   would otherwise sit flush against the screen edges. */
@media (max-width: 1180px) {

	.oma-body,
	.oma-foot {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 980px) {
	.oma-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.oma-hero {
		padding: 38px 20px 34px;
	}

	.oma-hero h1 {
		max-width: none;
	}

	.oma-body {
		padding-top: 26px;
	}

	.oma-cards .oma-body .elementor-top-section > .elementor-container {
		padding: 18px 18px;
		border-radius: 14px;
	}

	.oma-body .elementor-widget-text-editor,
	.oma-body .elementor-widget-text-editor p,
	.oma-body .elementor-widget-text-editor li {
		font-size: 16px !important;
	}

	.oma-cta {
		padding: 26px 22px;
	}

	.oma-cta-btns {
		width: 100%;
	}

	.oma-btn {
		flex: 1 1 auto;
	}
}

@media (max-width: 640px) {
	.oma-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {

	.oma-js .oma-reveal,
	.oma-js .oma-reveal.in {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.oma-card,
	.oma-btn,
	.oma-sbtn,
	.oma-body .elementor-widget-button .elementor-button {
		transition: none;
	}

	.oma-card:hover,
	.oma-btn:hover,
	.oma-body .elementor-widget-button .elementor-button:hover {
		transform: none;
	}
}
