/* Child Pages Grid — minimalist grid & card design */

.cpg-wrap {
	--cpg-link: #2563eb;
	max-width: 1200px;
	margin: 0 auto;
}

/* Tabs */
.cpg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}
.cpg-tab {
	border: 1px solid #eaeaea;
	background: #fff;
	color: #444;
	font-size: 14px;
	line-height: 1;
	padding: 10px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.cpg-tab:hover { border-color: #d0d0d0; }
.cpg-tab.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* Mobile category dropdown — hidden on desktop, shown under 991px. */
.cpg-select {
	display: none;
	margin-bottom: 28px;
}
.cpg-select__label {
	display: block;
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
}
.cpg-select__field {
	width: 100%;
	border: 1px solid #eaeaea;
	background: #fff;
	color: #111;
	font-size: 15px;
	padding: 12px 14px;
	border-radius: 12px;
	cursor: pointer;
	appearance: none;
}

/* Grid */
.cpg-grid {
	display: grid;
	gap: 24px;
}
.cpg-wrap[data-cols="2"] .cpg-grid { grid-template-columns: repeat(2, 1fr); }
.cpg-wrap[data-cols="3"] .cpg-grid { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.cpg-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	padding: 24px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cpg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}
.cpg-card__tag {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	letter-spacing: 0.03em;
	color: #888;
	margin-bottom: 12px;
}
.cpg-card__title {
	font-size: 19px;
	line-height: 1.35;
	margin: 0 0 10px;
}
.cpg-card__title a {
	color: #111;
	text-decoration: none;
}
.cpg-card__title a:hover { color: var(--cpg-link); }
.cpg-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 20px;
}
.cpg-card__link {
	margin-top: auto;            /* pin to bottom-left */
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: var(--cpg-link);
	text-decoration: none;
}
.cpg-card__link span { transition: transform 0.2s ease; display: inline-block; }
.cpg-card__link:hover span { transform: translateX(3px); }

/* Footer / Load More */
.cpg-footer {
	text-align: center;
	margin-top: 32px;
}
.cpg-loadmore {
	border: 1px solid #111;
	background: #111;
	color: #fff;
	font-size: 14px;
	padding: 12px 28px;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.cpg-loadmore:hover { opacity: 0.85; }

/* JS state */
.cpg-hidden { display: none !important; }

/* Responsive */
@media (max-width: 991px) {
	.cpg-tabs { display: none; }   /* swap tab bar for the compact dropdown */
	.cpg-select { display: block; }
}
@media (max-width: 768px) {
	.cpg-wrap[data-cols="2"] .cpg-grid,
	.cpg-wrap[data-cols="3"] .cpg-grid {
		grid-template-columns: 1fr;
	}
}
