.fdm-fg {
	--fdm-fg-cols: 3;
	--fdm-fg-gap: 50px;
	--fdm-fg-title: #02322D;
	--fdm-fg-more: #4E531B;
	--fdm-fg-btn: #015A41;
	width: 100%;
}

.fdm-fg-grid {
	display: grid;
	grid-template-columns: repeat(var(--fdm-fg-cols), minmax(0, 1fr));
	gap: 40px;
}

.fdm-fg-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	animation: fdmFgIn 0.4s ease both;
}

@keyframes fdmFgIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.fdm-fg-thumb {
	display: block;
	aspect-ratio: 4 / 2.9;
	overflow: hidden;
	background: #eef2ef;
}

.fdm-fg-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.fdm-fg-body {
	padding: 30px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fdm-fg-title {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 600;
}
.fdm-fg-title a {
	color: var(--fdm-fg-title);
	text-decoration: none;
}

.fdm-fg-desc {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--fdm-fg-title);
}

.fdm-fg-more {
	margin-top: auto;
	align-self: flex-end;
	font-size: 18px;
	font-weight: 500;
	color: var(--fdm-fg-more);
	text-decoration: none;
}

.fdm-fg-actions {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.fdm-fg-viewall {
	display: inline-block;
	padding: 8px 30px;
	background: var(--fdm-fg-btn);
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
	border-radius: 8px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.fdm-fg-viewall:hover,
.fdm-fg-viewall:focus { color: #fff; opacity: 0.9; }
.fdm-fg-viewall.is-loading { opacity: 0.6; pointer-events: none; }

@media (max-width: 1024px) {
	.fdm-fg { --fdm-fg-gap: 28px; }
	.fdm-fg-title { font-size: 26px; }
	.fdm-fg-desc { font-size: 16px; }
	.fdm-fg-more { font-size: 18px; }
}

@media (max-width: 767px) {
	.fdm-fg-grid { gap: 24px;
	width: 90%;
	margin: auto;
	}
	.fdm-fg-body { padding: 22px 18px 18px; }
	.fdm-fg-title { font-size: 22px; }
	.fdm-fg-desc { font-size: 15px; }
	.fdm-fg-more { font-size: 16px; }
}
