/* Company History Timeline */
.company-timeline {
	--ht-accent: #e31c23;
	--ht-line: #d8d8d8;
	--ht-text: #222;
	--ht-muted: #666;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 0 40px;
}

.company-timeline .ht-timeline {
	position: relative;
}

/* Timeline bar */
.company-timeline .ht-timeline-bar {
	position: relative;
	height: 100px;
	margin: 0 auto 40px;
	max-width: 900px;
	padding: 0 8px;
}

.company-timeline .ht-events-wrapper {
	position: relative;
	height: 100%;
	margin: 0 48px;
	overflow: hidden;
}

.company-timeline .ht-events {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 52px;
	height: 2px;
	background: var(--ht-line);
	transition: transform 0.4s ease;
}

.company-timeline .ht-events ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.company-timeline .ht-events a {
	position: absolute;
	bottom: 0;
	z-index: 2;
	min-width: 48px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ht-muted);
	padding-bottom: 20px;
	transform: translateX(-50%);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.company-timeline .ht-events a::after {
	content: "";
	position: absolute;
	left: 50%;
	right: auto;
	bottom: -6px;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	border: 2px solid var(--ht-line);
	background: #fff;
	transform: translateX(-50%);
	transition: background 0.25s ease, border-color 0.25s ease;
}

.company-timeline .ht-events a.selected,
.company-timeline .ht-events a.older-event {
	color: var(--ht-accent);
}

.company-timeline .ht-events a.selected::after,
.company-timeline .ht-events a.older-event::after {
	background: var(--ht-accent);
	border-color: var(--ht-accent);
}

.company-timeline .ht-filling-line {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background: var(--ht-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s ease;
}

/* Nav arrows — CSS chevrons (no Font Awesome dependency) */
.company-timeline .ht-timeline-navigation {
	position: absolute;
	z-index: 2;
	top: 52px;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateY(-50%);
	pointer-events: none;
}

.company-timeline .ht-timeline-navigation li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.company-timeline .ht-timeline-navigation a {
	display: block;
	position: absolute;
	top: 0;
	height: 36px;
	width: 36px;
	border: 1px solid var(--ht-line);
	border-radius: 50%;
	background: #fff;
	text-decoration: none;
	pointer-events: auto;
	transition: border-color 0.2s ease;
}

.company-timeline .ht-timeline-navigation a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--ht-muted);
	border-right: 2px solid var(--ht-muted);
	transition: border-color 0.2s ease;
}

.company-timeline .ht-timeline-navigation a.prev::before {
	transform: translate(-35%, -50%) rotate(-135deg);
}

.company-timeline .ht-timeline-navigation a.next::before {
	transform: translate(-65%, -50%) rotate(45deg);
}

.company-timeline .ht-timeline-navigation a:hover {
	border-color: var(--ht-accent);
}

.company-timeline .ht-timeline-navigation a:hover::before {
	border-color: var(--ht-accent);
}

.company-timeline .ht-timeline-navigation a.prev {
	left: 0;
}

.company-timeline .ht-timeline-navigation a.next {
	right: 0;
}

.company-timeline .ht-timeline-navigation a.inactive {
	opacity: 0.35;
	pointer-events: none;
}

.company-timeline .ht-timeline-navigation a i {
	display: none;
}

/* Content */
.company-timeline .ht-events-content {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.company-timeline .ht-events-content ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.company-timeline .ht-events-content > ol > li {
	display: none;
	width: 100%;
}

.company-timeline .ht-events-content > ol > li.selected {
	display: block;
	animation: htFadeIn 0.35s ease;
}

@keyframes htFadeIn {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.company-timeline .ht-timeline-content {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.company-timeline .ht-timeline-content > img {
	flex: 0 0 48%;
	max-width: 48%;
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.company-timeline .ht-timeline-text {
	flex: 1;
	min-width: 0;
}

.company-timeline .ht-timeline-text h2 {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--ht-text);
}

.company-timeline .ht-timeline-desc,
.company-timeline .ht-timeline-desc p {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ht-muted);
}

@media (max-width: 849px) {
	.company-timeline .ht-timeline-content {
		flex-direction: column;
		gap: 24px;
	}

	.company-timeline .ht-timeline-content > img {
		flex: none;
		max-width: 100%;
	}

	.company-timeline .ht-timeline-text h2 {
		font-size: 20px;
	}

	.company-timeline .ht-events-wrapper {
		margin: 0 42px;
	}
}
