/**
 * IT-Web24 Service Scroll Nav
 */

.itw-ssn {
	--ssn-accent: #faa21b;
	--ssn-accent-2: #f26924;
	--ssn-nav-width: 300px;
	--ssn-gap: 24px;
	--ssn-sticky-top: 24px;
	--ssn-ink: #111827;
	--ssn-ink-2: #374151;
	--ssn-muted: #6b7280;
	display: grid;
	grid-template-columns: var(--ssn-nav-width) minmax(0, 1fr);
	gap: var(--ssn-gap);
	align-items: start;
	width: 100%;
	box-sizing: border-box;
}

.itw-ssn *,
.itw-ssn *::before,
.itw-ssn *::after {
	box-sizing: border-box;
}

.itw-ssn--nav-right {
	grid-template-columns: minmax(0, 1fr) var(--ssn-nav-width);
}

.itw-ssn--nav-right .itw-ssn__nav {
	order: 2;
}

.itw-ssn--nav-right .itw-ssn__detail {
	order: 1;
}

/* ── Nav ── */

.itw-ssn__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.itw-ssn--style-2 .itw-ssn__nav {
	position: sticky;
	top: var(--ssn-sticky-top);
	align-self: start;
	max-height: calc(100vh - var(--ssn-sticky-top) - 16px);
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Nav items – not <button> to avoid theme/Elementor purple button styles */
.itw-ssn__nav-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 14px 16px;
	border: 0 !important;
	border-radius: 14px;
	outline: none !important;
	box-shadow: none !important;
	background: transparent;
	background-image: none;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ssn-ink-2);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
	text-decoration: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.itw-ssn__nav-btn:hover,
.itw-ssn__nav-btn:focus,
.itw-ssn__nav-btn:focus-visible,
.itw-ssn__nav-btn:active {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

.itw-ssn__nav-btn:hover {
	background: #fafafa;
	color: var(--ssn-ink);
}

.itw-ssn__nav-btn.is-active,
.itw-ssn__nav-btn.is-active:hover,
.itw-ssn__nav-btn.is-active:focus,
.itw-ssn__nav-btn.is-active:active {
	background: #fff8f0;
	border: 0 !important;
	outline: none !important;
	color: #b45309;
	box-shadow: 0 4px 16px rgba(250, 162, 27, 0.08);
}

.itw-ssn__nav-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	font-size: 1.2rem;
	line-height: 1;
}

.itw-ssn__nav-ico svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.itw-ssn__nav-ico img {
	width: 1em;
	height: 1em;
	object-fit: contain;
	display: block;
}

.itw-ssn__nav-label {
	min-width: 0;
}

/* ── Detail / Panes ── */

.itw-ssn__detail {
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
}

.itw-ssn--style-1 .itw-ssn__detail {
	display: block;
}

.itw-ssn--style-2 .itw-ssn__detail {
	gap: 28px;
}

.itw-ssn__pane {
	background: linear-gradient(135deg, #fffaf5 0%, #fff 60%);
	border: 1px solid rgba(250, 162, 27, 0.15);
	border-radius: 24px;
	padding: 48px 44px;
	min-height: 340px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 50px rgba(17, 24, 39, 0.06);
}

.itw-ssn__pane::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(250, 162, 27, 0.12), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.itw-ssn__pane > * {
	position: relative;
	z-index: 1;
}

/* Style 1: only active pane visible */
.itw-ssn--style-1 .itw-ssn__pane {
	display: none;
	animation: itwSsnFade 0.35s ease;
}

.itw-ssn--style-1 .itw-ssn__pane.is-active {
	display: flex;
}

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

/* Style 2: all panes stacked */
.itw-ssn--style-2 .itw-ssn__pane {
	display: flex;
	scroll-margin-top: calc(var(--ssn-sticky-top) + 16px);
}

.itw-ssn--style-2 .itw-ssn__pane.is-active {
	border-color: rgba(250, 162, 27, 0.35);
	box-shadow: 0 22px 56px rgba(17, 24, 39, 0.1);
}

.itw-ssn__pane-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	margin-bottom: 20px;
	line-height: 1;
	color: var(--ssn-accent-2);
}

.itw-ssn__pane-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.itw-ssn__pane-icon img {
	width: 1em;
	height: 1em;
	object-fit: contain;
	display: block;
}

.itw-ssn__title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 14px;
	color: var(--ssn-ink);
}

.itw-ssn__desc {
	font-size: 1.05rem;
	color: var(--ssn-muted);
	line-height: 1.75;
	max-width: 560px;
	margin: 0 0 24px;
}

.itw-ssn__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.itw-ssn__point {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ssn-ink-2);
	line-height: 1.4;
	margin: 0;
}

.itw-ssn__point::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(314deg, var(--ssn-accent), var(--ssn-accent-2));
	flex-shrink: 0;
}

.itw-ssn__img {
	margin-top: auto;
	padding-top: 28px;
}

.itw-ssn__img img {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: cover;
	object-position: center top;
	border-radius: 14px;
	border: 1px solid rgba(250, 162, 27, 0.12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

/* ── Responsive ── */

@media (max-width: 900px) {
	.itw-ssn,
	.itw-ssn--nav-right {
		grid-template-columns: 1fr;
	}

	.itw-ssn--nav-right .itw-ssn__nav,
	.itw-ssn--nav-right .itw-ssn__detail {
		order: initial;
	}

	.itw-ssn__nav,
	.itw-ssn--style-2 .itw-ssn__nav {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		position: sticky;
		top: var(--ssn-sticky-top);
		z-index: 5;
		max-height: none;
		padding: 8px 0;
		background: rgba(255, 255, 255, 0.92);
		backdrop-filter: blur(8px);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.itw-ssn__nav::-webkit-scrollbar {
		display: none;
	}

	.itw-ssn__nav-btn {
		flex-shrink: 0;
		white-space: nowrap;
		padding: 12px 16px;
		width: auto;
	}

	.itw-ssn__pane {
		padding: 32px 24px;
		min-height: auto;
	}

	.itw-ssn__img {
		margin-top: 24px;
		padding-top: 0;
	}

	.itw-ssn__img img {
		max-height: 180px;
	}
}
