/* =========================================================
   ZTM Kielce — Widget "Aktualności" (karuzela)
   Badge + kropki nawigacji w górze, tytuł/podtytuł, sekcja z ikoną
   i opisem, przycisk "Czytaj więcej", strzałki prev/next w dolnym rogu.
   ========================================================= */

.ztm-widget--news {
	position: relative;
	padding: 28px 30px 26px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.ztm-news-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.ztm-news-badge {
	display: inline-flex;
	align-items: center;
	background: var(--ztm-navy);
	color: var(--ztm-white);
	font-size: calc(12.5px * var(--ztm-font-scale, 1));
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 8px 16px;
	border-radius: 8px;
}

.ztm-news-dots {
	display: flex;
	gap: 8px;
}

.ztm-news-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: var(--ztm-border-grey);
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ztm-news-dot:hover {
	transform: scale(1.2);
}

.ztm-news-dot.is-active {
	background: var(--ztm-navy);
}

.ztm-news-dot:focus-visible {
	outline: 3px solid var(--ztm-blue-light);
	outline-offset: 2px;
}

/* =========================================================
   TRACK / SLAJDY
   ========================================================= */

.ztm-news-track {
	position: relative;
	flex: 1;
}

.ztm-news-slide {
	display: none;
	flex-direction: column;
}

.ztm-news-slide.is-active {
	display: flex;
}

.ztm-news-title {
	font-size: calc(26px * var(--ztm-font-scale, 1));
	font-weight: 800;
	color: var(--ztm-navy);
	line-height: 1.25;
	margin: 0 0 6px;
}

.ztm-news-subtitle {
	font-size: calc(17px * var(--ztm-font-scale, 1));
	font-weight: 400;
	color: var(--ztm-tabs-text);
	margin: 0 0 22px;
}

.ztm-news-item {
	display: flex;
	gap: 14px;
	margin-bottom: 24px;
}

.ztm-news-item svg {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--ztm-navy);
	margin-top: 2px;
}

.ztm-news-item-title {
	font-size: calc(15.5px * var(--ztm-font-scale, 1));
	font-weight: 700;
	color: var(--ztm-navy);
	margin: 0 0 10px;
	line-height: 1.4;
}

.ztm-news-item-desc {
	font-size: calc(14.5px * var(--ztm-font-scale, 1));
	font-weight: 400;
	color: var(--ztm-tabs-text);
	line-height: 1.65;
	text-align: justify;
	margin: 0;
}

.ztm-news-readmore {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	background: var(--ztm-navy);
	color: var(--ztm-white);
	font-size: calc(14.5px * var(--ztm-font-scale, 1));
	font-weight: 700;
	padding: 13px 22px;
	border-radius: 8px;
	margin-top: auto;
	transition: background 0.15s ease;
}

.ztm-news-readmore:hover {
	background: var(--ztm-navy-dark);
}

.ztm-news-readmore svg {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.ztm-news-readmore:hover svg {
	transform: translateX(3px);
}

/* =========================================================
   STRZAŁKI PREV / NEXT
   ========================================================= */

.ztm-news-nav {
	position: absolute;
	right: 30px;
	bottom: 26px;
	display: flex;
	gap: 10px;
}

.ztm-news-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--ztm-border-grey);
	background: var(--ztm-white);
	color: var(--ztm-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ztm-news-arrow:hover {
	border-color: var(--ztm-navy);
	background: #f0f4fb;
}

.ztm-news-arrow:focus-visible {
	outline: 3px solid var(--ztm-blue-light);
	outline-offset: 2px;
}

.ztm-news-arrow svg {
	width: 18px;
	height: 18px;
}

/* Miejsce na strzałki — nie nachodzą na przycisk "Czytaj więcej" */
.ztm-news-readmore {
	margin-right: 110px;
}

@media (prefers-reduced-motion: reduce) {
	.ztm-widget--news * {
		transition-duration: 0.01ms !important;
	}
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 640px) {
	.ztm-widget--news {
		padding: 22px 22px 80px;
	}

	.ztm-news-title {
		font-size: calc(21px * var(--ztm-font-scale, 1));
	}

	.ztm-news-readmore {
		margin-right: 0;
	}

	.ztm-news-nav {
		right: 22px;
		bottom: 22px;
	}
}