/* ==========================================================
   FastBookPrint — Blog listing page (/blog/)
   Scoped to .fbp-b so nothing leaks into header or footer.
   ========================================================== */

.fbp-b {
	--fbp-orange: #f04000;
	--fbp-orange-dark: #d03800;
	--fbp-orange-soft: rgb(240 64 0 / .08);
	--fbp-ink: #0f0e17;
	--fbp-text: #3d3d3d;
	--fbp-muted: #5f5f5f;
	--fbp-line: #e4e4e4;
	--fbp-bg-alt: #f6f6f6;
	--fbp-radius: 10px;
	--fbp-head: "Readex Pro", "Inter", system-ui, sans-serif;
	--fbp-body: "Inter", system-ui, -apple-system, sans-serif;

	font-family: var(--fbp-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--fbp-text);
	background: #fff;
}
.fbp-b *,
.fbp-b *::before,
.fbp-b *::after { box-sizing: border-box; }
.fbp-b__wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.fbp-b h1,
.fbp-b h2,
.fbp-b h3 {
	font-family: var(--fbp-head);
	color: var(--fbp-ink);
	line-height: 1.25;
	margin: 0;
	letter-spacing: -0.01em;
}
.fbp-b p { margin: 0; }
.fbp-b a { text-decoration: none; }
.fbp-b a:focus-visible { outline: 3px solid var(--fbp-orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Intro ---------- */
.fbp-b__intro { padding: 72px 0 40px; text-align: center; }
.fbp-b__intro h1 { font-size: 52px; font-weight: 600; }
.fbp-b .fbp-b__intro p { max-width: 600px; margin: 16px auto 0; font-size: 17px; color: var(--fbp-muted); }
.fbp-b__empty { padding: 20px 0 40px; text-align: center; color: var(--fbp-muted); }

/* ---------- Shared bits ---------- */
.fbp-b__img { aspect-ratio: 1200 / 630; background: var(--fbp-bg-alt); overflow: hidden; }
.fbp-b__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fbp-b-chip {
	align-self: flex-start;
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--fbp-orange-soft);
	color: var(--fbp-orange);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.fbp-b-more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--fbp-orange); }

/* ---------- Featured (latest) post ---------- */
.fbp-b-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: stretch;
	border: 1px solid var(--fbp-line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	color: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.fbp-b-featured .fbp-b__img { width: 100%; height: 100%; min-height: 0; }
.fbp-b-featured__txt { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.fbp-b-featured h2 { margin-top: 14px; font-size: 24px; font-weight: 600; transition: color .2s ease; }
.fbp-b .fbp-b-featured p { margin: 12px 0 20px; font-size: 15px; color: var(--fbp-muted); }
.fbp-b-featured .fbp-b-more { margin-top: 0; }
.fbp-b-featured:hover { border-color: var(--fbp-orange); box-shadow: 0 10px 28px rgb(0 0 0 / .06); }
.fbp-b-featured:hover h2 { color: var(--fbp-orange); }

/* ---------- Grid ---------- */
.fbp-b__list { padding: 56px 0 0; }
.fbp-b__sec { margin-bottom: 22px !important; font-size: 24px; font-weight: 600; }
.fbp-b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fbp-b-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--fbp-line);
	border-radius: var(--fbp-radius);
	overflow: hidden;
	background: #fff;
	color: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.fbp-b-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.fbp-b-card h3 { margin-top: 12px; font-size: 18px; font-weight: 600; transition: color .2s ease; }
.fbp-b .fbp-b-card p { margin: 8px 0 16px; font-size: 15px; color: var(--fbp-muted); }
.fbp-b-card:hover { border-color: var(--fbp-orange); box-shadow: 0 10px 28px rgb(0 0 0 / .06); }
.fbp-b-card:hover h3 { color: var(--fbp-orange); }

/* ---------- Pagination ---------- */
.fbp-b-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.fbp-b-pager .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--fbp-line);
	border-radius: 8px;
	font-weight: 600;
	color: var(--fbp-ink);
}
.fbp-b-pager a.page-numbers:hover { border-color: var(--fbp-orange); color: var(--fbp-orange); }
.fbp-b-pager .page-numbers.current { background: var(--fbp-orange); border-color: var(--fbp-orange); color: #fff; }
.fbp-b-pager .page-numbers.dots { border-color: transparent; }

/* ---------- CTA band ---------- */
.fbp-b-band { margin-top: 72px; padding: 64px 0; background: var(--fbp-bg-alt); text-align: center; }
.fbp-b-band h2 { font-size: 38px; font-weight: 600; }
.fbp-b .fbp-b-band p { margin: 10px 0 24px; color: var(--fbp-muted); }
.fbp-b-band__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fbp-b .fbp-b-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border: 1.5px solid transparent;
	border-radius: 7px;
	font-family: var(--fbp-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fbp-b .fbp-b-btn--primary { background: var(--fbp-orange); color: #fff; }
.fbp-b .fbp-b-btn--primary:hover { background: var(--fbp-orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgb(240 64 0 / .28); }
.fbp-b .fbp-b-btn--outline { background: #fff; border-color: var(--fbp-ink); color: var(--fbp-ink); }
.fbp-b .fbp-b-btn--outline:hover { border-color: var(--fbp-orange); color: var(--fbp-orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.fbp-b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.fbp-b-featured { grid-template-columns: minmax(0, 1fr); }
	.fbp-b-featured .fbp-b__img { height: auto; }
	.fbp-b-featured__txt { padding: 26px; }
	.fbp-b-featured h2 { font-size: 24px; }
}
@media (max-width: 767px) {
	.fbp-b__wrap { padding: 0 16px; }
	.fbp-b__intro { padding: 48px 0 28px; }
	.fbp-b__intro h1 { font-size: 34px; }
	.fbp-b .fbp-b__intro p { font-size: 15px; }
	.fbp-b__list { padding-top: 40px; }
	.fbp-b-band { margin-top: 56px; padding: 48px 0; }
	.fbp-b-band h2 { font-size: 28px; }
	.fbp-b-band__row { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 560px) {
	.fbp-b-grid { grid-template-columns: minmax(0, 1fr); }
}
