/* ==========================================================================
   The Capital — Centred Slider widget
   ========================================================================== */

.tc-centred-slider {
	position: relative;
	width: 100%;
}

/* Stage holds the swiper + absolutely-positioned arrows */
.tc-cs-stage {
	position: relative;
	width: 100%;
	overflow: visible;
}

/* Swiper element — overflow:visible so adjacent slides peek in */
.tc-cs-swiper {
	overflow: visible !important;
	width: 100%;
}

/* Slides — width driven by --tc-cs-slide-width CSS var set inline by PHP */
.tc-cs-swiper .swiper-slide {
	width: var(--tc-cs-slide-width, 52%);
	aspect-ratio: 3 / 2;
	overflow: hidden;
	flex-shrink: 0;
	opacity: 0.5;
	transition: opacity 0.4s ease;
	background-color: #ddd;
}

.tc-cs-swiper .swiper-slide-active {
	opacity: 1;
}

.tc-cs-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ------------------------------------------------------------------
   Navigation arrows
   ------------------------------------------------------------------ */
.tc-cs-prev,
.tc-cs-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff !important;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	transition: background 0.2s ease;
	padding: 0;
}

.tc-cs-prev svg,
.tc-cs-next svg {
	width: 20px;
	height: 20px;
}

.tc-cs-prev:hover,
.tc-cs-next:hover {
	background: rgba(255, 255, 255, 0.75) !important;
}

.tc-cs-prev.swiper-button-disabled,
.tc-cs-next.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* Arrow positions — sit at the edges of the active (centred) slide */
.tc-cs-prev {
	left: calc((100% - var(--tc-cs-slide-width, 52%)) / 2 + 16px);
}
.tc-cs-next {
	right: calc((100% - var(--tc-cs-slide-width, 52%)) / 2 + 16px);
}

/* ------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------ */
.tc-cs-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.tc-cs-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	cursor: pointer;
	transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
	margin: 0 !important;
}

.tc-cs-pagination .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 4px;
	background: var(--tc-gold, #EBA318);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.tc-cs-swiper .swiper-slide {
		width: 70%;
	}

	.tc-cs-prev {
		left: calc((100% - 70%) / 2 + 16px);
	}
	.tc-cs-next {
		right: calc((100% - 70%) / 2 + 16px);
	}
}

@media (max-width: 767px) {
	.tc-cs-swiper .swiper-slide {
		width: 88%;
	}

	.tc-cs-prev {
		left: calc((100% - 88%) / 2 + 12px);
	}
	.tc-cs-next {
		right: calc((100% - 88%) / 2 + 12px);
	}

	.tc-cs-pagination {
		margin-top: 20px;
	}

	.tc-cs-prev,
	.tc-cs-next {
			width: 40px;
			height: 40px;
		}
}
