/* ===================== Grid Layout ===================== */
.pg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

.pg-grid *,
.pg-grid *::before,
.pg-grid *::after {
	box-sizing: border-box;
}

/* ===================== Item ===================== */
.pg-item {
	display: block;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pg-item:hover {
	transform: translateY(-2px);
}

/* ===================== Image ===================== */
.pg-image {
	width: 100%;
	height: 380px;
	overflow: hidden;
	background: #f5f5f5;
}

.pg-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pg-item:hover .pg-image img {
	transform: scale(1.03);
}

/* ===================== Title ===================== */
.pg-title {
	margin: 0;
	padding: 12px 8px;
	font-size: 15px;
	font-weight: 400;
	color: #2c3e50;
	text-align: center;
	line-height: 1.5;
	transition: color 0.2s ease;
}

.pg-item:hover .pg-title {
	color: #0073aa;
}

/* ===================== Pagination ===================== */
.pg-pagination {
	display: flex;
	align-items: center;
	margin-top: 32px;
}

.pg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 4px;
	border: 1px solid #a0c4e0;
	background: #ffffff;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

.pg-pagination .page-numbers.current,
.pg-pagination .page-numbers:hover {
	background-color: #2b6cb0;
	border-color: #2b6cb0;
	color: #fff;
}

.pg-pagination .page-numbers.dots {
	border: none;
	background: none;
	pointer-events: none;
}

.pg-pagination .page-numbers.dots:hover {
	background: none;
	color: #333;
}
