/* ==========================================================================
   Parama Timeline Widget — Base Styles
   Semua nilai customizable dikontrol lewat CSS variable (--pt-*) yang
   di-generate otomatis oleh panel Style Elementor. Jangan edit file ini
   untuk mengubah warna/ukuran — gunakan panel Elementor.
   ========================================================================== */

.pt-timeline,
.pt-timeline * {
	box-sizing: border-box;
}

.pt-timeline {
	display: flex;
	align-items: flex-start;
	width: 100%;
}

/* ---------- Item ---------- */
.pt-timeline__item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	padding: 0 var( --pt-item-padding, 12px );
	min-width: 0;
}

/* ---------- Marker (bullet + connecting line) ---------- */
.pt-timeline__marker {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pt-timeline__dot {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var( --pt-dot-size, 40px );
	height: var( --pt-dot-size, 40px );
	border-radius: var( --pt-dot-radius, 50% );
	background-color: var( --pt-dot-bg, #FFFFFF );
	border: var( --pt-dot-border-width, 2px ) solid var( --pt-dot-border-color, #D5D5D5 );
	flex-shrink: 0;
}

.pt-timeline__number {
	display: inline-block;
	line-height: 1;
}

.pt-timeline__marker::before,
.pt-timeline__marker::after {
	content: '';
	position: absolute;
	border: 0 solid var( --pt-line-color, #D5D5D5 );
}

.pt-timeline__item:first-child .pt-timeline__marker::before,
.pt-timeline__item:last-child .pt-timeline__marker::after {
	content: none;
}

/* ---------- Content ---------- */
.pt-timeline__content {
	width: 100%;
}

.pt-timeline__heading {
	margin: 0 0 8px 0;
}

.pt-timeline__description {
	margin: 0;
}

/* ==========================================================================
   HORIZONTAL LAYOUT (default)
   ========================================================================== */
.pt-timeline--horizontal {
	flex-direction: row;
}

.pt-timeline--horizontal .pt-timeline__item {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.pt-timeline--horizontal .pt-timeline__marker {
	width: 100%;
	margin-bottom: var( --pt-marker-gap, 20px );
}

.pt-timeline--horizontal .pt-timeline__marker::before,
.pt-timeline--horizontal .pt-timeline__marker::after {
	top: 50%;
	width: 50%;
	border-top-width: var( --pt-line-thickness, 2px );
	border-top-style: var( --pt-line-style, solid );
	transform: translateY( -50% );
}

.pt-timeline--horizontal .pt-timeline__marker::before {
	left: 0;
}

.pt-timeline--horizontal .pt-timeline__marker::after {
	right: 0;
}

/* ==========================================================================
   VERTICAL LAYOUT
   ========================================================================== */
.pt-timeline--vertical {
	flex-direction: column;
}

.pt-timeline--vertical .pt-timeline__item {
	flex-direction: row;
	align-items: stretch;
	text-align: left;
	padding: 0 0 var( --pt-item-padding, 30px ) 0;
}

.pt-timeline--vertical .pt-timeline__item:last-child {
	padding-bottom: 0;
}

.pt-timeline--vertical .pt-timeline__marker {
	flex-direction: column;
	height: auto;
	margin: 0 var( --pt-marker-gap, 20px ) 0 0;
}

.pt-timeline--vertical .pt-timeline__marker::before,
.pt-timeline--vertical .pt-timeline__marker::after {
	left: 50%;
	width: 0;
	height: 50%;
	border-left-width: var( --pt-line-thickness, 2px );
	border-left-style: var( --pt-line-style, solid );
	transform: translateX( -50% );
}

.pt-timeline--vertical .pt-timeline__marker::before {
	top: 0;
}

.pt-timeline--vertical .pt-timeline__marker::after {
	top: 50%;
}

.pt-timeline--vertical .pt-timeline__content {
	text-align: left;
	padding-top: 4px;
}

/* ==========================================================================
   RESPONSIVE — paksa layout vertical di layar kecil (<768px) demi
   keterbacaan, meskipun opsi "Horizontal" dipilih di panel Elementor.
   ========================================================================== */
@media ( max-width: 767px ) {
	.pt-timeline--horizontal {
		flex-direction: column;
	}

	.pt-timeline--horizontal .pt-timeline__item {
		flex-direction: row;
		align-items: stretch;
		text-align: left;
		padding: 0 0 var( --pt-item-padding, 30px ) 0;
	}

	.pt-timeline--horizontal .pt-timeline__item:last-child {
		padding-bottom: 0;
	}

	.pt-timeline--horizontal .pt-timeline__marker {
		flex-direction: column;
		width: auto;
		height: auto;
		margin: 0 var( --pt-marker-gap, 20px ) 0 0;
	}

	.pt-timeline--horizontal .pt-timeline__marker::before,
	.pt-timeline--horizontal .pt-timeline__marker::after {
		left: 50%;
		top: 0;
		width: 0;
		height: 50%;
		border-top: none;
		border-left-width: var( --pt-line-thickness, 2px );
		border-left-style: var( --pt-line-style, solid );
		transform: translateX( -50% );
	}

	.pt-timeline--horizontal .pt-timeline__marker::after {
		top: 50%;
	}

	.pt-timeline--horizontal .pt-timeline__content {
		text-align: left;
		padding-top: 4px;
	}
}
