.nb4-workflow-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 28px;
}

.nb4-step-item {
	position: relative;
	min-width: 0;
}

.nb4-step-card {
	position: relative;
	height: 100%;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	background: #fff;
	overflow: visible;
	box-sizing: border-box;
}

.nb4-step-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.nb4-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: #f3f4f6;
	font-weight: 700;
	flex-shrink: 0;
	box-sizing: border-box;
}

.nb4-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	flex-shrink: 0;
}

.nb4-step-icon svg {
	width: 1em;
	height: 1em;
}

.nb4-step-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.nb4-step-title {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	max-width: 100%;
	word-break: break-word;
	box-sizing: border-box;
}

.nb4-step-subtitle {
	display: block;
	margin: 0;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nb4-step-description {
	display: block;
	margin: 0;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.65;
}

.nb4-step-arrow {
	--nb4-arrow-length: 90px;
	--nb4-arrow-offset-x: 0px;
	--nb4-arrow-offset-y: 0px;

	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	color: #2563eb;
	pointer-events: none;
	z-index: 4;
}

.nb4-step-arrow .nb4-arrow-line,
.nb4-step-arrow .nb4-arrow-head {
	background: currentColor;
}

.nb4-step-arrow .nb4-arrow-line {
	display: block;
	position: relative;
	border-radius: 999px;
}

.nb4-step-arrow .nb4-arrow-head {
	display: block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* RIGHT */
.nb4-step-arrow[data-dir="right"] {
	top: calc(50% + var(--nb4-arrow-offset-y));
	left: calc(100% + var(--nb4-arrow-offset-x));
	width: var(--nb4-arrow-length);
	height: 20px;
	transform: translateY(-50%);
}

.nb4-step-arrow[data-dir="right"] .nb4-arrow-line {
	width: calc(100% - 12px);
	height: 3px;
	margin-right: 2px;
}

/* LEFT */
.nb4-step-arrow[data-dir="left"] {
	top: calc(50% + var(--nb4-arrow-offset-y));
	right: calc(100% - var(--nb4-arrow-offset-x));
	width: var(--nb4-arrow-length);
	height: 20px;
	transform: translateY(-50%) rotate(180deg);
}

.nb4-step-arrow[data-dir="left"] .nb4-arrow-line {
	width: calc(100% - 12px);
	height: 3px;
	margin-right: 2px;
}

/* TOP */
.nb4-step-arrow[data-dir="top"] {
	left: calc(50% + var(--nb4-arrow-offset-x));
	bottom: calc(100% - var(--nb4-arrow-offset-y));
	width: var(--nb4-arrow-length);
	height: 20px;
	transform: translateX(-50%) rotate(-90deg);
}

.nb4-step-arrow[data-dir="top"] .nb4-arrow-line {
	width: calc(100% - 12px);
	height: 3px;
	margin-right: 2px;
}

/* BOTTOM */
.nb4-step-arrow[data-dir="bottom"] {
	left: calc(50% + var(--nb4-arrow-offset-x));
	top: calc(100% + var(--nb4-arrow-offset-y));
	width: var(--nb4-arrow-length);
	height: 20px;
	transform: translateX(-50%) rotate(90deg);
}

.nb4-step-arrow[data-dir="bottom"] .nb4-arrow-line {
	width: calc(100% - 12px);
	height: 3px;
	margin-right: 2px;
}

/* DIAGONALS */
.nb4-step-arrow[data-dir="top-right"],
.nb4-step-arrow[data-dir="bottom-right"],
.nb4-step-arrow[data-dir="bottom-left"],
.nb4-step-arrow[data-dir="top-left"] {
	width: var(--nb4-arrow-length);
	height: 20px;
}

.nb4-step-arrow[data-dir="top-right"] .nb4-arrow-line,
.nb4-step-arrow[data-dir="bottom-right"] .nb4-arrow-line,
.nb4-step-arrow[data-dir="bottom-left"] .nb4-arrow-line,
.nb4-step-arrow[data-dir="top-left"] .nb4-arrow-line {
	width: calc(100% - 12px);
	height: 3px;
	margin-right: 2px;
}

.nb4-step-arrow[data-dir="top-right"] {
	top: calc(50% + var(--nb4-arrow-offset-y));
	left: calc(100% + var(--nb4-arrow-offset-x));
	transform: translateY(-50%) rotate(-45deg);
}

.nb4-step-arrow[data-dir="bottom-right"] {
	top: calc(50% + var(--nb4-arrow-offset-y));
	left: calc(100% + var(--nb4-arrow-offset-x));
	transform: translateY(-50%) rotate(45deg);
}

.nb4-step-arrow[data-dir="bottom-left"] {
	top: calc(50% + var(--nb4-arrow-offset-y));
	right: calc(100% - var(--nb4-arrow-offset-x));
	transform: translateY(-50%) rotate(135deg);
}

.nb4-step-arrow[data-dir="top-left"] {
	top: calc(50% + var(--nb4-arrow-offset-y));
	right: calc(100% - var(--nb4-arrow-offset-x));
	transform: translateY(-50%) rotate(-135deg);
}

@media (max-width: 1024px) {
	.nb4-workflow-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nb4-workflow-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}