/* =========================================================
   Projects Archive — Filter + Card Layout
   ========================================================= */

/* Filter nav */
.projects-archive.page-section {
	padding-top: 104px;
}

.project-filter-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 76px;
}

.pf-btn {
	min-width: 71px;
	min-height: 45px;
	padding: 10px 24px;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-right: 0;
	border-radius: 0;
	color: #555555;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	text-decoration: underline;
	transition: color .2s, background .2s;
	line-height: 1.45;
}

.pf-btn:first-child {
	border-radius: 4px 0 0 4px;
}

.pf-btn:last-child {
	border-right: 1px solid #dddddd;
	border-radius: 0 4px 4px 0;
}

.pf-btn:hover {
	background: #fbfbfb;
	color: var(--color-accent);
}

.pf-btn--active {
	background: #ffffff;
	color: #1d1d1d;
}

/* Project grid */
.projects-grid {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

/* Individual card */
.pj-card {
	width: 100%;
}

.pj-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.pj-card__image {
	margin: 0 0 .75rem;
	line-height: 0;
}

.pj-card__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.pj-card__title {
	margin: .5rem 0 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 2rem;
	font-weight: 700;
	color: #1d1d1d;
	text-align: center;
}

.pj-card__link:hover .pj-card__title {
	color: #1d1d1d;
}

/* No-results message */
.pj-no-results {
	margin-top: 2rem;
	text-align: center;
	color: #666666;
}

/* Pagination */
.projects-archive .pagination {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.projects-archive .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 47px;
	padding: 10px 16px;
	margin-left: -1px;
	color: var(--color-accent);
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #dddddd;
}

.projects-archive .pagination .page-numbers:first-child {
	margin-left: 0;
	border-radius: 4px 0 0 4px;
}

.projects-archive .pagination .page-numbers:last-child {
	border-radius: 0 4px 4px 0;
}

.projects-archive .pagination .page-numbers.current,
.projects-archive .pagination .page-numbers:hover,
.projects-archive .pagination .page-numbers:focus-visible {
	color: #333333;
	background: #f8f9fb;
}

@media (max-width: 560px) {
	.projects-archive.page-section {
		padding-top: 72px;
	}

	.project-filter-nav {
		margin-bottom: 48px;
	}

	.pf-btn {
		min-width: auto;
		padding: 8px 14px;
		font-size: .9rem;
	}
}
