/* ============================================================
   SX Problem Cards
   Pain-point section for product pages. Each card: icon +
   title + CFO-framing cost line. Colors lean red/yellow to
   signal urgency (unlike positive Pillars which use full brand rotation).
   ============================================================ */

.sx-problems {
  padding: 90px 0 80px;
  background: #ffffff;
}

@media (max-width: 767px) {
  .sx-problems { padding: 60px 0; }
}

.sx-problems__header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

/* Grid — flexbox for centered last row on any count */
.sx-problems__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.sx-problems__card {
  --sx-problem-accent: #E9465C;
  flex: 0 0 260px;
  max-width: 260px;
  padding: 28px 24px 26px;
  background: #ffffff;
  border: 1.5px solid #f1e0e3;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(233, 70, 92, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.sx-problems__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(233, 70, 92, 0.14);
  border-color: color-mix(in srgb, var(--sx-problem-accent) 35%, transparent);
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .sx-problems__card:hover { border-color: rgba(233, 70, 92, 0.35); }
}

/* Accent variants */
.sx-problems__card--red    { --sx-problem-accent: #E9465C; }
.sx-problems__card--yellow { --sx-problem-accent: #b48a08; }
.sx-problems__card--blue   { --sx-problem-accent: #376CB4; }

.sx-problems__card--yellow { border-color: #fce9b8; }
.sx-problems__card--yellow:hover { box-shadow: 0 14px 32px rgba(180, 138, 8, 0.14); }
.sx-problems__card--blue { border-color: #cddcef; }
.sx-problems__card--blue:hover { box-shadow: 0 14px 32px rgba(55, 108, 180, 0.14); }

/* Top accent bar */
.sx-problems__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sx-problem-accent);
}

/* Icon */
.sx-problems__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sx-problem-accent) 12%, transparent);
  color: var(--sx-problem-accent);
  margin-bottom: 18px;
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .sx-problems__icon { background: #fdeef0; }
}

.sx-problems__icon svg { width: 26px; height: 26px; }

@media (max-width: 767px) {
  .sx-problems__icon { width: 46px; height: 46px; }
  .sx-problems__icon svg { width: 22px; height: 22px; }
}

/* Card title */
.sx-problems__card-title {
  font-size: 17px;
  font-weight: 700;
  color: #12314f;
  margin: 0 0 12px;
  line-height: 1.35;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Cost line (CFO framing) */
.sx-problems__card-cost {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

.sx-problems__card-cost svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--sx-problem-accent);
}

.sx-problems__card-cost span {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Mobile responsive card widths */
@media (max-width: 991px) {
  .sx-problems__card {
    flex: 0 0 240px;
    max-width: 240px;
  }
  .sx-problems__grid { gap: 20px; }
}

@media (max-width: 700px) {
  .sx-problems__card {
    flex: 1 1 calc(50% - 7px);
    max-width: calc(50% - 7px);
    padding: 22px 18px;
  }
  .sx-problems__grid { gap: 14px; }
}

@media (max-width: 420px) {
  .sx-problems__card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
