/* Mobile responsive fixes */
@media (max-width: 768px) {
  :root {
    --wp--style--global--content-size: 100vw !important;
    --wp--style--global--wide-size: 100vw !important;
  }
  /* Zero the container padding directly */
  .wp-block-post-content.has-global-padding,
  .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html, body { overflow-x: hidden; max-width: 100vw; }
  /* Reset hero/testimonials breakout */
  div[style*="background-color:#1B2A4A"] {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Constrain ALL inline-max-width elements */
  body div[style*="max-width:"],
  body p[style*="max-width:"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Fix sections with inline margin-left:-75px */
  body div[style*="margin-left:-75px"] {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body span[style*="translateX(-5%)"] { transform: none !important; }
  body span[style*="white-space:nowrap"] { white-space: normal !important; }
  body div[style*="padding:110px 40px"] { padding: 60px 20px !important; }
  body div[style*="padding:100px 40px"] { padding: 48px 20px !important; }
  body div[style*="padding:80px 40px"]  { padding: 40px 20px !important; }
  body div[style*="padding:72px 40px"]  { padding: 40px 20px !important; }
  body div[style*="padding:64px 40px"]  { padding: 32px 20px !important; }
  body div[style*="padding:56px 40px"]  { padding: 32px 20px !important; }
  body div[style*="display:flex;gap:56px;align-items:center;flex-wrap:wrap"] {
    flex-direction: column !important;
    gap: 24px !important;
  }
  body div[style*="width:340px;flex-shrink:0"],
  body div[style*="width:300px;flex-shrink:0"] {
    width: 100% !important;
    flex-shrink: 1 !important;
  }
  body div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  body div[style*="overflow:hidden;height:300px"] { height: 160px !important; }
  .wp-block-columns { flex-wrap: wrap !important; gap: 16px !important; }
  .wp-block-column { flex-basis: 100% !important; min-width: 100% !important; margin-left: 0 !important; }
  img { max-width: 100%; height: auto; }
  /* Fix footer columns stacking */
  footer .wp-block-group.is-content-justification-space-between,
  .wp-block-template-part .wp-block-group.is-content-justification-space-between {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }
  /* Fix footer child groups */
  footer .wp-block-group.is-vertical,
  .wp-block-template-part .wp-block-group.is-vertical {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Fix footer separator and copyright paragraph */
  .wp-block-group.alignfull.has-background.is-layout-flow > *,
  .wp-block-template-part .wp-block-group.alignfull.has-background > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}