/* =========================================================
   Scroll Tabs Services Section — Frontend Styles
   ========================================================= */

.stgrc-wrapper {
	position: relative;
	width: 100%;
	padding: 60px 0;
	box-sizing: border-box;
	background-color: #ffffff;
}

.stgrc-eyebrow {
	max-width: 1200px;
	margin: 0 auto 20px;
	padding: 0 40px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	box-sizing: border-box;
	color: #5b7cfa;
}

/* ---------- TABS ROW ---------- */
.stgrc-tabs-row-outer {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 50px;
	padding: 0 40px;
	box-sizing: border-box;
}

.stgrc-wrapper[data-sticky="true"] .stgrc-tabs-row-outer {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 999;
}

.stgrc-tabs-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding-bottom: 4px;
	padding-top: 4px;
	background-color: #ffffff;
	transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.stgrc-tabs-row::-webkit-scrollbar {
	display: none;
}

.stgrc-tabs-row-outer.is-pinned .stgrc-tabs-row {
	padding-top: 14px;
	padding-bottom: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stgrc-tab-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	border: 1.5px solid #d8dce6;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	background-color: transparent;
	color: #5a6275;
	padding: 12px 20px;
	border-radius: 6px;
	transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
				color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
				border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
				box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: background-color, color, border-color;
}

.stgrc-tab-btn:hover {
	border-color: #5b7cfa;
	color: #2f3650;
}

.stgrc-tab-btn.is-active {
	background-color: #5b7cfa;
	border-color: #5b7cfa;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(91, 124, 250, 0.3);
}

/* ---------- PANELS ---------- */
.stgrc-panels {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

.stgrc-panel {
	display: none;
	width: 100%;
}

.stgrc-panel.is-active {
	display: block;
	animation: stgrc-fade-in 0.4s ease;
}

/* Stacked mode: every panel stays visible, scroll-spy only toggles highlight */
.stgrc-mode-stacked .stgrc-panel {
	display: block;
	opacity: 0.45;
	transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	animation: none;
}

.stgrc-mode-stacked .stgrc-panel.is-active {
	opacity: 1;
	animation: none;
}

.stgrc-mode-stacked .stgrc-panel:last-child {
	margin-bottom: 0;
}

@keyframes stgrc-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.stgrc-panel-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 60px;
	align-items: center;
}

.stgrc-panel-grid.stgrc-reverse {
	grid-template-columns: 1.1fr 1fr;
}

.stgrc-panel-grid.stgrc-reverse .stgrc-content-side {
	order: 2;
}

.stgrc-panel-grid.stgrc-reverse .stgrc-image-side {
	order: 1;
}

/* ---------- CONTENT SIDE ---------- */
.stgrc-content-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.stgrc-heading {
	font-size: 34px;
	line-height: 1.25;
	font-weight: 700;
	color: #14182b;
	margin: 0;
}

.stgrc-description {
	font-size: 16px;
	line-height: 1.6;
	color: #5a6275;
}

.stgrc-description p {
	margin: 0 0 12px;
}

/* ---------- TAG GROUPS ---------- */
.stgrc-tag-groups {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.stgrc-tag-group-heading {
	font-size: 14px;
	font-weight: 700;
	color: #14182b;
	margin: 0 0 8px;
}

.stgrc-tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stgrc-tag-pill {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: #4a5168;
	background-color: #f2f4fb;
	border: 1px solid #e6e9f5;
	border-radius: 6px;
	padding: 7px 12px;
	white-space: nowrap;
}

.stgrc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	font-size: 15px;
	font-weight: 600;
	color: #2f3df0;
	text-decoration: none;
	cursor: pointer;
}

.stgrc-btn-arrow {
	transition: transform 0.2s ease;
}

.stgrc-btn:hover .stgrc-btn-arrow {
	transform: translateX(4px);
}

.stgrc-stat-box {
	display: flex;
	align-items: center;
	gap: 18px;
	background-color: #f2f4fb;
	padding: 20px 24px;
	border-radius: 10px;
	margin-top: 8px;
	border: 1px solid #e6e9f5;
}

.stgrc-stat-logo {
	max-width: 36px;
	max-height: 36px;
	object-fit: contain;
}

.stgrc-stat-number {
	font-size: 28px;
	font-weight: 700;
	color: #5b7cfa;
	flex: 0 0 auto;
}

.stgrc-stat-text {
	font-size: 14px;
	line-height: 1.5;
	color: #4a5168;
}

/* ---------- IMAGE SIDE ---------- */
.stgrc-image-side {
	position: relative;
	width: 100%;
}

.stgrc-image-frame {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background-color: #f2f4fb;
	min-height: 320px;
	box-shadow: 0 10px 30px rgba(20, 24, 43, 0.08);
	border: 1px solid #eef0f8;
}

.stgrc-preview-img {
	display: block;
	width: 100%;
	height: auto;
	opacity: 1;
	transition: opacity 0.35s ease;
}

.stgrc-image-frame.is-fading .stgrc-preview-img {
	opacity: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
	.stgrc-panel-grid,
	.stgrc-panel-grid.stgrc-reverse {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.stgrc-panel-grid.stgrc-reverse .stgrc-content-side,
	.stgrc-panel-grid.stgrc-reverse .stgrc-image-side {
		order: initial;
	}

	.stgrc-heading {
		font-size: 28px;
	}
}

@media (max-width: 600px) {
	.stgrc-eyebrow,
	.stgrc-tabs-row-outer,
	.stgrc-panels {
		padding: 0 20px;
	}

	.stgrc-heading {
		font-size: 24px;
	}

	.stgrc-tab-btn {
		font-size: 12px;
		padding: 10px 16px;
	}
}
