/* LoclHyr Blog — frontend styles (namespace: lhb-) */

.lhb-blogs-wrap {
	display: grid;
	gap: 24px;
	margin: 24px 0;
}

.lhb-layout-grid.lhb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lhb-layout-grid.lhb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lhb-layout-grid.lhb-cols-4 { grid-template-columns: repeat(4, 1fr); }

.lhb-layout-list {
	grid-template-columns: 1fr;
}

.lhb-layout-list .lhb-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.lhb-layout-list .lhb-card-thumb-link {
	flex: 0 0 260px;
}

.lhb-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lhb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.lhb-card-thumb-link {
	display: block;
}

.lhb-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
}

.lhb-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lhb-card-thumb-placeholder {
	background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.lhb-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.lhb-card-cats {
	margin-bottom: 8px;
}

.lhb-card-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #eef4ff;
	color: #2a5bd7;
	padding: 3px 9px;
	border-radius: 999px;
	margin-right: 6px;
}

.lhb-card-title {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.lhb-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.lhb-card-title a:hover {
	color: #2a5bd7;
}

.lhb-card-excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.55;
	margin: 0 0 14px;
	flex-grow: 1;
}

.lhb-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: #888;
	margin-top: auto;
}

.lhb-card-readmore {
	color: #2a5bd7;
	font-weight: 600;
	text-decoration: none;
}

.lhb-card-readmore:hover {
	text-decoration: underline;
}

.lhb-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
}

.lhb-pagination .page-numbers {
	padding: 8px 13px;
	border-radius: 6px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}

.lhb-pagination .page-numbers.current {
	background: #2a5bd7;
	color: #fff;
}

.lhb-no-posts {
	color: #777;
	font-style: italic;
}

/* Single blog view */
.lhb-single {
	max-width: 760px;
	margin: 0 auto;
}

.lhb-single-thumb img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin-bottom: 20px;
}

.lhb-single-title {
	font-size: 32px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.lhb-single-meta {
	color: #888;
	font-size: 13px;
	margin-bottom: 20px;
}

.lhb-single-meta span {
	margin-right: 14px;
}

.lhb-single-content {
	font-size: 16px;
	line-height: 1.75;
	color: #222;
}

.lhb-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Responsive */
@media (max-width: 900px) {
	.lhb-layout-grid.lhb-cols-3,
	.lhb-layout-grid.lhb-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.lhb-layout-list .lhb-card {
		flex-direction: column;
	}

	.lhb-layout-list .lhb-card-thumb-link {
		flex: none;
	}
}

@media (max-width: 560px) {
	.lhb-layout-grid.lhb-cols-2,
	.lhb-layout-grid.lhb-cols-3,
	.lhb-layout-grid.lhb-cols-4 {
		grid-template-columns: 1fr;
	}
}
