/* ==========================================================================
   Block: The Problem
   ========================================================================== */

.rg-problem__title {
  font-size: var(--rg-fs-h2-lg);   /* 55px, one line full-width like the live site */
  font-weight: var(--rg-fw-semibold);
  line-height: var(--rg-lh-heading);
  margin: 16px 0 16px;
  max-width: var(--rg-heading-max);
}
.rg-problem__intro {
  max-width: 900px;
  font-size: var(--rg-fs-body);
  color: var(--rg-green-deep);
  margin: 0;
}

.rg-problem__sub {
  margin: 28px 0 16px;
  font-size: var(--rg-fs-small);
  font-weight: var(--rg-fw-semibold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rg-muted);
}

/* ---- Grid: 6 symptom cards (cols 1–2) + green stat card (col 3) ---- */
.rg-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;   /* Figma: all three ~equal (392/392/389) */
  gap: 18px;                            /* 3 rows(87)+2*18 = 297 = green-card height */
}

.rg-problem__card {
  display: flex;
  align-items: center;
  gap: 16px;                            /* icon→text (Figma ~20, tightened so text fits 2 lines) */
  padding: 15px 12px;                   /* Figma padding 15 / ~10 (icon frame self-centers) */
  background: rgba(var(--rg-white-rgb), .5);     /* Figma white @50% */
  border-radius: var(--rg-radius-card);
}
.rg-problem__icon {
  flex: 0 0 auto;
  width: 55px; height: 55px;            /* Figma icon frame 55×55 → card = 55+30 = 86px */
  display: grid; place-items: center;
  color: var(--rg-green);
}
.rg-problem__icon .material-symbols-rounded { font-size: var(--rg-icon-xl); }
.rg-problem__card-text {
  font-size: var(--rg-fs-body);        /* Figma 16/400 */
  font-weight: var(--rg-fw-regular);
  line-height: var(--rg-lh-body);
  color: var(--rg-green-deep);
}

/* ---- Green stat card (spans all three rows on the right) ---- */
.rg-problem__stat {
  grid-column: 3;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;                 /* Figma padding 20 / 30 */
  background: var(--rg-green);
  background-image: linear-gradient(rgba(var(--rg-green-rgb), .5), rgba(var(--rg-green-rgb), .5)), url(../../assets/img/green-pattern.webp);
  background-size: cover;
  background-position: center;
}
.rg-problem__stat-num {
  font-size: var(--rg-fs-display);   /* Figma 55/600 */
  font-weight: var(--rg-fw-semibold);
  line-height: 1;
  color: var(--rg-white);
}
.rg-problem__stat-cap {
  margin-top: 10px;                  /* Figma itemSpacing 10 */
  font-size: var(--rg-fs-lead);      /* Figma 18/600 */
  font-weight: var(--rg-fw-semibold);
  line-height: var(--rg-lh-body);                 /* Figma lh 26.1 */
  color: var(--rg-white);
}
.rg-problem__stat-src {
  margin-top: 10px;                  /* Figma itemSpacing 10 */
  padding: 5px 10px;                 /* Figma padding 5 / 10 */
  display: flex;
  align-items: center;
  gap: 8px;                          /* Figma itemSpacing 8 */
  border-radius: var(--rg-radius-pill);
  background: rgba(var(--rg-white-rgb), .2);  /* Figma: white @20% */
  font-size: var(--rg-fs-badge);     /* Figma 12/400 Title Case */
  font-weight: var(--rg-fw-regular);
  line-height: var(--rg-lh-heading);                  /* Figma pill height 25 */
  letter-spacing: .01em;             /* Figma 1.08px @12 */
  color: rgba(var(--rg-white-rgb), .7);       /* Figma: white @70% */
}
.rg-problem__stat-src::before {      /* leading dot (Figma: white ellipse 4px) */
  content: "";
  flex: 0 0 auto;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rg-white);
}
.rg-problem__stat-divider {
  margin: 20px 0;                    /* Figma itemSpacing 20 above & below the divider */
  border: 0;
  border-top: 1px solid rgba(var(--rg-white-rgb), .18);
}
.rg-problem__stat-lead {
  margin: 0;                          /* Figma: continuous with body text */
  font-size: var(--rg-fs-body);
  font-weight: var(--rg-fw-bold);     /* bold lead sentence */
  line-height: var(--rg-lh-body);                  /* Figma lh 23.2 */
  color: var(--rg-white);
}
.rg-problem__stat-text {
  margin: 0;
  font-size: var(--rg-fs-body);
  line-height: var(--rg-lh-body);                  /* Figma lh 23.2 */
  color: rgba(var(--rg-white-rgb), .85);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .rg-problem__grid { grid-template-columns: 1fr 1fr; }
  .rg-problem__stat { grid-column: 1 / span 2; grid-row: auto; }
  .rg-problem__title { font-size: var(--rg-fs-h2-lg); }
}
@media (max-width: 560px) {
  .rg-problem__grid { grid-template-columns: 1fr; }
  .rg-problem__stat { grid-column: 1; }
}
