/* ProblemMoments — split copy + desktop carousel (staffing MomentsSection model) */

.pm-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f7f6fb;
  border-bottom: 1px solid #e9e9ea;
  padding: 104px 32px;
  min-height: 0;
}

.pm-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}

.pm-split {
  /* stacked below desktop */
}

.pm-copy {
  /* copy column */
}

.pm-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1c26;
  margin: 0 0 16px;
  max-width: 800px;
}

.pm-intro {
  font-size: 19px;
  line-height: 1.65;
  color: #4c4951;
  margin: 0 0 48px;
  max-width: 800px;
}

.pm-card {
  border: 1.5px solid #e9e9ea;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.pm-photo {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 14px;
}

.pm-label {
  font-size: 15px;
  font-weight: 600;
  color: #77757b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-align: center;
}

.pm-question {
  font-size: 14px;
  font-weight: 600;
  color: #1f1c26;
  margin: 0 0 10px;
  font-style: italic;
}

.pm-action {
  font-size: 13px;
  line-height: 1.6;
  color: #636168;
  margin: 0;
}

.pm-skilly {
  color: #5848f7;
  font-weight: 600;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pm-carousel {
  display: none;
}

.pm-carousel-viewport {
  position: relative;
}

.pm-carousel-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 1px 12px rgba(31, 28, 38, 0.08);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pm-carousel-card .pm-question {
  font-size: 20px;
  line-height: 1.45;
}

.pm-carousel-card .pm-action {
  font-size: 19px;
  line-height: 1.65;
}

.pm-carousel-card.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .pm-carousel-card {
    transition: none;
    transform: none;
  }
}

.pm-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 20px);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pm-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: #d2d2d4;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  transform: scale(1);
}

.pm-dot.is-active {
  background: #5848f7;
  transform: scale(1.15);
}

.pm-dot:hover,
.pm-dot:focus-visible {
  background: #5848f7;
  outline: none;
}

.pm-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.pm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #5848f7;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  padding: 20px 44px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(88, 72, 247, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pm-cta:hover {
  background: #3827d9;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .pm-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .pm-section .pm-backdrop-scaler {
    display: none;
  }

  .pm-cta-wrap {
    margin-top: 32px;
  }

  .pm-cta {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 28px;
    border-radius: 8px;
    box-shadow: none;
  }
}

@media (min-width: 769px) {
  .pm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  .pm-title {
    max-width: none;
    margin-bottom: 20px;
  }

  .pm-intro {
    max-width: none;
    margin-bottom: 0;
  }

  .pm-carousel {
    display: block;
    position: relative;
    min-width: 0;
  }

  .pm-grid {
    display: none;
  }
}
