/* ============================================================
   Work Process Section
   ============================================================ */

.work-process-section {
  /* background-color: #f0f2f5; */
  padding: 80px 0 60px;
}
.work-process-section .container{
  background-color: #f0f2f5;
  padding: 3rem 0;
}

/* ── Header ─────────────────────────────────────────────── */
.wp-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.wp-pre-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a6cf7;
  margin-bottom: 10px;
}

.wp-title {
  font-size: 42px;
  font-weight: 700;
  color: #0d1b3e;
  margin: 0 0 16px;
  line-height: 1.15;
}

.wp-description {
  font-size: 15px;
  color: #6b7a99;
  line-height: 1.7;
}

.wp-description p {
  margin: 0;
  padding: 0 5rem;
}

/* ── Steps Wrapper (card background with connecting line) ─ */
.wp-steps-wrapper {
  background: #fff;
  border-radius: 98px;
  padding: 15px 0px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  width: 84%;
  margin: auto;
}

.wp-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 95%;
  margin: auto;
}

/* Horizontal connecting line behind the bubbles */
.wp-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #1e40af);
  transform: translateY(-50%);
  z-index: 0;
}

/* ── Individual Bubble (from child paragraph) ─────────── */
.work-process-item {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.wp-bubble-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb, #1e3a8a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-step-bubble:hover .wp-bubble-inner,
.wp-step-bubble.active .wp-bubble-inner {
  transform: scale(1.08);
  box-shadow: 0px 1px 5px 4px rgba(37, 99, 235, 0.55);
  border: 2px solid #fff;
}

.wp-bubble-icon {
  font-size: 30px;
  margin-bottom: 8px;
  line-height: 1;
}

.wp-bubble-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.wp-bubble-title {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}

/* ── Detail Panel ─────────────────────────────────────── */
.wp-detail-panel {
  width: 80%;
  margin: 40px auto 0;
}

.wp-detail-item {
  display: none;
  /* align-items: center; */
  gap: 60px;
  width: 100%;
  border-radius: 40px;
  padding: 45px 80px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: background 0.5s ease;
}

.wp-detail-item.active {
  display: flex;
  /* animation: fadeInPanel 0.4s ease-out; */
  animation: fadeInPanel 0.1s;
  background: #fff;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Different backgrounds per step to visually indicate the change */
/* .wp-detail-item:nth-child(1).active { background: linear-gradient(180deg, #f8faff 0%, #f0f4ff 100%); }
.wp-detail-item:nth-child(2).active { background: linear-gradient(180deg, #f5fffb 0%, #e6fff4 100%); }
.wp-detail-item:nth-child(3).active { background: linear-gradient(180deg, #f8f7ff 0%, #f0eeff 100%); }
.wp-detail-item:nth-child(4).active { background: linear-gradient(180deg, #fbf7ff 0%, #faf5fd 100%); } */

.wp-detail-label {
  /* display: flex;
  align-items: center; */
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0d1b3e;
  white-space: nowrap;
  min-width: 160px;
  padding-top: 5px;
}

.wp-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

.wp-detail-description {
  font-size: 24px;
  line-height: 37px;
  color: #0A0A0A;
  flex: 1;
}

.wp-detail-description strong,
.wp-detail-description b {
  font-weight: 700;
  color: #0d1b3e;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .wp-steps-wrapper {
    border-radius: 24px;
    padding: 24px 16px;
  }

  .wp-steps::before {
    display: none;
  }

  .wp-steps {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .wp-bubble-inner {
    width: 110px;
    height: 110px;
  }

  .wp-detail-item {
    padding: 30px 20px;
    border-radius: 20px;
    gap: 12px;
  }

  .wp-detail-item.active {
    flex-direction: column;
  }

  .wp-title {
    font-size: 28px;
  }
}
