.dcg-widget-wrap {
	--dcg-columns: 3;
	--dcg-gap: 30px;
	position: relative;
}

.dcg-widget-wrap.dcg-loading .dcg-results {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ---------- Toolbar ---------- */
.dcg-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 18px;
}

.dcg-filters {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.dcg-filter-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: 13px;
	letter-spacing: 0.05em;
	padding: 0 0 6px 0;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.dcg-view-toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.dcg-view-label {
	font-size: 12px;
	letter-spacing: 0.08em;
	color: inherit;
	opacity: 0.7;
}

.dcg-view-btn {
	background: none;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dcg-view-btn.dcg-active {
	border-color: currentColor;
	background: rgba(0, 0, 0, 0.04);
}

/* ---------- Grid / List ---------- */
.dcg-posts-grid {
	display: grid;
	grid-template-columns: repeat(var(--dcg-columns), 1fr);
	gap: var(--dcg-gap);
	row-gap: 35px;
}

.dcg-posts-grid.dcg-view-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.dcg-card {
	display: flex;
	flex-direction: column;
}

.dcg-posts-grid.dcg-view-list .dcg-card {
	flex-direction: row;
	align-items: flex-start;
	gap: 24px;
}

.dcg-card-thumb {
	/*--dcg-ratio: 4/3;*/
	display: block;
	aspect-ratio: var(--dcg-ratio);
	overflow: hidden;
	border-radius: 2px;
	margin-bottom: 18px;
}

.dcg-posts-grid.dcg-view-list .dcg-card-thumb {
	width: 300px;
	flex-shrink: 0;
	margin-bottom: 0;
}

.dcg-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.dcg-card:hover .dcg-card-thumb img {
	transform: scale(1.03);
}

.dcg-card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.dcg-card-date {
	font-size: 12px;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
}

.dcg-card-title {
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 12px 0;
	font-weight: 500;
}

.dcg-card-title a {
	text-decoration: none;
}

.dcg-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 14px;
	flex: 1;
}

.dcg-read-more {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
}

.dcg-arrow {
	transition: transform 0.15s ease;
}

.dcg-read-more:hover .dcg-arrow {
	transform: translateX(4px);
}

/* ---------- Events tab + sub-filter dropdown ---------- */
.dcg-event-subfilter-row {
	display: none;
	margin-bottom: 20px;
	text-align: left;
}

.dcg-event-subfilter {
	font-size: 12px;
	letter-spacing: 0.05em;
	padding: 8px 12px;
	border: 1px solid #d8d8d8;
	background: #fff;
	cursor: pointer;
}

/* ---------- Event cards ---------- */
.dcg-card-event .dcg-card-thumb {
	position: relative;
}

.dcg-event-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #141211;
	color: #fff;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 10px;
}

.dcg-card-event-location {
	font-size: 16px;
	margin-bottom: 10px;
}

.dcg-no-posts {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	opacity: 0.6;
}

/* ---------- Pagination ---------- */
.dcg-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 48px;
}

.dcg-page-btn,
.dcg-page-next {
	background: none;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dcg-page-btn.dcg-active {
	font-weight: 600;
}

.dcg-page-dots {
	opacity: 0.5;
	padding: 0 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.dcg-posts-grid.dcg-view-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.dcg-posts-grid.dcg-view-list .dcg-card-thumb {
		width: 220px;
	}
}

@media (max-width: 767px) {
	.dcg-posts-grid.dcg-view-grid {
		grid-template-columns: 1fr;
	}
	.dcg-toolbar {
		align-items: flex-start;
	}
	.dcg-filters {
		overflow-x: auto;
		flex-wrap: nowrap;
		width: 100%;
		padding-bottom: 4px;
	}
	.dcg-posts-grid.dcg-view-list .dcg-card {
		flex-direction: column;
	}
	.dcg-posts-grid.dcg-view-list .dcg-card-thumb {
		width: 100%;
	}
	.dcg-posts-grid {
	    row-gap: 25px;
    }
    .dcg-toolbar {
        margin-bottom: 0;
        padding-bottom: 30px;
    }
}
