/* Overrides that replace behaviour previously injected by WordPress plugins/JS. Keep tiny. */
/* ===== Spacing / rhythm fixes (all widths). The page builder left a few sections with no vertical padding and
   checklists set as back-to-back zero-margin paragraphs. ===== */

/* About: "Our Team" section had no padding at all — the heading sat on the grey band and the text on the footer. */
.corzo-body-wrapper .gdlr-core-pbf-section:has(.gdlr-core-title-item) {
  padding: 90px 0 80px;
}
/* About: the two "Our Team" paragraphs are divs with no spacing between them; the trailing empty one is dropped. */
.gdlr-core-text-box-item-content > div[dir="ltr"] { margin-bottom: 18px; line-height: 1.75; }
.gdlr-core-text-box-item-content > div[dir="ltr"]:last-child { margin-bottom: 0; }
.gdlr-core-text-box-item-content > div[dir="ltr"]:empty,
.gdlr-core-text-box-item-content > div[dir="ltr"]:has(> :only-child:empty) { display: none; }

/* Investment Criteria: ✓ lists — heading gets room below it, items get breathing room. */
.gdlr-core-no-p-space .gdlr-core-text-box-item-content p { line-height: 1.75; margin-bottom: 8px; }
.gdlr-core-no-p-space .gdlr-core-text-box-item-content p:has(> strong:only-child) { margin-bottom: 14px; }
.gdlr-core-text-box-item-content p:has(> strong:only-child) { margin-bottom: 16px; }

/* Services: "Financing Solutions" section ran straight into the dark CTA band (20px). */
.gdlr-core-pbf-wrapper[style*="padding: 0px 0px 20px 0px"] { padding-bottom: 70px !important; }

/* Contact: form section bottom was 35px before the footer. */
.gdlr-core-pbf-wrapper[style*="padding: 90px 0px 35px 0px"] { padding-bottom: 90px !important; }

@media (max-width: 767px) {
  .corzo-body-wrapper .gdlr-core-pbf-section:has(.gdlr-core-title-item) { padding: 60px 0 50px; }
  .gdlr-core-pbf-wrapper[style*="padding: 0px 0px 20px 0px"] { padding-bottom: 48px !important; }
  .gdlr-core-pbf-wrapper[style*="padding: 90px 0px 35px 0px"] { padding-bottom: 60px !important; }
}

/* About, phones: the 100px vertical divider between the photo and the grey band left a 135px empty gap. */
@media (max-width: 767px) {
  #gdlr-core-column-12748 .gdlr-core-divider-line { border-width: 48px !important; }
  #gdlr-core-column-12748 > .gdlr-core-pbf-column-content-margin { padding-bottom: 8px !important; }
}

/* About: the "Our Team" column has its own inline 80px top padding (Sterling's doesn't); the section padding above covers it. */
#gdlr-core-column-65721 > .gdlr-core-pbf-column-content-margin { padding-top: 0 !important; }
