/**
 * News Archive Page Styles
 * Contract: content_pages_contract.md A4, A5, v1.2
 * Used by: archive-news.php
 *
 * @package MG
 */

/* ========================================
   News Archive Grid
   Contract A4: Same grid as latest-news
   ======================================== */

.news-archive__grid {
	display: grid;
	gap: 32px; /* Contract A4 */
	grid-template-columns: 1fr; /* Contract A4: Mobile - 1 column */
}

@media (min-width: 650px) {
	/* Contract A4: TabletSmall - 2 columns */
	.news-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	/* Contract A4: Desktop - 3 columns (3x3 grid with 9 posts) */
	.news-archive__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ========================================
   Pagination
   Contract A5: Simple prev/next controls
   ======================================== */

.news-archive__pagination {
	margin-top: 64px; /* Spacing above pagination */
	text-align: center;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 12px 20px;
	font-size: 16px;
	line-height: 1.4;
	color: #000;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover {
	background-color: #f5f5f5;
	border-color: #ccc;
}

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

.pagination .page-numbers.dots {
	border: none;
	padding: 12px 8px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	font-weight: 500;
}

/* ========================================
   Empty State (No posts)
   ======================================== */

.news-archive__empty {
	text-align: center;
	padding: 80px 30px;
	color: #666;
}

.news-archive__empty p {
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
}