/**
 * Number Slider Module
 * Left panel (1/3 of container width) + horizontal numbered-card slider
 * (bleeds to viewport right edge). Desktop: 3 full cards + peek of a 4th
 * (faded via .is-peek). Mobile (≤767px): panel stacks above, 1.25 cards visible.
 * Dash-style progress dots sit left-aligned below the slider.
 */

/* ===========================
   # Section
=========================== */

.number-slider-module {
	padding: 80px 0;
	background: var(--nec-light-grey, #f5f5f6);
	overflow: hidden; /* clips the peeking card at the right viewport edge */
}

/* ===========================
   # Layout: panel + slider side by side
=========================== */

.number-slider-module__layout {
	display: flex;
	align-items: stretch;
	/* Left edge matches .container's padding-left; no padding on the right so
	   the slider area bleeds to the viewport edge. Mirrors insights_slider_module. */
	padding-left: 75px;
	padding-right: 0;
}

/* ===========================
   # Left panel
=========================== */

.number-slider-module__panel {
	flex: 0 0 calc((min(100vw, 1320px) - 48px) / 3);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding-right: 64px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.number-slider-module__panel-top {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.number-slider-module__panel-bottom {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ===========================
   # Sub-header (dot + label)
=========================== */

.number-slider-module__sub-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.number-slider-module__dot {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--nec-orange);
	box-shadow: 0 0 0 5px rgba(235, 110, 0, 0.18);
	flex-shrink: 0;
}

.number-slider-module__sub-header-text {
	font-family: var(--nec-font);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nec-grey);
}

/* ===========================
   # Section heading
=========================== */

.number-slider-module__heading {
	margin: 0;
	color: var(--nec-grey);
	font-family: var(--nec-font);
	font-weight: 400;
	font-size: 38px;
	line-height:44px;
}

/* ===========================
   # Slider navigation arrows
=========================== */

.number-slider-module__arrows {
	display: flex;
	gap: 12px;
}

.number-slider-module__arrow {
	display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--nec-grey);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.number-slider-module__arrow svg {
  width: 43px;
  height: 43px;
}

.number-slider-module__arrow:hover:not(:disabled),
.number-slider-module__arrow:focus-visible:not(:disabled) {
	color: var(--nec-orange);
	outline: none;
}

.number-slider-module__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ===========================
   # Panel CTA link (optional)
=========================== */

.number-slider-module__panel-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--nec-grey);
	font-family: var(--nec-font);
	font-weight: 500;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.number-slider-module__panel-cta:hover,
.number-slider-module__panel-cta:focus-visible {
	color: var(--nec-grey);
	transform: translateX(5px);
	outline: none;
}

.number-slider-module__panel-cta-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.number-slider-module__panel-cta-icon svg {
	width: 34px;
	height: 34px;
	color: var(--nec-orange);
}

/* ===========================
   # Progress dash dots
=========================== */

.number-slider-module__dots {
	display: flex;
	gap: 8px;
	padding: 0 4px;
}

.number-slider-module__dot-btn {
	display: block;
	width: 40px;
	height: 3px;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: #d4d4d6;
	cursor: pointer;
	transition: background 0.3s ease, width 0.3s ease;
}

.number-slider-module__dot-btn.is-active {
	background: var(--nec-orange);
	width: 56px;
}

.number-slider-module__dot-btn:focus-visible {
	outline: 2px solid var(--nec-orange);
	outline-offset: 2px;
}

/* ===========================
   # Slider area (right side, bleeds to edge)
=========================== */

.number-slider-module__slider-area {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: relative;
}

/* ===========================
   # Viewport (clips overflow)
=========================== */

.number-slider-module__viewport {
	overflow: hidden;
	position: relative;
	flex: 1;
}

/* Gradient on right edge to imply more content */
.number-slider-module__viewport::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 80px;
	background: linear-gradient(to right, transparent, rgba(245, 245, 246, 0.9));
	pointer-events: none;
	z-index: 1;
}

/* ===========================
   # Track (flex row of cards, moved by JS translateX)
=========================== */

.number-slider-module__track {
	display: flex;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	cursor:      grab;
	user-select: none; /* avoid text/image selection while dragging */
}

.number-slider-module__track:active {
	cursor: grabbing;
}

/* ===========================
   # Cards (width set by JS) — no card background, just number/divider/text
=========================== */

.number-slider-module__card {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	margin-right: 32px; /* gap between cards — must match CARD_GAP in number_slider_module.js */
	transition: opacity 0.3s ease;
}

/* The card only partially visible beyond the current view (toggled by JS) */
.number-slider-module__card.is-peek {
	opacity: 0.5;
}

.number-slider-module__card-number {
	font-family: var(--nec-font);
	font-size: 72px;
	font-weight: 400;
	line-height: 72px;
	color: var(--nec-orange);
	margin-bottom: 20px;
}

.number-slider-module__card-divider {
	display: block;
	height: 1px;
	background: rgba(56, 66, 73, 0.2);
	margin-bottom: 24px;
}

.number-slider-module__card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.number-slider-module__card-heading {
	margin: 0;
	font-family: var(--nec-font);
	font-size: 20px;
	line-height: 26px;
	font-weight: 500;
	color: var(--nec-orange);
}

.number-slider-module__card-description {
	margin: 0;
	color: var(--nec-grey);
	font-size: 18px;
	line-height: 26px;
	font-weight:500;
}

/* ===========================
   # Responsive — 1400px (matches .container's padding schedule)
=========================== */

@media (max-width: 1400px) {
	.number-slider-module__layout {
		padding-left: 100px;
	}
}

/* ===========================
   # Responsive — 1280px
=========================== */

@media (max-width: 1280px) {
	.number-slider-module {
		padding: 64px 0;
	}

	.number-slider-module__layout {
		padding-left: 60px;
	}

	.number-slider-module__panel {
		padding-right: 48px;
		gap: 32px;
	}
}

/* ===========================
   # Responsive — 991px
=========================== */

@media (max-width: 991px) {
	.number-slider-module {
		padding: 48px 0;
	}

	.number-slider-module__layout {
		padding-left: 30px;
	}

	.number-slider-module__panel {
		padding-right: 32px;
		gap: 24px;
	}

	.number-slider-module__card-number {
		font-size: clamp(2.25rem, calc(2rem + 1.2vw), 3rem);
	}
}

/* ===========================
   # Responsive — 767px (stack: panel above, full-width slider)
=========================== */

@media (max-width: 767px) {
	.number-slider-module {
		padding: 40px 0;
	}

	/* Stack vertically, full-width padding on both sides for the panel */
	.number-slider-module__layout {
		flex-direction: column;
		padding-left: 16px;
		gap: 32px;
	}

	.number-slider-module__panel {
		flex: 0 0 auto;
		width: 100%;
		padding-right: 16px;
		gap: 20px;
		padding-top: 0;
		padding-bottom: 0;
	}

	.number-slider-module__panel-bottom {
		gap: 20px;
	}

	.number-slider-module__slider-area {
		gap: 16px;
	}

	.number-slider-module__dots {
		padding: 0;
	}

	.number-slider-module__card-number {
		font-size: 2.25rem;
		margin-bottom: 14px;
	}

	.number-slider-module__card-divider {
		margin-bottom: 16px;
	}
}

/* ===========================
   # Responsive — 480px
=========================== */

@media (max-width: 480px) {
	.number-slider-module {
		padding: 32px 0;
	}
}
