.bvt {
  --bvt-marker-size: 120px;
  --bvt-sticky-offset: 90px;
  --bvt-line-width: 2px;
  --bvt-gap: 24px;
  --bvt-follow-anchor: 30%;

  /* Rail width flexes to marker size (marker + breathing room) */
  --bvt-rail-width: calc(var(--bvt-marker-size) + 78px);

  position: relative;
  width: 100%;
}

.bvt-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--bvt-line-width);
  transform: translateX(-50%);
  background: #D0D5DD;
  pointer-events: none;
}

.bvt-item {
  position: relative;
  /* global padding/margin are applied via Elementor selectors */
}

.bvt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bvt-rail-width) minmax(0, 1fr);
  gap: var(--bvt-gap);
  align-items: stretch;
}

.bvt-col {
  min-width: 0;
  display: flex;              /* needed for vertical align control */
  flex-direction: column;
  justify-content: flex-start; /* overridden by control */
}

.bvt-slot {
  width: 100%;
}

.bvt-col--sticky > .bvt-slot {
  position: sticky;
  top: var(--bvt-sticky-offset);
}

/* Mid rail */
.bvt-mid {
  position: relative;
  display: flex;
  justify-content: center;
}

.bvt-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--bvt-line-width);
  transform: translateX(-50%);
  background: transparent;
}

.bvt-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--bvt-marker-size);
  height: var(--bvt-marker-size);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  will-change: transform;
  /* JS sets --bvt-y; we use translateY for travel */
  translate: 0 var(--bvt-y, 0px);
  box-sizing: border-box;
}

.bvt-marker-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.bvt-marker-inner svg,
.bvt-marker-inner img {
  width: 100%;
  height: 100%;
  display: block;
}

.bvt-marker-inner i {
  display: block;
  font-size: 55px;
  line-height: 1;
}

/* Content */
.bvt-content {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.bvt-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.2;
}

.bvt-text {
  font-size: 15px;
  line-height: 1.5;
}

.bvt-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.bvt-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bvt-template > .elementor,
.bvt-template .e-con,
.bvt-template .elementor-section,
.bvt-template .elementor-widget-wrap {
  max-width: 100%;
}

.bvt--continuous-marker .bvt-mid .bvt-marker {
  opacity: 0;
}

.bvt-marker--continuous {
  z-index: 3;
}

.bvt--continuous-marker .bvt-marker--continuous .bvt-marker-inner,
.bvt--continuous-marker .bvt-marker--continuous .bvt-marker-inner svg,
.bvt--continuous-marker .bvt-marker--continuous .bvt-marker-inner i,
.bvt--continuous-marker .bvt-marker--continuous .bvt-marker-inner img {
  transition: none;
}

/* Mobile stack: rail left, then stack media/content on the right */
@media (max-width: 767px) {
  .bvt-line {
    left: 18px;
    transform: none;
  }

  .bvt-grid {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
  }

  .bvt-mid {
    grid-column: 1 / 2;
  }

  .bvt-col--left,
  .bvt-col--right {
    grid-column: 2 / 3;
  }

  .bvt-marker {
    left: 18px;
    transform: none;
    translate: 0 var(--bvt-y, 0px);
  }
}
