/* ══════════════════════════════════════
   NS TIMELINE
══════════════════════════════════════ */

.ns-tl-wrap {
  position: relative;
  padding: 20px 0 40px;
}

/* Center spine */
.ns-tl-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.07);
  transform: translateX(-50%);
  z-index: 0;
}

.ns-tl-spine-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #0873EA, rgba(8,115,234,0.15));
  transition: height 1.8s ease;
}

/* Each row */
.ns-tl-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;

  /* Reveal animation */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ns-tl-item.ns-tl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.ns-tl-item:nth-child(2) { transition-delay: 0.1s; }
.ns-tl-item:nth-child(3) { transition-delay: 0.2s; }
.ns-tl-item:nth-child(4) { transition-delay: 0.3s; }
.ns-tl-item:nth-child(5) { transition-delay: 0.4s; }
.ns-tl-item:nth-child(6) { transition-delay: 0.5s; }

/* Dot column */
.ns-tl-dot-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 44px;
}

.ns-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(8,18,48,1);
  border: 2px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}

.ns-tl-item:hover .ns-tl-dot {
  border-color: #0873EA;
  background: #0873EA;
  box-shadow: 0 0 16px rgba(8,115,234,0.5);
}

/* Content block */
.ns-tl-content {
  padding: 40px 60px 40px 0;
  transition: padding 0.3s ease;
}

.ns-tl-even .ns-tl-content {
  padding: 40px 0 40px 60px;
}

.ns-tl-content {
  transition: transform 0.35s ease;
}

.ns-tl-even:hover .ns-tl-content {
  transform: translateX(8px);
}

.ns-tl-odd:hover .ns-tl-content {
  transform: translateX(-8px);
}

/* Number */
.ns-tl-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.ns-tl-item:hover .ns-tl-num {
  color: rgba(8,115,234,0.18);
}

/* Title */
.ns-tl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.2;
  transition: color 0.25s;
}

.ns-tl-item:hover .ns-tl-title {
  color: #ffffff;
}

/* Desc */
.ns-tl-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  font-weight: 300;
  max-width: 420px;
}

/* Even side text align */
.ns-tl-odd .ns-tl-content {
  text-align: right;
}

.ns-tl-odd .ns-tl-desc {
  margin-left: auto;
}

/* Discover More link */
.ns-tl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #0873EA;
  text-decoration: none;
  transition: gap 0.25s;
}

.ns-tl-link:hover {
  gap: 12px;
  color: #2d8fff;
}

.ns-tl-link svg {
  transition: transform 0.25s;
}

.ns-tl-link:hover svg {
  transform: translateX(3px);
}

/* Separator line between items */
.ns-tl-item + .ns-tl-item .ns-tl-content {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── TABLET & MOBILE ── */
@media (max-width: 1024px) {

  .ns-tl-spine {
    left: 16px;
    transform: none;
  }

  .ns-tl-item {
    display: grid !important;
    grid-template-columns: 32px 1fr !important;
    gap: 0;
  }

  .ns-tl-dot-col {
    padding-top: 40px;
    justify-content: center;
    grid-column: 1;
  }

  /* Force ALL content to right side */
  .ns-tl-content {
    grid-column: 2;
  }

  /* Fix odd items (content | dot → dot | content) */
  .ns-tl-odd .ns-tl-dot-col {
    order: -1;
  }

  .ns-tl-content,
  .ns-tl-even .ns-tl-content,
  .ns-tl-odd .ns-tl-content {
    padding: 32px 0 32px 24px !important;
    text-align: left !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
  }

  .ns-tl-odd .ns-tl-desc {
    margin-left: 0;
  }

  .ns-tl-num {
    font-size: 36px;
  }

  .ns-tl-title {
    font-size: 18px;
  }

  .ns-tl-desc {
    max-width: 100%;
    font-size: 13px;
  }

  /* Disable desktop hover spacing animations */
  .ns-tl-item:hover .ns-tl-content,
  .ns-tl-even:hover .ns-tl-content,
  .ns-tl-odd:hover .ns-tl-content {
    padding: 32px 0 32px 24px !important;
  }
}

/* ── SMALL MOBILE ── */
@media (max-width: 480px) {

  .ns-tl-content,
  .ns-tl-even .ns-tl-content,
  .ns-tl-odd .ns-tl-content {
    padding: 24px 0 24px 20px !important;
  }

  .ns-tl-item:hover .ns-tl-content,
  .ns-tl-even:hover .ns-tl-content,
  .ns-tl-odd:hover .ns-tl-content {
    padding: 24px 0 24px 20px !important;
  }

  .ns-tl-num {
    font-size: 28px;
  }

  .ns-tl-title {
    font-size: 17px;
  }
}