:root {
	--pgp-primary: #111;
	--pgp-secondary: #666;
	--pgp-accent: #0073aa;
	--pgp-bg: #fff;
	--pgp-gap: 20px;
	--pgp-radius: 8px;
	--pgp-font-title: 'Inter', sans-serif;
	--pgp-font-body: 'Inter', sans-serif;
}

.pgp-wrapper {
	font-family: var(--pgp-font-body);
	margin-bottom: 40px;
	position: relative;
}

/* --- Section Header --- */
.pgp-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.pgp-header-center { text-align: center; justify-content: center; flex-direction: column; align-items: center; }
.pgp-header-right { text-align: right; flex-direction: row-reverse; }

.pgp-title {
	font-family: var(--pgp-font-title);
	font-size: 28px;
	font-weight: 700;
	margin: 0;
	color: var(--pgp-primary);
	line-height: 1.2;
}

.pgp-subtitle {
	font-size: 14px;
	color: var(--pgp-secondary);
	margin: 4px 0 0 0;
}

.pgp-slider-nav {
	display: flex;
	gap: 8px;
}

.pgp-nav-btn {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--pgp-primary);
}

.pgp-nav-btn:hover {
	background: var(--pgp-primary);
	color: #fff;
	border-color: var(--pgp-primary);
}

/* --- Common Card Styles --- */
.pgp-post-card {
	background: var(--pgp-bg);
	border-radius: var(--pgp-radius);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pgp-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.pgp-card-image {
	position: relative;
	width: 100%;
	padding-top: 60%; /* Aspect Ratio */
	overflow: hidden;
}

.pgp-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.pgp-post-card:hover .pgp-card-image img {
	transform: scale(1.05);
}

.pgp-card-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pgp-card-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.pgp-meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 8px;
}

.pgp-card-title {
	font-size: 18px;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.pgp-card-title a {
	color: var(--pgp-primary);
	text-decoration: none;
	transition: color 0.2s;
}

.pgp-card-title a:hover {
	color: var(--pgp-accent);
}

/* --- Layout 1: Featured + Sidebar --- */
.pgp-featured-sidebar-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
}

@media (max-width: 768px) {
	.pgp-featured-sidebar-container { grid-template-columns: 1fr; }
}

.pgp-style-featured-large .pgp-card-image {
	padding-top: 50%;
}

.pgp-style-featured-large .pgp-card-title {
	font-size: 24px;
}

.pgp-style-sidebar-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 16px;
	box-shadow: none !important;
	transform: none !important;
}

.pgp-style-sidebar-item .pgp-card-image {
	width: 80px;
	height: 80px;
	padding-top: 0;
	border-radius: 4px;
	flex-shrink: 0;
	margin-right: 16px;
}

.pgp-style-sidebar-item .pgp-card-body {
	padding: 0;
}

.pgp-style-sidebar-item .pgp-card-title {
	font-size: 15px;
	margin-bottom: 4px;
}

.pgp-view-all-btn {
	display: block;
	text-align: center;
	background: #f5f5f5;
	padding: 12px;
	border-radius: 4px;
	color: var(--pgp-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s;
}

.pgp-view-all-btn:hover {
	background: #e0e0e0;
}

/* --- Layout 2: Grid --- */
.pgp-grid-container {
	display: grid;
	grid-template-columns: repeat(var(--pgp-cols, 3), 1fr);
	gap: var(--pgp-gap);
}

@media (max-width: 768px) {
	.pgp-grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.pgp-grid-container { grid-template-columns: 1fr; }
}

/* --- Layout 4: Masonry --- */
.pgp-masonry-container {
	column-count: 3;
	column-gap: 20px;
}
.pgp-masonry-container .pgp-post-card {
	display: inline-block;
	width: 100%;
	margin-bottom: 20px;
}

/* --- Layout 5: Metro --- */
.pgp-metro-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}
.pgp-style-metro-large {
	grid-column: span 2;
	grid-row: span 2;
}
.pgp-style-metro-large .pgp-card-title { font-size: 22px; }

/* --- Layout 6: Timeline --- */
.pgp-timeline-container {
	position: relative;
	padding-left: 30px;
	border-left: 2px solid #eee;
}
.pgp-timeline-item {
	position: relative;
	margin-bottom: 30px;
}
.pgp-timeline-marker {
	position: absolute;
	left: -36px;
	top: 15px;
	width: 14px;
	height: 14px;
	background: var(--pgp-accent);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #eee;
}

/* --- Layout 7: Hero Strip --- */
.pgp-hero-swiper {
	height: 400px;
}
.pgp-hero-slide {
	position: relative;
	overflow: hidden;
	border-radius: var(--pgp-radius);
}
.pgp-hero-bg {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s;
}
.pgp-hero-slide:hover .pgp-hero-bg {
	transform: scale(1.05);
}
.pgp-hero-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 30px;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: #fff;
}
.pgp-hero-content h3 a {
	color: #fff;
	font-size: 24px;
}
.pgp-hero-content .pgp-badge {
	background: var(--pgp-accent);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	margin-bottom: 8px;
	display: inline-block;
}
