/* ==========================================================================
   Buah Berdikari Blog Timeline  —  [bb_blog]
   Change the brand colour in --bbt-accent below.
   ========================================================================== */

.bbt {
	--bbt-accent: #db4c59;
	--bbt-accent-dark: #b83a46;
	--bbt-accent-soft: rgba(219, 76, 89, .09);
	--bbt-ink: #1f1f1f;
	--bbt-text: #555;
	--bbt-muted: #8a8a8a;
	--bbt-line: #ececec;
	--bbt-card: #fff;
	--bbt-placeholder: #f3efe9;
	--bbt-radius: 16px;
	--bbt-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .06);
	--bbt-shadow-hover: 0 4px 10px rgba(0, 0, 0, .06), 0 20px 44px rgba(0, 0, 0, .11);
	--bbt-gap: 44px;

	max-width: 1120px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--bbt-text);
}
.bbt *,
.bbt *::before,
.bbt *::after { box-sizing: border-box; }

.bbt p { padding: 0 !important; }
.bbt a { text-decoration: none !important; }

/* ---------- Theme page title: replaced by the header below ---------- */
body.bbt-has-header #left-area .entry-title.main_title,
body.bbt-has-header .et_pb_post .entry-title.main_title { display: none !important; }
body.bbt-has-header #main-content .container { padding-top: 32px; }

/* ---------- Header (hero) ---------- */
.bbt .bbt-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 56px;
	padding: 68px 48px 40px;
	border-radius: 24px;
	text-align: center;
	color: #fff;
	background:
		radial-gradient(circle at 12% 18%, rgba(219, 76, 89, .38), transparent 42%),
		radial-gradient(circle at 88% 92%, rgba(232, 168, 108, .22), transparent 40%),
		linear-gradient(135deg, #2c1e19 0%, #3b2721 55%, #1c1310 100%);
	box-shadow: 0 24px 50px rgba(44, 30, 25, .22);
	isolation: isolate;
}
.bbt .bbt-hero::before {            /* fine dot texture */
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
	background-size: 18px 18px;
}
.bbt .bbt-hero.has-image {
	background:
		linear-gradient(180deg, rgba(28, 19, 16, .55) 0%, rgba(28, 19, 16, .88) 100%),
		var(--bbt-hero-img) center / cover no-repeat;
}
.bbt .bbt-hero.has-image::before { display: none; }
.bbt .bbt-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.bbt p.bbt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	color: #f2b8be;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1.4;
}
.bbt p.bbt-eyebrow::before,
.bbt p.bbt-eyebrow::after {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}

.bbt h1.bbt-hero-title {
	margin: 14px 0 16px !important;
	padding: 0 !important;
	color: #fff !important;
	font-size: clamp(38px, 5.4vw, 60px) !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	letter-spacing: -.5px;
}
.bbt h1.bbt-hero-title::after {     /* short accent underline */
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 4px;
	background: var(--bbt-accent);
}

.bbt p.bbt-hero-sub {
	max-width: 600px;
	margin: 0 auto 20px !important;
	color: rgba(255, 255, 255, .8) !important;
	font-size: 17px !important;
	line-height: 1.7 !important;
}

.bbt p.bbt-hero-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	margin: 0 !important;
	color: rgba(255, 255, 255, .66);
	font-size: 14px;
	line-height: 1.5;
}
.bbt .bbt-hero-stats strong { color: #fff; font-weight: 600; }
.bbt .bbt-hero-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .35);
}

/* Filter pills inside the header */
.bbt .bbt-hero .bbt-filter { margin: 30px 0 0; }
.bbt .bbt-hero .bbt-pill {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .2);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.bbt .bbt-hero .bbt-pill:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .14); }
.bbt .bbt-hero .bbt-pill.is-active {
	background: var(--bbt-accent);
	border-color: var(--bbt-accent);
	box-shadow: 0 6px 18px rgba(219, 76, 89, .45);
}
.bbt .bbt-pill-count {
	margin-left: 7px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(127, 127, 127, .16);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
}
.bbt .bbt-hero .bbt-pill-count { background: rgba(255, 255, 255, .16); }

/* ---------- Topic filter ---------- */
.bbt-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 36px;
}
.bbt .bbt-pill {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--bbt-line);
	border-radius: 999px;
	background: var(--bbt-card);
	color: var(--bbt-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.bbt .bbt-pill:hover { border-color: var(--bbt-accent); color: var(--bbt-accent); }
.bbt .bbt-pill.is-active {
	background: var(--bbt-accent);
	border-color: var(--bbt-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(219, 76, 89, .28);
}

/* ---------- Timeline structure ---------- */
.bbt ol.bbt-timeline {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 0 20px !important;
	position: relative;
}
.bbt ol.bbt-timeline::before {           /* spine */
	content: "";
	position: absolute;
	top: 30px;                      /* start at the first year marker */
	bottom: 0;
	left: calc(50% - 1px);
	width: 2px;
	background: linear-gradient(to bottom, var(--bbt-accent) 0, rgba(219, 76, 89, .2) 100%);
}
.bbt ol.bbt-timeline::after { content: ""; display: table; clear: both; }
.bbt ol.bbt-timeline > li {
	list-style: none !important;
	margin-left: 0 !important;
	padding-bottom: 0;
}

/* Year marker */
.bbt .bbt-year {
	clear: both;
	position: relative;
	text-align: center;
	padding: 10px 0 30px;
	z-index: 1;
}
.bbt .bbt-year span {
	display: inline-block;
	padding: 9px 24px;
	border-radius: 999px;
	background: var(--bbt-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .5px;
	line-height: 1.2;
	box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(219, 76, 89, .3);
}

/* Items: alternate left / right, staggered */
.bbt .bbt-item {
	position: relative;
	width: 50%;
	margin: 0 0 40px !important;
}
.bbt .bbt-left  { float: left;  clear: left;  padding-right: var(--bbt-gap); }
.bbt .bbt-right { float: right; clear: right; padding-left:  var(--bbt-gap); }
.bbt .bbt-offset { margin-top: 90px !important; }

/* Node on the spine */
.bbt .bbt-node {
	position: absolute;
	top: 30px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--bbt-accent);
	box-shadow: 0 0 0 5px rgba(219, 76, 89, .14);
	z-index: 2;
	transition: transform .25s ease, box-shadow .25s ease;
}
.bbt .bbt-left  .bbt-node { right: -8px; }
.bbt .bbt-right .bbt-node { left: -8px; }
.bbt .bbt-item:hover .bbt-node {
	transform: scale(1.25);
	box-shadow: 0 0 0 7px rgba(219, 76, 89, .2);
}

/* ---------- Card ---------- */
.bbt .bbt-card {
	background: var(--bbt-card);
	border: 1px solid var(--bbt-line);
	border-radius: var(--bbt-radius);
	box-shadow: var(--bbt-shadow);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bbt .bbt-item:hover .bbt-card {
	transform: translateY(-4px);
	box-shadow: var(--bbt-shadow-hover);
	border-color: rgba(219, 76, 89, .35);
}
.bbt .bbt-main { position: relative; }

/* Image */
.bbt .bbt-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bbt-placeholder);
}
.bbt .bbt-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.bbt .bbt-img--empty {
	background: linear-gradient(135deg, var(--bbt-placeholder), #e8e0d4);
}
.bbt .bbt-item:hover .bbt-img { transform: scale(1.05); }

/* Text */
.bbt .bbt-body { padding: 20px 24px 6px; }
.bbt .bbt-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--bbt-muted);
	margin-bottom: 8px;
}
.bbt .bbt-sep { font-size: 9px; opacity: .7; }

.bbt h2.bbt-title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	font-size: 20px !important;
	line-height: 1.4 !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	text-transform: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bbt .bbt-link {
	color: var(--bbt-ink) !important;
	transition: color .2s ease;
}
.bbt .bbt-link::after {              /* whole card area is clickable */
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}
.bbt .bbt-item:hover .bbt-link { color: var(--bbt-accent) !important; }

.bbt p.bbt-excerpt {
	margin: 0 0 14px !important;
	font-size: 15px !important;
	line-height: 1.75 !important;
	color: var(--bbt-text) !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bbt .bbt-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--bbt-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
}
.bbt .bbt-more::after {
	content: "\2192";
	font-size: 16px;
	transition: transform .25s ease;
}
.bbt .bbt-item:hover .bbt-more::after { transform: translateX(5px); }

/* Footer */
.bbt .bbt-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 24px 18px;
	border-top: 1px solid var(--bbt-line);
}
.bbt .bbt-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.bbt .bbt-chip {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--bbt-accent-soft);
	color: var(--bbt-accent-dark) !important;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	transition: background .2s ease, color .2s ease;
}
.bbt .bbt-chip:hover { background: var(--bbt-accent); color: #fff !important; }

.bbt .bbt-share { display: flex; gap: 6px; }
.bbt .bbt-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--bbt-line);
	border-radius: 50%;
	color: var(--bbt-muted) !important;
	background: #fff;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.bbt .bbt-share-btn:hover {
	color: #fff !important;
	background: var(--bbt-accent);
	border-color: var(--bbt-accent);
}

/* ---------- Pagination ---------- */
.bbt .bbt-pagination { clear: both; padding-top: 10px; }
.bbt .bbt-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.bbt .bbt-pagination ul.page-numbers li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.bbt .bbt-pagination .page-numbers a,
.bbt .bbt-pagination .page-numbers span,
.bbt .bbt-pagination a.page-numbers,
.bbt .bbt-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--bbt-line);
	border-radius: 10px;
	background: #fff;
	color: var(--bbt-ink) !important;
	font-size: 14px;
	font-weight: 500;
	transition: border-color .2s ease, color .2s ease;
}
.bbt .bbt-pagination a.page-numbers:hover { border-color: var(--bbt-accent); color: var(--bbt-accent) !important; }
.bbt .bbt-pagination span.current {
	background: var(--bbt-accent);
	border-color: var(--bbt-accent);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(219, 76, 89, .28);
}
.bbt .bbt-pagination span.dots { border-color: transparent; background: none; }

.bbt .bbt-empty { text-align: center; padding: 40px 0 !important; color: var(--bbt-muted); }

/* ---------- Accessibility ---------- */
.bbt a:focus-visible {
	outline: 2px solid var(--bbt-accent);
	outline-offset: 3px;
	border-radius: 6px;
}
.bbt .bbt-link:focus-visible { outline: none; }
.bbt .bbt-link:focus-visible::after {
	outline: 3px solid var(--bbt-accent);
	outline-offset: -3px;
	border-radius: var(--bbt-radius);
}
@media (prefers-reduced-motion: reduce) {
	.bbt *, .bbt *::before, .bbt *::after { transition: none !important; }
	.bbt .bbt-item:hover .bbt-card,
	.bbt .bbt-item:hover .bbt-img { transform: none; }
}

/* ---------- Tablet & phone: one column, spine on the left ---------- */
@media (max-width: 860px) {
	.bbt { padding: 0 16px; }
	.bbt .bbt-media { aspect-ratio: 16 / 9; }
	.bbt ol.bbt-timeline::before { left: 20px; }

	.bbt .bbt-year { text-align: left; padding: 6px 0 24px; }
	.bbt .bbt-year span { font-size: 15px; padding: 7px 16px; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(219, 76, 89, .28); }

	.bbt .bbt-item,
	.bbt .bbt-left,
	.bbt .bbt-right {
		float: none;
		width: 100%;
		padding: 0 0 0 48px;
		margin: 0 0 28px !important;
	}
	.bbt .bbt-offset { margin-top: 0 !important; }
	.bbt .bbt-left .bbt-node,
	.bbt .bbt-right .bbt-node { left: 13px; right: auto; top: 24px; }

	.bbt-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -16px 14px;
		padding: 4px 16px 16px;
	}
	.bbt-filter::-webkit-scrollbar { display: none; }

	body.bbt-has-header #main-content .container { padding-top: 20px; width: 100%; max-width: 100%; }
	.bbt p.bbt-eyebrow { font-size: 11px; letter-spacing: 2px; gap: 8px; white-space: nowrap; }
	.bbt p.bbt-eyebrow::before,
	.bbt p.bbt-eyebrow::after { width: 16px; }
	.bbt .bbt-hero { padding: 46px 22px 26px; margin: 0 0 36px; border-radius: 20px; }
	.bbt p.bbt-hero-sub { font-size: 15.5px !important; }
	.bbt .bbt-hero .bbt-filter { margin: 24px -22px 0; padding: 4px 22px 8px; }
}

@media (max-width: 600px) {
	.bbt .bbt-body { padding: 16px 18px 4px; }
	.bbt h2.bbt-title { font-size: 18px !important; }
	.bbt p.bbt-excerpt { font-size: 14.5px !important; }
	.bbt .bbt-foot { padding: 12px 18px 16px; }
	.bbt .bbt-pagination a.page-numbers,
	.bbt .bbt-pagination span.page-numbers { min-width: 38px; height: 38px; padding: 0 11px; }
}
