/* ===============================
   TIMELINE – clean / modern
   =============================== */

.timeline--articles {
  position: relative;
  max-width: 1100px;
  margin: 80px auto;
}

/* pionowa linia – tylko desktop */
.timeline--articles::before {
  content: "";
  position: absolute;
  left: 140px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(31,42,68,.25);
}

/* element */
.timeline-item {
  display: flex;
  gap: 60px;
  margin-bottom: 70px;
}

/* ROK */
.timeline-year {
  width: 100px;
  text-align: right;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1f2a44;
  line-height: 1;
  flex-shrink: 0;
}

/* karta (jak przycisk) */
.timeline-card {
  display: block;
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 18px 40px rgba(0,0,0,.12),
    0 4px 10px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.timeline-card:hover {
  transform: scale(1.035);
  box-shadow:
    0 30px 70px rgba(0,0,0,.18),
    0 8px 20px rgba(0,0,0,.1);
}

/* obraz */
.timeline-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* treść */
.timeline-content {
  padding: 26px 34px;
  text-align: center;
}

.timeline-content h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

/* ===============================
   MOBILE – stabilnie, bez osi
   =============================== */
@media (max-width: 768px) {

  .timeline--articles {
    margin: 50px auto;
  }

  /* usuwamy linię */
  .timeline--articles::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
  }

  .timeline-year {
    width: auto;
    text-align: center;
    font-size: 28px;
  }

  .timeline-card {
    max-width: 100%;
  }
}
