/* ==========================================================================
   Category posts section
   Used in: home-page.php (one section per category)
   ========================================================================== */

/* ── Section ── */

.category-posts {
	padding: 80px 0;
	background: #FAF2E5;
}

.category-posts + .category-posts {
	padding-top: 0;
}

/* ── Title ── */

.category-posts__title {
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 700;
	color: var(--nav-dark);
	line-height: 44px;
	letter-spacing: 0;
	margin: 0 0 40px;
}

/* ── 3-column grid ── */

.category-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── "See more" button ── */

.category-posts__more {
	margin-top: 40px;
	text-align: center;
}

.category-posts__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 9px 16px;
	border-radius: 77px;
	border: none;
	background: #fff;
	backdrop-filter: blur(2px);
	font-family: var(--font-figtree);
	font-size: 16px;
	font-weight: 400;
	color: var(--gray-900, #475569);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-posts__load-more:hover {
	background: var(--nav-dark);
	color: #fff;
}

.category-posts__load-more:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Responsive ── */

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

@media (max-width: 640px) {
	.category-posts {
		padding: 48px 0;
	}

	.category-posts__title {
		font-size: 28px;
		line-height: 36px;
		margin-bottom: 24px;
	}

	.category-posts__grid {
		grid-template-columns: 1fr;
	}

	.category-posts__more {
		margin-top: 24px;
	}
}
