/* Nextech Industries Carousel — Everon-style image cards */

.nx-industries {
	--nx-brand: #2A388F;
	--nx-white: #ffffff;
	--nx-gap: 14px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: transparent;
	color: var(--nx-white);
	padding: 20px;
	overflow: hidden;
}

.nx-industries *,
.nx-industries *::before,
.nx-industries *::after {
	box-sizing: border-box;
}

.nx-industries__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.nx-industries__title {
	display: none;
}

.nx-industries__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
}

.nx-industries__arrow {
	appearance: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.nx-industries__arrow:hover,
.nx-industries__arrow:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff !important;
	outline: none;
}

.nx-industries__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.nx-industries__viewport {
	overflow: hidden;
	width: 100%;
	padding: 0;
}

.nx-industries__track {
	display: flex;
	gap: var(--nx-gap);
	will-change: transform;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-industries__card {
	flex: 0 0 calc((100% - (var(--nx-gap) * 0.2)) / 1.2);
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	height: 340px;
	background: #1a2460;
}

.nx-industries__link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none !important;
	color: #ffffff !important;
}

.nx-industries__link:hover,
.nx-industries__link:focus,
.nx-industries__link:active,
.nx-industries__link:visited {
	color: #ffffff !important;
	text-decoration: none !important;
}

.nx-industries__media {
	position: absolute;
	inset: 0;
}

.nx-industries__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.nx-industries__card:hover .nx-industries__media img {
	transform: scale(1.05);
}

.nx-industries__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 20px 22px;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.35) 35%,
		rgba(0, 0, 0, 0.75) 100%
	);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-height: 40%;
	justify-content: flex-end;
	transition: background 0.3s ease;
}

.nx-industries__card:hover .nx-industries__overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.05) 0%,
		rgba(0, 0, 0, 0.5) 30%,
		rgba(0, 0, 0, 0.88) 100%
	);
}

.nx-industries__card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff !important;
}

.nx-industries__excerpt {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9) !important;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(6px);
	transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}

.nx-industries__card:hover .nx-industries__excerpt,
.nx-industries__card:focus-within .nx-industries__excerpt {
	max-height: 4.5em;
	opacity: 1;
	transform: none;
	margin: 2px 0 2px;
}

.nx-industries__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: none !important;
}

.nx-industries__link:hover .nx-industries__cta,
.nx-industries__link:focus .nx-industries__cta,
.nx-industries__cta:hover {
	color: #ffffff !important;
}

.nx-industries__footer {
	text-align: center;
	margin-top: 28px;
}

.nx-industries__view-all {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.nx-industries__view-all:hover {
	color: #ffffff !important;
	text-decoration-thickness: 2px !important;
}

/* ─── Tablet: 3 in row ─── */
@media (min-width: 768px) {
	.nx-industries {
		padding: 0;
	}

	.nx-industries__nav {
		margin-bottom: 28px;
	}

	.nx-industries__card {
		flex: 0 0 calc((100% - (var(--nx-gap) * 2)) / 3);
		height: 380px;
	}

	.nx-industries__card-title {
		font-size: 1.05rem;
	}
}

/* ─── Desktop: 5 in row ─── */
@media (min-width: 1024px) {
	.nx-industries {
		padding: 0;
	}

	.nx-industries__card {
		flex: 0 0 calc((100% - (var(--nx-gap) * 4)) / 5);
		height: 400px;
		border-radius: 14px;
	}

	.nx-industries__overlay {
		padding: 24px 20px 22px;
	}

	.nx-industries__card-title {
		font-size: 1.1rem;
	}

	.nx-industries__excerpt {
		font-size: 0.8rem;
	}
}
