/* ==========================================================
   NAPONTA JOBBAN
   Homepage – Why DXN v2
   ========================================================== */

.nj-why-dxn {
	position: relative;

	width: min(1280px, calc(100% - 40px));
	margin: 0 auto;

	padding: 96px 0 104px;

	background: #FAF8F3;
}


/* ==========================================================
   Main layout
   ========================================================== */

.nj-why-dxn > .kt-row-column-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);

	gap: clamp(42px, 5vw, 88px);

	align-items: start;

	padding: 0 !important;
}


/* ==========================================================
   Left side – grid
   ========================================================== */

.nj-why-grid {
	min-width: 0;
}

.nj-why-grid > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	gap: 18px;

	padding: 0 !important;
}


/* A két belső Row Layout legyen 2-2 kártya */
.nj-why-grid .kt-row-layout-inner,
.nj-why-grid > .kt-inside-inner-col > .wp-block-kadence-rowlayout > .kt-row-column-wrap,
.nj-why-grid > .kt-inside-inner-col > .kt-row-layout > .kt-row-column-wrap,
.nj-why-grid > .kt-inside-inner-col > .kt-row-column-wrap {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}


/* Ha a belső row-k külön blokk wrapperrel jönnek */
.nj-why-grid > .kt-inside-inner-col > .wp-block-kadence-rowlayout > .kt-row-column-wrap > *,
.nj-why-grid > .kt-inside-inner-col > .kt-row-layout > .kt-row-column-wrap > *,
.nj-why-grid > .kt-inside-inner-col > .kt-row-column-wrap > * {
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
}


/* ==========================================================
   Cards
   ========================================================== */

.nj-why-card {
	position: relative;

	height: 100%;

	padding: 24px 22px 22px;

	background:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.88),
			rgba(248, 246, 240, 0.96)
		);

	border: 1px solid rgba(46, 94, 78, 0.10);
	border-radius: 20px;

	box-shadow:
		0 10px 28px rgba(43, 43, 43, 0.04);

	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.nj-why-card > .kt-inside-inner-col {
	padding: 0 !important;
}

.nj-why-card-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 42px;
	height: 42px;

	margin: 0 0 16px !important;
	padding: 0 12px;

	border-radius: 999px;

	background: rgba(200, 155, 60, 0.16);
	border: 1px solid rgba(200, 155, 60, 0.34);

	color: #144637;

	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
}

.nj-why-card h3 {
	margin: 0 0 10px !important;

	color: #144637;

	font-family: "Libre Caslon Text", Georgia, serif;
	font-size: 27px;
	font-weight: 400;
	line-height: 1.14;

	letter-spacing: -0.015em;
}

.nj-why-card p:not(.nj-why-card-number) {
	margin: 0 !important;

	color: rgba(43, 43, 43, 0.68);

	font-family: "Manrope", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

@media (hover: hover) {
	.nj-why-card:hover {
		transform: translateY(-3px);

		border-color: rgba(200, 155, 60, 0.28);

		box-shadow:
			0 14px 34px rgba(43, 43, 43, 0.06);
	}
}


/* ==========================================================
   Right side – intro
   ========================================================== */

.nj-why-intro {
	min-width: 0;
}

.nj-why-intro > .kt-inside-inner-col {
	padding: 0 !important;
}

.nj-why-intro .nj-section-eyebrow {
	margin: 0 0 16px;

	color: #2E5E4E;

	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;

	letter-spacing: 0.10em;
	text-transform: uppercase;
}

.nj-why-intro h2 {
	max-width: 520px;

	margin: 0 0 22px;

	color: #144637;

	font-family: "Libre Caslon Text", Georgia, serif;
	font-size: clamp(44px, 3.9vw, 60px);
	font-weight: 400;
	line-height: 1.06;

	letter-spacing: -0.03em;
	text-wrap: balance;
}

.nj-why-intro h2 + p {
	max-width: 520px;

	margin: 0 0 28px;

	color: rgba(43, 43, 43, 0.72);

	font-family: "Manrope", sans-serif;
	font-size: 17px;
	line-height: 1.75;
}

.nj-why-note {
	position: relative;

	max-width: 500px;

	margin: 0 !important;
	padding: 18px 20px 18px 22px;

	background: rgba(127, 167, 139, 0.08);

	border: 1px solid rgba(46, 94, 78, 0.10);
	border-radius: 16px;

	color: rgba(43, 43, 43, 0.70);

	font-family: "Manrope", sans-serif;
	font-size: 14px;
	line-height: 1.62;
}

.nj-why-note::before {
	content: "";

	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 0;

	width: 3px;
	border-radius: 999px;

	background: #C89B3C;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1024px) {

	.nj-why-dxn {
		padding: 84px 0 90px;
	}

	.nj-why-dxn > .kt-row-column-wrap {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.nj-why-intro {
		order: 1;
	}

	.nj-why-grid {
		order: 2;
	}

	.nj-why-intro h2 {
		max-width: 100%;
	}

	.nj-why-intro h2 + p,
	.nj-why-note {
		max-width: 100%;
	}
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767px) {

	.nj-why-dxn {
		width: 100%;

		padding: 72px 20px 78px;
	}

	.nj-why-dxn > .kt-row-column-wrap {
		display: flex !important;
		flex-direction: column;
		gap: 34px;
	}

	.nj-why-intro h2 {
		font-size: clamp(34px, 9vw, 40px);
	}

	.nj-why-intro h2 + p {
		font-size: 15px;
		line-height: 1.68;
	}

	.nj-why-note {
		padding: 16px 18px 16px 20px;

		font-size: 13px;
		line-height: 1.58;
	}

	.nj-why-grid > .kt-inside-inner-col {
		gap: 14px;
	}

	.nj-why-grid .kt-row-layout-inner,
	.nj-why-grid > .kt-inside-inner-col > .wp-block-kadence-rowlayout > .kt-row-column-wrap,
	.nj-why-grid > .kt-inside-inner-col > .kt-row-layout > .kt-row-column-wrap,
	.nj-why-grid > .kt-inside-inner-col > .kt-row-column-wrap {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.nj-why-card {
		padding: 20px 18px 18px;
		border-radius: 18px;
	}

	.nj-why-card-number {
		min-width: 38px;
		height: 38px;

		margin-bottom: 14px !important;

		font-size: 11px;
	}

	.nj-why-card h3 {
		font-size: 23px;
		line-height: 1.16;
	}

	.nj-why-card p:not(.nj-why-card-number) {
		font-size: 13px;
		line-height: 1.55;
	}
}

/* ==========================================================
   WHY DXN – Editorial intro refinement
   ========================================================== */

.nj-why-intro {
	position: relative;

	display: flex;
	align-items: center;

	min-height: 100%;
}


.nj-why-intro > .kt-inside-inner-col {
	width: 100%;

	padding: 18px 0 0 !important;
}


/* ----------------------------------------------------------
   Eyebrow
   ---------------------------------------------------------- */

.nj-why-intro .nj-section-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;

	margin: 0 0 24px !important;

	color: #2E5E4E;

	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;

	letter-spacing: 0.11em;
	text-transform: uppercase;
}


/* Amber editorial marker */
.nj-why-intro .nj-section-eyebrow::before {
	content: "";

	width: 34px;
	height: 2px;

	background: #C89B3C;

	border-radius: 999px;
}


/* ----------------------------------------------------------
   Main headline
   ---------------------------------------------------------- */

.nj-why-intro h2 {
	max-width: 570px;

	margin: 0 0 28px !important;

	color: #144637;

	font-family: "Libre Caslon Text", Georgia, serif;
	font-size: clamp(48px, 4vw, 62px);
	font-weight: 400;
	line-height: 1.04;

	letter-spacing: -0.035em;

	text-wrap: balance;
}


/* ----------------------------------------------------------
   Lead
   ---------------------------------------------------------- */

.nj-why-intro h2 + p {
	max-width: 540px;

	margin: 0 0 34px !important;

	color: rgba(43, 43, 43, 0.72);

	font-family: "Manrope", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.72;
}


/* ----------------------------------------------------------
   Editorial note / quote
   ---------------------------------------------------------- */

.nj-why-note {
	position: relative;

	max-width: 520px;

	margin: 0 !important;
	padding: 24px 26px 24px 32px;

	overflow: hidden;

	background:
		linear-gradient(
			135deg,
			rgba(127, 167, 139, 0.11),
			rgba(255, 255, 255, 0.50)
		);

	border: 1px solid rgba(46, 94, 78, 0.11);
	border-radius: 18px;

	color: rgba(43, 43, 43, 0.74);

	font-family: "Manrope", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;

	box-shadow:
		0 12px 30px rgba(43, 43, 43, 0.035);
}


/* Amber edge */
.nj-why-note::before {
	content: "";

	position: absolute;

	top: 22px;
	bottom: 22px;
	left: 0;

	width: 3px;

	border-radius: 999px;

	background: #C89B3C;
}


/* Decorative quotation mark */
.nj-why-note::after {
	content: "“";

	position: absolute;

	top: -17px;
	right: 18px;

	color: rgba(46, 94, 78, 0.055);

	font-family: "Libre Caslon Text", Georgia, serif;
	font-size: 100px;
	line-height: 1;

	pointer-events: none;
}