/* 1. Mobile First Styles (Default) */
.spectrum-service-tabs-container {
	display: flex;
	flex-direction: column; /* Stacked for mobile */
	gap: 20px;
	background-color: #fff !important;
	border-radius: 24px;
	overflow: hidden;
}

.service-tab-nav {
	display: flex;
	flex-direction: row;
	list-style: none;
	padding: 0 !important;
	margin: 0;
	width: 100%;
	overflow-x: auto; /* This allows scrolling */
	white-space: nowrap; /* Keeps items side-by-side */
	border-bottom: 2px solid #eee;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;

	/* Ensure the nav doesn't try to hide overflow if items are long */
	overflow-y: hidden;
}
.service-tab-nav::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.tab-link {
	border-right: 1px solid #f9f9f91a;
	padding: 12px 20px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s ease;
	align-items: center;
	gap: 0.5rem;
	font-size: 20px;
	line-height: 1.1;
	color: #fff !important;
	background-color: #011321;
	font-family: "Anek Latin", sans-serif;
	flex: 0 0 auto; /* CRITICAL: Prevents the tab from shrinking to fit the screen */
	display: inline-flex; /* Better for horizontal alignment with icons */
	align-items: center;
	white-space: nowrap; /* Keep this for mobile so they stay in a row */
}

.tab-link:hover,
.tab-link.active {
	background-color: #3347ff !important;
}

.service-tab-content-wrapper {
	flex: 1;
	min-width: 0;
	padding: 20px;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* 2. Desktop Styles (min-width) */
/* 2. Desktop Styles (min-width: 769px) */
@media (min-width: 769px) {
	.spectrum-service-tabs-container {
		flex-direction: row;
		gap: 20px;
	}
	.service-tab-nav-wrap {
		background-color: #011321;
	}
	.service-tab-nav {
		/* This sets the fixed width of your sidebar */
		flex: 0 0 300px;
		max-width: 300px; /* Ensures it doesn't grow larger */
		width: 100%;

		flex-direction: column;
		overflow-x: visible;
		border-bottom: none;
		white-space: normal; /* CRITICAL: This allows the text to wrap again */
	}

	.tab-link {
		padding: 24px 12px;
		font-size: 22px; /* Slightly reduced for better wrapping */
		border-bottom: 1px solid #f9f9f91a;
		border-right: none;
		/* Ensures the link behaves as a box so text wraps inside it */
		display: flex;
		align-items: center;
		text-align: left;
		line-height: 1.3; /* Better spacing for multi-line text */
		white-space: normal; /* Just to be safe, apply it here too */
	}
}
