/* Nextech Solutions Carousel — homepage pill-tabs UI */

.nx-solutions {
	--nx-brand: #2A388F;
	--nx-white: #ffffff;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: transparent;
	color: var(--nx-white);
	padding: 0;
	overflow: visible;
}

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

.nx-solutions__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.nx-solutions__title {
	display: none;
}

/* —— Horizontal pill tabs (homepage style) —— */
.nx-solutions__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.nx-solutions__tab {
	appearance: none;
	margin: 0;
	padding: 12px 20px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50px;
	color: #ffffff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
	text-align: center;
}

.nx-solutions__tab:hover {
	background: #ffffff;
	color: var(--nx-brand) !important;
	border-color: #ffffff;
}

.nx-solutions__tab.is-active {
	background: #ffffff;
	color: var(--nx-brand) !important;
	border-color: #ffffff;
}

.nx-solutions__tab:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* —— Panels —— */
.nx-solutions__panels {
	width: 100%;
	min-width: 0;
}

.nx-solutions__panel {
	animation: nxFade 0.35s ease;
}

.nx-solutions__panel[hidden] {
	display: none !important;
}

@keyframes nxFade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.nx-solutions__panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.nx-solutions__panel-title {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #ffffff;
}

.nx-solutions__view-all,
.nx-solutions__view-all:link,
.nx-solutions__view-all:visited,
.nx-solutions__view-all:hover,
.nx-solutions__view-all:focus,
.nx-solutions__view-all:active {
	color: #ffffff !important;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.nx-solutions__view-all:hover,
.nx-solutions__view-all:focus {
	opacity: 0.85;
	color: #ffffff !important;
}

.nx-solutions__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.nx-solutions__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.nx-solutions__card-title {
	margin: 0 0 10px;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

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

.nx-solutions__card-title a:hover,
.nx-solutions__card-title a:focus {
	opacity: 0.85;
	color: #ffffff !important;
}

.nx-solutions__card-desc {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.65;
	flex: 1;
}

.nx-solutions__learn,
.nx-solutions__learn:link,
.nx-solutions__learn:visited,
.nx-solutions__learn:hover,
.nx-solutions__learn:focus,
.nx-solutions__learn:active {
	color: #ffffff !important;
	background: #BE2031;
	border: 1px solid #BE2031;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 10px 18px;
	justify-content: center;
	white-space: nowrap;
	transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.nx-solutions__learn:hover,
.nx-solutions__learn:focus {
	opacity: 0.92;
	color: #ffffff !important;
	background: #BE2031;
	border-color: #BE2031;
}

.nx-solutions__empty p {
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 16px;
	line-height: 1.65;
}

@media (min-width: 768px) {
	.nx-solutions__cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 40px;
	}

	.nx-solutions__cards[data-count="2"] {
		grid-template-columns: repeat(2, 1fr);
		max-width: 72%;
	}
}

@media (max-width: 767px) {
	.nx-solutions__learn,
	.nx-solutions__learn:link,
	.nx-solutions__learn:visited {
		min-height: 42px;
		padding: 10px 16px;
		font-size: 0.88rem;
	}
}

@media (min-width: 1100px) {
	.nx-solutions__tabs {
		margin-bottom: 48px;
	}

	.nx-solutions__panel-head {
		margin-bottom: 40px;
	}
}
