/* ==========================================================================
   Process Widget
   Items scroll upward via GSAP, right side breaks out of the container.
   ========================================================================== */

.wea-process {
  background-color: #181818;
  color: white;
  overflow-x: clip; /* prevent horizontal scrollbar but don't break GSAP pin */
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.wea-process__container {
  display: flex;
  max-width: 1170px;
  margin: 0 auto;
  position: relative;
  padding: 0 15px;
}

/* ---------- Left column ---------- */

.wea-process__left {
  width: 35%;
  padding-right: 40px;
  display: flex;
  align-items: center;
}

.wea-process__sticky-content h2 {
  color: #fefefe !important;
  transform: rotate(-9deg);
  font-style: italic;
}

.wea-process__content h3 {
  color: #fefefe !important;
}

.wea-process__card.is-active .wea-process__content h3 {
  color: #181818 !important;
}

.wea-process__sticky-content-content {
  padding-top: 20px;
}

/* ---------- Progress indicator (desktop) ---------- */

.wea-process__indicator,
.wea-process__indicator-mobile {
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wea-process__indicator-mobile {
  display: none;
}

.wea-process__track {
  width: 2px;
  height: 350px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
}

.wea-process__thumb {
  width: 100%;
  height: 0%;
  background: #fff;
  position: absolute;
  top: 0;
}

/* ---------- Right column – breaks OUT of container to the right ---------- */

.wea-process__right {
  flex: 1;
  /* Push the right edge to the viewport edge so items bleed out */
  margin-right: calc(-50vw + 50%);
  padding-right: 0;
  overflow: hidden;
}

.wea-process__items-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 80px; /* spacing from the right screen edge */
  will-change: transform;
}

/* ---------- Cards ---------- */

.wea-process__card {
  background: #313131;
  color: #fefefe !important;
  padding: 45px 60px;
  display: flex;
  align-items: center;
  gap: 40px;
  transition: all 0.5s ease;
  transform: translateX(40px);
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.wea-process__card.is-active {
  transform: translateX(0);
  background: #f3f3f3;
  color: #181818 !important;
}

/* ---------- Number badge ---------- */

.wea-process__num {
  width: 70px;
  height: 70px;
  background: #fff !important;
  color: #313131 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.wea-process__card.is-active .wea-process__num {
  background: #ff3b3b !important;
  color: #fff !important;
}

/* ==========================================================================
   Mobile (≤ 1024px) – stacked layout, NO GSAP pinning
   ========================================================================== */

@media (max-width: 1024px) {
  .wea-process {
    min-height: auto;
    overflow: visible;
  }

  .wea-process__items-inner {
    padding-right: 0;
    margin-top: 40px;
  }

  .wea-process__container {
    flex-direction: column;
    padding: 0 20px;
  }

  .wea-process__left,
  .wea-process__right {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .wea-process__left {
    text-align: center;
    padding-right: 0;
  }

  .wea-process__right {
    padding-left: 20px;
    overflow: hidden;
    margin-top: 40px;
    max-height: calc(100vh);
  }

  .wea-process__indicator {
    display: none;
  }

  .wea-process__card {
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 40px;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  }

  .wea-process__card.is-active {
    transform: none;
  }

  .wea-process__num {
    background: #ff3b3b !important;
    color: #fff !important;
  }

  .wea-process__indicator-mobile {
    display: flex;
    position: absolute;
    top: 25%;
    left: 10px;
    width: 20px;
    height: 350px;
    transform: translateY(-50%);
    justify-content: center;
    align-items: center;
  }

  .wea-process__indicator-mobile .wea-process__track {
    height: 100%;
    position: relative;
  }
}
