/* Posts Grid with Badge — Widget 315 */

.pgb315-grid {
	display: grid;
	gap: 24px;
}

.pgb315-grid.pgb315-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.pgb315-grid.pgb315-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
	.pgb315-grid.pgb315-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.pgb315-grid.pgb315-cols-3,
	.pgb315-grid.pgb315-cols-2 {
		grid-template-columns: 1fr;
	}
}

.pgb315-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease;
}

.pgb315-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}

/* Image */
.pgb315-image-wrap {
	position: relative;
	overflow: hidden;
}

.pgb315-image {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.35s ease;
}

.pgb315-card:hover .pgb315-image {
	transform: scale(1.04);
}

.pgb315-no-image {
	background-color: #e8e8e8;
}

/* Badge */
.pgb315-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: #ffffff;
	color: #c0392b;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 5px 12px;
	border-radius: 50px;
	text-transform: uppercase;
	white-space: nowrap;
	z-index: 2;
}

/* Content */
.pgb315-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pgb315-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
}

.pgb315-excerpt {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #555555;
	flex: 1;
}

.pgb315-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #c0392b;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.pgb315-link:hover {
	opacity: 0.75;
}
