/* ==========================================================================
   ASB Feature Widgets — base styles
   ========================================================================== */

.asb-why-choose-wrap,
.asb-methodology-wrap {
	position: relative;
	padding: 40px 20px;
	box-sizing: border-box;
}

/* Background (color/gradient/image) is painted on this overlay layer so
   the "Background Opacity" control can fade it without affecting the
   text/cards/steps, which sit above it via z-index. */
.asb-why-choose-wrap::before,
.asb-methodology-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.asb-header-block {
	position: relative;
	z-index: 1;
}

.asb-label {
	display: inline-block;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.asb-heading {
	margin: 0;
	line-height: 1.3;
	font-weight: 700;
}

.asb-underline {
	/* inline-block (not block) so it respects the header block's
	   text-align — left/center/right all work with no extra selectors */
	display: inline-block;
	width: 60px;
	height: 3px;
	margin-top: 14px;
	border-radius: 2px;
}

/* ---------- Why Choose grid ---------- */
.asb-cards-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.asb-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	box-sizing: border-box;
}

.asb-icon-box {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.asb-card-content {
	font-weight: 600;
	line-height: 1.4;
}

/* ---------- Learning Methodology ---------- */
.asb-steps-row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.asb-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 0;
	min-width: 0;
}

.asb-step-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	margin-bottom: 14px;
	transition: transform 0.3s ease;
}

.asb-step-title {
	margin: 0 0 6px;
	font-weight: 700;
}

.asb-step-desc {
	margin: 0;
	font-size: 0.85em;
	line-height: 1.4;
}

.asb-step-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding-top: 18px;
}

.asb-step-arrow i,
.asb-step-arrow svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ---------- Glossy effect ---------- */
.asb-glossy-yes .asb-icon-box::before,
.asb-glossy-yes .asb-step-icon::before {
	content: "";
	position: absolute;
	top: -60%;
	left: -20%;
	width: 140%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.15) 40%,
		rgba(255, 255, 255, 0) 70%
	);
	transform: rotate(-8deg);
	pointer-events: none;
}
.asb-glossy-yes .asb-icon-box,
.asb-glossy-yes .asb-step-icon {
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Blur / glass effect ---------- */
.asb-blur-yes .asb-icon-box,
.asb-blur-yes .asb-step-icon {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background-color: rgba(255, 255, 255, 0.25) !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- Hover polish ---------- */
.asb-card:hover .asb-icon-box,
.asb-step:hover .asb-step-icon {
	transform: translateY(-4px) scale(1.04);
}

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

@media (max-width: 1024px) {
	.asb-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.asb-cards-grid {
		grid-template-columns: 1fr;
	}

	.asb-stack-mobile-yes .asb-steps-row {
		flex-direction: column;
		align-items: stretch;
	}

	.asb-stack-mobile-yes .asb-step {
		flex-direction: row;
		text-align: left;
		align-items: center;
		gap: 14px;
	}

	.asb-stack-mobile-yes .asb-step-icon {
		margin-bottom: 0;
	}

	.asb-stack-mobile-yes .asb-step-arrow {
		padding: 8px 0;
		justify-content: flex-start;
		padding-left: 28px;
	}

	.asb-stack-mobile-yes .asb-step-arrow i,
	.asb-stack-mobile-yes .asb-step-arrow svg {
		transform: rotate(90deg);
	}
}
