/* Swepac Timeline Slider – zgodnie z designem: kropka = środek karty */

.swepac-timeline-wrap {
	position: relative;
	padding: 20px 0 50px;
	overflow: hidden;
}

.swepac-timeline-wrap.swepac-timeline-has-nav {
	padding-top: 50px;
}

/* Strzałki – prawy górny róg */
.swepac-timeline-nav-wrap {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 10;
	display: flex;
	gap: 8px;
	align-items: center;
}

.swepac-timeline-nav-wrap .swiper-button-prev.swepac-timeline-nav,
.swepac-timeline-nav-wrap .swiper-button-next.swepac-timeline-nav {
	position: static;
	width: 43px;
	height: 26px;
	margin: 0;
	color: transparent;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.swepac-timeline-nav-wrap .swiper-button-prev.swepac-timeline-nav::after,
.swepac-timeline-nav-wrap .swiper-button-next.swepac-timeline-nav::after {
	display: none;
}

.swepac-timeline-nav-wrap .swiper-button-prev.swepac-timeline-nav svg,
.swepac-timeline-nav-wrap .swiper-button-next.swepac-timeline-nav svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Pozioma linia osi czasu */
.swepac-timeline-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	background-color: #E13639;
	z-index: 0;
	pointer-events: none;
}

.swepac-timeline-wrap .swepac-timeline-swiper,
.swepac-timeline-swiper .swiper,
.swepac-timeline-swiper .swiper-wrapper {
	overflow: visible !important;
}

.swepac-timeline-swiper {
	position: relative;
	z-index: 1;
	padding: 60px 0;
	overflow: visible;
}

.swepac-timeline-swiper .swiper-wrapper {
	align-items: stretch;
}

/* Zęby: 1 left:0, 2 od środka 1, 3 od środka 2... Stała szerokość + overlap przez spaceBetween */
.swepac-timeline-swiper .swiper-slide {
	width: 315px;
	flex-shrink: 0;
	height: auto;
	min-height: 400px;
	box-sizing: border-box;
	padding: 0 8px;
	display: flex;
	align-items: stretch;
	justify-content: center;
	overflow: visible;
}

/* Element timeline – góra/dół, kropka ZAWSZE na osi (50% wysokości) */
.swepac-timeline-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 100%;
	position: relative;
}

/* Góra (1,3,5): karta podniesiona, łącznik w dół */
.swepac-timeline-item--top {
	justify-content: flex-start;
}

/* Dół (2,4,6): łącznik w górę, karta obniżona */
.swepac-timeline-item--bottom {
	justify-content: flex-end;
}

/* Kropka NA OSI – dot-wrap wyśrodkowany, kropka dokładnie w środku (na linii) */
.swepac-timeline-dot-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
}

/* Kropka zawsze w środku wrapa = na linii */
.swepac-timeline-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #E13639;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #E13639;
	flex-shrink: 0;
}

/* Rok: even (góra) = nad kropką, odd (dół) = pod kropką */
.swepac-timeline-date {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-weight: 700;
	font-size: 15px;
	color: #E13639;
	text-align: center;
	white-space: nowrap;
}

.swepac-timeline-item--top .swepac-timeline-date {
	bottom: calc(100% + 6px);
	top: auto;
}

.swepac-timeline-item--bottom .swepac-timeline-date {
	top: calc(100% + 6px);
	bottom: auto;
}

/* Pionowy łącznik – kolor jak border kart, pod elementami (niski z-index) */
.swepac-timeline-connector {
	width: 2px;
	flex: 1;
	min-height: 12px;
	background: #E5E7EB;
	margin: 4px 0;
	z-index: 0;
	position: relative;
}

/* Karta – stała wysokość, jeden rozmiar dla wszystkich */
.swepac-timeline-card {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-width: 200px;
	max-width: 315px;
	min-height: 110px;
	padding: 10px;
	background: #fff;
	border-radius: 8px;
	border: 2px solid #E5E7EB;
	text-align: left;
	position: relative;
	z-index: 1;
}

.swepac-timeline-card-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	background: #f5f5f5;
}

.swepac-timeline-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.swepac-timeline-card-text {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	margin: 0;
}

/* Paginacja */
.swepac-timeline-swiper .swiper-pagination.swepac-timeline-pagination {
	position: relative;
	margin-top: 24px;
}

.swepac-timeline-swiper .swiper-pagination-bullet {
	background: #E13639;
	opacity: 0.4;
}

.swepac-timeline-swiper .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Responsywność */
@media (max-width: 1024px) {
	.swepac-timeline-wrap {
		padding: 16px 0 40px;
	}
	.swepac-timeline-swiper {
		padding: 50px 0;
	}
	.swepac-timeline-swiper .swiper-slide {
		height: 400px;
		min-height: 400px;
	}
	.swepac-timeline-card {
		padding: 16px;
		min-height: 140px;
	}
	.swepac-timeline-card-image {
		width: 56px;
		height: 56px;
	}
	.swepac-timeline-card-text {
		font-size: 13px;
	}
}

@media (max-width: 1010px) {
	.swepac-timeline-swiper .swiper-slide,
	.swepac-timeline-swiper .swiper-wrapper {
		align-items: stretch;
	}
	.swepac-timeline-swiper .swiper-slide {
		height: 400px;
		min-height: 400px;
	}
}

@media (max-width: 767px) {
	.swepac-timeline-nav-wrap {
		position: relative;
		justify-content: flex-end;
		margin-bottom: 16px;
	}
	.swepac-timeline-swiper {
		padding: 40px 0;
	}
	.swepac-timeline-swiper .swiper-slide {
		padding: 0 8px;
		height: 400px;
		min-height: 400px;
	}
	.swepac-timeline-card-image {
		width: 48px;
		height: 48px;
	}
	.swepac-timeline-card-text {
		font-size: 12px;
	}
	.swepac-timeline-date {
		font-size: 13px;
	}
}
