.dbs-widget {
  width: 100%;
}

/* -----------------------------
   Story Scroll (locked section)
   ----------------------------- */
.dbs-story-section{
  position: relative;
  height: calc(var(--dbsSteps, 4) * 100vh);
}

.dbs-story-section .dbs-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

/* When the whole widget is sticky, don't double-sticky the media column */
.dbs-story-section .dbs-col-media{
  position: relative;
  top: auto;
}

.dbs-layout {
  display: flex;
  gap: 140px;
  align-items: flex-start;
}

.dbs-col {
  flex: 1 1 0;
}

.dbs-col-content {
}

.dbs-col-media {
}

.dbs-media-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #dde0e5;
  min-height: 400px;
}

.dbs-media-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.dbs-media-item.is-active {
  opacity: 1;
  transform: translateX(0);
}

.dbs-media-item img,
.dbs-media-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dbs-step {
  margin-bottom: 15px;
}

.dbs-step-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.dbs-step-description {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.dbs-step.is-active .dbs-step-title {
  color: #111;
}

/* پراگرس‌بار کلی */
.dbs-main-progress {
  width: 100%;
  height: 6px;
  background: #e4e6eb;
  border-radius: 999px;
  margin-top: 20px;
  overflow: hidden;
}

.dbs-main-progress-fill {
  width: 0%;
  height: 100%;
  background: #2164ff;
  border-radius: 999px;
  transition: width 0.3s ease-out;
}

@media (max-width: 768px) {
  .dbs-layout {
    flex-direction: column;
  }

  .dbs-media-wrapper {
    min-height: 220px;
  }
}
.dbs-widget {
  width: 100%;
  position: relative;
}

.dbs-layout {
  display: flex;
  gap: 140px;
  align-items: flex-start;
}

/* ستون محتوا */
.dbs-col-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ستون مدیا */
.dbs-col-media {
  flex: 1;
  position: sticky;
  top: 20px;
}

.dbs-media-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.dbs-media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.dbs-media-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.dbs-media-item img,
.dbs-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* استپ‌ها */
.dbs-step {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.dbs-step.is-active {
  opacity: 1;
}

.dbs-step.is-completed {
  opacity: 0.6;
}

.dbs-step-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #333;
}

.dbs-step.is-active .dbs-step-title {
  color: #2164ff;
}

.dbs-step-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 15px 0;
}

/* پراگرس بارها */
.dbs-step-progress {
  width: 100%;
  height: 4px;
  background-color: #e4e6eb;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.dbs-step-progress-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background-color: #2164ff;
  border-radius: 999px;
  transition: width 0.3s ease-out;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .dbs-layout {
    flex-direction: column;
  }

  .dbs-col-media {
    position: relative;
    top: 0;
    order: -1;
  }

  .dbs-media-wrapper {
    padding-bottom: 75%;
  }
}