/* ==========================================================================
   Секція: Junior Health Code (кроки)
   Desktop-First CSS
   ========================================================================== */

.fl-junior-steps-section {
	padding: 70px 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	position: relative;
	overflow: hidden;
}

.fl-junior-steps-section .container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Текст перед кроками */
.fl-junior-steps-section .fl-steps-text-content {
	max-width: 900px;
	margin: 0 auto 90px auto;
	text-align: center;
}

.fl-junior-steps-section .fl-steps-text-content p {
	font-size: 18px;
	font-weight: 500;
	line-height: 160%;
	color: #656565;
	margin: 0 0 16px 0;
	text-align: center;
}

.fl-junior-steps-section .fl-steps-text-content p:last-child {
	margin-bottom: 0;
}

.fl-junior-steps-section .fl-steps-text-content ul {
	list-style: none;
	padding: 0;
	margin: 16px auto;
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
}

.fl-junior-steps-section .fl-steps-text-content ul li {
	position: relative;
	padding-left: 32px;
	font-size: 18px;
	font-weight: 500;
	line-height: 160%;
	color: #656565;
}

.fl-junior-steps-section .fl-steps-text-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	width: 20px;
	height: 20px;
	background-image: url('https://t1.kochuk.com.ua/wp-content/uploads/2025/07/ul_check.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Обгортка карток */
.fl-junior-steps-section .wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 110px auto 0 auto;
	position: relative;
}

.fl-junior-steps-section .cards-container {
	position: relative;
	width: 100%;
	height: 650px;
	margin-bottom: 40px;
}

.fl-junior-steps-section .card {
	position: absolute;
	width: 100%;
	max-width: 1200px;
	left: 50%;
	transform: translateX(-50%);
	height: 100%;
	border-radius: 24px;
	padding: 40px;
	transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

/* Позиціонування карток на десктопі (алгоритм стопки карток) */
.fl-junior-steps-section .card[data-position="0"] {
	z-index: 10;
	transform: translateX(-50%) translateY(0) scale(1);
	opacity: 1;
}

.fl-junior-steps-section .card[data-position="1"] {
	z-index: 9;
	transform: translateX(-50%) translateY(-50px) scale(0.90);
	opacity: 0.95;
}

.fl-junior-steps-section .card[data-position="2"] {
	z-index: 8;
	transform: translateX(-50%) translateY(-100px) scale(0.80);
	opacity: 0.90;
}

.fl-junior-steps-section .card[data-position="3"] {
	z-index: 7;
	transform: translateX(-50%) translateY(-150px) scale(0.70);
	opacity: 0.85;
}

.fl-junior-steps-section .card[data-position="4"] {
	z-index: 6;
	transform: translateX(-50%) translateY(-200px) scale(0.60);
	opacity: 0.80;
}

.fl-junior-steps-section .card[data-position="5"] {
	z-index: 5;
	transform: translateX(-50%) translateY(-240px) scale(0.52);
	opacity: 0.70;
}

.fl-junior-steps-section .card[data-position="6"] {
	z-index: 4;
	transform: translateX(-50%) translateY(-270px) scale(0.45);
	opacity: 0.60;
}

.fl-junior-steps-section .card[data-position]:not([data-position="0"]):not([data-position="1"]):not([data-position="2"]):not([data-position="3"]):not([data-position="4"]):not([data-position="5"]):not([data-position="6"]) {
	z-index: 1;
	transform: translateX(-50%) translateY(-280px) scale(0.40);
	opacity: 0;
	pointer-events: none;
}

/* Стилі кольорів для кроків (чергування 1, 2, 3, 4, 5, 6...) */
/* Колір 1 (Фіолетовий): 1, 4, 7... */
.fl-junior-steps-section .card[data-step-color="1"],
.fl-junior-steps-section .card[data-step="1"],
.fl-junior-steps-section .card[data-step="4"],
.fl-junior-steps-section .card[data-step="7"],
.fl-junior-steps-section .card[data-step="10"] {
	background: #f0e6ff;
	border: 2px solid #e0d0ff;
}

.fl-junior-steps-section .card[data-step-color="1"] .step-label,
.fl-junior-steps-section .card[data-step="1"] .step-label,
.fl-junior-steps-section .card[data-step="4"] .step-label,
.fl-junior-steps-section .card[data-step="7"] .step-label,
.fl-junior-steps-section .card[data-step="10"] .step-label {
	background: #9670FF;
}

.fl-junior-steps-section .card[data-step-color="1"] .content-list li::before,
.fl-junior-steps-section .card[data-step="1"] .content-list li::before,
.fl-junior-steps-section .card[data-step="4"] .content-list li::before,
.fl-junior-steps-section .card[data-step="7"] .content-list li::before,
.fl-junior-steps-section .card[data-step="10"] .content-list li::before {
	color: #7c3aed;
}

/* Колір 2 (Помаранчевий): 2, 5, 8... */
.fl-junior-steps-section .card[data-step-color="2"],
.fl-junior-steps-section .card[data-step="2"],
.fl-junior-steps-section .card[data-step="5"],
.fl-junior-steps-section .card[data-step="8"],
.fl-junior-steps-section .card[data-step="11"] {
	background: #fff5e6;
	border: 2px solid #ffe0b3;
}

.fl-junior-steps-section .card[data-step-color="2"] .step-label,
.fl-junior-steps-section .card[data-step="2"] .step-label,
.fl-junior-steps-section .card[data-step="5"] .step-label,
.fl-junior-steps-section .card[data-step="8"] .step-label,
.fl-junior-steps-section .card[data-step="11"] .step-label {
	background: #f59e0b;
}

.fl-junior-steps-section .card[data-step-color="2"] .content-list li::before,
.fl-junior-steps-section .card[data-step="2"] .content-list li::before,
.fl-junior-steps-section .card[data-step="5"] .content-list li::before,
.fl-junior-steps-section .card[data-step="8"] .content-list li::before,
.fl-junior-steps-section .card[data-step="11"] .content-list li::before {
	color: #f59e0b;
}

/* Колір 3 (Блакитний): 3, 6, 9... */
.fl-junior-steps-section .card[data-step-color="3"],
.fl-junior-steps-section .card[data-step="3"],
.fl-junior-steps-section .card[data-step="6"],
.fl-junior-steps-section .card[data-step="9"],
.fl-junior-steps-section .card[data-step="12"] {
	background: #e6f5ff;
	border: 2px solid #b3dfff;
}

.fl-junior-steps-section .card[data-step-color="3"] .step-label,
.fl-junior-steps-section .card[data-step="3"] .step-label,
.fl-junior-steps-section .card[data-step="6"] .step-label,
.fl-junior-steps-section .card[data-step="9"] .step-label,
.fl-junior-steps-section .card[data-step="12"] .step-label {
	background: #0ea5e9;
}

.fl-junior-steps-section .card[data-step-color="3"] .content-list li::before,
.fl-junior-steps-section .card[data-step="3"] .content-list li::before,
.fl-junior-steps-section .card[data-step="6"] .content-list li::before,
.fl-junior-steps-section .card[data-step="9"] .content-list li::before,
.fl-junior-steps-section .card[data-step="12"] .content-list li::before {
	color: #0ea5e9;
}

/* Вміст картки */
.fl-junior-steps-section .card-content {
	display: flex;
	gap: 32px;
	height: 100%;
}

.fl-junior-steps-section .step-label {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 170%;
	color: white;
}

.fl-junior-steps-section .card-title {
	font-size: 36px;
	font-weight: 700;
	color: #151515;
	margin: 0;
	line-height: 135%;
}

.fl-junior-steps-section .content-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
	overflow-y: auto;
}

.fl-junior-steps-section .card-desc {
	font-size: 16px;
	font-weight: 500;
	line-height: 160%;
	color: #4a4a4a;
	width: 100%;
}

.fl-junior-steps-section .card-desc p {
	margin: 0 0 8px 0;
}

.fl-junior-steps-section .card-desc p:last-child {
	margin-bottom: 0;
}

.fl-junior-steps-section .content-list ul {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	width: 100%;
}

.fl-junior-steps-section .content-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 500;
	line-height: 160%;
	color: #4a4a4a;
}

.fl-junior-steps-section .content-list li:last-child {
	margin-bottom: 0;
}

.fl-junior-steps-section .content-list li::before {
	content: "●";
	position: absolute;
	left: 0;
}

.fl-junior-steps-section .content-list li strong {
	font-size: 20px;
	font-weight: 600;
	line-height: 170%;
	color: #2B2B2B;
	display: block;
	margin-bottom: 4px;
}

/* Медіа-блок (фото або відео) */
.fl-junior-steps-section .media-placeholder {
	width: 450px;
	height: 550px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
	color: #666;
	overflow: hidden;
	position: relative;
}

.fl-junior-steps-section .media-placeholder img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fl-junior-steps-section .media-placeholder iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.fl-junior-steps-section .media-placeholder video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fl-junior-steps-section .media-empty-info {
	font-size: 14px;
	color: #888;
	text-align: center;
	padding: 16px;
}

/* Навігація */
.fl-junior-steps-section .navigation {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 10px;
}

.fl-junior-steps-section .nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.fl-junior-steps-section .nav-btn:hover {
	transform: scale(1.08);
}

.fl-junior-steps-section .nav-btn svg {
	width: 37px;
	height: 37px;
	display: block;
}

/* ==========================================================================
   Адаптивність (Mobile max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
	.fl-junior-steps-section {
		padding: 24px 0;
	}

	.fl-junior-steps-section .fl-steps-text-content {
		margin-bottom: 30px;
	}

	.fl-junior-steps-section .wrapper {
		padding: 0;
		margin-top: 20px;
	}

	.fl-junior-steps-section .cards-container {
		height: auto;
		margin-bottom: 0;
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.fl-junior-steps-section .card {
		position: static !important;
		transform: none !important;
		opacity: 1 !important;
		margin-bottom: 0;
		width: 100%;
		max-width: 100%;
		height: auto;
		padding: 24px;
		display: block !important;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	}

	.fl-junior-steps-section .card-title {
		font-size: 24px;
		margin-bottom: 16px;
	}

	.fl-junior-steps-section .card-content {
		flex-direction: column;
		gap: 20px;
		height: auto;
	}

	.fl-junior-steps-section .media-placeholder {
		width: 100%;
		height: 220px;
		/* За вимогою користувача: 220px на мобайлі */
	}

	.fl-junior-steps-section .navigation {
		display: none;
	}
}