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

:root {
  --surface: #fafaf8;
  --paper: rgba(255, 255, 255, 0.92);
  --text: #333;
  --muted: #666;
  --soft: #555;
  --line: #333;
  --edge: #e4e1db;
  --accent: #333;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--surface);
  color: var(--text);
  line-height: 1.7;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: var(--surface);
  margin-top: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
}

.page-intro {
  max-width: 42rem;
  margin-bottom: 4rem;
}

.eyebrow,
.timeline-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1, h2 {
  font-family: "Playpen Sans Hebrew", cursive;
  font-weight: 500;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(1.92rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  margin: 0.7rem 0 1rem;
}

.page-summary {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.timeline {
  list-style: none;
  position: relative;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(51, 51, 51, 1) 0%, rgba(51, 51, 51, 0.2) 100%);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1.95rem;
  width: 2.6rem;
  height: 2px;
  background-color: rgba(51, 51, 51, 0.35);
}

.timeline-node {
  position: absolute;
  left: 0.58rem;
  top: 1.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--line);
  border-radius: 50%;
  background-color: var(--surface);
  box-shadow: 0 0 0 8px rgba(250, 250, 248, 0.95);
}

.timeline-card {
  position: relative;
  padding: 1.6rem 1.8rem;
  background-color: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.timeline-card-top,
.timeline-header,
.timeline-copy,
.timeline-label {
  position: relative;
  z-index: 1;
}

.timeline-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.timeline-title-group {
  min-width: 0;
}

.timeline-header h2 {
  font-size: clamp(1.08rem, 1.92vw, 1.68rem);
  line-height: 1.15;
}

.timeline-meta {
  color: var(--muted);
  font-size: 1rem;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.certificate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.certificate-link::before {
  content: "↗";
  font-size: 1rem;
  line-height: 1;
}

.certificate-link:hover {
  transform: translateY(-1px);
  border-color: var(--muted);
  background-color: #fff;
}

.timeline-copy {
  margin-top: 0.95rem;
  max-width: 38rem;
  color: var(--soft);
}

@media (max-width: 700px) {
  .navbar {
    margin-top: 24px;
    padding: 1.5rem 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .container {
    padding: 0.5rem 1.25rem 4rem;
  }

  .page-intro {
    margin-bottom: 3rem;
  }

  .timeline::before {
    left: 0.85rem;
  }

  .timeline-item {
    padding-left: 3.8rem;
  }

  .timeline-item::before {
    left: 0.95rem;
    width: 1.8rem;
  }

  .timeline-node {
    left: 0.35rem;
  }

  .timeline-card {
    padding: 1.25rem 1.2rem;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .timeline-date {
    white-space: normal;
  }

  .timeline-copy {
    font-size: 0.98rem;
  }
}