/* Pretpot Simple Horizontal Timeline Widget */

.pretpot-simple-horizontal-timeline {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.pretpot-timeline-container {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #ccc #f0f0f0;
}

.pretpot-timeline-container::-webkit-scrollbar {
	height: 8px;
}

.pretpot-timeline-container::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.pretpot-timeline-container::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.pretpot-timeline-container::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.pretpot-timeline-track {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	min-width: min-content;
}

.pretpot-timeline-item {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Date */
.pretpot-timeline-date {
	text-align: center;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
}

/* Line & Dot */
.pretpot-timeline-line-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}

.pretpot-timeline-line {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #dddddd;
	top: 50%;
	transform: translateY(-50%);
}

.pretpot-timeline-item:first-child .pretpot-timeline-line {
	left: 50%;
}

.pretpot-timeline-item:last-child .pretpot-timeline-line {
	right: 50%;
}

.pretpot-timeline-dot {
	position: relative;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #3498db;
	border: 3px solid #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 2;
	flex-shrink: 0;
}

/* Card */
.pretpot-timeline-card {
	width: 300px;
	background-color: #000000;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pretpot-timeline-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pretpot-timeline-image {
	width: 100%;
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 4px;
}

.pretpot-timeline-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	border-radius: 4px;
	transition: transform 0.3s ease;
}

.pretpot-timeline-card:hover .pretpot-timeline-image img {
	transform: scale(1.05);
}

.pretpot-timeline-heading {
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.pretpot-timeline-description {
	font-size: 14px;
	line-height: 1.6;
	color: #ffffff;
	margin: 0;
}

.pretpot-timeline-description p {
	margin: 0;
}

/* Navigation */
.pretpot-timeline-navigation {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	justify-content: flex-start;
}

.pretpot-timeline-nav-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #3498db;
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pretpot-timeline-nav-btn:hover {
	background-color: #2980b9;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pretpot-timeline-nav-btn:active {
	transform: scale(0.95);
}

.pretpot-timeline-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.pretpot-timeline-nav-btn i {
	line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
	.pretpot-timeline-card {
		width: 280px;
	}
	
	.pretpot-timeline-heading {
		font-size: 18px;
	}
	
	.pretpot-timeline-description {
		font-size: 13px;
	}
}

@media (max-width: 768px) {
	.pretpot-timeline-card {
		width: 260px;
		padding: 15px;
	}
	
	.pretpot-timeline-image img {
		height: 180px;
	}
	
	.pretpot-timeline-heading {
		font-size: 16px;
	}
	
	.pretpot-timeline-description {
		font-size: 12px;
	}
	
	.pretpot-timeline-date {
		font-size: 12px;
	}
	
	.pretpot-timeline-dot {
		width: 20px;
		height: 20px;
	}
	
	.pretpot-timeline-nav-btn {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}
}

/* Editor-specific styles */
.elementor-editor-active .pretpot-timeline-container {
	overflow-x: visible;
}