:root {
	--sb-primary: #3182ce;
	--sb-primary-hover: #2b6cb0;
	--sb-text-dark: #1a202c;
	--sb-text-muted: #718096;
	--sb-border: #e2e8f0;
	--sb-bg: #ffffff;
	--sb-radius: 12px;
	--sb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	--sb-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.custom-blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 360px;
	width: 100%;
	font-family: inherit;
}

.sidebar-widget {
	background: var(--sb-bg);
	border-radius: var(--sb-radius);
	padding: 24px;
	box-shadow: var(--sb-shadow);
	border: 1px solid var(--sb-border);
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform, box-shadow;
}
.sidebar-widget:hover {
	box-shadow: var(--sb-shadow-hover);
}

.widget-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sb-text-dark);
	margin: 0 0 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sb-border);
	position: relative;
}
.widget-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 50px;
	height: 2px;
	background-color: var(--sb-primary);
}

/* Search */
.widget-search { padding: 18px; }
.search-input-group {
	display: flex;
	align-items: center;
	background: #f7fafc;
	border: 1px solid var(--sb-border);
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
}
.search-input-group:focus-within {
	border-color: var(--sb-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}
.search-field {
	width: 100%;
	border: none !important;
	background: transparent !important;
	padding: 12px 16px;
	font-size: 0.95rem;
	color: var(--sb-text-dark);
	outline: none !important;
}
.search-submit {
	background: transparent;
	border: none;
	color: var(--sb-text-muted);
	padding: 0 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}
.search-submit:hover { color: var(--sb-primary); }

/* Categories */
.widget-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.widget-category-list li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none !important;
	padding: 10px 14px;
	background: #f8fafc;
	border-radius: 8px;
	color: var(--sb-text-dark);
	font-size: 0.95rem;
	font-weight: 500;
	transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.widget-category-list li a:hover {
	background: var(--sb-primary);
	color: #ffffff;
	transform: translateX(4px);
}
.cat-count {
	font-size: 0.8rem;
	background: var(--sb-border);
	color: var(--sb-text-muted);
	padding: 2px 8px;
	border-radius: 20px;
	font-weight: 600;
	transition: all 0.2s ease;
}
.widget-category-list li a:hover .cat-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* Recent Posts */
.widget-post-stream { display: flex; flex-direction: column; gap: 16px; }
.stream-item { display: flex; gap: 14px; align-items: center; }
.stream-thumb {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f7fafc;
}
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.stream-item:hover .stream-thumb img { transform: scale(1.08); }
.stream-meta { display: flex; flex-direction: column; gap: 4px; }
.stream-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; margin: 0; }
.stream-title a { color: var(--sb-text-dark); text-decoration: none !important; transition: color 0.2s ease; }
.stream-item:hover .stream-title a { color: var(--sb-primary); }
.stream-date { font-size: 0.8rem; color: var(--sb-text-muted); }

/* Related Reads */
.widget-related-grid { display: flex; flex-direction: column; gap: 16px; }
.related-card {
	border: 1px solid var(--sb-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.related-img-wrap { display: block; width: 100%; height: 110px; overflow: hidden; background: #f7fafc; }
.related-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-card:hover .related-img-wrap img { transform: scale(1.05); }
.related-card-body { padding: 12px; }
.related-title { font-size: 0.9rem; font-weight: 600; margin: 0; line-height: 1.4; }
.related-title a { color: var(--sb-text-dark); text-decoration: none !important; transition: color 0.2s ease; }
.related-card:hover .related-title a { color: var(--sb-primary); }