/**
 * Financial V2 reusable section styles.
 * Isolated from classic News Block markup.
 */

.nm-fv2 {
	--nm-fv2-navy: #06283d;
	--nm-fv2-teal: #0b6e6a;
	--nm-fv2-accent: #f5b719;
	--nm-fv2-bg: #ffffff;
	--nm-fv2-text: #12202e;
	--nm-fv2-muted: #6b7784;
	--nm-fv2-border: #e3e8ee;
	--nm-fv2-radius: 10px;
	--nm-fv2-badge-bg: #f5b719;
	--nm-fv2-btn-bg: #f5b719;
	--nm-fv2-hero-overlay: 72%;
	--nm-fv2-ratio: 16 / 10;
	--nm-fv2-fit: cover;
	--nm-fv2-pos: center;
	background: var(--nm-fv2-bg);
	color: var(--nm-fv2-text);
	min-block-size: var(--nm-fv2-min-h, auto);
	max-inline-size: var(--nm-fv2-max-w, none);
	font-size: 0.95rem;
	line-height: 1.45;
}

.nm-fv2 *,
.nm-fv2 *::before,
.nm-fv2 *::after {
	box-sizing: border-box;
}

.nm-fv2 a {
	color: inherit;
	text-decoration: none;
}

.nm-fv2--panel,
.nm-fv2--latest {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.nm-fv2--panel {
	border: 1px solid var(--nm-fv2-border);
	border-radius: var(--nm-fv2-radius);
	padding: var(--nm-fv2-card-pad, 1rem 1.05rem 1.1rem);
}

.nm-fv2-head__sub {
	margin: 0.15rem 0 0.55rem;
	color: var(--nm-fv2-sub, var(--nm-fv2-muted));
	font-size: 0.84rem;
	line-height: 1.45;
}

.nm-fv2--panel .nm-fv2-btn,
.nm-fv2--latest .nm-fv2-btn {
	margin-block-start: auto;
}

body.eb-shell .nm-fv2 .nm-fv2-hero__title,
body.eb-shell .nm-fv2 .nm-fv2-hero__title a {
	color: var(--nm-fv2-item-title, #ffffff);
	text-shadow: 0 1px 14px rgb(0 0 0 / 0.55);
}

.nm-fv2-hero__excerpt {
	color: rgba(255, 255, 255, 0.9) !important;
	text-shadow: 0 1px 10px rgb(0 0 0 / 0.45);
}

.nm-fv2-head {
	margin: 0 0 0.85rem;
}

.nm-fv2-head--split {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.nm-fv2-head__title {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0;
}

.nm-fv2-head__title::after {
	background: var(--nm-fv2-accent);
	border-radius: 2px;
	content: "";
	display: block;
	height: 3px;
	margin-block-start: 0.4rem;
	width: 2.15rem;
}

.nm-fv2-head--split .nm-fv2-head__title::after {
	display: none;
}

.nm-fv2-link {
	color: var(--nm-fv2-muted);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.nm-fv2-btn {
	align-items: center;
	border-radius: 8px;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 700;
	justify-content: center;
	margin-block-start: 0.75rem;
	min-height: 2.15rem;
	padding: 0.35rem 0.85rem;
}

.nm-fv2-btn--outline,
.nm-fv2-btn--ghost {
	border: 1px solid currentColor;
	width: 100%;
}

.nm-fv2-empty,
.nm-fv2-note {
	color: var(--nm-fv2-muted);
	font-size: 0.82rem;
	margin: 0;
}

.nm-fv2-meta,
.nm-fv2-kicker {
	color: var(--nm-fv2-muted);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
}

.nm-fv2-kicker {
	color: #1b7d4a;
	margin-block-end: 0.2rem;
	text-transform: none;
}

.nm-fv2-badge {
	background: var(--nm-fv2-badge-bg);
	border-radius: 4px;
	color: #1a1404;
	display: inline-flex;
	font-size: 0.7rem;
	font-weight: 800;
	margin-block-end: 0.65rem;
	padding: 0.18rem 0.5rem;
}

.nm-fv2-badge--on-image {
	inset-block-start: 0.7rem;
	inset-inline-start: 0.7rem;
	margin: 0;
	position: absolute;
	z-index: 2;
}

/* Latest News */
.nm-fv2--latest {
	--nm-fv2-bg: var(--nm-fv2-navy);
	--nm-fv2-text: #ffffff;
	--nm-fv2-heading: #ffffff;
	--nm-fv2-heading-line: var(--nm-fv2-accent);
	--nm-fv2-item-title: #ffffff;
	--nm-fv2-item-title-hover: var(--nm-fv2-accent);
	--nm-fv2-meta: #2bb3c0;
	--nm-fv2-bullet: var(--nm-fv2-accent);
	--nm-fv2-bullet-alt: #2bb3c0;
	--nm-fv2-btn-bg: transparent;
	--nm-fv2-btn-text: #ffffff;
	--nm-fv2-btn-border: rgba(255, 255, 255, 0.35);
	--nm-fv2-btn-hover-bg: var(--nm-fv2-accent);
	--nm-fv2-btn-hover-text: #1a1404;
	--nm-fv2-empty: rgba(255, 255, 255, 0.72);
	--nm-fv2-border: transparent;
	background: var(--nm-fv2-bg);
	border: 1px solid var(--nm-fv2-border);
	border-radius: var(--nm-fv2-radius);
	color: var(--nm-fv2-text);
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: var(--nm-fv2-hero-height, 480px);
	padding: 1.15rem 1.1rem 1rem;
}

.elementor-widget-nm-financial-latest-v2.elementor-widget .nm-fv2--latest .nm-fv2-head__title,
.nm-fv2--latest .nm-fv2-head__title {
	color: var(--nm-fv2-heading);
	font-size: 1.2rem;
}

.elementor-widget-nm-financial-latest-v2 .nm-fv2--latest .nm-fv2-head__title::after,
.nm-fv2--latest .nm-fv2-head__title::after {
	background: var(--nm-fv2-heading-line);
}

.nm-fv2-latest {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-fv2-latest__item {
	padding-inline-start: 0.95rem;
	position: relative;
}

.nm-fv2-latest__item::before {
	background: var(--nm-fv2-bullet, var(--nm-fv2-accent));
	border-radius: 50%;
	content: "";
	height: 0.55rem;
	inset-block-start: 0.4rem;
	inset-inline-start: 0;
	position: absolute;
	width: 0.55rem;
}

.nm-fv2--latest .nm-fv2-latest__item:nth-child(even)::before,
.nm-fv2-latest__item:nth-child(even)::before {
	background: var(--nm-fv2-bullet-alt, #2bb3c0);
}

.nm-fv2-latest__link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.nm-fv2--latest .nm-fv2-latest__title {
	color: var(--nm-fv2-item-title);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 99);
	line-clamp: var(--nm-fv2-title-lines, 99);
}

.nm-fv2--latest .nm-fv2-latest__link:hover .nm-fv2-latest__title,
.nm-fv2--latest .nm-fv2-latest__link:focus-visible .nm-fv2-latest__title {
	color: var(--nm-fv2-item-title-hover);
}

.nm-fv2--latest .nm-fv2-latest__time {
	color: var(--nm-fv2-meta);
	font-size: 0.72rem;
	font-weight: 700;
}

.nm-fv2--latest .nm-fv2-empty {
	color: var(--nm-fv2-empty);
}

.nm-fv2--latest .nm-fv2-btn--ghost {
	background: var(--nm-fv2-btn-bg);
	border-color: var(--nm-fv2-btn-border);
	color: var(--nm-fv2-btn-text);
	margin-block-start: auto;
}

.nm-fv2--latest .nm-fv2-btn--ghost:hover,
.nm-fv2--latest .nm-fv2-btn--ghost:focus-visible {
	background: var(--nm-fv2-btn-hover-bg);
	border-color: var(--nm-fv2-btn-hover-bg);
	color: var(--nm-fv2-btn-hover-text);
}

/* Hero — configured height is authoritative; images must not set layout height. */
.elementor-widget-nm-financial-hero-v2 {
	--nm-fv2-hero-height: 480px;
	min-height: 0;
	overflow: hidden;
}

.elementor-widget-nm-financial-hero-v2 .nm-fv2.nm-fv2--hero,
.nm-fv2.nm-fv2--hero {
	background: #0b1c2c;
	border-radius: var(--nm-fv2-radius);
	height: var(--nm-fv2-img-h, var(--nm-fv2-hero-height, 480px));
	max-height: var(--nm-fv2-img-h, var(--nm-fv2-hero-height, 480px));
	min-height: var(--nm-fv2-img-h, var(--nm-fv2-hero-height, 480px));
	overflow: hidden;
	position: relative;
}

.nm-fv2-hero__viewport {
	height: 100%;
	inset: 0;
	min-height: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.nm-fv2-hero__slide {
	display: none;
	height: 100%;
	inset: 0;
	min-height: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.nm-fv2-hero__slide.is-active {
	display: block;
}

.nm-fv2-hero__media,
.nm-fv2-hero__shade {
	inset: 0;
	overflow: hidden;
	position: absolute;
}

.nm-fv2--hero img.nm-fv2-hero__img,
.nm-fv2-hero__img,
.nm-fv2-hero__media-fallback {
	display: block;
	height: 100%;
	inset: 0;
	max-height: 100%;
	max-width: none;
	min-height: 0;
	object-fit: var(--nm-fv2-fit, cover);
	object-position: var(--nm-fv2-pos, center);
	position: absolute;
	width: 100%;
}

.nm-fv2-hero__media-fallback {
	background: #12324a;
}

.nm-fv2-hero__media-fallback--empty {
	background:
		linear-gradient(160deg, #0b3a52 0%, #12324a 48%, #071824 100%);
}

.nm-fv2-hero__img--contain {
	background: #071824;
}

.nm-fv2-hero__shade {
	background: linear-gradient(to top, rgb(6 20 32 / var(--nm-fv2-hero-overlay)) 0%, rgb(6 20 32 / 0.18) 48%, transparent 72%);
}

.nm-fv2-hero__content {
	bottom: 1.65rem;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	inset-inline-end: 4.25rem;
	inset-inline-start: 1.4rem;
	max-height: calc(100% - 2.4rem);
	overflow: hidden;
	position: absolute;
	z-index: 2;
}

.nm-fv2-hero__title {
	display: -webkit-box;
	font-size: clamp(1.55rem, 2.4vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.18;
	margin: 0 0 0.55rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 3);
	line-clamp: var(--nm-fv2-title-lines, 3);
}

.nm-fv2-hero__excerpt {
	color: rgba(255, 255, 255, 0.86);
	display: -webkit-box;
	font-size: 0.92rem;
	line-height: 1.45;
	margin: 0 0 0.85rem;
	max-width: 36rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nm-fv2-hero__cta {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 6px;
	color: #fff;
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.42rem 0.9rem;
}

.nm-fv2-hero__dots {
	bottom: 0.85rem;
	display: flex;
	gap: 0.4rem;
	inset-inline-end: 1.2rem;
	position: absolute;
	z-index: 3;
}

.nm-fv2-hero__dot {
	background: rgba(255, 255, 255, 0.45);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 7px;
	padding: 0;
	width: 7px;
}

.nm-fv2-hero__dot.is-active {
	background: #fff;
	width: 18px;
}

/* Most Read */
.nm-fv2-rank {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-fv2-rank__item {
	align-items: flex-start;
	border-block-end: 1px solid var(--nm-fv2-border);
	display: grid;
	gap: 0.7rem;
	grid-template-columns: 1.4rem minmax(0, 1fr);
	padding-block: 0.7rem;
}

.nm-fv2-rank__item:last-child {
	border-block-end: 0;
}

.nm-fv2-rank__num {
	color: #9aa6b2;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.1;
}

.nm-fv2-rank__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 99);
	line-clamp: var(--nm-fv2-title-lines, 99);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--nm-fv2-item-title, inherit);
}

.nm-fv2-rank__meta {
	color: var(--nm-fv2-muted);
	display: block;
	font-size: 0.72rem;
	margin-block-start: 0.2rem;
}

/* Top Stories */
.nm-fv2-story__media {
	border-radius: var(--nm-fv2-img-radius, 8px);
	display: block;
	overflow: hidden;
	position: relative;
}

.nm-fv2 .nm-fv2-story__img {
	aspect-ratio: var(--nm-fv2-ratio, auto);
	display: block;
	object-fit: var(--nm-fv2-fit, cover);
	object-position: var(--nm-fv2-pos, center);
	width: 100%;
	max-inline-size: 100%;
	height: var(--nm-fv2-img-h, auto);
	block-size: var(--nm-fv2-img-h, auto);
}

.nm-fv2-story__title {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.3;
	margin: 0.85rem 0 0.45rem;
	text-align: center;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 99);
	line-clamp: var(--nm-fv2-title-lines, 99);
	color: var(--nm-fv2-item-title, inherit);
}

.nm-fv2-story__excerpt {
	color: var(--nm-fv2-muted);
	font-size: 0.88rem;
	margin: 0 0 0.45rem;
	text-align: center;
}

.nm-fv2--top-stories .nm-fv2-meta {
	display: block;
	text-align: center;
}

/* Compact rows */
.nm-fv2-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-fv2-row {
	align-items: start;
	border-block-end: 1px solid var(--nm-fv2-border);
	display: grid;
	gap: 0.7rem;
	grid-template-columns: minmax(0, 1fr) 5.4rem;
	padding-block: 0.7rem;
}

.nm-fv2--thumb-left .nm-fv2-row {
	grid-template-columns: 5.4rem minmax(0, 1fr);
}

.nm-fv2--thumb-left .nm-fv2-row__media {
	order: -1;
}

.nm-fv2-row:first-child {
	padding-block-start: 0;
}

.nm-fv2-row:last-child {
	border-block-end: 0;
}

.nm-fv2-row__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 99);
	line-clamp: var(--nm-fv2-title-lines, 99);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--nm-fv2-item-title, inherit);
}

.nm-fv2 .nm-fv2-row__img {
	aspect-ratio: var(--nm-fv2-ratio, auto);
	border-radius: var(--nm-fv2-img-radius, 6px);
	display: block;
	object-fit: var(--nm-fv2-fit, cover);
	object-position: var(--nm-fv2-pos, center);
	width: 100%;
	max-inline-size: 100%;
	height: var(--nm-fv2-img-h, auto);
	block-size: var(--nm-fv2-img-h, auto);
}

/* Trending */
.nm-fv2-trend {
	display: grid;
	gap: var(--nm-fv2-gap, 0.85rem);
	grid-template-columns: repeat(var(--nm-fv2-cols, 4), minmax(0, 1fr));
}

.nm-fv2-trend__media {
	border-radius: var(--nm-fv2-img-radius, 8px);
	display: block;
	overflow: hidden;
}

.nm-fv2 .nm-fv2-trend__img {
	aspect-ratio: var(--nm-fv2-ratio, auto);
	display: block;
	object-fit: var(--nm-fv2-fit, cover);
	object-position: var(--nm-fv2-pos, center);
	width: 100%;
	max-inline-size: 100%;
	height: var(--nm-fv2-img-h, auto);
	block-size: var(--nm-fv2-img-h, auto);
}

.nm-fv2-trend__title {
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0.3rem 0 0.2rem;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 99);
	line-clamp: var(--nm-fv2-title-lines, 99);
	color: var(--nm-fv2-item-title, inherit);
}

/* Video */
.nm-fv2-videos {
	display: flex;
	flex-direction: column;
	gap: var(--nm-fv2-gap, 0.85rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-fv2-video {
	align-items: center;
	display: grid;
	gap: 0.7rem;
	grid-template-columns: 7.4rem minmax(0, 1fr);
}

.nm-fv2-video__media {
	border-radius: var(--nm-fv2-img-radius, 8px);
	display: block;
	overflow: hidden;
	position: relative;
}

.nm-fv2 .nm-fv2-video__img {
	aspect-ratio: var(--nm-fv2-ratio, 16 / 10);
	display: block;
	object-fit: var(--nm-fv2-fit, cover);
	object-position: var(--nm-fv2-pos, center);
	width: 100%;
	max-inline-size: 100%;
	height: var(--nm-fv2-img-h, auto);
	block-size: var(--nm-fv2-img-h, auto);
}

.nm-fv2-video__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--nm-fv2-title-lines, 99);
	line-clamp: var(--nm-fv2-title-lines, 99);
	color: var(--nm-fv2-item-title, inherit);
	font-weight: 700;
	line-height: 1.35;
}

.nm-fv2-video__play {
	background: rgb(0 0 0 / 0.45);
	border-radius: 50%;
	height: 1.7rem;
	inset: 50% auto auto 50%;
	position: absolute;
	transform: translate(-50%, -50%);
	width: 1.7rem;
}

.nm-fv2-video__play::before {
	border-color: transparent transparent transparent #fff;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	content: "";
	inset-inline-start: 0.58rem;
	position: absolute;
	top: 0.42rem;
}

.nm-fv2-video__time {
	background: rgb(0 0 0 / 0.7);
	border-radius: 4px;
	bottom: 0.3rem;
	color: #fff;
	font-size: 0.65rem;
	inset-inline-end: 0.3rem;
	padding: 0.1rem 0.3rem;
	position: absolute;
}

.nm-fv2-video__media--preview {
	cursor: default;
}

.nm-fv2-video__demo {
	background: rgb(6 40 61 / 0.82);
	bottom: 0;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	inset-inline-start: 0;
	padding: 0.2rem 0.35rem;
	position: absolute;
	width: 100%;
}

@media (max-width: 1024px) {
	.nm-fv2-trend {
		grid-template-columns: repeat(var(--nm-fv2-cols, 2), minmax(0, 1fr));
	}

	.nm-fv2--latest {
		min-height: var(--nm-fv2-hero-height, 400px);
	}
}

@media (max-width: 640px) {
	.elementor-widget-nm-financial-hero-v2 { --nm-fv2-hero-height: 370px; }
	.nm-fv2-trend {
		grid-template-columns: repeat(var(--nm-fv2-cols, 2), minmax(0, 1fr));
	}

	.nm-fv2-hero__content {
		inset-inline-start: 0.9rem;
		inset-inline-end: 0.9rem;
		bottom: 2.5rem;
		max-width: none;
	}

	.nm-fv2-hero__title {
		font-size: 1.35rem;
	}
	.nm-fv2-hero__dot { height: 24px; width: 24px; background: transparent; position: relative; }
	.nm-fv2-hero__dot::after { content: ''; position: absolute; inset: 9px 4px; border-radius: 4px; background: #ffffff80; }
	.nm-fv2-hero__dot.is-active { width: 24px; background: transparent; }
	.nm-fv2-hero__dot.is-active::after { background: var(--nm-fv2-accent); }
	.nm-fv2-hero__dots { bottom: 5px; }
}
