/* ============================================================================
 * Detail Rows — stacked two-column rows: heading (left) + rich body (right).
 * Sits under a heading-band to expand on a section. Desktop-first; stacks ≤1024.
 * ========================================================================== */

.elementor-column
  > .elementor-element-populated:has(.elementor-widget-agency-detail-rows),
.e-con:has(> .e-con-inner > .elementor-widget-agency-detail-rows),
.e-con:has(.elementor-widget-agency-detail-rows) {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 !important;
}

.aew-detrows {
  width: 100%;
  box-sizing: border-box;
  background-color: #f8f5f1;
}

.aew-detrows__inner {
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.aew-detrows__rows {
  display: flex;
  flex-direction: column;
  /* gap owned by card_gap control */
}

/* ── Row card ────────────────────────────────────────────────────────────── */
.aew-detrows__row {
  display: grid;
  grid-template-columns: 32% 1fr;
  /* column-gap owned by col_gap control, padding owned by card_padding control */
  align-items: start;
  background-color: #fff;
  border-radius: 24px;
}

/* ── Heading (left) ──────────────────────────────────────────────────────── */
.aew-detrows__heading {
  margin: 0;
  font-family: var(--aew-font-heading, "DM Serif Display", serif);
  /* font-weight owned by heading_typography control, font-size owned by heading_typography control */
  line-height: 1.15;
  color: #252f37;
}

/* ── Body (right) ────────────────────────────────────────────────────────── */
.aew-detrows__body {
  font-family: var(--aew-font-body, Poppins, sans-serif);
  /* font-size owned by body_typography control */
  line-height: 1.7;
  color: #5b6166;
}

.aew-detrows__body p {
  margin: 0 0 1em;
}

.aew-detrows__body p:last-child {
  margin-bottom: 0;
}

.aew-detrows__body em,
.aew-detrows__body i {
  font-style: italic;
}

.aew-detrows__body ol,
.aew-detrows__body ul {
  margin: 0;
  padding-left: 1.3em;
}

.aew-detrows__body li {
  margin: 0 0 0.6em;
}

.aew-detrows__body li:last-child {
  margin-bottom: 0;
}

/* ── Tablet / mobile: stack the two columns ──────────────────────────────── */
@media (max-width: 1024px) {
  /* !important beats the "Heading column width" control (0,2,0) so the two
     columns always stack on tablet / mobile. */
  .aew-detrows__row {
    grid-template-columns: 1fr !important;
    row-gap: 16px;
  }
}
