/* ==========================================================================
   CSS KHUSUS HALAMAN ARTIKEL TUNGGAL (SINGLE POST)
   ========================================================================== */
.bic-single-article {
	min-width: 0;
}

.bic-single-header {
	margin-bottom: 32px;
}

.bic-single-category {
	margin-bottom: 14px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bic-single-category a {
	color: var(--bic-color-primary, #d32f2f);
	text-decoration: none;
}

.bic-single-title {
	margin: 0 0 20px;
	font-size: clamp(1.875rem, 3.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--bic-color-contrast, #0f172a);
}

.bic-single-excerpt {
	margin-bottom: 24px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--bic-color-muted, #475569);
}

.bic-single-excerpt p {
	margin: 0;
}

.bic-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 0.875rem;
	color: var(--bic-color-muted, #475569);
}

.meta-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.meta-author img.author-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.meta-author a {
	font-weight: 600;
	color: var(--bic-color-contrast, #0f172a);
	text-decoration: none;
}

.bic-single-hero-image {
	margin: 0 0 40px;
	width: 100%;
}

.bic-single-hero-image img {
	width: 100%;
	height: auto;
	border-radius: var(--bic-radius-lg, 12px);
	display: block;
}

.bic-single-hero-image figcaption {
	margin-top: 10px;
	font-size: 0.8125rem;
	color: var(--bic-color-muted, #475569);
	text-align: center;
}

.bic-single-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--bic-color-contrast, #0f172a);
}

.bic-single-content p {
	margin-bottom: 1.5em;
}

.bic-single-content h2,
.bic-single-content h3 {
	margin-top: 2em;
	margin-bottom: 0.85em;
	font-weight: 700;
	line-height: 1.3;
}

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

.bic-single-footer {
	margin-top: 56px;
}

.bic-single-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 40px;
}

.bic-single-tags .tags-label {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--bic-color-contrast, #0f172a);
}

.bic-single-tags a {
	display: inline-block;
	padding: 6px 14px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bic-color-contrast, #0f172a);
	background-color: var(--bic-color-surface, #f8fafc);
	border: 1px solid var(--bic-color-border, #e2e8f0);
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.bic-single-tags a:hover {
	border-color: var(--bic-color-primary, #d32f2f);
	color: var(--bic-color-primary, #d32f2f);
}

.bic-post-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 0;
	border-top: 1px solid var(--bic-color-border, #e2e8f0);
	border-bottom: 1px solid var(--bic-color-border, #e2e8f0);
}

.nav-prev,
.nav-next {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 240px;
}

.nav-next {
	text-align: right;
}

.nav-subtitle {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bic-color-muted, #475569);
}

.bic-post-navigation a {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--bic-color-contrast, #0f172a);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bic-post-navigation a:hover {
	color: var(--bic-color-primary, #d32f2f);
}

@media (max-width: 768px) {
	.bic-single-title {
		font-size: 1.75rem;
	}
	.bic-single-excerpt {
		font-size: 1rem;
	}
	.bic-post-navigation {
		flex-direction: column;
		gap: 24px;
	}
	.nav-next {
		text-align: left;
	}
}

/* ==========================================================================
   SINGLE POST GRID LAYOUT & STICKY SIDEBAR (LIGHT DOM - 0)
   ========================================================================== */
.bic-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
	width: 100%;
	padding-bottom: 32px;
}

.bic-single-sidebar {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 28px;
	position: sticky;
	top: calc(var(--bic-adminbar-offset, 0px) + var(--bic-header-height, 52px) + 24px);
}

@media (max-width: 1024px) {
	.bic-single-layout {
		grid-template-columns: minmax(0, 1fr) 290px;
		gap: 32px;
	}
}

@media (max-width: 900px) {
	.bic-single-layout {
		grid-template-columns: 1fr;
		gap: 36px;
		padding-bottom: 16px;
	}
	.bic-single-sidebar {
		position: static;
	}
}

/* ==========================================================================
   TABLE OF CONTENTS (TOC) - LIGHT DOM & MOBILE FULLSCREEN DROPDOWN (0)
   ========================================================================== */
.bic-toc {
	display: block;
}

.bic-toc-bar {
	display: none;
}

.bic-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px solid var(--bic-color-border, #e2e8f0);
}

.bic-toc-list li {
	margin-bottom: 6px;
}

.bic-toc-link {
	display: block;
	padding: 4px 0 4px 14px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--bic-color-muted, #475569);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.bic-toc-link:hover,
.bic-toc-link.is-active {
	color: var(--bic-color-primary, #d32f2f);
	border-left-color: var(--bic-color-primary, #d32f2f);
	font-weight: 600;
}

@media (max-width: 900px) {
	body.has-bic-toc main.bic-container {
		padding-top: 64px;
	}
	.bic-single-sidebar .bic-sidebar-widget:has(bic-toc) {
		display: contents;
	}
	.bic-toc {
		position: fixed;
		top: calc(var(--bic-adminbar-offset, 0px) + var(--bic-header-height, 44px));
		left: 0;
		right: 0;
		width: 100%;
		z-index: 85;
		background-color: var(--bic-color-base, #ffffff);
		border-bottom: 1px solid var(--bic-color-border, #e2e8f0);
	}
	.bic-toc-bar {
		display: block;
		width: 100%;
		flex-shrink: 0;
	}
	.bic-toc-toggle {
		-webkit-appearance: none;
		appearance: none;
		-webkit-tap-highlight-color: transparent;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		width: 100%;
		min-height: 40px;
		padding: 9px var(--bic-gutter, 1rem);
		border: none;
		background: transparent;
		font-family: inherit;
		color: var(--bic-color-contrast, #0f172a);
		text-align: left;
		cursor: pointer;
	}
	.bic-toc-current {
		flex: 1;
		min-width: 0;
		font-size: 0.8125rem;
		font-weight: 500;
		line-height: 1.35;
		color: var(--bic-color-contrast, #0f172a);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.bic-toc-drawer-label {
		display: none;
		flex: 1;
		min-width: 0;
		font-size: 0.8125rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--bic-color-contrast, #0f172a);
	}
	.bic-toc-arrow {
		flex-shrink: 0;
		color: var(--bic-color-contrast, #0f172a);
		transition: transform 0.25s ease;
	}
	.bic-toc-nav {
		display: none;
	}

	/* State Terbuka: Memenuhi Layar Smartphone & Panah Menghadap ke Atas */
	.bic-toc.is-open {
		display: flex;
		flex-direction: column;
		height: calc(100vh - var(--bic-adminbar-offset, 0px) - var(--bic-header-height, 44px));
		height: calc(100dvh - var(--bic-adminbar-offset, 0px) - var(--bic-header-height, 44px));
		z-index: 95;
		border-bottom: none;
	}
	.bic-toc.is-open .bic-toc-bar {
		border-bottom: 1px solid var(--bic-color-border, #e2e8f0);
	}
	.bic-toc.is-open .bic-toc-current {
		display: none;
	}
	.bic-toc.is-open .bic-toc-drawer-label {
		display: block;
	}
	.bic-toc.is-open .bic-toc-arrow {
		transform: rotate(180deg);
	}
	.bic-toc.is-open .bic-toc-nav {
		display: block;
		flex: 1;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 8px var(--bic-gutter, 1rem) 40px;
	}
	.bic-toc.is-open .bic-toc-list {
		display: flex;
		flex-direction: column;
		border-left: none;
	}
	.bic-toc.is-open .bic-toc-list li {
		display: block;
		margin: 0;
		border-bottom: 1px solid var(--bic-color-border, #e2e8f0);
	}
	.bic-toc.is-open .bic-toc-list li:last-child {
		border-bottom: none;
	}
	.bic-toc.is-open .bic-toc-link {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 13px 4px;
		margin-left: 0;
		border-left: none;
		font-size: 0.9375rem;
		font-weight: 500;
		line-height: 1.45;
		color: var(--bic-color-contrast, #0f172a);
		white-space: normal;
	}
	.bic-toc.is-open .bic-toc-link.is-active {
		color: var(--bic-color-primary, #d32f2f);
		font-weight: 700;
	}
}

/* ==========================================================================
   BREADCRUMB (LIGHT DOM - 0)
   ========================================================================== */
.bic-breadcrumb {
	margin-bottom: 22px;
}

.bic-breadcrumb ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bic-color-muted, #475569);
}

.bic-breadcrumb a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bic-breadcrumb a:hover {
	color: var(--bic-color-primary, #d32f2f);
}

.bic-breadcrumb .separator {
	color: var(--bic-color-border, #e2e8f0);
}

@media (max-width: 768px) {
	.bic-breadcrumb {
		margin-bottom: 16px;
	}
}

/* Responsif Gambar Selebar Kontainer Baca pada Mobile */
@media (max-width: 768px) {
.bic-single-hero-image,
.bic-single-hero-image img {
width: 100%;
max-width: 100%;
height: auto;
}

.bic-single-content figure,
.bic-single-content .wp-caption,
.bic-single-content .wp-block-image,
.bic-single-content .alignleft,
.bic-single-content .alignright,
.bic-single-content .aligncenter {
float: none;
width: 100%;
max-width: 100%;
margin-left: 0;
margin-right: 0;
box-sizing: border-box;
}

.bic-single-content img:not(.emoji):not(.wp-smiley):not(.bic-inline-icon) {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}
}
