/* Shared rhythm for the restored homepage. Preserve hero/contact positioning. */
/* The first photo's old -80px offset depended on the removed card spacer. */
#page-container .et_pb_row_3 .et_pb_image_0 {
  margin-top: 0 !important;
}
#page-container .et_pb_section:not(.et_pb_section_0):not(.et_pb_section_1) {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}
#page-container .et_pb_section:not(.et_pb_section_0):not(.et_pb_section_1) > .et_pb_row {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
/* Original card styles reserve 160px below their content. */
#page-container .et_pb_section .et_pb_promo {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}
#page-container .et_pb_promo .et_pb_promo_description {
  padding-bottom: 0 !important;
}
#page-container .et_pb_promo_description p:last-child,
#page-container .et_pb_promo_description ul:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
#page-container .et_pb_column > .et_pb_module:last-child {
  margin-bottom: 0 !important;
}
#page-container .et_pb_row_5 .et_pb_text_4 {
  margin-bottom: 16px !important;
}
@media (max-width: 980px) {
  /* Divi reserves 50px at each end of every regular section on mobile. */
  .et_pb_section:not(.et_pb_section_0) {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .et_pb_section:not(.et_pb_section_0) > .et_pb_row {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .et_pb_section:not(.et_pb_section_0) .et_pb_column {
    margin-bottom: 20px;
  }
  #page-container .et_pb_section:not(.et_pb_section_0):not(.et_pb_section_1) {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  #page-container .et_pb_section:not(.et_pb_section_0):not(.et_pb_section_1) > .et_pb_row {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  #page-container .et_pb_section .et_pb_promo {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  #page-container .et_pb_section:not(.et_pb_section_0) > .et_pb_row > .et_pb_column:last-child {
    margin-bottom: 0 !important;
  }
  #page-container .et_pb_section:not(.et_pb_section_0) .et_pb_module:not(:last-child) {
    margin-bottom: 20px !important;
  }

  /* The four contact blurbs otherwise inherit 30px row padding and 30px
     column/module gaps. Keep the original single-column order, with icons inline. */
  .et_pb_section.et_pb_section_1 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .et_pb_section.et_pb_section_1 .et_pb_row_1 {
    width: calc(100% - 32px) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .et_pb_section_1 .et_pb_row_1 > .et_pb_column {
    margin-bottom: 10px !important;
  }

  .et_pb_section_1 .et_pb_row_1 > .et_pb_column:last-child {
    margin-bottom: 0 !important;
  }

  .et_pb_section_1 .et_pb_row_1 .et_pb_module {
    margin-bottom: 0 !important;
  }

  .et_pb_section_1 .et_pb_blurb_content {
    display: flex;
    align-items: center;
    max-width: none;
    text-align: left;
  }

  .et_pb_section_1 .et_pb_main_blurb_image {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    margin: 0 10px 0 0 !important;
    line-height: 0;
  }

  .et_pb_section_1 .et_pb_main_blurb_image .et_pb_image_wrap {
    display: block;
    width: 44px !important;
    max-width: 44px;
  }

  .et_pb_section_1 .et_pb_main_blurb_image img {
    display: block;
    width: 44px !important;
    height: auto !important;
  }

  .et_pb_section_1 .et_pb_blurb_container {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0 !important;
  }

  .et_pb_section_1 .et_pb_module_header {
    margin: 0 0 2px;
    padding: 0 0 2px;
  }

  .et_pb_section_1 .et_pb_blurb_description p {
    margin: 0;
    padding: 0 !important;
  }
}
