/* ============================================================
   BLOG INDEX — modern card grid (home.php)
   Matches the homepage design system (navy #19191A · blue #009FD8)
   ============================================================ */

#pil-blog {
	font-family: inherit;
	color: #2A3A5C;
	line-height: 1.6;
	background: #fff;
}

#pil-blog *,
#pil-blog *::before,
#pil-blog *::after {
	box-sizing: border-box;
}

.pil-blog-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- HERO ---------- */
.pil-blog-hero {
	background: linear-gradient(135deg, #19191A, #008ECB);
	background-size: cover;
	background-position: center;
	padding: 54px 0 64px;
	color: #fff;
}

.pil-blog-crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, .65);
	margin-bottom: 26px;
}

.pil-blog-crumbs a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	transition: color .2s ease;
}

.pil-blog-crumbs a:hover {
	color: #fff;
}

.pil-blog-hero-inner {
	max-width: 720px;
}

.pil-blog-eyebrow {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #93c5fd;
	margin-bottom: 12px;
}

.pil-blog-title {
	font-size: 40px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 12px;
	color: #fff;
}

.pil-blog-sub {
	font-size: 16.5px;
	color: rgba(255, 255, 255, .8);
	margin: 0 0 18px;
	max-width: 620px;
}

.pil-blog-count {
	display: inline-block;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #dbeafe;
}

/* ---------- CATEGORY PILLS ---------- */
.pil-blog-cats {
	background: #F2F6FB;
	border-bottom: 1px solid #E3EAF3;
	padding: 14px 0;
}

.pil-blog-cats-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pil-blog-cat {
	font-size: 13px;
	font-weight: 600;
	color: #2A3A5C;
	background: #fff;
	border: 1px solid #E3EAF3;
	border-radius: 999px;
	padding: 7px 15px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.pil-blog-cat:hover {
	border-color: #009FD8;
	color: #009FD8;
	transform: translateY(-1px);
}

.pil-blog-cat.is-active {
	background: #009FD8;
	border-color: #009FD8;
	color: #fff;
}

/* ---------- BODY ROW (grid + sidebar) ---------- */
.pil-blog-body {
	padding: 46px 0 64px;
	background: #fff;
}

.pil-blog-body-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 34px;
	align-items: start;
}

.pil-blog-main {
	min-width: 0;
}

/* ---------- SIDEBAR ---------- */
.pil-blog-side {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.pil-blog-side .widget {
	background: #fff;
	border: 1px solid var(--h2-line, #E3EAF3);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 8px 24px rgba(5, 26, 68, 0.05);
}

.pil-blog-side .widget-title {
	font-size: 16px;
	font-weight: 800;
	color: #19191A;
	margin: 0 0 14px;
}

/* Widget titles already carry an underline span from the parent theme */
.pil-blog-side .benqu-section-title-wrap {
	margin-bottom: 14px;
}

/* Neutralise the parent theme's decorative underline bar on widget titles */
.pil-blog-side .benqu-section-title-wrap span,
.pil-blog-side .benqu-section-title-wrap::before,
.pil-blog-side .benqu-section-title-wrap::after {
	display: none;
}

/* Search widget */
.pil-blog-side .pfy-search-form {
	display: flex;
	gap: 8px;
}

.pil-blog-side .pfy-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--h2-line, #E3EAF3);
	border-radius: 10px;
	padding: 10px 13px;
	font-size: 14px;
	color: #2A3A5C;
	background: #F7FAFD;
	outline: none;
	transition: border-color .2s ease;
}

.pil-blog-side .pfy-search-form input[type="search"]:focus {
	border-color: #009FD8;
}

.pil-blog-side .search-btn {
	border: 0;
	border-radius: 10px;
	background: #009FD8;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	padding: 0 15px;
	cursor: pointer;
	transition: background .2s ease;
}

.pil-blog-side .search-btn:hover {
	background: #008ECB;
}

/* Category list widget (pfy-cat-item) */
.pil-blog-side .pfy-cate-item-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pil-blog-side .pfy-cat-item-col {
	width: 100%;
}

.pil-blog-side .pfy-cat-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #F2F6FB;
}

.pil-blog-side .pfy-cat-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 14px;
	color: #2A3A5C;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	position: relative;
	z-index: 1;
	transition: color .2s ease;
}

.pil-blog-side .pfy-cat-item a:hover {
	color: #009FD8;
}

.pil-blog-side .pfy-cat-item .cat-count {
	background: #EAF2FB;
	color: #009FD8;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 9px;
}

.pil-blog-side .pfy-cat-item .bg-overlay {
	display: none;
}

/* Tag cloud widget */
.pil-blog-side .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Show More / Show Less toggle button */
.pil-blog-side .pil-side-more {
	width: 100%;
	margin-top: 12px;
	padding: 9px 0;
	border: 1px dashed #B9C7DC;
	border-radius: 10px;
	background: #F7FAFD;
	color: #009FD8;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.pil-blog-side .pil-side-more:hover {
	background: #009FD8;
	border-color: #009FD8;
	color: #fff;
}

.pil-blog-side .tagcloud .pil-side-more {
	flex: 1 0 100%;
}

.pil-blog-side .tagcloud a {
	background: #EAF2FB;
	color: #009FD8;
	border-radius: 999px;
	font-size: 12.5px !important;
	font-weight: 600;
	padding: 6px 13px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.pil-blog-side .tagcloud a:hover {
	background: #009FD8;
	color: #fff;
}

.pil-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.pil-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #E3EAF3;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(5, 26, 68, 0.06);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.pil-blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 24px 60px rgba(5, 26, 68, 0.14);
	border-color: rgba(19, 96, 178, 0.35);
}

.pil-blog-card-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.pil-blog-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.pil-blog-card:hover .pil-blog-card-media img {
	transform: scale(1.05);
}

.pil-blog-card-letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 46px;
	font-weight: 800;
	color: rgba(255, 255, 255, .85);
}

.pil-blog-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
	padding: 18px 20px 20px;
}

.pil-blog-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: #5B6B85;
	font-weight: 600;
}

.pil-blog-card-cat {
	background: #EAF2FB;
	color: #009FD8;
	border-radius: 999px;
	padding: 4px 11px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.pil-blog-card-cat:hover {
	background: #009FD8;
	color: #fff;
}

.pil-blog-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 800;
	color: #19191A;
}

.pil-blog-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.pil-blog-card-title a:hover {
	color: #009FD8;
}

.pil-blog-card-excerpt {
	margin: 0;
	font-size: 14px;
	color: #5B6B85;
	flex: 1;
}

.pil-blog-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #EAF0F7;
}

.pil-blog-card-author {
	font-size: 13px;
	font-weight: 600;
	color: #2A3A5C;
	text-decoration: none;
}

.pil-blog-card-author:hover {
	color: #009FD8;
}

.pil-blog-card-more {
	font-size: 13px;
	font-weight: 700;
	color: #009FD8;
	text-decoration: none;
}

.pil-blog-card-more:hover {
	text-decoration: underline;
}

/* ---------- PAGINATION ---------- */
.pil-blog-pagination {
	margin-top: 44px;
}

.pil-blog-pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pil-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #E3EAF3;
	border-radius: 10px;
	background: #fff;
	color: #2A3A5C;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pil-blog-pagination .page-numbers:hover {
	border-color: #009FD8;
	color: #009FD8;
}

.pil-blog-pagination .page-numbers.current {
	background: #009FD8;
	border-color: #009FD8;
	color: #fff;
}

.pil-blog-empty {
	text-align: center;
	color: #5B6B85;
	padding: 40px 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
	.pil-blog-body-row {
		grid-template-columns: 1fr;
	}
	.pil-blog-side {
		position: static;
	}
	.pil-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pil-blog-title {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.pil-blog-container {
		padding: 0 16px;
	}
	.pil-blog-hero {
		padding: 40px 0 48px;
	}
	.pil-blog-title {
		font-size: 27px;
	}
	.pil-blog-body {
		padding: 32px 0 48px;
	}
	.pil-blog-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}
