/* ============================================================
   Black Boxes – Elementor Widget Styles
   Fully responsive: Mobile / Tablet / Laptop / Desktop / PC
   ============================================================ */

.bb-boxes-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.bb-boxes-wrapper *,
.bb-boxes-wrapper *::before,
.bb-boxes-wrapper *::after {
	box-sizing: border-box;
}

/* --- Layout variants --- */
.bb-layout-boxed .bb-boxes-inner {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.bb-layout-fullwidth .bb-boxes-inner {
	max-width: 100%;
	width: 100%;
}

/* --- Grid --- */
.bb-boxes-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	width: 100%;
}

/* --- Box --- */
.bb-box {
	position: relative;
	background-color: #0a0a0a;
	border-radius: 12px;
	padding: 28px 20px;
	text-align: center;
	overflow: hidden;
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 110px;
}

/* Bottom yellow accent */
.bb-box.has-bottom-accent::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background-color: #E8B923;
	border-radius: 0 0 12px 12px;
}

/* Lift on hover */
.bb-box.bb-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Link wrapper */
.bb-box-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.bb-box-link:hover,
.bb-box-link:focus {
	text-decoration: none;
	color: inherit;
}

/* --- Title (yellow) --- */
.bb-box-title {
	font-size: 28px;
	font-weight: 700;
	color: #E8B923;
	line-height: 1.2;
	margin: 0 0 6px;
	letter-spacing: -0.3px;
}

/* --- Subtitle (white) --- */
.bb-box-subtitle {
	font-size: 14px;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.4;
	margin: 0;
	opacity: 0.95;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large Desktop / PC – 4 columns (default) */

/* Laptop */
@media (max-width: 1200px) {
	.bb-box-title {
		font-size: 26px;
	}

	.bb-boxes-grid {
		gap: 14px;
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.bb-boxes-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.bb-box {
		padding: 26px 18px;
		min-height: 100px;
	}

	.bb-box-title {
		font-size: 24px;
	}

	.bb-box-subtitle {
		font-size: 13.5px;
	}
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 767px) {
	.bb-boxes-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.bb-box {
		padding: 22px 14px;
		min-height: 90px;
	}

	.bb-box-title {
		font-size: 22px;
	}

	.bb-box-subtitle {
		font-size: 13px;
	}
}

/* Small Mobile – stack to 1 column if preferred, but 2 still works well */
@media (max-width: 480px) {
	.bb-boxes-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}

	.bb-box {
		padding: 24px 16px;
		min-height: 95px;
	}

	.bb-box-title {
		font-size: 24px;
	}

	.bb-box-subtitle {
		font-size: 14px;
	}
}

/* Editor preview */
.elementor-editor-active .bb-boxes-grid {
	display: grid;
}
