/* CBC Icon Blocks — base structural styles.
   Colors, gaps, sizes, spacing are handled by Elementor controls. */

.cbc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 24px;
}

.cbc-item {
	text-align: center;
}

.cbc-item-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* Icon wrapper. Font-size drives both icon-font glyphs and (via em) SVGs. */
.cbc-icon {
	display: block;
	line-height: 1;
	font-size: 48px;
	margin-bottom: 16px;
}

.cbc-icon i,
.cbc-icon svg {
	display: inline-block;
	vertical-align: middle;
}

.cbc-icon svg {
	width: 1em;
	height: 1em;
}

.cbc-headline {
	margin: 0;
}

/* Center a lone trailing block on mobile (odd block count, 2-column layout).
   Toggled by the "Center Last Block on Mobile" control, which adds the
   .cbc-center-last-mobile--yes class to the widget wrapper. */
@media (max-width: 767px) {
	.cbc-center-last-mobile--yes .cbc-grid > .cbc-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
	}
}
