/**
 * New Investment page layout.
 * Card look comes from elementor-swiper.css (.esw-term-card); this file handles page chrome.
 */

.cdz-new-investment-page .cdz-ni-page {
	width: 100%;
	padding: 48px 0 72px;
}

.cdz-ni-inner {
	width: min(1320px, calc(100% - 48px));
	margin: 0 auto;
}

.cdz-ni-page-header {
	display: block;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 56px;
	padding: 12px 16px 0;
	text-align: center;
}

.cdz-ni-page-header:empty {
	display: none;
}

/* Page label — quieter than section titles so hierarchy stays clear */
.cdz-ni-page-title {
	margin: 0 0 12px;
	font-family: "Be Vietnam Pro", system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #6b6b6b;
}

.cdz-ni-page-title i,
.cdz-ni-page-title em {
	font-style: italic;
	font-weight: inherit;
	text-transform: none;
	letter-spacing: 0.04em;
}

.cdz-ni-page-intro {
	margin: 0 auto;
	max-width: 560px;
	font-family: "Be Vietnam Pro", system-ui, sans-serif;
	font-size: clamp(0.95rem, 1.3vw, 1.05rem);
	font-weight: 400;
	line-height: 1.65;
	color: #4a4a4a;
}

.cdz-ni-page-intro p {
	margin: 0 0 0.5em;
}

.cdz-ni-page-intro p:last-child {
	margin-bottom: 0;
}

.cdz-ni-section {
	margin-bottom: 72px;
}

.cdz-ni-section:last-child {
	margin-bottom: 0;
}

/* Section title + description — match Elementor “Average Isn't an Option” style */
.cdz-ni-section-header {
	display: block;
	width: 100%;
	max-width: 920px;
	margin: 0 auto 40px;
	padding: 8px 16px 0;
	text-align: center;
}

.cdz-ni-section-title {
	margin: 0 0 16px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 4.2vw, 54px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #1d1d1d;
}

.cdz-ni-section-title i,
.cdz-ni-section-title em {
	font-style: italic;
	font-weight: inherit;
}

.cdz-ni-section-subtitle {
	margin: 0 auto;
	max-width: 640px;
	font-family: "Be Vietnam Pro", system-ui, sans-serif;
	font-size: clamp(0.95rem, 1.4vw, 1.125rem);
	font-weight: 400;
	line-height: 1.6;
	color: #4a4a4a;
}

.cdz-ni-section-subtitle p {
	margin: 0 0 0.5em;
}

.cdz-ni-section-subtitle p:last-child {
	margin-bottom: 0;
}

.cdz-ni-empty,
.cdz-ni-section-empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.02);
	font-size: 0.95rem;
}

.cdz-ni-load-sentinel {
	height: 1px;
	width: 100%;
	margin: 8px 0 0;
	pointer-events: none;
}

.cdz-ni-load-status {
	margin: 16px 0 0;
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.7;
}

/* Fallback when Swiper JS is unavailable: readable horizontal/grid list. */
.cdz-ni-section .esw-swiper-root:not(.swiper-initialized) .swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.cdz-ni-section .esw-swiper-root:not(.swiper-initialized) .swiper-slide {
	width: auto !important;
	margin: 0 !important;
}

@media (max-width: 767px) {
	.cdz-new-investment-page .cdz-ni-page {
		padding: 32px 0 48px;
	}

	.cdz-ni-inner {
		width: calc(100% - 32px);
	}

	.cdz-ni-page-header {
		margin-bottom: 40px;
	}

	.cdz-ni-section {
		margin-bottom: 48px;
	}

	.cdz-ni-section-header {
		margin-bottom: 28px;
		padding: 0 4px;
	}
}
