
/* Timeline CV Page Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #222;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-left {
  font-weight: bold;
  font-size: 1.1rem;
}

.nav-right a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-right a:hover {
  color: #0074e4;
}

.cv-intro {
  text-align: center;
  padding: 5rem 1rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.cv-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.cv-intro p {
  font-size: 1.1rem;
  color: #444;
}

.section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #0074e4;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-entry {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  width: 40%;
  z-index: 2;
}

.timeline-left .timeline-card {
  margin-right: auto;
}

.timeline-right .timeline-card {
  margin-left: auto;
}

.timeline-date {
  position: absolute;
  top: 0.5rem;
  width: 40%;
  font-size: 0.9rem;
  color: #555;
}

.timeline-left .timeline-date {
  left: 55%;
  text-align: left;
}

.timeline-right .timeline-date {
  right: 55%;
  text-align: right;
}

.timeline-icon {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background-color: #003f7f;
  border: 4px solid white;
  border-radius: 50%;
  z-index: 3;
}

.timeline-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-card h4 {
  font-weight: 500;
  margin-top: 1rem;
  font-size: 1rem;
}

.tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: #d0e7ff;
  color: #003f7f;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  margin: 0.2rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .timeline {
    gap: 2rem;
  }
  .timeline-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-card, .timeline-date {
    width: 100%;
    text-align: left;
    margin: 0;
  }
  .timeline::before {
    left: 8px;
    transform: none;
  }
  .timeline-icon {
    left: 8px;
    transform: none;
  }
  .timeline-left .timeline-date,
  .timeline-right .timeline-date {
    left: auto;
    right: auto;
    text-align: left;
  }
}
