/* Shihab Sections: Story Timeline widget (made for dark sections) */

.st {
  position: relative;
  padding-left: 64px;
  font-family: "Geist", sans-serif;
}

/* ---------- The line that fills on scroll ---------- */

.st-line {
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 30px;
  width: 2px;
  border-radius: 2px;
  background: rgba(125, 162, 255, .16);
}

.st-line i {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #9DB8FF, #2F5BFF);
  box-shadow: 0 0 16px rgba(47, 91, 255, .8);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}

.st-line b {
  position: absolute;
  left: 50%;
  top: calc(var(--p, 0) * 100%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(125, 162, 255, .3), 0 0 22px 6px rgba(47, 91, 255, .9);
}

/* ---------- Milestones ---------- */

.st-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-ms {
  position: relative;
  margin: 0;
  padding: 0 0 28px;
}

.st-ms:last-child {
  padding-bottom: 0;
}

.st-dot {
  position: absolute;
  left: -64px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7DA2FF;
  background: #0E1236;
  border: 1px solid rgba(125, 162, 255, .3);
  transition: background .4s ease, box-shadow .4s ease, color .4s ease, border-color .4s ease;
}

.st-dot svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.st-dot i {
  font-size: 18px;
}

.st-ms.on .st-dot {
  color: #fff;
  background: linear-gradient(145deg, #4166F1, #194CF2);
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(47, 91, 255, .18), 0 0 30px rgba(47, 91, 255, .6);
}

.st-card {
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(125, 162, 255, .16);
  transition: background .4s ease, border-color .4s ease, opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.st-ms.on .st-card {
  background: rgba(255, 255, 255, .065);
  border-color: rgba(125, 162, 255, .34);
}

/* Cards rise in as they enter the screen (only when the script runs) */
.st.st-js .st-card {
  opacity: 0;
  transform: translateY(26px);
}

.st.st-js .st-ms.in .st-card {
  opacity: 1;
  transform: none;
}

.st-stage {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7DA2FF;
}

.st-card .st-title {
  margin: 8px 0;
  padding: 0;
  font-family: "Geist", sans-serif;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #fff;
}

.st-card .st-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #949EAF;
}

/* ---------- Badges ---------- */

.st-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  background: #fff;
  color: #0C0A3E;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.st-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.st-badge.st-live {
  gap: 9px;
  padding: 7px 13px 7px 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(125, 162, 255, .28);
  color: #fff;
}

.st-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BD576;
  box-shadow: 0 0 0 3px rgba(43, 213, 118, .25);
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  .st { padding-left: 52px; }
  .st-line { left: 17px; }
  .st-dot { left: -52px; width: 36px; height: 36px; }
  .st-dot svg { width: 17px; height: 17px; }
  .st-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-card,
  .st-dot { transition: none; }
  .st.st-js .st-card { opacity: 1; transform: none; }
}
