/* Development History Horizontal Timeline Styles */
.development_history_wrapper {
	display: grid;
	grid-template-rows: auto 1fr;
	width: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
  padding-bottom: 20px;
}

/* Hide native scrollbars */
.development_history_wrapper::-webkit-scrollbar {
	display: none;
}

.development_history_wrapper {
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}

/* Custom scrollbar indicator */
.development_history_scrollbar {
	position: relative;
	width: 240px;
	height: 10px;
	background-color: #E7EBF3;
	border-radius: 5px;
	margin: 20px auto 0;
	cursor: pointer;
}

.development_history_scrollbar .scrollbar_thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: var(--primary);
	border-radius: 5px;
	transition: width 0.3s ease;
	cursor: grab;
}

.development_history_scrollbar .scrollbar_thumb:active {
	cursor: grabbing;
}

.development_history_timeline {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 60px 0 45px;
	width: 100%;
	position: relative;
	min-height: 80px; /* Ensure enough height for timeline elements */
}

.timeline_item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	flex: 0 0 400px;
	min-width: 400px;
	justify-content: flex-start;
	padding-top: 20px; /* Add some top padding for the timeline */
	padding-left: 0; /* Remove left padding since circle is positioned absolutely */
}

.timeline_item.active .timeline_circle {
	background-color: var(--primary);
	border-color: var(--primary);
}

.timeline_item.active .timeline_year {
	color: var(--primary);
	font-weight: 600;
}

.timeline_circle {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	background-color: #ffffff;
	transition: all 0.3s ease;
	position: absolute;
	left: 47px; /* Center on connecting line: 55px - 8px (half circle width) */
	top: 0;
	z-index: 3;
}

.timeline_circle.first {
	background-color: var(--primary);
	border-color: var(--primary);
}

/* Large concentric circle background - visible on all circles */
.timeline_circle::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 37px;
	height: 37px;
	border-radius: 50%;
	background-color: #edf2ff;
	z-index: 2;
	transition: all 0.3s ease;
}

.timeline_item.active .timeline_circle::before {
	background-color: rgba(58, 96, 248, 0.1);
}

.timeline_year {
	margin-top: -80px; /* Position above the circle */
	margin-left: 30px; /* Align with circle center: 47px + 8px */
	font-size: 34px;
	color: var(--primary);
	font-weight: 500;
	transition: all 0.3s ease;
	text-align: center;
}

.timeline_line {
	position: absolute;
	top: 7px; /* Center of the 16px circle (8px radius - 1px for border) */
	left: 63px; /* Start from right edge of circle: 47px + 16px */
	width: calc(100% - 63px); /* Extend to end of timeline_item */
	height: 2px;
	background-color: #d1d5db;
	z-index: 1;
}

.timeline_line:after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 50px;
  height: 2px;
  background-color: #d1d5db;
}

/* Hide timeline line on the last item */
.timeline_item:last-child .timeline_line {
	display: none;
}

/* Connecting lines from timeline to cards */
.timeline_item::after {
	content: '';
	position: absolute;
	top: 16px; /* Below the circle */
	left: 55px; /* 15px (card start) + 30px (card padding) + 10px (inside content) */
	transform: none;
	width: 2px;
	height: 93px; /* Distance to cards */
	background-color: var(--primary);
	opacity: 0.3;
	transition: all 0.3s ease;
}

.timeline_item.active::after {
	opacity: 1;
	background-color: var(--primary);
}

/* Circle at the end of connecting line (card side) */
.timeline_item::before {
	content: '';
	position: absolute;
	top: 108px; /* 16px (line start) + 100px (line height) - 8px (half circle) */
	left: 52px; /* Align with line: 55px - 3px (half circle width) */
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid var(--primary);
	opacity: 0.3;
	transition: all 0.3s ease;
	z-index: 4;
}

.timeline_item.active::before {
	opacity: 1;
	border: 1px solid var(--primary);
}

.development_history_content {
	display: flex;
	gap: 0; /* Remove gap to align with timeline */
	justify-content: flex-start;
}

.history_item {
	flex: 0 0 400px;
	min-width: 400px;
	padding: 0 15px 0 40px; /* Add some padding between items */
}

.history_card {
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	border: 1px solid #e7ebf3;
	transition: all 0.3s ease;
}

.history_card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.history_card h5 {
	font-size: 18px;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 8px;
}

.history_card h6 {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 16px;
	line-height: 1.3;
}

.history_desc p {
	font-size: 16px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
}
