/* PROJECT TIMELINE */

.project-timeline {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 10px 0 15px;
  box-sizing: border-box;
}

/* Timeline layout */

.project-timeline .timeline-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  min-width: 0;
  position: relative;
}

/* Horizontal line */

.project-timeline .timeline-track::before {
  content: "";
  position: absolute;
  top: 127px;
  left: 7.14%;
  right: 7.14%;
  height: 1px;
  background: #008241;
}

/* Individual timeline item */

.project-timeline .timeline-item {
  position: relative;
  min-width: 0;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Green boxes */

.project-timeline .timeline-box {
  height: 91px;
  padding: 10px 6px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #008241;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Triangle arrows */

.project-timeline .timeline-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 21px solid #008241;
}

/* Final milestone */

.project-timeline .timeline-complete {
  background: #00bf25;
}

.project-timeline .timeline-complete::after {
  border-top-color: #00bf25;
}

/* Timeline dots */

.project-timeline .timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #002819;
  margin: 31px auto 14px;
  position: relative;
  z-index: 1;
}

/* Dates */

.project-timeline .timeline-date {
  color: #002819;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

/* TABLET */

@media (max-width: 1024px) and (min-width: 768px) {

  .project-timeline .timeline-track {
    gap: 8px;
  }

  .project-timeline .timeline-box {
    font-size: 13px;
    line-height: 17px;
    padding: 8px 4px;
  }

  .project-timeline .timeline-date {
    font-size: 15px;
  }
}

/* MOBILE */

@media (max-width: 767px) {

  .project-timeline {
    padding: 10px 0;
  }

  .project-timeline .timeline-track {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
  }

  .project-timeline .timeline-track::before {
    display: none;
  }

  .project-timeline .timeline-item {
    width: 100%;
  }

  .project-timeline .timeline-box {
    height: auto;
    min-height: 80px;
    padding: 15px;
    font-size: 18px;
    line-height: 23px;
  }

  .project-timeline .timeline-box::after {
    border-left-width: 12px;
    border-right-width: 12px;
    border-top-width: 18px;
  }

  .project-timeline .timeline-dot {
    display: none;
  }

  .project-timeline .timeline-date {
    margin-top: 25px;
    font-size: 20px;
    line-height: 1.2;
  }
}