.wp-timeline-category-filter {
  width: 100%;
  display: inline-block;
  margin-top: 60px;
  text-align: center;
}
#wp-timeline-category-filter {
  margin: 0 auto;
}
.timeline-month {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  margin: 50px auto;
  color: #fff;
  position: relative;
  background: #484E28;
  width: fit-content;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  z-index: 1;
  border: 3px solid #fff;
}


/* Basic layout */
#wp-timeline-wrapper { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
#wp-timeline-list { position: relative; padding: 20px 0; }

/* center vertical line */
#wp-timeline-list:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #e2e2e2;
    transform: translateX(-50%);
    transition: background 0.35s ease, box-shadow 0.35s ease;
    z-index: 1;
}

/* active colored line state */
#wp-timeline-list.active-line:before {
    background: linear-gradient(180deg, #484E28 0%, #879C4C 100%);
    box-shadow: 0 0 18px rgba(75,133,180,0.12);
}

/* item base */
.timeline-item { position: relative; width: 100%; display: block; margin: 36px 0; z-index: 2; }
/*.timeline-item:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #484E28;
    border: 3px solid #fff;
    transform: translate(-50%, 0);
    transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    z-index: 3;
} */

.sml_date {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #AB3A2E;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 3;
  text-align: center;
  line-height: 1;
  color: #fff;
  font-weight: 600;
  align-content: center;
  font-size: 1.6rem;
  transition: all 0.6s cubic-bezier(.2,.9,.3,1);
  transition-delay: 0.05s;
}
.sml_date_m {
  display: block;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 3px;
}

/* active bullet */
.timeline-item.active:before {
    background: #AB3A2E;
    transform: translate(-50%, -4px) scale(1.12);
}

/* content blocks */
.timeline-item-date { display: block; font-size: 0.9rem; color: #666; margin-bottom: 8px; }

.timeline-item-content {
  width: 46%;
  padding: 16px 22px;
  background: #F5F5F5;
  border-radius: 10px;
  display: flex;
}
.timelinebox {
  width: 100%;
  max-width: 70%;
  position: relative;
}
.timeline-item-title { margin: 0 0 8px 0; font-size: 1.4rem; }
.timeline-item-excerpt { margin: 0; color: #333; }

.timeline-readmore {
  position: relative;
  bottom: 0;
  font-size: 0.9rem;
}

.timeline-item-image {
  width: 100%;
  max-width: 30%;
  display: block;
  float: left;
  margin-right: 15px;
}
.timeline-item-image .attachment-thumbnail.size-thumbnail {
  vertical-align: middle;
}

/* Slide-in base state */
#wp-timeline-list > .timeline-item .timeline-item-content {
    opacity: 0;
    transition: all 0.6s cubic-bezier(.2,.9,.3,1);
}

/* Slide-in positions */
#wp-timeline-list > .timeline-item:nth-of-type(odd) .timeline-item-content {
    transform: translateX(-40px);
}
#wp-timeline-list > .timeline-item:nth-of-type(even) .timeline-item-content {
    transform: translateX(40px);
}

/* Active: slide in */
#wp-timeline-list > .timeline-item.active .timeline-item-content {
    opacity: 1;
    transform: translateX(0);
    /* Transition delay is set via JS for stagger */
}




/* Place content to left/right by using padding on wrapper */
@media (min-width: 820px) {
    .timeline-item { display: block; }
    #wp-timeline-list > .timeline-item:nth-of-type(odd) .timeline-item-content { margin-right: 54%; }
    #wp-timeline-list > .timeline-item:nth-of-type(even) .timeline-item-content { margin-left: 54%; }
}



/* small responsiveness */
@media (max-width: 819px) {
    #wp-timeline-list:before { left: 18px; transform: none; }
    .timeline-item:before { left: 18px; transform: none; }
    #wp-timeline-list > .timeline-item .timeline-item-content { width: calc(100% - 56px); margin-left: 40px !important; text-align: left !important; }
    #wp-timeline-list > .timeline-item:nth-of-type(odd) .timeline-item-content, #wp-timeline-list > .timeline-item:nth-of-type(even) .timeline-item-content { position: relative; left: 4%; }
    .sml_date {
  left: 20px;
}
	.timeline-month {
  margin: 50px 0 50px -10px;
}
}

/* load more */
#wp-timeline-load-more-wrap { text-align: center; margin-top: 18px; }
#wp-timeline-load-more {
  padding: 10px 18px;
  border: none;
  background: #AB3A2E;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
  margin: 0 auto;
  font-weight: 600;
}
#wp-timeline-load-more:hover { background: #879C4C; }
#wp-timeline-load-more[disabled] { opacity: 0.7; cursor: default; }

/* empty */
.timeline-empty { text-align: center; color: #888; }
