/**
 * [av_category_card] — category tile visuals.
 *
 * Usable anywhere: the card is self-contained and doesn't depend on the
 * homepage section wrapper. Grid layout on the homepage is provided by the
 * enclosing Flatsome [col_inner]s.
 */

.av-section-categories .row{
	padding: 0 7px;
}

.av-section-categories .col{
	padding-left: 8px;
	padding-right: 8px;
	padding-bottom: 16px;
}

.av-cat-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	padding: 16px;
	color: #fff;
	transition: box-shadow 0.25s ease;
	aspect-ratio: 2 / 3;
	isolation: isolate;
}
.av-cat-card:hover {
	box-shadow: 0 14px 32px rgba(16,24,40,0.15);
	color: #fff;
}

.av-cat-body {
	position: relative;
	z-index: 2;
	width: 100%;
	display: block;
}

.av-cat-title {
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	margin: 0 0 2px;
	line-height: 20px;
}

.av-cat-lead {
	display: block;
	color: #FFFFFFBF;
	font-size: 12px;
	margin: 0 0 6px;
	line-height: 18px;
	min-height: 2.8em;      /* always reserve ~2 lines (line-height ×2) */
	max-height: 2.8em;      /* clamp longer leads to 2 lines */
	overflow: hidden;
}

.av-cat-link {
	color: #9FC290;
	font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.av-cat-link svg {
	display: inline-block;
	transition: transform 0.2s ease;
}
.av-cat-card:hover .av-cat-link svg { transform: translateX(3px); }
