* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Georgia', 'Times New Roman', serif;
	background: #f8f6f3;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #5a4a3a;
	padding: 20px;
}

.timeline-header {
	text-align: center;
	color: #5a4a3a;
	margin-bottom: 40px;
}

.timeline-header h1 {
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: normal;
	margin-bottom: 10px;
	font-family: 'Georgia', 'Times New Roman', serif;
	letter-spacing: -1px;
}

.timeline-header p {
	font-size: clamp(0.9rem, 2vw, 1rem);
	color: #8b7355;
	font-style: italic;
	letter-spacing: 1px;
}

.timeline {
	display: flex;
	width: 120%;
	max-width: 900px;
	min-height: 500px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(90, 74, 58, 0.15);
	border: 1px solid #e8e3dd;
	position: relative;
}

/* Left side - dates */
.dates-section {
	width: 280px;
	position: relative;
	background: #faf9f7;
	border-right: 1px solid #e8e3dd;
	flex-shrink: 0;
}

.dates-container {
	height: 500px;
	overflow: hidden;
	position: relative;
}

.dates-list {
	list-style: none;
	position: relative;
	transition: transform 0.4s ease;
	padding: 20px 0;
}

.date-item {
	height: 80px;
	display: flex;
	align-items: center;
	padding: 0 30px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	border-left: 3px solid transparent;
}

.date-item::before {
	content: '';
	position: absolute;
	left: 22px;
	width: 8px;
	height: 8px;
	background: #d4b896;
	border-radius: 50%;
	transition: all 0.3s ease;
	border: 2px solid white;
	box-shadow: 0 0 0 1px #d4b896;
}

.date-item.active {
	background: rgba(212, 184, 150, 0.1);
	border-left-color: #d4b896;
}

.date-item.active::before {
	background: #b8956f;
	width: 12px;
	height: 12px;
	box-shadow: 0 0 0 2px white, 0 0 0 3px #b8956f;
	left: 20px;
}

.date-text {
	padding-left: 20px;
	color: #8b7355;
	font-weight: normal;
	font-size: clamp(14px, 2vw, 16px);
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.date-item.active .date-text {
	color: #5a4a3a;
	font-weight: 500;
}

.date-item:hover {
	background: rgba(212, 184, 150, 0.05);
}

.date-item:hover .date-text {
	color: #5a4a3a;
}

/* Gradient overlays for dates */
.dates-container::before,
.dates-container::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 20px;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dates-container::before {
	top: 0;
	background: linear-gradient(to bottom, rgba(250, 249, 247, 0.9), transparent);
	box-shadow: inset 0 10px 10px -10px rgba(90, 74, 58, 0.15);
}

.dates-container::after {
	bottom: 0;
	background: linear-gradient(to top, rgba(250, 249, 247, 0.9), transparent);
	box-shadow: inset 0 -10px 10px -10px rgba(90, 74, 58, 0.15);
}

.dates-container.show-top-shadow::before {
	opacity: 1;
}

.dates-container.show-bottom-shadow::after {
	opacity: 1;
}

/* Right side - content */
.content-section {
	flex: 1;
	position: relative;
	overflow: hidden;
	background: white;
	min-height: 500px;
}

.content-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: clamp(30px, 6vw, 60px) clamp(25px, 5vw, 50px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	transition: all 0.4s ease;
}

.content-item.active {
	opacity: 1;
}

.content-item.slide-left {
	transform: translateY(50px);
}

.content-item.slide-right {
	transform: translateY(50px);
}

.content-title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	color: #5a4a3a;
	margin-bottom: 25px;
	font-weight: normal;
	font-family: 'Georgia', 'Times New Roman', serif;
	line-height: 1.3;
	letter-spacing: -0.5px;
}

.content-text {
	font-size: clamp(1rem, 2.5vw, 1.1rem);
	color: #8b7355;
	line-height: 1.7;
	font-family: 'Georgia', 'Times New Roman', serif;
	font-style: italic;
}

/* Navigation */
.nav-btn {
	position: absolute;
	right: 20px;
	width: clamp(40px, 8vw, 45px);
	height: clamp(40px, 8vw, 45px);
	background: white;
	color: #8b7355;
	border: 1px solid #e8e3dd;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(16px, 3vw, 18px);
	transition: all 0.3s ease;
	font-family: 'Georgia', serif;
	z-index: 10;
}

.nav-btn:hover {
	background: #faf9f7;
	border-color: #d4b896;
	color: #5a4a3a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(90, 74, 58, 0.1);
}

.nav-prev {
	top: 20px;
}

.nav-next {
	bottom: 20px;
}

/* Timeline line */
.timeline-line {
	position: absolute;
	left: 28px;
	top: 30px;
	bottom: 30px;
	width: 1px;
	background: linear-gradient(to bottom, transparent 0%, #e8e3dd 20%, #e8e3dd 80%, transparent 100%);
}

/* Mobile-first responsive breakpoints */
@media (max-width: 768px) {
	body {
		padding: 15px;
	}

	.timeline {
		flex-direction: column;
		max-width: 100%;
		min-height: auto;
	}

	.dates-section {
		width: 100%;
		height: 120px;
		border-right: none;
		border-bottom: 1px solid #e8e3dd;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.dates-container {
		height: 120px;
		width: max-content;
	}

	.dates-list {
		display: flex;
		flex-direction: row;
		height: 100%;
		padding: 20px;
		gap: 20px;
		min-width: max-content;
	}

	.date-item {
		height: auto;
		min-width: 120px;
		padding: 15px 20px;
		border-left: none;
		border-bottom: 3px solid transparent;
		text-align: center;
		white-space: nowrap;
	}

	.date-item.active {
		border-left: none;
		border-bottom-color: #d4b896;
	}

	.date-item::before {
		display: none;
	}

	.timeline-line {
		display: none;
	}

	.dates-container::before,
	.dates-container::after {
		height: 15px;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.dates-container::before {
		left: 0;
		top: 0;
		bottom: auto;
		right: auto;
		width: 15px;
		height: 100%;
		background: linear-gradient(to right, rgba(250, 249, 247, 0.9), transparent);
		box-shadow: inset 10px 0 10px -10px rgba(90, 74, 58, 0.15);
	}

	.dates-container::after {
		right: 0;
		top: 0;
		bottom: auto;
		left: auto;
		width: 15px;
		height: 100%;
		background: linear-gradient(to left, rgba(250, 249, 247, 0.9), transparent);
		box-shadow: inset -10px 0 10px -10px rgba(90, 74, 58, 0.15);
	}

	.dates-container.show-left-shadow::before {
		opacity: 1;
	}

	.dates-container.show-right-shadow::after {
		opacity: 1;
	}

	.content-section {
		min-height: 300px;
		position: relative;
	}

	.content-item {
		position: relative;
		height: auto;
		min-height: 300px;
		padding: 40px 30px;
		display: none;
	}

	.content-item.active {
		display: flex;
	}

	.nav-btn {
		display: none;
	}
}

@media (max-width: 480px) {
	body {
		padding: 10px;
	}

	.timeline-header {
		margin-bottom: 20px;
	}

	.dates-section {
		height: 100px;
	}

	.dates-container {
		height: 100px;
	}

	.date-item {
		min-width: 100px;
		padding: 10px 15px;
		font-size: 14px;
	}

	.content-item {
		padding: 30px 20px;
		min-height: 250px;
	}

	.content-title {
		margin-bottom: 20px;
	}
}

@media (min-width: 789px) {
	.timeline-wrapper {
		padding-left: 40px;
	}

}

/* Large screens */
@media (min-width: 1200px) {
	.timeline {
		max-width: 1000px;
	}

	.dates-section {
		width: 300px;
	}

	.content-item {
		padding: 70px 60px;
	}
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
	.date-item {
		padding: 20px;
	}

	.nav-btn {
		width: 50px;
		height: 50px;
		font-size: 20px;
	}
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
	.timeline {
		flex-direction: row;
		height: 80vh;
	}

	.dates-section {
		width: 250px;
		height: auto;
		border-right: 1px solid #e8e3dd;
		border-bottom: none;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.dates-container {
		height: 100%;
		width: auto;
	}

	.dates-list {
		flex-direction: column;
		height: auto;
		padding: 20px 0;
		gap: 0;
	}

	.date-item {
		height: 60px;
		min-width: auto;
		padding: 0 25px;
		border-bottom: none;
		border-left: 3px solid transparent;
		text-align: left;
	}

	.date-item.active {
		border-left-color: #d4b896;
		border-bottom: none;
	}

	.date-item::before {
		display: block;
	}

	.timeline-line {
		display: block;
		left: 23px;
	}

	.content-section {
		min-height: auto;
	}

	.content-item {
		min-height: auto;
		height: 100%;
		padding: 30px 25px;
	}

	.nav-btn {
		display: flex;
	}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.timeline {
		box-shadow: 0 10px 30px rgba(90, 74, 58, 0.2);
	}
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	.content-item,
	.date-item,
	.nav-btn,
	.dates-list {
		transition: none;
	}
}