/* ==========================================================================
   CSS KHUSUS BERANDA, ARSIP & PENCARIAN
   ========================================================================== */
.bic-hero-section {
	margin-bottom: 52px;
}

.bic-home-feed-section {
	margin-top: 48px;
}

.bic-container > .bic-home-feed-section:first-child {
	margin-top: 0;
}

.bic-card-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Pagination Desktop (Gaya SERP Google - Align Center) */
.bic-pagination {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--bic-color-border, #e2e8f0);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.bic-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--bic-color-contrast, #0f172a);
	background-color: var(--bic-color-base, #ffffff);
	border: 1px solid var(--bic-color-border, #e2e8f0);
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bic-pagination a.page-numbers:hover {
	background-color: var(--bic-color-surface, #f8fafc);
	border-color: var(--bic-color-primary, #d32f2f);
	color: var(--bic-color-primary, #d32f2f);
}

.bic-pagination .page-numbers.current {
	background-color: var(--bic-color-primary, #d32f2f);
	border-color: var(--bic-color-primary, #d32f2f);
	color: #ffffff;
}

.bic-pagination .prev.page-numbers,
.bic-pagination .next.page-numbers {
	min-width: auto;
	padding: 0 18px;
	color: var(--bic-color-primary, #d32f2f);
	border-color: var(--bic-color-primary, #d32f2f);
}

.bic-pagination .prev.page-numbers:hover,
.bic-pagination .next.page-numbers:hover {
	background-color: var(--bic-color-primary, #d32f2f);
	color: #ffffff;
}

/* State Kosong Arsip / Pencarian */
.bic-empty-state {
	padding: 48px 32px;
	background: var(--bic-color-surface, #f8fafc);
	border: 1px solid var(--bic-color-border, #e2e8f0);
	border-radius: var(--bic-radius-lg, 12px);
	text-align: left;
}

.bic-empty-state h3 {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--bic-color-contrast, #0f172a);
}

.bic-empty-state p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--bic-color-muted, #475569);
}

@media (max-width: 768px) {
	.bic-hero-section {
		margin-bottom: 32px;
	}
	.bic-home-feed-section {
		margin-top: 28px;
	}
	.bic-card-list {
		gap: 12px;
	}
	nav.bic-pagination,
	.bic-pagination {
		display: none;
	}
}

/* ==========================================================================
   UX POLISH: PAGINATION SPACING, SIDEBAR CATEGORY LIST & TOUCH TARGETS
   ========================================================================== */
.bic-filter-bar {
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.bic-cat-pill {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	scroll-snap-align: start;
	white-space: nowrap;
}

.bic-feed-actions {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
}

.bic-pagination {
	margin-top: 0;
	padding-top: 24px;
	border-top: 1px solid var(--bic-color-border, #e2e8f0);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.bic-pagination[hidden] {
	display: none;
}

.bic-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bic-category-list li {
	margin: 0;
	padding: 0;
}

.bic-category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--bic-color-contrast, #0f172a);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bic-category-list a:hover,
.bic-category-list li.is-active a {
	background-color: var(--bic-color-base, #ffffff);
	color: var(--bic-color-primary, #d32f2f);
	font-weight: 600;
}

.bic-cat-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 22px;
	padding: 0 7px;
	border-radius: 9999px;
	background-color: var(--bic-color-base, #ffffff);
	border: 1px solid var(--bic-color-border, #e2e8f0);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bic-color-muted, #475569);
}

.bic-compact-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (max-width: 768px) {
	.bic-feed-actions {
		margin-top: 20px;
	}
	nav.bic-pagination,
	.bic-pagination {
		display: none;
	}
}

/* Responsif Mobile & Tablet (Pecah Urutan Sidebar & Kunci Lebar Flex) */
bic-feed-layout {
display: block;
width: 100%;
max-width: 100%;
min-width: 0;
}

@media (max-width: 900px) {
.bic-feed-layout {
display: flex;
flex-direction: column;
gap: 32px;
width: 100%;
max-width: 100%;
min-width: 0;
}
.bic-feed-sidebar {
display: contents;
}
.bic-feed-main,
.bic-feed-sidebar .bic-sidebar-widget {
width: 100%;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
}
.bic-feed-main {
order: 2;
}
.bic-feed-sidebar .bic-sidebar-widget:nth-child(1) {
order: 1;
background: transparent;
border: none;
padding: 0;
}
.bic-feed-sidebar .bic-sidebar-widget:nth-child(2) {
order: 3;
}

/* Daftar Kategori Horizontal Swipeable Terkunci di Dalam Viewport */
.bic-feed-sidebar .bic-sidebar-widget:nth-child(1) .bic-sidebar-title {
margin-bottom: 12px;
border-bottom: none;
padding-bottom: 0;
}
.bic-feed-sidebar .bic-category-list {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 8px;
width: 100%;
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scroll-snap-type: x proximity;
scrollbar-width: none;
padding-bottom: 8px;
}
.bic-feed-sidebar .bic-category-list::-webkit-scrollbar {
display: none;
}
.bic-feed-sidebar .bic-category-list li {
flex-shrink: 0;
scroll-snap-align: start;
}
.bic-feed-sidebar .bic-category-list a {
padding: 6px 16px;
background-color: var(--bic-color-base, #ffffff);
border: 1px solid var(--bic-color-border, #e2e8f0);
border-radius: 9999px;
justify-content: center;
}
.bic-feed-sidebar .bic-category-list a:hover,
.bic-feed-sidebar .bic-category-list li.is-active a {
background-color: var(--bic-color-primary, #d32f2f);
border-color: var(--bic-color-primary, #d32f2f);
color: #ffffff;
}
.bic-feed-sidebar .bic-category-list a:hover .bic-cat-badge,
.bic-feed-sidebar .bic-category-list li.is-active .bic-cat-badge {
background-color: rgba(255, 255, 255, 0.2);
border-color: transparent;
color: #ffffff;
}
}
