/* ── Flowhub Categories widget (widgets/class-flowhub-categories.php) ──────
   Icons are pasted verbatim from Flowhub's own icon set, referencing
   --flowhub-filter-primary-color internally — recolored to the site's moss
   theme purely by defining that variable here, no SVG markup touched.
   --------------------------------------------------------------------------- */

.fh-categories-widget {
	--flowhub-filter-primary-color: #597d36;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
	padding: 1rem 0;
}

.fh-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none !important;
	color: #f4f7ee !important;
	background-color: transparent !important;
	transition: color 0.15s ease;
}

a.fh-cat-item:hover,
a.fh-cat-item:focus {
	/* Redefined on just this link (not the whole widget) so hovering one
	   icon doesn't recolor its siblings — custom properties cascade down
	   from wherever they're set. Same tone as the hover text color, not a
	   darker one. */
	--flowhub-filter-primary-color: #b3cd98;
	color: #b3cd98 !important;
}

.fh-cat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}

.fh-cat-icon svg {
	width: 100%;
	height: 100%;
}

.fh-cat-label {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
}

@media (max-width: 576px) {
	.fh-categories-widget {
		gap: 1.5rem;
	}
}
