/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  background: #f8f8f8;
  padding: 40px 20px;
}

/* Timeline Container */
.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

/* Vertical Timeline Line */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #4a5568;
  transform: translateX(-50%);
  z-index: 0;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: calc(50% - 40px);
  padding: 30px;
  background: #ffffff;
  border: 2px solid #4a5568;
  z-index: 1;
}

.timeline-item-left {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item-right {
  margin-left: auto;
  margin-right: 0;
}

/* Timeline Markers */
.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fc8181;
  border: 3px solid #4a5568;
  border-radius: 50%;
  top: 40px;
  z-index: 2;
}

.timeline-item-left .timeline-marker {
  right: -50px;
}

.timeline-item-right .timeline-marker {
  left: -50px;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: bold;
  font-variant: small-caps;
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 4px solid #fc8181;
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  font-variant: small-caps;
  color: #4a5568;
  margin-bottom: 16px;
  text-decoration: underline;
  text-decoration-color: #fc8181;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

h3 {
  font-size: 1.25rem;
  font-weight: bold;
  font-variant: small-caps;
  color: #4a5568;
  margin-bottom: 12px;
  text-decoration: underline;
  text-decoration-color: #fc8181;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

p {
  margin-bottom: 16px;
  color: #2d3748;
}

/* Links */
a {
  color: #fc8181;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

a:hover {
  color: #4a5568;
  text-decoration-color: #4a5568;
  text-decoration-thickness: 3px;
}

/* Resource List */
.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list li {
  margin-bottom: 16px;
  padding-left: 0;
  color: #2d3748;
}

.resource-list strong {
  font-variant: small-caps;
  color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    width: calc(100% - 80px);
    margin-left: 60px;
    margin-right: 0;
  }

  .timeline-item-left,
  .timeline-item-right {
    margin-left: 60px;
    margin-right: 0;
  }

  .timeline-marker {
    left: -50px;
    right: auto;
  }

  .timeline-item-left .timeline-marker,
  .timeline-item-right .timeline-marker {
    left: -50px;
    right: auto;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}

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

  .timeline-item {
    padding: 20px;
    width: calc(100% - 60px);
    margin-left: 40px;
  }

  .timeline-item-left,
  .timeline-item-right {
    margin-left: 40px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-marker {
    left: -30px;
    width: 16px;
    height: 16px;
  }

  .timeline-item-left .timeline-marker,
  .timeline-item-right .timeline-marker {
    left: -30px;
  }
}
