.agenda-item.agenda-item--themed, body:not(.canvas-page) .agenda-item.agenda-item--admin-theme, .agenda-item {
  display: flex;
  position: relative;
  padding-bottom: 64px;
  width: 100%;
}

/* Fallback for viewing Agenda Item in isolation in Canvas Editor */
body.canvas-page .agenda-item.agenda-item--admin-theme {
  background-color: #092845;
  padding: 32px;
}

.agenda-item .agenda-item__marker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  z-index: 2;
}

.agenda-item .agenda-item__dot {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  margin-top: 8px; /* align roughly with eyebrow line-height */
}

/* Only draw the line in the continuous marker container */
.agenda-item .agenda-item__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: #ffffff;
  z-index: 1;
}

.agenda-item .agenda-item__content {
  width: 50%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

/* Typographic tweaks */
.agenda-item .agenda-item__title {
  margin-top: 0;
  margin-bottom: 8px;
  min-height: 32px;
  width: 100%;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
}

.agenda-item .agenda-item__subtitle {
  margin-top: 0;
  margin-bottom: 24px;
  min-height: 24px;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.agenda-item .agenda-item__description-text {
  margin-top: 0;
  margin-bottom: 24px;
  min-height: 24px;
  width: 100%;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #ffffff;
}

.agenda-item .agenda-item__buttons {
  display: flex;
  gap: 16px;
  min-height: 40px;
  width: 100%;
}

.agenda-item .agenda-item__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.agenda-item .agenda-item__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* =======================================
   ALTERNATING LAYOUT (Desktop)
   ======================================= */
@media (min-width: 993px) {
  /* Odd items -> Content on the RIGHT */
  .agenda-item:nth-child(odd) .agenda-item__content {
    margin-left: 50%;
    padding-left: 64px;
    padding-right: 0;
    text-align: left;
    align-items: flex-start;
  }
  .agenda-item:nth-child(odd) .agenda-item__buttons {
    justify-content: flex-start;
    /* Prevent buttons from touching the line */
    margin-left: 24px;
    margin-right: 0;
  }

  /* Even items -> Content on the LEFT */
  .agenda-item:nth-child(even) .agenda-item__content {
    margin-left: 0;
    margin-left: -64px;
    padding-left: 0;
    text-align: right;
    align-items: flex-end;
  }
  .agenda-item:nth-child(even) .agenda-item__buttons {
    justify-content: flex-end;
    /* Prevent buttons from touching the line */
    margin-right: 24px;
    margin-left: 0;
  }
}

/* =======================================
   MOBILE LAYOUT (Left-aligned)
   ======================================= */
@media (max-width: 992px) {
  .agenda-item .agenda-item__marker-container {
    left: 20px;
    transform: none;
  }
  
  .agenda-item .agenda-item__content {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 72px !important;
    padding-right: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .agenda-item .agenda-item__buttons {
    justify-content: flex-start !important;
  }
}
