.timeline-section {
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}

.timeline-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ff6600;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #ff6600;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: left;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-date {
  background: #ff6600;
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 20px;
  min-width: 70px;
  flex-shrink: 0;
}

.timeline-img {
  width: 250px;       /* większa szerokość */
  height: auto;       /* zachowaj proporcje */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.timeline-img:hover {
  transform: scale(1.03);
}

.timeline-content {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.2rem;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-content h3 {
  color: #ff6600;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsywność */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-left: 2rem;
  }

  .timeline-date {
    margin-bottom: 0.5rem;
  }

  .timeline-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .timeline-content {
    max-width: 100%;
  }
}