/**
 * WebXtrm Benefit Cards Widget Styles
 * Horizontal layout per card: icon left + text right.
 */

.wx-bc-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}

.wx-bc-wrap * {
	box-sizing: border-box;
}

/* ===== GRID ===== */
.wx-bc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr;
	gap: 16px;
	max-width: 1200px;
	width: 100%;
}

/* ===== CARD ===== */
.wx-bc-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	background: #0f131a;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 14px;
	height: 100%;
	transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wx-bc-card:hover {
	background: #111620;
	border-color: rgba(0, 201, 240, 0.25);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 201, 240, 0.08);
}

/* ===== ICON BADGE (left) ===== */
.wx-bc-icon-wrap {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: rgba(0, 201, 240, 0.08);
	border: 1px solid rgba(0, 201, 240, 0.25);
	transition: background 0.3s ease, border-color 0.3s ease;
}

.wx-bc-card:hover .wx-bc-icon-wrap {
	background: rgba(0, 201, 240, 0.15);
	border-color: rgba(0, 201, 240, 0.45);
}

.wx-bc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #00c9f0;
}

/* SVG inherits color via currentColor */
.wx-bc-icon svg {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
	color: currentColor;
}

.wx-bc-icon svg path,
.wx-bc-icon svg circle,
.wx-bc-icon svg polygon,
.wx-bc-icon svg rect,
.wx-bc-icon svg g {
	fill: currentColor;
}

.wx-bc-icon i {
	font-size: 22px;
	color: inherit;
	line-height: 1;
}

/* ===== TEXT (right) ===== */
.wx-bc-text {
	flex: 1;
	min-width: 0;
}

.wx-bc-title {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

.wx-bc-desc {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #9aacbd;
	line-height: 1.55;
	margin: 8px 0 0;
	padding: 0;
}

/* ============================================ */
/* ===== RESPONSIVE SAFETY FALLBACKS ========= */
/* ============================================ */
/* Elementor's responsive controls (with selectors) generate higher-specificity
   CSS that overrides these fallbacks. These ensure the widget remains
   responsive even if a user clears responsive overrides or uses an older
   Elementor with limited responsive support. */

/* Tablet — 2 columns */
@media (max-width: 1024px) {
	.wx-bc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.wx-bc-card {
		padding: 18px;
		gap: 14px;
		border-radius: 12px;
	}
	.wx-bc-icon-wrap {
		width: 44px;
		height: 44px;
		border-radius: 9px;
	}
	.wx-bc-icon svg {
		width: 20px;
		height: 20px;
	}
	.wx-bc-icon i {
		font-size: 20px;
	}
	.wx-bc-title {
		font-size: 15px;
	}
	.wx-bc-desc {
		font-size: 12.5px;
	}
}

/* Mobile — 1 column, stacked layout */
@media (max-width: 767px) {
	.wx-bc-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		grid-auto-rows: auto; /* natural heights when stacked */
	}
	.wx-bc-card {
		padding: 16px;
		gap: 12px;
		border-radius: 12px;
		height: auto; /* don't force 100% on single column */
	}
	.wx-bc-card:hover {
		transform: none; /* no lift on touch devices */
	}
	.wx-bc-icon-wrap {
		width: 42px;
		height: 42px;
		border-radius: 8px;
	}
	.wx-bc-icon svg {
		width: 19px;
		height: 19px;
	}
	.wx-bc-icon i {
		font-size: 19px;
	}
	.wx-bc-title {
		font-size: 15px;
	}
	.wx-bc-desc {
		font-size: 12.5px;
		line-height: 1.5;
	}
}

/* Extra small mobile — even tighter */
@media (max-width: 380px) {
	.wx-bc-card {
		padding: 14px;
		gap: 10px;
	}
	.wx-bc-icon-wrap {
		width: 38px;
		height: 38px;
	}
	.wx-bc-icon svg {
		width: 17px;
		height: 17px;
	}
	.wx-bc-icon i {
		font-size: 17px;
	}
	.wx-bc-title {
		font-size: 14px;
	}
	.wx-bc-desc {
		font-size: 12px;
	}
}
