.sfb-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.sfb-grid {
	display: grid;
	gap: 1.5rem;
}

.sfb-cols-2 .sfb-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sfb-cols-3 .sfb-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sfb-cols-4 .sfb-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.sfb-cols-3 .sfb-grid,
	.sfb-cols-4 .sfb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.sfb-cols-2 .sfb-grid,
	.sfb-cols-3 .sfb-grid,
	.sfb-cols-4 .sfb-grid {
		grid-template-columns: 1fr;
	}
}

.sfb-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sfb-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.sfb-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

.sfb-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sfb-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 180px;
	color: #6b7280;
	font-size: 0.95rem;
}

.sfb-card-body {
	padding: 1rem 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.65rem;
}

.sfb-card-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.sfb-card-title a {
	color: inherit;
	text-decoration: none;
}

.sfb-card-title a:hover {
	text-decoration: underline;
}

.sfb-card-excerpt {
	margin: 0;
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.5;
}

.sfb-card-button {
	display: inline-block;
	margin-top: auto;
	align-self: flex-start;
	padding: 0.5rem 1rem;
	background: #1d4ed8;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.sfb-card-button:hover {
	background: #1e40af;
	color: #fff;
}

.sfb-pagination {
	margin-top: 2rem;
	text-align: center;
}

.sfb-pagination .page-numbers {
	display: inline-block;
	margin: 0 0.2rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	text-decoration: none;
}

.sfb-pagination .page-numbers.current {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

.sfb-empty {
	color: #6b7280;
	font-size: 1rem;
}
