#ctp-calendar {  margin: auto; }
.ctp-single-event { max-width: 800px; margin: auto; padding: 20px; }
.ctp-event-meta { margin-bottom: 15px; font-style: italic; }
.ctp-timeline-container { overflow-x: auto; white-space: nowrap; padding: 10px; }
.ctp-timeline { display: inline-flex; list-style: none; margin: 0; padding: 0; }
.ctp-timeline-item { display: inline-block; margin-right: 20px; }
.ctp-timeline-date { display: block; font-weight: bold; }

/* Timeline wrapper & “View all” link */
.ctp-timeline-wrapper {
  position: relative;
  padding: 3rem 0;
}
.ctp-all-events-link {
  position: absolute;
  top: 0;
  right: 0;
  font-weight: 600;
  color: var(--col-pri);
  text-decoration: none;
  padding: .5rem 1rem;
}

/* Timeline list: centre-line removed, items flex */
.ctp-timeline {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual item */
.ctp-timeline-item {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

/* Remove small dot */
.ctp-timeline-item::before {
  display: none;
}

/* Big circle */
.ctp-timeline-circle {
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--col-pri);
  box-shadow: rgba(7, 60, 94, 0.2) 0px 0px 50px;
  border-radius: 50%;
  margin: 20px auto;
  transition: background 0.4s, color 0.4s;
}

/* Day number above month */
.ctp-timeline-day {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}
.ctp-timeline-month {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Event time under circle */
.ctp-timeline-time {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

/* Title below time */
.ctp-timeline-label {
  display: block;
  margin-top: .5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1c2e61;
}

/* Link hover effect */
.ctp-timeline-item a:hover .ctp-timeline-circle {
  background-color: var(--col-pri);
  color: #fff;
}
/* ─── Circle hover swap ───────────────────────────────────── */

/* ensure the circle is the positioning context */
.ctp-timeline-circle {
  position: relative;
  overflow: hidden;
}

/* both layers occupy full circle */
.ctp-circle-content,
.ctp-circle-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease-in-out;
  border-radius: 50%;
}

/* date/month layer on top initially */
.ctp-circle-content {
  z-index: 2;
  opacity: 1;
}

/* image layer beneath, hidden by default */
.ctp-circle-image {
  z-index: 1;
  opacity: 0;
}

/* make the img cover the circle */
.ctp-circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* on hover swap them */
.ctp-timeline-item:hover .ctp-circle-content {
  opacity: 0;
}
.ctp-timeline-item:hover .ctp-circle-image {
  opacity: 1;
}

/* ─── Central timeline line ────────────────────────────────── */
.ctp-timeline {
  position: relative; /* ensure pseudo-element is positioned relative to this */
}

.ctp-timeline::before {
  content: '';
  position: absolute;
  top: 114px;              /* vertically center */
  left: 0;
  width: 1000%;
  height: 6px;           /* line thickness */
  background: #eee;      /* adjust to your desired line color */
  transform: translateY(-50%);
  z-index: 0;            /* behind circles */
}

/* ensure circles sit above the line */
.ctp-timeline-circle {
  position: relative;
  z-index: 2;
}
/* ─── Timeline slide-in animation ──────────────────────────── */
/* start items off to the right & invisible */
.ctp-timeline-item {
  opacity: 0;
  transform: translateX(50px);
}

/* when slide-in is added, run our animation */
.ctp-timeline-item.slide-in {
  animation: slideIn 0.6s ease forwards;
}

/* keyframes for sliding in */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Responsive: scrollable on mobile */
@media (max-width: 768px) {
  .ctp-timeline {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
  }
  .ctp-timeline-item {
    display: inline-block;
    width: auto;
    padding: 0 1.5rem;
	opacity:1
  }
  
}
