/* ============================================
   CLEAN TIMELINE  —  leonne valantin
   Alternating left/right, centred vertical line
   ============================================ */

/* Wrapper — relative so the ::before line sits inside it */
.tl {
  position: relative;
  padding: 20px 0;
}

/* The vertical spine */
.tl::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(to bottom, #035835 0%, #01378C 50%, #035835 100%);
  border-radius: 4px;
}

/* Each row */
.tl-item {
  position: relative;
  margin-bottom: 40px;
  width: 100%;
  clear: both;
}
.tl-item:last-child { margin-bottom: 0; }

/* Inner wrapper that holds the badge and the card together */
.tl-content {
  position: relative;
  width: 45%;
}

/* LEFT items — card on the left */
.tl-l .tl-content {
  float: left;
  text-align: right;
  padding-right: 50px;
}

/* RIGHT items — card on the right */
.tl-r .tl-content {
  float: right;
  text-align: left;
  padding-left: 50px;
}

/* The numbered badge sits on the spine */
.tl-badge {
  position: absolute;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  border: 3px solid #f4f8f4;
  z-index: 2;
}
.tl-l .tl-badge { right: -20px; }
.tl-r .tl-badge { left: -20px; }

/* The card */
.tl-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 3px 15px rgba(3,88,53,0.10);
  border: 1px solid rgba(3,88,53,0.10);
  transition: transform .3s, box-shadow .3s;
  text-align: left;
}
.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(3,88,53,0.15);
}

/* Card header row */
.tl-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tl-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl-icon i { color: #fff; font-size: 15px; }
.tl-year {
  font-size: 12px;
  font-weight: 700;
  background: rgba(3,88,53,0.08);
  padding: 3px 12px;
  border-radius: 20px;
}
.tl-card h5 {
  font-size: 17px;
  font-weight: 700;
  color: #01378C;
  margin-bottom: 6px;
  line-height: 1.3;
}
.tl-card p {
  font-size: 16px;
  line-height: 1.75;
  color: #3a4a3e;
  margin: 0;
}

/* Clearfix after each row */
.tl-item::after {
  content: "";
  display: table;
  clear: both;
}

/* MOBILE — single column, spine on left */
@media (max-width: 767px) {
  .tl::before {
    left: 20px;
    margin-left: 0;
  }
  .tl-l .tl-content,
  .tl-r .tl-content {
    float: none;
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }
  .tl-l .tl-badge,
  .tl-r .tl-badge {
    left: 0;
    right: auto;
    top: 14px;
  }
}
