.dpg-layout {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
	box-sizing: border-box;
}

.dpg-layout * {
	box-sizing: border-box;
}

.dpg-sidebar {
	flex: 0 0 27%;
	width: 27%;
	padding: 18px 20px 14px;
	background: #fff;
	border: 1px solid #e7e7e7;
	box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.dpg-sidebar-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: .1px;
}

.dpg-category-list {
	display: flex;
	flex-direction: column;
}

.dpg-category-link {
	display: block;
	padding: 7px 0;
	border-bottom: 1px solid #e5e5e5;
	color: #f44336;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	transition: opacity .2s ease;
}

.dpg-category-link:hover {
	opacity: .75;
}

.dpg-main {
	flex: 1 1 auto;
	min-width: 0;
	width: calc(73% - 40px);
}

.dpg-no-sidebar .dpg-main {
	width: 100%;
}

.dpg-grid {
	display: grid;
	width: 100%;
}

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

.dpg-post {
	min-width: 0;
}

.dpg-image-link {
	display: block;
	text-decoration: none;
}

.dpg-image {
	width: 100%;
	overflow: hidden;
	background: #edf0f2;
}

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

.dpg-image-placeholder {
	min-height: 180px;
	background: #edf0f2;
}

.dpg-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 19px;
	margin-bottom: 21px;
	color: #555;
	font-size: 15px;
	line-height: 1.3;
}

.dpg-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.dpg-date span,
.dpg-cat-meta span {
	font-size: 12px;
}

.dpg-date span {
	color: #f15b46;
}

.dpg-post-title {
	margin: 0 0 22px;
	font-size: 18px;
	line-height: 1.55;
	font-weight: 700;
}

.dpg-post-title a {
	text-decoration: none;
}

.dpg-post-title a:hover {
	opacity: .8;
}

.dpg-excerpt {
	margin: -8px 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

.dpg-read-more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
}

.dpg-read-more span {
	font-size: 23px;
	line-height: 1;
	transition: transform .2s ease;
}

.dpg-read-more:hover span {
	transform: translateX(4px);
}

.dpg-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 48px;
	padding-top: 8px;
}

.dpg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	line-height: 1;
}

.dpg-pagination .page-numbers.current {
	background: #333;
	border-color: #333;
	color: #fff;
}

.dpg-pagination .page-numbers:hover {
	background: #f5f5f5;
}

.dpg-pagination .prev,
.dpg-pagination .next {
	min-width: auto;
}

.dpg-no-posts {
	padding: 30px;
	border: 1px solid #e5e5e5;
	text-align: center;
}

@media (max-width: 900px) {
	.dpg-layout {
		gap: 25px;
	}

	.dpg-sidebar {
		width: 30%;
		flex-basis: 30%;
	}

	.dpg-main {
		width: calc(70% - 25px);
	}

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

@media (max-width: 767px) {
	.dpg-layout {
		display: block;
	}

	.dpg-sidebar,
	.dpg-main {
		width: 100%;
	}

	.dpg-sidebar {
		margin-bottom: 30px;
	}

	.dpg-columns-2,
	.dpg-columns-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.dpg-post + .dpg-post {
		margin-top: 35px;
	}
}
