/* /blog and blog category pages (frappe_webshop templates/blog/blog_post_list.html).
   The header band matches the Item Group hero from the site's store UI styles; the cards use the
   site's blues and fonts. Body classes come from seo.py: "product-page pbl-blog-list". */

body.pbl-blog-list .page-content-wrapper { overflow-x: clip; }

/* ---------- Header band ---------- */
body.pbl-blog-list .page-header-wrapper {
	width: 100vw;
	margin: 0 0 40px calc(50% - 50vw);
	padding: 56px max(24px, calc((100vw - 1130px) / 2)) 52px;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		linear-gradient(90deg, rgba(9, 43, 78, .95), rgba(17, 82, 139, .78), rgba(17, 82, 139, .2)),
		var(--pbl-blog-hero-image, url("/files/hero-bg1.png"));
	background-color: #0b3d78;
	background-size: cover;
	background-position: center;
	color: #fff;
}
body.pbl-blog-list .page-header { max-width: 760px; margin: 0 !important; padding: 0; align-self: flex-start; }
body.pbl-blog-list .pbl-blog-hero h1 {
	font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 56px; line-height: 1.04; font-weight: 700; color: #fff; margin: 0 0 18px;
}
body.pbl-blog-list .pbl-blog-hero .pbl-hero-sub {
	font-size: 20px; line-height: 1.55; font-weight: 400; color: #eef7ff; margin: 0;
}
body.pbl-blog-list .pbl-blog-hero .breadcrumb { padding: 0; margin: 0 0 28px; background: transparent; font-size: 14px; }
body.pbl-blog-list .pbl-blog-hero .breadcrumb,
body.pbl-blog-list .pbl-blog-hero .breadcrumb a,
body.pbl-blog-list .pbl-blog-hero .breadcrumb-item.active,
body.pbl-blog-list .pbl-blog-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .78); }
body.pbl-blog-list .pbl-blog-hero .breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */
body.pbl-blog-list .pbl-blog-categories { max-width: 20rem; margin-bottom: 28px; }
body.pbl-blog-list .pbl-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
}
body.pbl-blog-list .pbl-blog-card { margin: 0; padding: 0; max-width: none; width: auto; }
body.pbl-blog-list .pbl-blog-card .card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e3e9f0;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(11, 37, 69, .05);
	transition: box-shadow .2s ease, transform .2s ease;
}
body.pbl-blog-list .pbl-blog-card .card:hover { box-shadow: 0 10px 28px rgba(11, 37, 69, .12); transform: translateY(-2px); }
body.pbl-blog-list .pbl-blog-card .card-img-top { height: auto; aspect-ratio: 16 / 10; overflow: hidden; background: #f1f4f8; border-radius: 0; }
body.pbl-blog-list .pbl-blog-card .card-img-top img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
body.pbl-blog-list .pbl-blog-card .default-cover {
	height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
	background: linear-gradient(135deg, #0b3d78, #11528b); color: #fff; font-weight: 600; font-size: 1.15rem;
}
body.pbl-blog-list .pbl-blog-card .card-body { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px 24px; }
body.pbl-blog-list .pbl-blog-card-eyebrow {
	text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: #11528b; margin-bottom: 10px;
}
body.pbl-blog-list .pbl-blog-card-featured { color: #0b3d78; }
body.pbl-blog-list .pbl-blog-card-featured::after { content: "\00b7"; margin: 0 6px; }
body.pbl-blog-list .pbl-blog-card-title {
	font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.2rem; line-height: 1.35; font-weight: 600; color: #0b2545; margin: 0 0 12px;
}
body.pbl-blog-list .pbl-blog-card .card:hover .pbl-blog-card-title { color: #11528b; }
body.pbl-blog-list .pbl-blog-card .post-description {
	font-size: 15px; line-height: 1.6; color: #526173; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.pbl-blog-list .pbl-blog-card .blog-card-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf1f5; }
body.pbl-blog-list .pbl-blog-card-meta { font-size: 13px; color: #6b7a8c; }

/* Featured posts take two columns on wide screens, with a wider image. */
body.pbl-blog-list .pbl-blog-card--featured { grid-column: span 2; }

/* ---------- Load More ---------- */
body.pbl-blog-list .pbl-blog-more { display: flex; justify-content: center; margin: 40px 0 8px; }
body.pbl-blog-list .pbl-blog-more .btn-more {
	min-width: 180px; height: 44px; padding: 0 28px; border-radius: 8px;
	background: #0b3d78; border: 1px solid #0b3d78; color: #fff; font-weight: 600;
}
body.pbl-blog-list .pbl-blog-more .btn-more:hover { background: #11528b; border-color: #11528b; color: #fff; }
body.pbl-blog-list .pbl-blog-more .btn-more:disabled { opacity: .7; }
body.pbl-blog-list .pbl-blog-more .btn-more.hidden { display: none; }
body.pbl-blog-list .pbl-blog-list-content { margin-bottom: 64px; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
	body.pbl-blog-list .pbl-blog-hero h1 { font-size: 42px; }
	body.pbl-blog-list .pbl-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	body.pbl-blog-list .page-header-wrapper { padding: 40px 24px 36px; min-height: 240px; margin-bottom: 28px; }
	body.pbl-blog-list .pbl-blog-hero h1 { font-size: 35px; }
	body.pbl-blog-list .pbl-blog-hero .pbl-hero-sub { font-size: 17px; }
	body.pbl-blog-list .pbl-blog-hero .breadcrumb { margin-bottom: 20px; }
}
@media (max-width: 575px) {
	body.pbl-blog-list .pbl-blog-grid { grid-template-columns: 1fr; gap: 20px; }
	body.pbl-blog-list .pbl-blog-card--featured { grid-column: auto; }
	body.pbl-blog-list .pbl-blog-card .card-body { padding: 18px 20px 20px; }
	body.pbl-blog-list .pbl-blog-more .btn-more { width: 100%; }
}

/* Breadcrumb separator ("›"), as on the shop pages. */
body.pbl-blog-list .pbl-blog-hero .breadcrumb-item + .breadcrumb-item { padding-left: 10px; }
body.pbl-blog-list .pbl-blog-hero .breadcrumb-item + .breadcrumb-item::before {
	content: "\203A"; background: none; width: auto; height: auto; padding-right: 10px; float: none;
}
