/* Prevent browser scroll anchoring */
.programTimeline,
.timeline{
  overflow-anchor: none;
}

/* Details panel (JS animates height) */
.dayDetails{
  overflow: hidden;
  height: 0;            /* IMPORTANT: start collapsed */
  margin-top: 0;        /* IMPORTANT: JS animates this */
  width: min(400px, 100%);
}

/* Ensure details panel matches the day card width + alignment */
.timelineItem.is-left .dayDetails{
  grid-column: 1;
  justify-self: end;
}

.timelineItem.is-right .dayDetails{
  grid-column: 3;
  justify-self: start;
}

.dayDetails__inner{
  width: 100%;
  box-sizing: border-box;
}

/* ===== Program Schedule ===== */

.programHero{
  background: #fff;
  padding: 64px 0 18px;
}

.programHero__inner{ text-align: center; }

.programHero__title{
  margin: 0;
  font-weight: 900;
  color: #183c86;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
}

.programHero__subtitle{
  margin: 14px auto 0;
  max-width: 860px;
  color: #6a7e9f;
  font-size: 1.12rem;
  line-height: 1.7;
}

.programTimeline{
  background: #fff;
  padding: 24px 0 90px;
}

.timeline{
  position: relative;
  padding: 8px 0;
}

/* center vertical line */
.timeline__line{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(24,60,134,.16);
}

/* item wrapper */
.timelineItem{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  column-gap: 24px;
  align-items: start;
  padding: 18px 0;
}

.timelineItem.is-left .dayCard{ grid-column: 1; justify-self: end; }
.timelineItem.is-right .dayCard{ grid-column: 3; justify-self: start; }

/* dot on the line */
.timelineItem__dot{
  grid-column: 2;
  justify-self: center;
  position: sticky;
  top: 120px; /* keeps nice while scrolling */
}

.timelineItem__dot .dotIcon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e9f8f7;
  border: 1px solid rgba(47,184,192,.35);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(14, 28, 55, .10);
}

.timelineItem__dot .dotIcon::before{
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: #2fb8c0;
  box-shadow: 0 10px 20px rgba(47,184,192,.35);
}

/* day card (collapsed header) */
.dayCard{
  width: min(400px, 100%);
  border: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 14px;
  padding: 16px 16px;
  color: #fff;
  background: linear-gradient(90deg, #163a86 0%, #2fb8c0 100%);
  box-shadow: 0 18px 40px rgba(14, 28, 55, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dayCard:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(14, 28, 55, .18);
  filter: brightness(1.02);
}

.dayCard__kicker{
  font-weight: 800;
  font-size: 12px;
  opacity: .95;
}

.dayCard__title{
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  margin-top: 2px;
}

.dayCard__date{
  font-size: 16px;
  opacity: .95;
  margin-top: 2px;
}

.dayCard__chev{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}

.dayCard__chev::before{
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,.95);
  border-bottom: 2px solid rgba(255,255,255,.95);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

/* expanded state: rotate arrow */
.dayCard[aria-expanded="true"] .dayCard__chev::before{
  transform: rotate(-135deg);
}

.dayCard:focus,
.dayCard:focus-visible{
  outline: none;
  box-shadow: none;
}

/* session cards */
.sessionCard{
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f4fcfb;
  border: 1px solid rgba(47,184,192,.18);
}

.sessionCard + .sessionCard{
  margin-top: 10px;
}

.sessionCard__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e9f8f7;
  border: 1px solid rgba(47,184,192,.25);
  display: grid;
  place-items: center;
}

.sessionCard__icon img{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.sessionCard__time{
  font-weight: 900;
  color: #2fb8c0;
  font-size: .82rem;
}

.sessionCard__title{
  font-weight: 900;
  color: #0b1a33;
  margin-top: 2px;
}

.sessionCard__desc{
  color: #6b7e9b;
  line-height: 1.6;
  margin-top: 6px;
  font-size: .92rem;
}

.sessionCard__desc p{ margin: 0; }

/* ===== Mobile: single column timeline ===== */
@media (max-width: 900px){
  .timeline__line{ left: 24px; transform: none; }

  .timelineItem{
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
  }

  .timelineItem__dot{ grid-column: 1; position: relative; top: 0; }

  .timelineItem.is-left .dayCard,
  .timelineItem.is-right .dayCard{ grid-column: 2; justify-self: start; width: min(520px, 100%); }

  .timelineItem.is-left .dayDetails,
  .timelineItem.is-right .dayDetails{ grid-column: 2; justify-self: start; width: min(520px, 100%); }
}
