/* PeopleHub Recent Blog Grid — styles */

.phrb-section {
	width: 100%;
	padding: 60px 24px;
	box-sizing: border-box;
	background: #f7f8fa;
}

.phrb-section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.phrb-heading {
	font-size: 36px;
	font-weight: 700;
	color: #1a2b4c;
	margin: 0 0 18px;
}

.phrb-subtext {
	font-size: 15px;
	line-height: 1.7;
	color: #6b7280;
	margin: 0;
}

.phrb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.phrb-grid.phrb-columns-1 {
	grid-template-columns: 1fr;
}

.phrb-grid.phrb-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.phrb-grid.phrb-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.phrb-card {
	background: #fff;
	border: 1px solid #e3eef8;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.phrb-card:hover {
	box-shadow: 0 18px 40px rgba(20, 40, 80, 0.12);
	transform: translateY(-4px);
}

.phrb-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 11;
	overflow: hidden;
}

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

.phrb-card:hover .phrb-card-image img {
	transform: scale(1.06);
}

.phrb-date-badge {
	position: absolute;
	left: 0;
	bottom: 0;
	background: #2196d8;
	color: #fff;
	padding: 10px 16px;
	text-align: center;
	line-height: 1.2;
	display: flex;
	flex-direction: column;
}

.phrb-date-day {
	font-size: 22px;
	font-weight: 700;
}

.phrb-date-month,
.phrb-date-year {
	font-size: 13px;
	font-weight: 400;
}

.phrb-card-body {
	padding: 26px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.phrb-card-title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 14px;
}

.phrb-card-title a {
	color: #1a2b4c;
	text-decoration: none;
	transition: color 0.2s ease;
}

.phrb-card-title a:hover {
	color: #2196d8;
}

.phrb-card-excerpt {
	font-size: 14.5px;
	line-height: 1.7;
	color: #6b7280;
	margin: 0 0 22px;
	flex: 1;
}

.phrb-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.phrb-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #2196d8;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 11px 22px;
	border-radius: 50px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.phrb-read-more:hover {
	background: #1976bd;
	color: #fff;
	transform: translateY(-1px);
}

.phrb-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #6b7280;
}

.phrb-meta-author {
	color: #1a2b4c;
	font-weight: 600;
	text-decoration: none;
}

.phrb-meta-author:hover {
	color: #2196d8;
}

.phrb-meta-comments {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.phrb-no-posts {
	text-align: center;
	color: #6b7280;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
	.phrb-grid,
	.phrb-grid.phrb-columns-3,
	.phrb-grid.phrb-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.phrb-heading {
		font-size: 30px;
	}
}

@media (max-width: 600px) {
	.phrb-section {
		padding: 44px 16px;
	}
	.phrb-grid,
	.phrb-grid.phrb-columns-2,
	.phrb-grid.phrb-columns-3,
	.phrb-grid.phrb-columns-4 {
		grid-template-columns: 1fr;
	}
	.phrb-heading {
		font-size: 26px;
	}
	.phrb-section-header {
		margin-bottom: 32px;
	}
	.phrb-card-footer {
		justify-content: flex-start;
	}
}
