.dppw-widget {
	--dppw-border: #d9dde5;
	--dppw-text: #111827;
	--dppw-muted: #6b7280;
	--dppw-bg: #ffffff;
	--dppw-primary: #0f4ea8;
}

.dppw-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.dppw-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 220px;
	flex: 1 1 260px;
	border: 1px solid var(--dppw-border);
	border-radius: 8px;
	padding: 0 12px;
	background: #fff;
}

.dppw-search-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	pointer-events: none;
	opacity: 0.7;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

.dppw-search,
.dppw-category,
.dppw-tag,
.dppw-order {
	width: 100%;
	border: 1px solid var(--dppw-border);
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 14px;
	line-height: 1.4;
	background: #fff;
	color: var(--dppw-text);
}

.dppw-search {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	padding: 11px 0;
	background: transparent;
	box-shadow: none;
}

.dppw-search:focus {
	outline: none;
}

.dppw-search::-webkit-search-decoration,
.dppw-search::-webkit-search-cancel-button,
.dppw-search::-webkit-search-results-button,
.dppw-search::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.dppw-category,
.dppw-tag,
.dppw-order {
	min-width: 180px;
	flex: 1 0 180px;
}

.dppw-grid {
	column-count: 3;
	column-gap: 20px;
}

.dppw-card {
	display: inline-block;
	width: 100%;
	margin: 0 0 20px;
	break-inside: avoid;
	background: var(--dppw-bg);
	border: 1px solid var(--dppw-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
}

.dppw-thumb-link {
	display: block;
}

.dppw-thumb {
	display: block;
	width: 100%;
	height: auto;
}

.dppw-thumb-placeholder {
	min-height: 160px;
	background: linear-gradient( 135deg, #ecf1f7, #dfe6f2 );
}

.dppw-card-body {
	padding: 16px;
}

.dppw-meta {
	color: var(--dppw-muted);
	font-size: 12px;
	margin-bottom: 8px;
}

.dppw-meta-category {
	font-weight: 600;
}

.dppw-sep {
	margin: 0 6px;
}

.dppw-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.dppw-title a {
	color: var(--dppw-text);
	text-decoration: none;
}

.dppw-title a:hover {
	color: var(--dppw-primary);
}

.dppw-excerpt {
	color: var(--dppw-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.dppw-readmore {
	color: var(--dppw-primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
}

.dppw-readmore:hover {
	text-decoration: underline;
}

.dppw-layout--featured_stack .dppw-grid {
	column-count: initial !important;
	column-gap: 0 !important;
}

.dppw-layout--featured_stack .dppw-featured-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dppw-layout--featured_stack .dppw-featured-top {
	display: grid;
	grid-template-columns: minmax( 0, 1.7fr ) minmax( 300px, 1fr );
	gap: 20px;
}

.dppw-layout--featured_stack .dppw-featured-side,
.dppw-layout--featured_stack .dppw-featured-bottom-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dppw-layout--featured_stack .dppw-card {
	margin: 0;
}

.dppw-layout--featured_stack .dppw-featured-hero-card {
	position: relative;
	min-height: 460px;
}

.dppw-layout--featured_stack .dppw-featured-hero-media {
	position: absolute;
	inset: 0;
}

.dppw-layout--featured_stack .dppw-featured-hero-media .dppw-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}

.dppw-layout--featured_stack .dppw-featured-hero-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dppw-layout--featured_stack .dppw-featured-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 0, 0, 0, 0.15 ) 20%, rgba( 0, 0, 0, 0.8 ) 100% );
	pointer-events: none;
}

.dppw-layout--featured_stack .dppw-featured-hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	color: #fff;
}

.dppw-layout--featured_stack .dppw-featured-category-badge {
	display: inline-block;
	background: #ff3636;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.dppw-layout--featured_stack .dppw-featured-hero-title {
	margin: 0 0 12px;
	font-size: 46px;
	line-height: 1.15;
}

.dppw-layout--featured_stack .dppw-featured-hero-title a,
.dppw-layout--featured_stack .dppw-featured-hero-content .dppw-excerpt,
.dppw-layout--featured_stack .dppw-featured-hero-content .dppw-meta {
	color: #fff;
}

.dppw-layout--featured_stack .dppw-featured-compact-card {
	display: flex;
	flex-direction: row;
}

.dppw-layout--featured_stack .dppw-featured-compact-media {
	position: relative;
	flex: 0 0 38%;
	min-height: 166px;
	overflow: hidden;
}

.dppw-layout--featured_stack .dppw-featured-compact-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dppw-layout--featured_stack .dppw-featured-compact-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.dppw-layout--featured_stack .dppw-featured-category-label {
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: capitalize;
}

.dppw-layout--featured_stack .dppw-featured-compact-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
}

.dppw-layout--featured_stack .dppw-featured-compact-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.dppw-layout--featured_stack .dppw-featured-excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.dppw-layout--featured_stack .dppw-featured-meta-line {
	margin: 0;
	font-size: 14px;
}

.dppw-layout--featured_stack .dppw-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ff1a1a;
	border-radius: 20px;
	transform: translate( -50%, -50% );
	pointer-events: none;
	z-index: 3;
}

.dppw-layout--featured_stack .dppw-play-icon::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
	margin-left: 3px;
}

.dppw-layout--featured_stack .dppw-play-icon--hero {
	width: 130px;
	height: 84px;
}

.dppw-layout--featured_stack .dppw-play-icon--compact {
	width: 62px;
	height: 42px;
	border-radius: 12px;
}

.dppw-layout--featured_stack .dppw-play-icon--compact::before {
	border-top-width: 7px;
	border-bottom-width: 7px;
	border-left-width: 11px;
	margin-left: 2px;
}

.dppw-actions {
	margin-top: 18px;
	text-align: center;
}

.dppw-load-more {
	border: 1px solid var(--dppw-primary);
	background: var(--dppw-primary);
	color: #fff;
	border-radius: 8px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.dppw-load-more:hover {
	filter: brightness( 0.95 );
}

.dppw-widget.is-loading .dppw-load-more {
	opacity: 0.65;
	pointer-events: none;
}

.dppw-empty {
	column-span: all;
	margin: 0;
	padding: 16px;
	border: 1px dashed var(--dppw-border);
	border-radius: 10px;
	background: #f8fafc;
}

@media ( max-width: 1024px ) {
	.dppw-grid {
		column-count: 2;
	}

	.dppw-layout--featured_stack .dppw-featured-top {
		grid-template-columns: 1fr;
	}

	.dppw-layout--featured_stack .dppw-featured-hero-card {
		min-height: 380px;
	}

	.dppw-layout--featured_stack .dppw-featured-compact-title {
		font-size: 28px;
	}
}

@media ( max-width: 680px ) {
	.dppw-grid {
		column-count: 1;
	}

	.dppw-filters {
		gap: 10px;
	}

	.dppw-category,
	.dppw-tag,
	.dppw-order {
		min-width: 100%;
	}

	.dppw-layout--featured_stack .dppw-featured-hero-card {
		min-height: 320px;
	}

	.dppw-layout--featured_stack .dppw-featured-hero-title {
		font-size: 30px;
	}

	.dppw-layout--featured_stack .dppw-featured-compact-card {
		flex-direction: column;
	}

	.dppw-layout--featured_stack .dppw-featured-compact-media {
		flex-basis: auto;
		min-height: 180px;
	}

	.dppw-layout--featured_stack .dppw-featured-compact-title {
		font-size: 24px;
	}
}
