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

body {
	font-family: "Inter", sans-serif;
	background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
	color: #ffffff;
	min-height: 100vh;
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.main-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 40px 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header h1 {
	font-family: "Amiri", serif;
	font-size: 3.5rem;
	font-weight: 700;
	color: #ff6b6b;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-header h2 {
	font-family: "Amiri", serif;
	font-size: 1.8rem;
	color: #ffd93d;
	margin-bottom: 20px;
	font-weight: 400;
}

.header-note {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
	border-left: 4px solid #ff6b6b;
}

.header-note p {
	font-size: 0.9rem;
	color: #e0e0e0;
}

.timeline-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 50px;
}

.timeline-item {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 15px;
	padding: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
	position: relative;
	overflow: hidden;
}

.timeline-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #ff6b6b, #ffd93d);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.timeline-item:hover::before {
	transform: scaleX(1);
}

.timeline-item:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.time-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
	color: white;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9rem;
}

.time {
	font-size: 1.3rem;
	font-weight: 600;
	color: #ffd93d;
	margin-bottom: 8px;
}

.title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 10px;
	font-family: "Amiri", serif;
}

.description {
	font-size: 0.95rem;
	color: #b0b0b0;
	line-height: 1.5;
}

footer {
	text-align: center;
	padding: 30px;
	color: #888;
	font-style: italic;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page-specific styles */
.page-header {
	text-align: center;
	margin-bottom: 40px;
	padding: 30px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 15px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header .time-display {
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffd93d;
	margin-bottom: 10px;
	font-family: "Amiri", serif;
}

.page-header .event-title {
	font-size: 1.8rem;
	color: #ff6b6b;
	margin-bottom: 20px;
	font-family: "Amiri", serif;
}

.content-section {
	background: rgba(255, 255, 255, 0.08);
	padding: 30px;
	border-radius: 15px;
	margin-bottom: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
}

.content-text {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #e0e0e0;
	text-align: justify;
}

/* Header Image Styles */
.header-image {
	width: 100%;
	max-width: 600px;
	height: 300px;
	object-fit: cover;
	border-radius: 15px;
	margin: 20px auto;
	display: block;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Custom Audio Player Styles */
.audio-player {
	background: linear-gradient(
		135deg,
		rgba(255, 107, 107, 0.1),
		rgba(255, 217, 61, 0.1)
	);
	padding: 25px;
	border-radius: 20px;
	margin: 30px 0;
	text-align: center;
	border: 1px solid rgba(255, 107, 107, 0.2);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.audio-player::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #ff6b6b, #ffd93d, #ff6b6b);
	background-size: 200% 100%;
	animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.playing .play-pause-btn {
	animation: pulse 2s ease-in-out infinite;
}

.playing .audio-player::before {
	animation-duration: 1.5s;
}

.audio-player h3 {
	color: #ffd93d;
	margin-bottom: 20px;
	font-family: "Amiri", serif;
	font-size: 1.2rem;
}

/* Hide default audio controls */
.audio-player audio {
	display: none;
}

/* Custom Audio Controls */
.custom-audio-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.play-pause-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
	position: relative;
	overflow: hidden;
}

.play-pause-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.6s ease;
}

.play-pause-btn:hover::before {
	width: 100px;
	height: 100px;
}

.play-pause-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.play-pause-btn:active {
	transform: scale(0.95);
}

.progress-container {
	flex: 1;
	min-width: 200px;
	margin: 0 15px;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #ff6b6b, #ffd93d);
	border-radius: 4px;
	width: 0%;
	transition: width 0.1s ease;
}

.time-display {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 0.9rem;
	color: #b0b0b0;
}

.volume-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.volume-btn {
	background: none;
	border: none;
	color: #ffd93d;
	font-size: 18px;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.volume-btn:hover {
	background: rgba(255, 217, 61, 0.2);
}

.volume-slider {
	width: 80px;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	outline: none;
	cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
	appearance: none;
	width: 16px;
	height: 16px;
	background: #ffd93d;
	border-radius: 50%;
	cursor: pointer;
}

.volume-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: #ffd93d;
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

.navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 40px 0;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button {
	background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
	color: white;
	padding: 12px 25px;
	border: none;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nav-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.nav-button.disabled {
	background: rgba(255, 255, 255, 0.1);
	color: #666;
	cursor: not-allowed;
}

.nav-button.disabled:hover {
	transform: none;
	box-shadow: none;
}

.home-button {
	background: linear-gradient(135deg, #ffd93d, #ffed4a);
	color: #333;
}

.home-button:hover {
	box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
}

@media (max-width: 768px) {
	.container {
		padding: 15px;
	}

	.main-header h1 {
		font-size: 2.5rem;
	}

	.main-header h2 {
		font-size: 1.4rem;
	}

	.timeline-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.timeline-item {
		padding: 20px;
	}

	.navigation {
		flex-direction: column;
		gap: 15px;
	}

	.page-header .time-display {
		font-size: 2rem;
	}

	.page-header .event-title {
		font-size: 1.4rem;
	}

	.header-image {
		height: 200px;
		margin: 15px auto;
	}

	.custom-audio-controls {
		flex-direction: column;
		gap: 15px;
	}

	.progress-container {
		min-width: 100%;
		margin: 0;
	}

	.volume-container {
		justify-content: center;
	}
}
