 /* =========================
   Historie / Timeline pagina
========================= */

.history-page {
  background: #f7f3ea;
  padding: 34px 70px 50px;
}

.history-container {
  max-width: 1120px;
  margin: 0 auto;
}

.history-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.history-tabs a {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #8f8a81;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.history-tabs a:hover,
.history-tabs a.active {
  background: #173f34;
  color: #fff;
  border-color: #173f34;
}
.history-tabs button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #8f8a81;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s ease;
}

.history-tabs button:hover,
.history-tabs button.active {
  background: #173f34;
  color: #fff;
  border-color: #173f34;
}

.history-timeline {
  position: relative;
  padding-left: 44px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(189, 130, 47, 0.28);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 42px;
  align-items: center;
  margin-bottom: 34px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bd822f;
  box-shadow: 0 0 0 4px #f7f3ea;
}

.timeline-content {
  max-width: 470px;
}

.timeline-period {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #c48a33;
  margin-bottom: 10px;
}

.timeline-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  color: #111;
  margin-bottom: 14px;
}

.timeline-content p {
  font-size: 12px;
  line-height: 1.7;
  color: #111;
}

.timeline-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* =========================
   Responsive historie
========================= */

@media (max-width: 1000px) {
  .history-page {
    padding: 34px 28px 44px;
  }

  .timeline-item {
    grid-template-columns: 1fr 320px;
    gap: 28px;
  }

  .timeline-image img {
    height: 165px;
  }
}

@media (max-width: 820px) {
  .history-tabs {
    justify-content: flex-start;
    gap: 8px;
  }

  .history-timeline {
    padding-left: 30px;
  }

  .history-timeline::before {
    left: 5px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .timeline-item::before {
    left: -30px;
    top: 12px;
    width: 8px;
    height: 8px;
  }

  .timeline-content {
    max-width: 100%;
  }

  .timeline-content h2 {
    font-size: 24px;
  }

  .timeline-image img {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .history-page {
    padding: 28px 22px 38px;
  }

  .history-tabs button {
    font-size: 10px;
    padding: 8px 12px;
  }

  .timeline-content h2 {
    font-size: 22px;
  }

  .timeline-content p {
    font-size: 12px;
  }

  .timeline-image img {
    height: 190px;
  }
}