/* Minimal base styles - 3 cols desktop / 2 cols tablet / 1 col mobile */
.safe-dgb-wrap {
	box-sizing: border-box;
	font-family: inherit;
}

/* filters */
.safe-dgb-filters {
	display: flex;
	gap: 0.7rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
.safe-dgb-filters button {
	border: 1px solid #d0d0d0;
	background: #fff;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.95rem;
}
.safe-dgb-filters button.active {
	background: #0aa760;
	color: #fff;
	border-color: #0aa760;
}

/* cards grid */
.safe-dgb-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

/* card */
.safe-dgb-card {
	background: #fff;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
	min-height: 1px;
	box-sizing: border-box;
}
.safe-dgb-card a {
	color: inherit;
	text-decoration: none;
	display: block;
}
.safe-dgb-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 0.6rem;
}
.safe-dgb-cat {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 0.4rem;
	text-transform: none;
}
.safe-dgb-title {
	font-size: 1.05rem;
	margin: 0 0 0.5rem 0;
}
.safe-dgb-desc {
	font-size: 0.95rem;
	color: #444;
	margin-bottom: 0.6rem;
}
.safe-dgb-meta {
	font-size: 0.85rem;
	color: #666;
}

/* load more */
.safe-dgb-loadmore {
	margin-top: 1rem;
	text-align: center;
}
#safe-dgb-load-more-btn {
	padding: 0.6rem 1rem;
	border-radius: 8px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
}

/* responsive */
@media (max-width: 900px) {
	.safe-dgb-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.safe-dgb-cards {
		grid-template-columns: repeat(1, 1fr);
	}
	.safe-dgb-filters {
		gap: 0.5rem;
	}
}
