/* === Platinum Parking / Responsive Fixed Timeline === */

article.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  color: #222;
  align-items: flex-start;
}

/* Left: sticky column */
.timeline__nav {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 3;
  height: fit-content;
}

.timeline__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 2em !important;
}

.timeline__nav li {
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.timeline__nav li span {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
  color: #999;
  font-weight:500;
  transition: all 0.3s ease;
}

.timeline__nav li.active span {
  color: var(--global-palette5) !important;
  border-bottom-color: var(--global-palette5) !important;
  font-weight:600;
}

.timeline__nav li:hover span {
  color: var(--global-palette3);
  border-bottom-color: var(--global-palette3);
}

/* Right: content column */
.timeline__section .wrapper {
  margin: 0;
  padding: 0;
}

.milestone {
  margin-bottom: 70px;
  scroll-margin-top: 150px;
}

.milestone-year {
  font-size: 2rem;
  font-weight: 500;
  color: var(--global-palette3);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.milestone.active .milestone-year {
  color: var(--global-palette3, #1e90ff) !important;
}

.milestone-content {
  background: #f9f9f9;
  padding: 1.5rem;
  border-left: 3px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  line-height: 1.7;
  color: #444;
}

/* ----------------------------------------------
   Responsive
---------------------------------------------- */

/* Tablets (keep nav fixed but smaller) */
@media (max-width: 900px) {
  article.timeline {
        grid-template-columns: 120px 1fr;
        gap: 2rem;
        padding: 60px 0;
  }

  .timeline__nav {
    top: 90px;
  }
}

/* Mobile: switch to horizontal nav */
@media (max-width: 600px) {
  article.timeline {
    display: flex;
    flex-direction: column;
    padding: 50px 1rem;
  }

  .timeline__nav {
        position: sticky;
        top: 40px;
        background: #f9fafb;
        overflow-x: visible;
        white-space: nowrap;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
        padding: 0.8rem 0;
  }

  .timeline__nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-left: 0 !important;
  }

  .timeline__nav li {
    margin: 0;
    flex: 0 0 auto;
  }

  .timeline__nav li span {
    font-size: 0.9rem;
  }
}
