/* Industry Carousel — hover-reveal cards
 * Title font assumes the custom "Didot" family (Elementor Custom Fonts).
 */

.ind-carousel {
	--ind-accent: #dcb276;
	--ind-title: #ffffff;
	--ind-title-hover: #dcb276;
	--ind-text: #e7ebf1;
	--ind-overlay-hover: rgba(11, 28, 54, 0.92);
	--ind-title-font: "Didot", Georgia, "Times New Roman", serif;
	--ind-card-h: 825px;
	/* fallback; overridden by the responsive control */
	position: relative;
	overflow: hidden;
}

/* Responsive height fallbacks — apply even before Elementor CSS is regenerated */
@media (max-width: 1023px) {
	.ind-carousel {
		--ind-card-h: 640px;
	}
}

@media (max-width: 767px) {
	.ind-carousel {
		--ind-card-h: 520px;
	}
}

.ind-carousel--empty {
	padding: 24px;
	text-align: center;
	border: 1px dashed #cbd2da;
	color: #5b6570;
}

.ind-carousel__swiper {
	overflow: hidden;
}

/* Equalise slide heights */
.ind-carousel .swiper-slide {
	height: var(--ind-card-h);
}

/* Fallback widths so cards are visible even if Swiper JS is slow/blocked.
   Swiper sets inline widths once initialised, which override these. */
.ind-carousel .swiper-slide {
	width: 100%;
}

@media (min-width: 768px) {
	.ind-carousel .swiper-slide {
		width: calc(50% - 6px);
	}
}

@media (min-width: 1024px) {
	.ind-carousel .swiper-slide {
		width: calc(25% - 9px);
	}
}

/* ---- Edge peek: half card on each side -------------------------------
 * N = full cards. The track is one card wider than the viewport and
 * shifted left by half a card; .ind-carousel clips the overflow.
 *   card  = 100% / (N + 1) - gap
 *   track = 100% * (N + 2) / (N + 1) - gap
 *   shift = -card / 2
 */
.ind-carousel.is-peek {
	--ind-full: var(--ind-full-m, 1);
}

@media (min-width: 768px) {
	.ind-carousel.is-peek {
		--ind-full: var(--ind-full-t, 1);
	}
}

@media (min-width: 1024px) {
	.ind-carousel.is-peek {
		--ind-full: var(--ind-full-d, 2);
	}
}

.ind-carousel.is-peek .ind-carousel__swiper {
	width: calc(100% * (var(--ind-full) + 2) / (var(--ind-full) + 1) - var(--ind-gap, 12px));
	max-width: none;
	margin-left: calc((100% / (var(--ind-full) + 1) - var(--ind-gap, 12px)) / -2);
	margin-right: 0;
}

/* Pre-init fallback for peek mode */
.ind-carousel.is-peek:not(.is-ready) .swiper-wrapper {
	display: flex;
	gap: var(--ind-gap, 12px);
}

.ind-carousel.is-peek:not(.is-ready) .swiper-slide {
	flex: 0 0 auto;
	width: calc((100% - (var(--ind-full) + 1) * var(--ind-gap, 12px)) / (var(--ind-full) + 2));
}

/* ---- Card ------------------------------------------------------------- */
.page .elementor .swiper-wrapper .swiper-slide .ind-card {
	position: relative;
	height: var(--ind-card-h);
	overflow: hidden;
	color: var(--ind-title);
	outline: none;
}

.ind-card__media,
.ind-card__img,
.ind-card__overlay {
	position: absolute;
	inset: 0;
}

.page .elementor .swiper-wrapper .swiper-slide .ind-card .ind-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 0.6s ease;
}

.ind-card__overlay {
	background: linear-gradient(180deg, rgba(9, 18, 32, 0.30) 0%, rgba(9, 18, 32, 0.70) 100%);
	transition: background 0.45s ease;
}

/* ---- Head (title + rule): centered by default, top on hover ---------- */
.ind-card__head {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	padding: 0 26px;
	text-align: center;
	color: var(--ind-title);
	transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.ind-card__title {
	margin: 0 0 14px;
	font-family: var(--ind-title-font);
	font-weight: 400;
	font-size: clamp(22px, 1.7vw, 30px);
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: inherit;
}

/* ---- Decorative rule: dot — line — dot — line — dot ------------------ */
.ind-rule {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	color: inherit;
}

.ind-rule .dot {
	flex: 0 0 auto;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.ind-rule .line {
	flex: 1 1 auto;
	height: 1px;
	background: currentColor;
	opacity: 0.85;
}

/* ---- Hover list ------------------------------------------------------- */
.ind-card__list {
	position: absolute;
	left: 0;
	right: 0;
	top: 52%;
	z-index: 2;
	margin: 0;
	padding: 0 26px;
	list-style: none;
	color: var(--ind-text);
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity 0.4s ease 0.05s, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ind-card__item {
	font-size: 20px;
	line-height: 1.4;
	padding: 12px 0;
	border-bottom: 1px solid #DCB276;
}

.ind-card__item:first-child {
	border-top: none;
}

/* ---- Hover / focus / open state -------------------------------------- */
.ind-card:hover .ind-card__overlay,
.ind-card:focus-visible .ind-card__overlay,
.ind-card.is-open .ind-card__overlay {
	background: var(--ind-overlay-hover);
}

.ind-card:hover .ind-card__img,
.ind-card:focus-visible .ind-card__img,
.ind-card.is-open .ind-card__img {
	transform: scale(1.05);
}

.ind-card:hover .ind-card__head,
.ind-card:focus-visible .ind-card__head,
.ind-card.is-open .ind-card__head {
	top: 40px;
	transform: translateY(0);
	color: var(--ind-title-hover);
}

.ind-card:hover .ind-card__list,
.ind-card:focus-visible .ind-card__list,
.ind-card.is-open .ind-card__list {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* ---- Pagination bullets ---------------------------------------------- */
.ind-carousel__pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.ind-carousel__pagination .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	margin: 0;
	background: transparent;
	border: 1px solid var(--ind-accent);
	opacity: 0.55;
	transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.ind-carousel__pagination .swiper-pagination-bullet-active {
	background: var(--ind-accent);
	opacity: 1;
	transform: scale(1.15);
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 767px) {

	/* Kill the edge-peek shift on phones: one full card, nothing clipped. */
	.ind-carousel.is-peek .ind-carousel__swiper {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.ind-carousel.is-peek:not(.is-ready) .swiper-slide {
		width: 100%;
	}

	.ind-card__head {
		padding: 0 20px;
	}

	/* Title tucks near the top when open so the list has room to breathe */
	.ind-card:hover .ind-card__head,
	.ind-card:focus-visible .ind-card__head,
	.ind-card.is-open .ind-card__head {
		top: 24px;
	}

	/* List sits under the title, bounded top-and-bottom, and scrolls if long */
	.ind-card__list {
		/* top: 96px; */
		/* bottom: 20px; */
		padding: 0 20px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ind-card__item {
		font-size: 16px;
		padding: 9px 0;
	}
}

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

	.ind-card__img,
	.ind-card__overlay,
	.ind-card__head,
	.ind-card__list {
		transition: none;
	}
}