/* ═══════════════════════════════════ */
/* STORYLINE COMPONENT                 */
/* ═══════════════════════════════════ */

.storyline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 0;
  position: relative;
}

/* Vertical line */
.storyline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(82, 183, 255, 0.2);
  transform: translateX(-50%);
}

/* ─── STORY EVENT ─── */
.story-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  position: relative;
}

/* Alternating layout */
.story-event:nth-child(odd) {
  direction: rtl;
}

.story-event:nth-child(odd) > * {
  direction: ltr;
}

/* Dot marker */
.story-event::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid var(--cyan);
  transform: translateX(-50%);
  z-index: 2;
}

/* ─── STORY DATE ─── */
.story-date {
  font-size: .85rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 4px;
}

/* ─── STORY CONTENT ─── */
.story-content {
  background: transparent;
  border: 1px solid rgba(82, 183, 255, 0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.story-content:hover {
  background: transparent;
  border-color: rgba(82, 183, 255, 0.3);
}

.story-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.story-content p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .storyline {
    gap: 32px;
  }

  .storyline::before {
    left: 0;
    transform: translateX(-50%);
  }

  .story-event {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-event:nth-child(odd) {
    direction: ltr;
  }

  .story-event:nth-child(odd) > * {
    direction: ltr;
  }

  .story-event::after {
    left: 0;
  }

  .story-date {
    font-size: .8rem;
    padding-left: 20px;
  }

  .story-content {
    margin-left: 0;
    border: 1px solid rgba(82, 183, 255, 0.2);
    border-radius: var(--radius);
    padding: 16px;
  }

  .story-content h3 {
    font-size: 1rem;
  }

  .story-content p {
    font-size: .85rem;
  }
}

/* ─── HERO LINK ─── */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(82, 183, 255, 0.3);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}

.hero-link:hover {
  border-color: rgba(82, 183, 255, 0.5);
}
