/* ==========================================================
   صفحه وبلاگ سفارشی - لیست بزرگ + سایدبار
   ========================================================== */

.wsr-blog-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	max-width: 1200px;
	margin: 50px auto;
	padding: 0 16px;
}

.wsr-blog-main {
	flex: 1 1 auto;
	min-width: 0;
}

.wsr-blog-page-title {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 30px;
}

/* --- کارت هر مقاله --- */
.wsr-blog-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.wsr-blog-card {
	display: flex;
	gap: 24px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 20px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wsr-blog-card:hover {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.wsr-blog-thumb {
	flex: 0 0 260px;
	max-width: 260px;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	align-self: center;
}

.wsr-blog-thumb img {
	width: 100%;
	height: 175px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.wsr-blog-card:hover .wsr-blog-thumb img {
	transform: scale(1.06);
}

.wsr-blog-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wsr-blog-card-body .wsr-blog-title {
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.5;
}

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

.wsr-blog-card-body .wsr-blog-title a:hover {
	color: #0d6efd;
}

.wsr-blog-excerpt {
	font-size: 14.5px;
	line-height: 1.9;
	color: #666;
	margin: 0 0 14px;
}

.wsr-blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
	font-size: 12.5px;
	color: #999;
}

/* --- صفحه‌بندی --- */
.wsr-blog-pagination {
	margin-top: 36px;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.wsr-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #e2e2e2;
	text-decoration: none;
	font-size: 14px;
}

.wsr-blog-pagination .page-numbers.current {
	background: #222;
	color: #fff;
	border-color: #222;
}

.wsr-blog-pagination .page-numbers:hover:not(.current) {
	background: #f2f2f2;
}

.wsr-blog-empty {
	color: #888;
	font-size: 15px;
}

/* --- سایدبار --- */
.wsr-blog-sidebar {
	flex: 0 0 300px;
	max-width: 300px;
	position: sticky;
	top: 30px;
}

.wsr-blog-widget {
	background: #fafafa;
	border: 1px solid #eaeaea;
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 24px;
}

.wsr-blog-widget-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #222;
}

.wsr-blog-cat-list,
.wsr-blog-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsr-blog-cat-list li {
	margin-bottom: 8px;
}

.wsr-blog-cat-list li a {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #444;
	text-decoration: none;
	padding: 6px 0;
}

.wsr-blog-cat-list li a:hover {
	color: #0d6efd;
}

.wsr-blog-recent-list li {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.wsr-blog-recent-list li:last-child {
	border-bottom: none;
}

.wsr-blog-recent-list li a {
	font-size: 13.5px;
	color: #333;
	text-decoration: none;
	line-height: 1.6;
}

.wsr-blog-recent-list li a:hover {
	color: #0d6efd;
}

.wsr-blog-recent-date {
	font-size: 11.5px;
	color: #aaa;
}

/* --- موبایل --- */
@media (max-width: 782px) {
	.wsr-blog-wrapper {
		flex-direction: column;
	}

	.wsr-blog-sidebar {
		position: static;
		width: 100%;
		max-width: 100%;
		flex-basis: auto;
	}

	.wsr-blog-card {
		flex-direction: column;
	}

	.wsr-blog-thumb {
		max-width: 100%;
		width: 100%;
	}

	.wsr-blog-thumb img {
		height: 200px;
	}
}
