/**
 * Stylesheet: A Process Steps (Horizontal Recruitment & Workflow Pipeline)
 * @package Flatsome Child
 */

:root {
	--a-proc-max-w: 1100px;
	--a-proc-glow: #38bdf8;
	--a-proc-ring: #2563eb;
	--a-proc-line: rgba(96, 165, 250, 0.45);
	--a-proc-num-color: #ffffff;
	--a-proc-title-color: #e2e8f0;
}

/* Master Wrapper */
.a-process-steps {
	position: relative;
	width: 100%;
	max-width: var(--a-proc-max-w, 1100px);
	margin: 0 auto;
	box-sizing: border-box;
	user-select: none;
}

.a-process-container {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 20px 0;
}

/* Connecting Dashed Track behind nodes */
.a-process-track {
	position: absolute;
	top: calc(clamp(86px, 10.5vw, 116px) / 2 + 20px);
	left: 30px;
	right: 30px;
	height: 2px;
	pointer-events: none;
	z-index: 1;
}

.a-process-track-line {
	width: 100%;
	height: 0;
	border-top: 1.5px dashed var(--a-proc-line, rgba(96, 165, 250, 0.45));
}

.a-process-track-dot {
	position: absolute;
	top: -4px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--a-proc-glow, var(--primary-color));
	box-shadow:
		0 0 10px var(--a-proc-glow, var(--primary-color)),
		0 0 18px rgba(56, 189, 248, 0.7);
}

.a-process-track-dot.dot-start {
	left: -50px;
}

.a-process-track-dot.dot-end {
	right: -50px;
}

/* Steps Row */
.a-process-steps-row {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

/* Individual Step */
.a-process-step {
	flex: 1;
	max-width: 190px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

.a-process-step-inner,
.a-process-step-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
}

/* Glowing Circular Orb */
.a-process-orb {
	position: relative;
	width: clamp(86px, 10.5vw, 100px);
	height: clamp(86px, 10.5vw, 100px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: radial-gradient(circle at 45% 35%, #0d1a38 0%, #060d20 65%, #02050e 100%);
	box-shadow:
		0 0 25px rgba(37, 99, 235, 0.45),
		inset 0 0 16px rgba(37, 99, 235, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
	box-sizing: border-box;
}

/* Neon Crescent Glow Flare */
.a-process-orb-flare {
	position: absolute;
	inset: -2.5px;
	border-radius: 50%;
	padding: 2.2px;
	background: conic-gradient(from 220deg,
			#38bdf8 0deg,
			#2563eb 50deg,
			rgba(37, 99, 235, 0.1) 115deg,
			rgba(56, 189, 248, 0.05) 195deg,
			#38bdf8 260deg,
			#1d4ed8 320deg,
			rgba(37, 99, 235, 0.15) 360deg);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
	pointer-events: none;
	z-index: 2;
}

/* Icon */
.a-process-icon {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(34px, 4.2vw, 46px);
	height: clamp(34px, 4.2vw, 46px);
	color: #ffffff;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.a-process-icon-svg {
	width: 100%;
	height: 100%;
	stroke: #ffffff;
	filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
	transition: filter 0.35s ease, transform 0.35s ease;
}

.a-process-custom-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

/* Orb Hover Effect */
.a-process-step:hover .a-process-orb {
	/* transform: translateY(-6px) scale(1.06); */
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.7),
		0 0 32px rgba(56, 189, 248, 0.65),
		inset 0 0 20px rgba(56, 189, 248, 0.35);
}

.a-process-step:hover .a-process-icon {
	transform: scale(1.1);
	filter: drop-shadow(0 0 8px #ffffff);
}

/* Step Meta: Number & Title */
.a-process-meta {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}

.a-process-num {
	font-family: inherit;
	font-size: clamp(22px, 2.6vw, 26px);
	font-weight: 500;
	color: var(--a-proc-num-color, #ffffff);
	line-height: 1;
	letter-spacing: 0.5px;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.a-process-step:hover .a-process-num {
	color: var(--a-proc-glow, #38bdf8);
	text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.a-process-title {
	font-family: inherit;
	font-size: clamp(12px, 1.25vw, 13.5px);
	font-weight: 600;
	color: var(--a-proc-title-color, #e2e8f0);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-align: center;
	word-break: break-word;
	margin: 0;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.a-process-step:hover .a-process-title {
	color: #ffffff;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ==========================================================
   RESPONSIVE: Tablet (768px - 991px)
   ========================================================== */
@media (max-width: 991px) and (min-width: 768px) {
	.a-process-steps-row {
		gap: 10px;
	}

	.a-process-title {
		font-size: 11.5px;
	}
}

/* ==========================================================
   RESPONSIVE: Mobile Vertical Mode (< 768px)
   ========================================================== */
@media (max-width: 767px) {
	.a-process-steps.mobile-vertical .a-process-container {
		padding: 10px 0;
	}

	/* Vertical Connecting Track */
	.a-process-steps.mobile-vertical .a-process-track {
		top: 40px;
		bottom: 40px;
		left: 45px;
		right: auto;
		width: 2px;
		height: auto;
	}

	.a-process-steps.mobile-vertical .a-process-track-line {
		width: 0;
		height: 100%;
		border-top: none;
		border-left: 1.5px dashed var(--a-proc-line, rgba(96, 165, 250, 0.45));
	}

	.a-process-steps.mobile-vertical .a-process-track-dot.dot-start {
		left: -3.5px;
		top: -4px;
	}

	.a-process-steps.mobile-vertical .a-process-track-dot.dot-end {
		left: -3.5px;
		top: auto;
		bottom: -4px;
		right: auto;
	}

	/* Vertical Steps Row */
	.a-process-steps.mobile-vertical .a-process-steps-row {
		flex-direction: column;
		gap: 26px;
	}

	.a-process-steps.mobile-vertical .a-process-step {
		max-width: 100%;
		width: 100%;
	}

	.a-process-steps.mobile-vertical .a-process-step-inner,
	.a-process-steps.mobile-vertical .a-process-step-link {
		flex-direction: row;
		align-items: center;
		gap: 20px;
		text-align: left;
	}

	.a-process-steps.mobile-vertical .a-process-orb {
		flex-shrink: 0;
		width: 80px;
		height: 80px;
	}

	.a-process-steps.mobile-vertical .a-process-meta {
		margin-top: 0;
		align-items: flex-start;
		text-align: left;
	}

	.a-process-steps.mobile-vertical .a-process-title {
		text-align: left;
		font-size: 13.5px;
	}
}

/* ==========================================================
   RESPONSIVE: Mobile Horizontal Scroll Mode (< 768px)
   ========================================================== */
@media (max-width: 767px) {
	.a-process-steps.mobile-scroll .a-process-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 24px;
	}

	.a-process-steps.mobile-scroll .a-process-steps-row {
		min-width: 680px;
	}

	.a-process-steps.mobile-scroll .a-process-track {
		min-width: 620px;
	}
}