/* =========================================================
   Project Timeline — Frontend styles
   Kleuren worden per instantie ingesteld via CSS variabelen:
   --pt-primary  (accentkleur)
   --pt-bg       (achtergrond / icoonkleur)
   ========================================================= */

/* Standaard variabelen (fallback) */
.modern-timeline {
  --pt-primary: #a36f57;
  --pt-bg:      #f0ece7;
}

/* Container */
.modern-timeline {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  margin: 50px 0;
  width: 100%;
  position: relative;
}

/* Basislijn */
.modern-timeline::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pt-bg);
  z-index: 0;
  border-radius: 2px;
}

/* Bewegende overlay */
.modern-timeline::after {
  content: "";
  position: absolute;
  top: 50px;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--pt-primary);
  z-index: 1;
  animation: pt-line-loop 30s linear infinite;
  border-radius: 2px;
}

@keyframes pt-line-loop {
  0%   { left: -100%; }
  100% { left: 100%;  }
}

/* Item */
.modern-timeline li {
  position: relative;
  text-align: center;
  z-index: 2;
  flex: 1 1 0;
}

/* Icoon cirkel */
.modern-timeline li .w-iconbox-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--pt-primary);
  border: 3px solid var(--pt-bg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 2rem !important;
  margin: 0 auto 10px;
}

/* Actief icoon */
.modern-timeline li.active .w-iconbox-icon {
  background: var(--pt-bg);
  border: 3px solid var(--pt-bg);
  animation: pt-bounce 10s infinite;
}

/* Icoon kleur */
.modern-timeline li .w-iconbox-icon i {
  color: var(--pt-bg);
}
.modern-timeline li.active .w-iconbox-icon i {
  color: var(--pt-primary);
}

/* Tekst blok */
.modern-timeline .timeline-content {
  margin-top: 15px;
}

.modern-timeline .timeline-date {
  display: block;
  font-family: 'Hector-Regular', sans-serif;
  font-size: 1.4rem;
  color: var(--pt-bg);
  margin-bottom: 5px;
}

.modern-timeline .timeline-title {
  display: block;
  opacity: 0.8;
}

/* Bounce animatie */
@keyframes pt-bounce {
  0%, 95%, 100% { transform: translateY(0); }
  97%            { transform: translateY(-15px); }
}

/* ─── Tablet ─────────────────────────────── */
@media (max-width: 1024px) {
  .modern-timeline li .w-iconbox-icon {
    width: 85px;
    height: 85px;
    font-size: 1.6rem !important;
  }
}

/* ─── Mobiel (2 kolommen) ────────────────── */
@media (max-width: 768px) {
  .modern-timeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .modern-timeline li {
    flex: 0 0 50%;
    margin-bottom: 30px;
  }

  .modern-timeline li .w-iconbox-icon {
    width: 70px;
    height: 70px;
    font-size: 1.3rem !important;
  }

  .modern-timeline .timeline-date {
    font-size: 1.1rem;
  }

  .modern-timeline .timeline-title {
    font-size: 0.95rem;
  }
}
