/* ==========================================================================
   PXL Transformation Toolkit — Frontend Styles
   ========================================================================== */

/* ---------- Student Transformation Widget ---------- */
.pxl-st-wrapper {
	width: 100%;
}

.pxl-st-title {
	margin: 0 0 20px;
}

.pxl-st-table {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background-color: #fff;
	overflow: hidden;
}

.pxl-st-head-before,
.pxl-st-head-after,
.pxl-st-cell-before,
.pxl-st-cell-after {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
}

.pxl-st-head-before,
.pxl-st-head-after {
	font-weight: 700;
}

.pxl-st-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 0.9em;
}

.pxl-st-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.pxl-st-row {
	margin-bottom: 4px;
}

/* Stack before/after on mobile */
@media (max-width: 767px) {
	.pxl-st-stack-mobile-yes .pxl-st-table {
		grid-template-columns: 1fr !important;
	}

	.pxl-st-stack-mobile-yes .pxl-st-cell-before,
	.pxl-st-stack-mobile-yes .pxl-st-cell-after {
		width: 100%;
	}
}

/* ---------- Business Builder Toolkit Widget ---------- */
.pxl-bt-wrapper {
	width: 100%;
}

.pxl-bt-title {
	margin: 0 0 24px;
}

.pxl-bt-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.pxl-bt-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	background-color: rgba(255, 255, 255, 0.35);
	border-radius: 16px;
	padding: 30px 20px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	isolation: isolate;
}

/* Glossy sheen overlay */
.pxl-bt-glossy-yes .pxl-bt-item {
	--pxl-gloss-opacity: 0.45;
}

.pxl-bt-glossy-yes .pxl-bt-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, var(--pxl-gloss-opacity, 0.45)) 0%,
		rgba(255, 255, 255, 0) 45%,
		rgba(255, 255, 255, 0) 100%
	);
}

/* Blur / glassmorphism default (overridable by inline style from control) */
.pxl-bt-blur-yes .pxl-bt-item {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.pxl-bt-hover-yes .pxl-bt-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(20, 33, 61, 0.15);
}

.pxl-bt-icon-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background-color: rgba(255, 255, 255, 0.6);
	margin-bottom: 14px;
}

.pxl-bt-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.pxl-bt-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.pxl-bt-label {
	position: relative;
	z-index: 1;
	font-weight: 600;
	line-height: 1.4;
}

/* Responsive fallback grid (in case Elementor responsive control isn't set) */
@media (max-width: 1024px) {
	.pxl-bt-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.pxl-bt-grid {
		grid-template-columns: 1fr;
	}

	.pxl-st-table {
		grid-template-columns: 1fr;
	}
}
