/* ==========================================================================
   Becomeyoo — Steps Box Widget (bew-sb)
   ========================================================================== */

.bew-sb {
	position: relative;
	text-align: center;
}

/* Title — sits on top of the border */
.bew-sb-title {
	display: inline-block;
	position: relative;
	z-index: 1;
	margin: 0 auto 0;
	padding: 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	background-color: #ffffff;
	/* Pull down to overlap box border */
	transform: translateY(50%);
}

/* Box with border */
.bew-sb-box {
	border: 2px solid #c82333;
	border-radius: 12px;
	padding: 30px;
	background-color: #ffffff;
}

/* Offset top padding when title present */
.bew-sb-title + .bew-sb-box {
	padding-top: 40px;
}

/* ==========================================================================
   Mode: Items (icon + text)
   ========================================================================== */

.bew-sb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: start;
}

.bew-sb-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.bew-sb-icon {
	flex-shrink: 0;
	line-height: 0;
}

.bew-sb-icon img,
.bew-sb-icon svg {
	width: 70px;
	height: 70px;
	object-fit: contain;
}

.bew-sb-text {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   Mode: Buttons
   ========================================================================== */

.bew-sb-btn-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.bew-sb-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 49px;
	border: 2px solid #e30613;
	border-radius: 50px;
	background: transparent;
	text-decoration: none !important;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.bew-sb-btn-text {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: #e30613;
	text-align: center;
	transition: color 0.3s ease;
}

.bew-sb-btn-icon {
	position: absolute;
	right: 18px;
	width: 26px;
	height: auto;
	transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover */
.bew-sb-btn:hover {
	background-color: #e30613;
	border-color: #e30613;
}

.bew-sb-btn:hover .bew-sb-btn-text {
	color: #fff;
}

.bew-sb-btn:hover .bew-sb-btn-icon {
	transform: translateX(4px);
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.bew-sb-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bew-sb-title {
		font-size: 16px;
	}

	.bew-sb-box {
		padding: 24px 16px;
	}

	.bew-sb-title + .bew-sb-box {
		padding-top: 32px;
	}

	.bew-sb-btn {
		height: 44px;
	}

	.bew-sb-btn-text {
		font-size: 1.1rem;
	}

	.bew-sb-btn-icon {
		right: 14px;
		width: 22px;
	}
}
