/* ============================================================
   TIMELINE — self-contained, no wave dividers
   ============================================================ */

.tl-section {
  background: #0A1628;
  padding: 100px 0 110px;
}

/* Section header colours */
.tl-label        { color: #2ABFBF !important; }
.tl-label::before { background: #2ABFBF !important; }
.tl-heading      { color: #ffffff !important; }
.tl-lead         { color: rgba(255,255,255,0.5) !important; }

/* ---- Wrapper ---- */
.tl-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

/* ---- Centre vertical line ---- */
.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #2ABFBF 0%, rgba(42,191,191,0.15) 100%);
  border-radius: 2px;
}

/* ---- Each row ---- */
.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  width: 100%;
}

/* Left items: card on left half, dot on centre */
.tl-left {
  justify-content: flex-start;
  padding-right: calc(50% + 28px);
}

/* Right items: card on right half, dot on centre */
.tl-right {
  justify-content: flex-end;
  padding-left: calc(50% + 28px);
}

/* ---- Dot — always centred on the line ---- */
.tl-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ABFBF;
  border: 3px solid #0A1628;
  box-shadow: 0 0 0 3px rgba(42,191,191,0.35), 0 0 14px rgba(42,191,191,0.4);
  z-index: 2;
  flex-shrink: 0;
}
.tl-dot--active {
  background: #2ABFBF;
  box-shadow: 0 0 0 4px rgba(42,191,191,0.25), 0 0 20px rgba(42,191,191,0.6);
  animation: tl-dot-pulse 2s ease-in-out infinite;
}
@keyframes tl-dot-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(42,191,191,0.25), 0 0 20px rgba(42,191,191,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(42,191,191,0.1), 0 0 32px rgba(42,191,191,0.8); }
}

/* ---- Card ---- */
.tl-card {
  background: rgba(10,22,40,0.95);
  border: 1px solid rgba(42,191,191,0.14);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-card:hover {
  border-color: rgba(42,191,191,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(42,191,191,0.07);
}

/* Small arrow pointing toward the centre line */
.tl-left .tl-card  { position: relative; }
.tl-right .tl-card { position: relative; }

.tl-left .tl-card::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 22px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid rgba(42,191,191,0.14);
}
.tl-right .tl-card::after {
  content: '';
  position: absolute;
  left: -9px;
  top: 22px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid rgba(42,191,191,0.14);
}

/* ---- Card internals ---- */
.tl-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.tl-icon  { font-size: 1.1rem; line-height: 1; }
.tl-date  {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2ABFBF;
}
.tl-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.tl-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.tl-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Tags */
.tl-tag {
  display: inline-block;
  padding: 0.18rem 0.75rem;
  border-radius: 100px;
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tl-tag--done    { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.08); }
.tl-tag--active  { background: rgba(42,191,191,0.12);  color: #2ABFBF;               border: 1px solid rgba(42,191,191,0.3); }
.tl-tag--planned { background: rgba(26,79,122,0.25);   color: rgba(255,255,255,0.4); border: 1px solid rgba(26,79,122,0.4); }

.tl-inprogress {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.65rem;
  color: rgba(42,191,191,0.4);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .tl-line  { left: 18px; }

  .tl-item  { padding-right: 0 !important; padding-left: 48px !important; justify-content: flex-start !important; }

  .tl-dot   { left: 18px !important; top: 18px; }

  .tl-left .tl-card::after,
  .tl-right .tl-card::after {
    left: -9px; right: auto;
    border-left: none;
    border-right: 9px solid rgba(42,191,191,0.14);
  }
}
