/* Define CSS Variables */
:root {
  --primary-color: #1c1943;
  --secondary-color: #6f22b8;
  --highlight-bg: #6f22b8;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --bg-light: #fafafa;
  --bg-hover: #f0f0f0;
}

/* General Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
}

/* Heading */
.heading {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

/* Timeline Container Layout */
.timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Each Timeline */
.timeline {
  background: #fff;
  color: #333;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Timeline Date Header */
.timeline-date {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* Timeline Event */
.timeline-event {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
}

/* Event Marker (Circle) */
.event-marker {
  position: absolute;
  left: 0;
  top: 45px; /* Adjust this value as needed */
  width: 15px;
  height: 15px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}


/* Vertical Line */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 40px;
  bottom: 20px;
  width: 2px;
  background: var(--secondary-color);
}

/* Event Details */
.event-details {
  background: var(--bg-light);
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.event-details:hover {
  background: var(--bg-hover);
}

.event-time {
  font-weight: 500;
  font-size: 0.9em;
  color: var(--secondary-color);
}

.event-title {
  font-size: 1.1em;
  margin: 5px 0;
}

.event-venue {
  font-size: 0.9em;
  color: #666;
}

/* Responsive Design */
@media (min-width: 768px) {
  .timeline-container {
    flex-wrap: nowrap;
  }
}
