/* Slide-in Drawer Timeline Styles - Based on post-2859.css */
/* Scoped to prevent conflicts */

.ue-timeline {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.ue-card {
  position: relative;
  display: flex;
}

.ue-card::before {
  content: "" !important;
  pointer-events: none;
}

.ue-slno {
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  z-index: 1;
}

/* Padding based on even or odd */
.ue-card:nth-child(even) {
  padding: 50px 0 10px 30px;
  text-align: left;
}

.ue-card:nth-child(odd) {
  padding: 50px 30px 10px 0;
  text-align: right;
}

/* Global ::before - ensure empty content */
.ue-card::before {
  content: "" !important;
  position: absolute;
  width: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Border for even cards (2n - left side) */
.ue-card:nth-child(2n)::before {
  content: "" !important;
  display: block;
  left: 0;
  top: -5px;
  bottom: 0;
  border: 5px dashed #fff;
  border-right-width: 0;
  border-radius: 20px 0 0 20px;
  pointer-events: none;
  z-index: 0;
}

/* Border for odd cards (right side) */
.ue-card:nth-child(odd)::before {
  content: "" !important;
  display: block;
  right: 0;
  top: -5px;
  bottom: -5px;
  border: 5px dashed #fff;
  border-left-width: 0;
  border-radius: 0 20px 20px 0;
  pointer-events: none;
  z-index: 0;
}

/* First card - no top border, half height from bottom */
.ue-card:first-child::before {
  content: "" !important;
  display: block;
  border-top: 0;
  border-top-right-radius: 0;
  top: auto;
  bottom: 0;
  height: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Last card (even) - no bottom border, half height from top */
.ue-card:last-child:nth-child(even)::before {
  content: "" !important;
  display: block;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  bottom: auto;
  top: 0;
  height: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Last card (odd) - no bottom border, half height from top */
.ue-card:last-child:nth-child(odd)::before {
  content: "" !important;
  display: block;
  border-bottom: 0;
  border-bottom-right-radius: 0;
  bottom: auto;
  top: 0;
  height: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Number badge positioning for odd cards (right side) */
.ue-card:nth-child(odd) > .ue-slno {
  right: 0;
  left: auto;
  transform: translate(50%, -50%);
  margin-right: 2px;
}

/* Number badge positioning for even cards (left side) */
.ue-card:nth-child(even) > .ue-slno {
  margin-left: 2px;
}

/* Info section - base styling */
.ue-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Info section alignment */
.ue-card:nth-child(odd) .ue-info {
  padding-right: 20px;
  margin-left: auto;
}

.ue-card:nth-child(even) .ue-info {
  padding-left: 20px;
}

/* Number badge styling */
.ue-slno {
  width: 48px;
  height: 48px;
  font-family: "Helvetica", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25em;
  background-color: #FFFFFF;
  color: #0A1828;
}

/* Description wrapper */
.ue-description {
  display: block;
  width: 100%;
}

/* Description text styling */
.ue-description p {
  font-family: "Helvetica", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.25em;
  color: #FFFFFF;
  margin-top: -10px;
  margin-bottom: 40px;
}

/* CTA Content section - ensure paragraphs have margin-bottom */
.slide-in-cta-content p {
  margin-bottom: 20px;
}

/* CTA Content section - ensure links have underline */
.slide-in-cta-content a {
  text-decoration: underline;
}

/* Slide-in Animation */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide-in drawer animation */
.slide-in-drawer {
  animation: slideInFromRight 0.5s ease-out forwards;
}

/* Overlay fade-in animation */
.slide-in-overlay {
  animation: fadeIn 0.3s ease-out forwards;
}
