/* ============================================================
   Atheria Timeline widget
   ============================================================ */

.ath-timeline {
  width: 100%;
}

.ath-timeline__inner {
  display: flex;
  flex-direction: column;
}

/* ── Head ── */
.ath-timeline__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto clamp(3rem, 2rem + 4vw, 5rem);
  max-width: 46rem;
}
.ath-timeline__eyebrow {
  display: block;
  font-family: var(--ath-font-body, sans-serif);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ath-arctic-blue);
  margin-bottom: 1rem;
}
.ath-timeline__heading {
  font-family: var(--ath-font-heading, serif);
  font-weight: var(--ath-fw-heading-l, 450);
  font-size: var(--ath-size-heading-xl);
  line-height: 1.1;
  color: var(--ath-text);
  margin: 0;
}
.ath-timeline__heading .ath-muted-text {
  color: var(--ath-muted);
}

/* ── Body / list ── */
.ath-timeline__body {
  width: 100%;
}
.ath-timeline__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 2rem + 5vw, 6rem);
}

/* ── Spine ── */
.ath-timeline__spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--ath-arctic-mist);
  border-radius: 2px;
  overflow: hidden;
}
.ath-timeline__spine-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--ath-arctic-blue);
  transform: scaleY(0);
  transform-origin: top center;
}

/* ── Item ── */
.ath-timeline__item {
  position: relative;
  width: 50%;
}
.ath-timeline__item--right {
  margin-left: 50%;
  padding-left: clamp(2rem, 1.25rem + 3vw, 4rem);
}
.ath-timeline__item--left {
  margin-left: 0;
  padding-right: clamp(2rem, 1.25rem + 3vw, 4rem);
}

.ath-timeline__dot {
  position: absolute;
  top: 0.9rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ath-arctic-navy);
  transform: translate(-50%, -50%);
}
.ath-timeline__item--right .ath-timeline__dot { left: 0; }
.ath-timeline__item--left  .ath-timeline__dot { left: 100%; }

/* ── Content ── */
.ath-timeline__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.ath-timeline__title {
  font-family: var(--ath-font-heading, serif);
  font-weight: var(--ath-fw-heading-m, 600);
  font-size: var(--ath-size-heading-m);
  line-height: 1.2;
  color: var(--ath-text);
  margin: 0;
}
.ath-timeline__year {
  flex-shrink: 0;
  font-family: var(--ath-font-body, sans-serif);
  font-weight: 650;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ath-muted);
}
.ath-timeline__divider {
  height: 1px;
  background: var(--ath-arctic-mist);
  margin: 0.85rem 0 1.1rem;
}
.ath-timeline__desc {
  font-family: var(--ath-font-body, sans-serif);
  font-weight: 400;
  font-size: var(--ath-size-text-base);
  line-height: var(--ath-lh-body, 1.66);
  color: var(--ath-muted);
  margin: 0;
}

/* ── Mobile: single column, spine on the left ── */
@media (max-width: 767px) {
  .ath-timeline__spine {
    left: 0;
    transform: none;
  }
  .ath-timeline__item,
  .ath-timeline__item--left,
  .ath-timeline__item--right {
    width: 100%;
    margin-left: 0;
    padding-left: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    padding-right: 0;
  }
  .ath-timeline__item--left .ath-timeline__dot,
  .ath-timeline__item--right .ath-timeline__dot {
    left: 0;
  }
}

/* ── Conflict guard ──────────────────────────────────────────────────
   Same reasoning as the other Atheria widgets: force the widget visible
   so Elementor's own Entrance Animation can never leave it stuck hidden;
   the Motion Engine handles the reveal independently.                  */
.elementor-widget-atheria_timeline.elementor-invisible {
  visibility: visible !important;
}

/* ── Editor ── */
body.elementor-editor-active .ath-timeline { min-height: 80px; }
body.elementor-editor-active .ath-timeline__spine-fill { transform: scaleY(1) !important; }
