/* ==========================================================
   NAPONTA JOBBAN
   Homepage – Routines Showcase
   ========================================================== */

.nj-routines {
	position: relative;

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

	padding: 76px 0 84px;

	background: #FAF8F3;
}


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

.nj-routines > .kt-row-column-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);

	gap: clamp(54px, 6vw, 88px);

	align-items: center;

	padding: 0;
}


/* ==========================================================
   Left visual – stable layered layout
   ========================================================== */

.nj-routines-visual {
	position: relative;

	height: clamp(500px, 62vh, 620px);
	min-height: 0;
	max-height: 620px;

	overflow: hidden;

	border-radius: 24px;

	box-shadow:
		0 22px 54px rgba(43, 43, 43, 0.07);
}


/*
 * A Kadence belső column wrapper lesz a layering container.
 * A kép és az overlay ugyanabban a grid-cellában van.
 */
.nj-routines-visual > .kt-inside-inner-col {
	display: grid !important;

	grid-template-columns: 1fr;
	grid-template-rows: 1fr;

	width: 100%;
	height: 100%;

	padding: 0 !important;
}


/* A két közvetlen gyerek ugyanarra a területre kerül */
.nj-routines-visual > .kt-inside-inner-col > * {
	grid-column: 1;
	grid-row: 1;
}


/* ==========================================================
   Image
   ========================================================== */

.nj-routines-visual > .kt-inside-inner-col > :first-child {
	width: 100%;
	height: 100%;
	min-height: 0;
}


.nj-routines-visual img {
	display: block;

	width: 100%;
	height: 100% !important;
	min-height: 0 !important;

	object-fit: cover;
	object-position: center;
}


/* Image overlay */
.nj-routines-visual::before {
	content: "";

	position: absolute;
	inset: 0;

	z-index: 1;

	background:
		linear-gradient(
			180deg,
			rgba(20, 70, 55, 0.02) 30%,
			rgba(20, 70, 55, 0.70) 100%
		);

	pointer-events: none;
}


/* ==========================================================
   Glass content
   ========================================================== */

.nj-routines-overlay {
	position: relative !important;

	grid-column: 1;
	grid-row: 1;

	align-self: end;
	justify-self: stretch;

	z-index: 2;

	margin: 0 30px 30px !important;
	padding: 24px 27px;

	background: rgba(224, 230, 225, 0.20);

	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);

	border: 1px solid rgba(250, 248, 243, 0.25);
	border-radius: 16px;

	color: #FAF8F3;

	box-shadow:
		0 14px 36px rgba(20, 70, 55, 0.14);
}


.nj-routines-overlay > .kt-row-column-wrap {
	padding: 0 !important;
}


.nj-routines-overlay h3 {
	margin: 0 0 9px;

	color: #FAF8F3;

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

	letter-spacing: -0.02em;
}


.nj-routines-overlay p {
	max-width: 470px;

	margin: 0;

	color: rgba(250, 248, 243, 0.84);

	font-size: 14px;
	line-height: 1.6;
}

/* ==========================================================
   Visual text overlay
   ========================================================== */

.nj-routines-overlay {
	position: absolute !important;

	left: 30px;
	right: 30px;
	bottom: 30px;

	z-index: 2;

	padding: 26px 28px;

	background:
		rgba(250, 248, 243, 0.16);

	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);

	border: 1px solid rgba(250, 248, 243, 0.22);
	border-radius: 16px;

	color: #FAF8F3;

	box-shadow:
		0 14px 36px rgba(20, 70, 55, 0.12);
}


.nj-routines-overlay > .kt-row-column-wrap {
	padding: 0;
}


.nj-routines-overlay h3 {
	margin: 0 0 10px;

	color: #FAF8F3;

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

	letter-spacing: -0.02em;
}


.nj-routines-overlay p {
	max-width: 470px;

	margin: 0;

	color: rgba(250, 248, 243, 0.82);

	font-size: 14px;
	line-height: 1.65;
}


/* ==========================================================
   Right heading area
   ========================================================== */

.nj-routines .nj-section-eyebrow {
	margin: 0 0 14px;

	color: #2E5E4E;

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

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


.nj-routines h2 {
	max-width: 620px;

	margin: 0 0 18px;

	color: #144637;

	font-family: "Libre Caslon Text", Georgia, serif;
	font-size: clamp(42px, 3.5vw, 54px);
	font-weight: 400;
	line-height: 1.10;

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


.nj-routines h2 + p {
	max-width: 610px;

	margin: 0 0 42px;

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

	font-size: 16px;
	line-height: 1.7;
}


/* ==========================================================
   Routine list
   ========================================================== */

.nj-routines-list {
	position: relative;
}


.nj-routines-list > .kt-row-column-wrap {
	display: flex !important;
	flex-direction: column;

	gap: 0;

	padding: 0;
}


/* ==========================================================
   Individual routine item
   ========================================================== */

.nj-routine-item {
	position: relative;

	border-top: 1px solid rgba(46, 94, 78, 0.12);

	transition:
		background-color 180ms ease,
		padding-left 180ms ease;
}


.nj-routine-item:last-child {
	border-bottom: 1px solid rgba(46, 94, 78, 0.12);
}


.nj-routine-item > .kt-inside-inner-col {
	position: relative;

	display: grid;

	grid-template-columns: 56px minmax(0, 1fr);
	grid-template-rows: auto auto;

	column-gap: 18px;
	row-gap: 5px;

	align-items: center;

	padding: 20px 14px 20px 0;
}


/* Number / icon area */
.nj-routine-item > .kt-inside-inner-col > :first-child {
	grid-column: 1;
	grid-row: 1 / span 2;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	margin: 0 !important;

	border-radius: 13px;

	background: rgba(127, 167, 139, 0.12);
	color: #2E5E4E;

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


/* Title */
.nj-routine-item h3 {
	grid-column: 2;
	grid-row: 1;

	margin: 0;

	color: #144637;

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

	letter-spacing: -0.015em;
}


/* Short text */
.nj-routine-item p {
	grid-column: 2;
	grid-row: 2;

	max-width: 520px;

	margin: 0;

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

	font-size: 14px;
	line-height: 1.55;
}


/* ==========================================================
   Active / default first item
   ========================================================== */

.nj-routine-item:first-child {
	background:
		linear-gradient(
			90deg,
			rgba(127, 167, 139, 0.10),
			transparent 75%
		);
}


.nj-routine-item:first-child > .kt-inside-inner-col > :first-child {
	background: #C89B3C;
	color: #144637;
}


/* ==========================================================
   Desktop hover
   ========================================================== */

@media (hover: hover) {

	.nj-routine-item:hover {
		padding-left: 8px;

		background:
			linear-gradient(
				90deg,
				rgba(127, 167, 139, 0.10),
				transparent 75%
			);
	}

}


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

@media (max-width: 1024px) {

	.nj-routines {
		padding: 92px 0;
	}


	.nj-routines > .kt-row-column-wrap {
		grid-template-columns: 0.9fr 1.1fr;

		gap: 42px;
	}


	.nj-routines-visual {
		height: clamp(480px, 58vh, 560px);
		max-height: 560px;
	}

	.nj-routines-visual img {
		height: 100%;
		min-height: 0;
	}


	.nj-routines-overlay {
		
		padding: 22px;
	}


	.nj-routine-item > .kt-inside-inner-col {
		grid-template-columns: 50px minmax(0, 1fr);

		column-gap: 14px;

		padding-block: 17px;
	}


	.nj-routine-item h3 {
		font-size: 21px;
	}

}


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

@media (max-width: 767px) {

	.nj-routines {
		width: 100%;

		padding: 72px 20px 78px;
	}


	.nj-routines > .kt-row-column-wrap {
		display: flex !important;
		flex-direction: column;

		gap: 48px;
	}


	/* Mobilon előbb szöveg/lista, utána vizuál */
	.nj-routines > .kt-row-column-wrap > :first-child {
		order: 2;
	}


	.nj-routines > .kt-row-column-wrap > :last-child {
		order: 1;
	}


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


	.nj-routines h2 + p {
		margin-bottom: 34px;

		font-size: 15px;
	}


	/* List */
	.nj-routine-item > .kt-inside-inner-col {
		grid-template-columns: 48px minmax(0, 1fr);

		column-gap: 14px;

		padding: 18px 6px 18px 0;
	}


	.nj-routine-item > .kt-inside-inner-col > :first-child {
		width: 42px;
		height: 42px;
	}


	.nj-routine-item h3 {
		font-size: 22px;
	}


	.nj-routine-item p {
		font-size: 13px;
		line-height: 1.55;
	}


	/* Visual */
	.nj-routines-visual,
	.nj-routines-visual img {
		min-height: 420px;
	}


	.nj-routines-visual {
		border-radius: 20px;
	}


	.nj-routines-overlay {
		
		padding: 20px;

		border-radius: 14px;
	}


	.nj-routines-overlay h3 {
		font-size: 26px;
	}

}

@media (max-width: 767px) {

	.nj-routines-visual {
		height: clamp(400px, 68vh, 500px);
		max-height: 500px;

		border-radius: 20px;
	}


	.nj-routines-overlay {
		margin: 0 16px 16px !important;
		padding: 19px 20px;

		border-radius: 14px;
	}


	.nj-routines-overlay h3 {
		font-size: 25px;
		line-height: 1.14;
	}


	.nj-routines-overlay p {
		font-size: 13px;
		line-height: 1.55;
	}

}

/* ==========================================================
   ROUTINES – INTERACTIVE STATES
   ========================================================== */

/* ----------------------------------------------------------
   Image stack
   ---------------------------------------------------------- */

.nj-routines-visual {
	position: relative;
	isolation: isolate;
}

.nj-routines-visual > .kt-inside-inner-col {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}


/* Minden szerkesztőből felvett kép egymás fölött */
.nj-routine-slide {
	position: absolute !important;
	inset: 0;

	width: 100% !important;
	height: 100% !important;

	margin: 0 !important;

	opacity: 0;
	visibility: hidden;

	transform: scale(1.025);

	transition:
		opacity 650ms ease,
		transform 900ms cubic-bezier(.22, 1, .36, 1),
		visibility 650ms;
}


.nj-routine-slide img {
	display: block;

	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;

	object-fit: cover;
	object-position: center;
}


/* Aktív kép */
.nj-routine-slide.is-active {
	opacity: 1;
	visibility: visible;

	transform: scale(1);

	z-index: 0;
}


/* Sötétzöld kép-overlay minden slide fölött */
.nj-routines-visual::before {
	content: "";

	position: absolute;
	inset: 0;

	z-index: 1;
	pointer-events: none;

	background:
		linear-gradient(
			180deg,
			rgba(20, 70, 55, 0.03) 20%,
			rgba(20, 70, 55, 0.22) 58%,
			rgba(20, 70, 55, 0.72) 100%
		);
}


/* ----------------------------------------------------------
   Glass caption
   ---------------------------------------------------------- */

.nj-routines-overlay {
	position: absolute !important;

	left: 30px;
	right: 30px;
	bottom: 30px;

	z-index: 3;

	margin: 0 !important;

	transition:
		opacity 180ms ease,
		transform 180ms ease;
}


.nj-routines-overlay.is-changing {
	opacity: 0;
	transform: translateY(6px);
}


/* ----------------------------------------------------------
   Desktop routine list
   ---------------------------------------------------------- */

.nj-routine-item {
	cursor: pointer;

	transition:
		background 220ms ease,
		padding-left 220ms ease,
		opacity 220ms ease;
}


.nj-routine-item.is-active {
	background:
		linear-gradient(
			90deg,
			rgba(127, 167, 139, 0.13),
			rgba(127, 167, 139, 0.025) 72%,
			transparent
		);
}


/* Kis aktív indikátor */
/*
.nj-routine-item::before {
	content: "";

	position: absolute;
	top: 50%;
	left: 0;

	width: 3px;
	height: 0;

	border-radius: 999px;

	background: #C89B3C;

	transform: translateY(-50%);

	transition: height 220ms ease;
	
}
*/

.nj-routine-item.is-active::before {
	height: 52%;
}


/* Ne csak az első item legyen hardcode-olt active */
.nj-routine-item:first-child {
	background: transparent;
}


.nj-routine-item:first-child > .kt-inside-inner-col > :first-child {
	background: rgba(127, 167, 139, 0.12);
	color: #2E5E4E;
}


/* Aktív szám */
.nj-routine-item.is-active > .kt-inside-inner-col > :first-child,
.nj-routine-item.is-active .nj-routine-number {
	background: #C89B3C;
	color: #144637;
}


/* ==========================================================
   Generated carousel controls
   ========================================================== */

.nj-routine-arrow,
.nj-routine-dots {
	display: none;
}


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

@media (max-width: 767px) {

	/*
	 * Mobilon nincs szükség a jobb oldali táblázatos listára.
	 * A kép + caption maga hordozza a tartalmat.
	 */
	.nj-routines-list {
		display: none !important;
	}


	.nj-routines > .kt-row-column-wrap {
		display: block !important;
	}


	/*
	 * A vizuális rész jelenjen meg normál sorrendben.
	 * A desktophoz beállított order értékeket nullázzuk.
	 */
	.nj-routines > .kt-row-column-wrap > :first-child,
	.nj-routines > .kt-row-column-wrap > :last-child {
		order: initial;
	}


	.nj-routines-visual {
		height: clamp(470px, 72vh, 560px);
		max-height: 560px;

		margin-top: 0;

		border-radius: 20px;
	}


	/* Caption fölött hagyjunk helyet a dots sornak */
	.nj-routines-overlay {
		left: 16px;
		right: 16px;
		bottom: 48px;

		padding: 20px;

		border-radius: 14px;
	}


	.nj-routines-overlay h3 {
		font-size: 27px;
	}


	.nj-routines-overlay p {
		font-size: 13px;
		line-height: 1.55;
	}


	/* ------------------------------------------------------
	   Prev / Next arrows
	   ------------------------------------------------------ */

	.nj-routine-arrow {
		position: absolute;

		top: 48%;

		z-index: 5;

		display: flex;
		align-items: center;
		justify-content: center;

		width: 42px;
		height: 42px;

		padding: 0;

		border: 1px solid rgba(250, 248, 243, 0.34);
		border-radius: 50%;

		background: rgba(20, 70, 55, 0.28);
		color: rgba(250, 248, 243, 0.92);

		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);

		box-shadow: none;

		font-size: 24px;
		line-height: 1;

		transform: translateY(-50%);

		cursor: pointer;

		transition:
			background 180ms ease,
			opacity 180ms ease;
	}


	.nj-routine-arrow:hover {
		background: rgba(20, 70, 55, 0.46);

		transform: translateY(-50%);
	}


	.nj-routine-prev {
		left: 12px;
	}


	.nj-routine-next {
		right: 12px;
	}


	/* ------------------------------------------------------
	   Dots
	   ------------------------------------------------------ */

	.nj-routine-dots {
		position: absolute;

		left: 50%;
		bottom: 18px;

		z-index: 5;

		display: flex;

		gap: 8px;

		transform: translateX(-50%);
	}


	.nj-routine-dot {
		width: 7px;
		height: 7px;

		padding: 0;

		border: 0;
		border-radius: 999px;

		background: rgba(250, 248, 243, 0.45);

		box-shadow: none;

		transition:
			width 200ms ease,
			background 200ms ease,
			opacity 200ms ease;

		cursor: pointer;
	}


	.nj-routine-dot.is-active {
		width: 22px;

		background: #C89B3C;
	}


	.nj-routine-dot:hover {
		transform: none;
	}

}


/* ==========================================================
   Accessibility
   ========================================================== */

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

	.nj-routine-slide,
	.nj-routines-overlay,
	.nj-routine-item {
		transition: none !important;
	}

}

/* ==========================================================
   Routine item – compact desktop layout
   ========================================================== */

.nj-routine-item > .kt-inside-inner-col {
	display: grid !important;
	grid-template-columns: 42px minmax(0, 1fr);
	column-gap: 18px;

	align-items: center;

	padding: 14px 10px 14px 0;
}


.nj-routine-number {
	grid-column: 1;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	margin: 0 !important;

	border-radius: 10px;

	background: rgba(127, 167, 139, 0.10);
	color: rgba(43, 43, 43, 0.55);

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


.nj-routine-copy {
	grid-column: 2;
	min-width: 0;
}


.nj-routine-copy > .kt-inside-inner-col,
.nj-routine-copy > .kt-row-column-wrap {
	display: block !important;
	padding: 0 !important;
}


.nj-routine-copy h3 {
	margin: 0 0 3px;

	color: #144637;

	font-family: "Libre Caslon Text", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
}


.nj-routine-copy > .kt-inside-inner-col > p:not(.nj-routine-data),
.nj-routine-copy > .kt-row-column-wrap > p:not(.nj-routine-data) {
	margin: 0;

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

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

.nj-routine-item.is-active {
	background:
		linear-gradient(
			90deg,
			rgba(127, 167, 139, 0.13),
			rgba(127, 167, 139, 0.025) 75%,
			transparent
		);
}


.nj-routine-item.is-active .nj-routine-number {
	background: #C89B3C;
	color: #144637;
}

@media (max-width: 767px) {

	.nj-routines > .kt-row-column-wrap {
		display: flex !important;
		flex-direction: column;
		gap: 38px;
	}


	/*
	 * DOM:
	 * first = visual
	 * last  = heading + intro + list
	 */

	.nj-routines > .kt-row-column-wrap > :last-child {
		order: 1;
	}


	.nj-routines > .kt-row-column-wrap > :first-child {
		order: 2;
	}


	/* A lista mobilon továbbra sem kell */
	.nj-routines-list {
		display: none !important;
	}

}


/* ==========================================================
   NAPONTA JOBBAN
   Routines – layout stabilization
   ========================================================== */


/* ==========================================================
   1. MAIN DESKTOP LAYOUT
   A két oldal mindig ugyanolyan magas
   ========================================================== */

.nj-routines > .kt-row-column-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(48px, 5vw, 76px);

	align-items: stretch !important;
}


/* ==========================================================
   2. LEFT VISUAL
   Nem fix magasságú: a jobb oszlop magasságát követi
   ========================================================== */

.nj-routines-visual {
	position: relative;

	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;

	align-self: stretch;

	overflow: hidden;

	border-radius: 24px;
}


.nj-routines-visual > .kt-inside-inner-col {
	position: relative;

	width: 100%;
	height: 100% !important;
	min-height: 100%;

	padding: 0 !important;

	overflow: hidden;
}


/* A slide-stack teljes vizuális területet kitölti */

.nj-routine-slide {
	position: absolute !important;
	inset: 0;

	width: 100% !important;
	height: 100% !important;

	margin: 0 !important;
}


.nj-routine-slide img {
	display: block;

	width: 100% !important;
	height: 100% !important;

	min-height: 0 !important;

	object-fit: cover;
	object-position: center;
}


/* ==========================================================
   3. HIDDEN EDITORIAL DATA
   Ezek csak JS adatforrások
   ========================================================== */

.nj-routines .nj-routine-data {
	display: none !important;

	margin: 0 !important;
	padding: 0 !important;
}


/* ==========================================================
   4. RIGHT CONTENT
   ========================================================== */

.nj-routines-content {
	min-width: 0;
}


.nj-routines-content > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;

	height: 100%;
}


/* Intro után ne legyen túl nagy rés */

.nj-routines h2 + p {
	margin-bottom: 28px !important;
}


/* ==========================================================
   5. COMPACT ROUTINE LIST
   ========================================================== */

.nj-routines-list {
	margin-top: 0 !important;
}


.nj-routines-list > .kt-row-column-wrap {
	display: flex !important;
	flex-direction: column;

	gap: 0 !important;

	padding: 0 !important;
}


.nj-routine-item {
	position: relative;

	margin: 0 !important;

	border-top: 1px solid rgba(46, 94, 78, .12);

	background: transparent;

	cursor: pointer;
}


.nj-routine-item:last-child {
	border-bottom: 1px solid rgba(46, 94, 78, .12);
}


/*
 * Szám | cím + leírás
 */
.nj-routine-item > .kt-inside-inner-col {
	display: grid !important;

	grid-template-columns: 38px minmax(0, 1fr);

	column-gap: 16px;

	align-items: center;

	min-height: 0 !important;

	padding: 11px 10px 11px 0 !important;
}


/* ==========================================================
   6. NUMBER
   ========================================================== */

.nj-routine-number {
	display: flex !important;
	align-items: center;
	justify-content: center;

	width: 34px !important;
	height: 34px !important;

	margin: 0 !important;
	padding: 0 !important;

	border-radius: 10px;

	background: rgba(127, 167, 139, .10);
	color: rgba(43, 43, 43, .54);

	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}


/* ==========================================================
   7. TITLE + SHORT TEXT
   Egyetlen stabil copy-column
   ========================================================== */

.nj-routine-copy {
	min-width: 0;

	margin: 0 !important;
	padding: 0 !important;
}


.nj-routine-copy > .kt-inside-inner-col,
.nj-routine-copy > .kt-row-column-wrap {
	display: block !important;

	margin: 0 !important;
	padding: 0 !important;
}


.nj-routine-copy h3 {
	margin: 0 0 3px !important;

	color: #144637;

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

	letter-spacing: -.012em;
}


.nj-routine-copy p:not(.nj-routine-data) {
	margin: 0 !important;

	color: rgba(43, 43, 43, .60);

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


/* ==========================================================
   8. ACTIVE STATE
   Nincs külön vonal: ne ütközzön a számmal
   ========================================================== */

.nj-routine-item::before {
	display: none !important;
}


.nj-routine-item.is-active {
	background:
		linear-gradient(
			90deg,
			rgba(127, 167, 139, .13),
			rgba(127, 167, 139, .025) 72%,
			transparent 100%
		) !important;
}


.nj-routine-item.is-active .nj-routine-number {
	background: #C89B3C !important;
	color: #144637 !important;
}


/* A régi first-child hardcode teljes resetje */

.nj-routine-item:first-child {
	background: transparent;
}


.nj-routine-item:first-child .nj-routine-number {
	background: rgba(127, 167, 139, .10);
	color: rgba(43, 43, 43, .54);
}


.nj-routine-item:first-child.is-active .nj-routine-number {
	background: #C89B3C;
	color: #144637;
}


/* ==========================================================
   9. GLASS OVERLAY
   ========================================================== */

.nj-routines-overlay {
	position: absolute !important;

	left: 26px;
	right: 26px;
	bottom: 26px;

	z-index: 4;

	margin: 0 !important;
	padding: 22px 24px !important;
}


.nj-routines-overlay h3 {
	margin: 0 0 7px !important;

	font-size: 28px;
	line-height: 1.12;
}


.nj-routines-overlay p {
	margin: 0 !important;

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


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) and (min-width: 768px) {

	.nj-routines > .kt-row-column-wrap {
		grid-template-columns: .88fr 1.12fr;
		gap: 36px;
	}

	.nj-routine-item > .kt-inside-inner-col {
		padding-block: 9px !important;
	}

	.nj-routine-copy h3 {
		font-size: 19px;
	}

	.nj-routine-copy p:not(.nj-routine-data) {
		font-size: 12px;
	}

}


/* ==========================================================
   MOBILE
   Heading first → carousel second
   ========================================================== */

@media (max-width: 767px) {

	.nj-routines {
		width: 100%;

		padding: 68px 20px 76px;
	}


	.nj-routines > .kt-row-column-wrap {
		display: flex !important;
		flex-direction: column !important;

		gap: 34px !important;

		align-items: stretch !important;
	}


	/* Right heading/content comes first */
	.nj-routines-content {
		order: 1 !important;
	}


	/* Visual carousel second */
	.nj-routines-visual {
		order: 2 !important;

		display: block !important;

		width: 100%;
		height: clamp(440px, 68vh, 520px) !important;

		min-height: 440px !important;
		max-height: 520px !important;

		visibility: visible !important;
		opacity: 1 !important;

		border-radius: 20px;
	}


	.nj-routines-visual > .kt-inside-inner-col {
		display: block !important;

		position: relative;

		width: 100%;
		height: 100% !important;

		overflow: hidden;
	}


	/* Jobb oldali desktop lista mobilon nincs */
	.nj-routines-list {
		display: none !important;
	}


	.nj-routines h2 {
		margin-bottom: 16px;

		font-size: clamp(34px, 9vw, 40px);
	}


	.nj-routines h2 + p {
		margin-bottom: 0 !important;

		font-size: 15px;
		line-height: 1.65;
	}


	/* Slides legyenek biztosan renderelhetők */

	.nj-routine-slide {
		display: block !important;

		position: absolute !important;
		inset: 0;

		width: 100% !important;
		height: 100% !important;
	}


	.nj-routine-slide.is-active {
		display: block !important;

		visibility: visible !important;
		opacity: 1 !important;
	}


	/* Mobile caption */

	.nj-routines-overlay {
		left: 15px;
		right: 15px;
		bottom: 46px;

		padding: 19px 20px !important;

		border-radius: 14px;
	}


	.nj-routines-overlay h3 {
		font-size: 26px;
	}


	.nj-routines-overlay p {
		font-size: 13px;
	}


	/* Controls */

	.nj-routine-arrow {
		display: flex !important;
	}


	.nj-routine-dots {
		display: flex !important;
	}

}

/* ==========================================================
   ROUTINES – desktop row layout fix
   Kadence Row Layout markupra célozva
   ========================================================== */

@media (min-width: 768px) {

	/* ---------------------------------------------
	   Egy rutin teljes sora
	   --------------------------------------------- */

	.nj-routine-item > .kt-row-column-wrap {
		display: grid !important;

		grid-template-columns: 36px minmax(0, 1fr) !important;
		column-gap: 14px !important;

		align-items: start !important;

		min-height: 0 !important;

		margin: 0 !important;
		padding: 13px 8px 13px 0 !important;
	}


	/* Kadence által az oszlopokra rakott szélességek kiiktatása */
	.nj-routine-item > .kt-row-column-wrap > * {
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;

		margin: 0 !important;
		padding: 0 !important;
	}


	/* ---------------------------------------------
	   Számoszlop
	   --------------------------------------------- */

	.nj-routine-item > .kt-row-column-wrap > :first-child {
		grid-column: 1;

		align-self: start;

		margin-top: 2px !important;
	}


	.nj-routine-number {
		display: flex !important;
		align-items: center;
		justify-content: center;

		width: 32px !important;
		height: 32px !important;

		margin: 0 !important;
		padding: 0 !important;

		border-radius: 9px;

		background: rgba(127, 167, 139, 0.10);
		color: rgba(43, 43, 43, 0.54);

		font-size: 11px;
		font-weight: 600;
		line-height: 1;
	}


	/* ---------------------------------------------
	   Copy oszlop
	   --------------------------------------------- */

	.nj-routine-copy {
		grid-column: 2;

		width: 100% !important;
		min-width: 0;

		margin: 0 !important;
		padding: 0 !important;
	}


	.nj-routine-copy > .kt-inside-inner-col,
	.nj-routine-copy > .kt-row-column-wrap {
		display: flex !important;
		flex-direction: column !important;

		gap: 3px !important;

		width: 100%;

		margin: 0 !important;
		padding: 0 !important;
	}


	/* ---------------------------------------------
	   Cím
	   --------------------------------------------- */

	.nj-routine-copy h3 {
		margin: 0 !important;

		color: #144637;

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

		letter-spacing: -0.012em;

		text-align: left;
	}


	/* ---------------------------------------------
	   Normál short text
	   --------------------------------------------- */

	.nj-routine-copy p:not(.nj-routine-data) {
		margin: 0 !important;

		max-width: 480px;

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

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

		text-align: left;
	}


	/* ---------------------------------------------
	   Active
	   --------------------------------------------- */

	.nj-routine-item.is-active {
		background:
			linear-gradient(
				90deg,
				rgba(127, 167, 139, 0.12),
				rgba(127, 167, 139, 0.025) 70%,
				transparent
			) !important;
	}


	.nj-routine-item.is-active .nj-routine-number {
		background: #C89B3C !important;
		color: #144637 !important;
	}

}

.nj-routine-item {
    cursor: pointer;
}

