/*
 * Responsive fixes for the MeRise Divi site.
 * Keep this file focused on cross-page layout problems visible on tablet/phone.
 */

@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
  }

  body:not(.et-fb) #main-content .et_pb_row {
    width: 88%;
  }

  body:not(.et-fb) #main-content .et_pb_section {
    overflow-x: hidden;
  }

  body:not(.et-fb) #main-content .et_pb_button_module_wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100% !important;
  }

  body:not(.et-fb) #main-content .et_pb_button,
  body:not(.et-fb) #main-content .et_pb_button:hover,
  body:not(.et-fb) #main-content .et_pb_module .et_pb_button:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: min(100%, 280px);
    min-width: 9.5em;
    min-height: 48px;
    padding: 0.65em 1.2em !important;
    line-height: 1.45em !important;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  body:not(.et-fb) #main-content .et_pb_button:not(.et_pb_button_0_tb_header),
  body:not(.et-fb) #main-content .et_pb_button:not(.et_pb_button_0_tb_header):hover {
    min-width: 11.5em;
  }

  body:not(.et-fb) #main-content .et_pb_button:after,
  body:not(.et-fb) #main-content .et_pb_button:before {
    display: none !important;
  }

  body:not(.et-fb) #main-content .et_pb_text_inner,
  body:not(.et-fb) #main-content .et_pb_heading_container {
    max-width: 100%;
  }

  body:not(.et-fb) #main-content .et_pb_text_inner p,
  body:not(.et-fb) #main-content .et_pb_text_inner li,
  body:not(.et-fb) #main-content .et_pb_icon_list_text {
    line-height: 1.8;
  }

}

/* Keep the header CTA on one line while leaving its size to Divi. */
.et_pb_button_0_tb_header,
.et_pb_button_0_tb_header:hover {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (max-width: 767px) {
  body:not(.et-fb) #main-content {
    font-size: 15px;
  }

  body:not(.et-fb) .et-l--header .et_pb_menu,
  body:not(.et-fb) .et-l--header .et_pb_section,
  body:not(.et-fb) .et-l--header .et_pb_menu_inner_container,
  body:not(.et-fb) .et-l--header .et_pb_menu__menu,
  body:not(.et-fb) .et-l--header .mobile_nav {
    overflow: visible !important;
  }

  body:not(.et-fb) .et-l--header {
    position: relative;
    z-index: 9999;
  }

  body:not(.et-fb) .et-l--header .mobile_nav.opened .et_mobile_menu {
    box-sizing: border-box;
    position: fixed !important;
    top: 112px !important;
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
    max-height: calc(100vh - 130px);
    overflow-y: auto !important;
    padding: 10px 0 !important;
    background: #fff !important;
    border-top: 3px solid #c77dff;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(103, 76, 145, 0.18);
    z-index: 10000;
  }

  body:not(.et-fb) .et-l--header .mobile_nav.opened .et_mobile_menu li a {
    padding: 12px 18px !important;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
  }

  body:not(.et-fb) .et-l--header .mobile_menu_bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    overflow: visible !important;
  }

  body:not(.et-fb) .et-l--header .mobile_nav,
  body:not(.et-fb) .et-l--header .mobile_nav.opened,
  body:not(.et-fb) .et-l--header .mobile_nav.closed {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
  }

  body:not(.et-fb) .et-l--header .mobile_menu_bar:before {
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
  }

  body.page-id-242:not(.et-fb) .et_pb_button_0,
  body.page-id-242:not(.et-fb) .et_pb_button_0:hover {
    min-width: 12.8em;
  }

  body.page-id-242:not(.et-fb) .et_pb_button_0_wrapper,
  body.page-id-242:not(.et-fb) .et_pb_button_1_wrapper {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center !important;
  }

  body.page-id-242:not(.et-fb) .et_pb_button_0,
  body.page-id-242:not(.et-fb) .et_pb_button_1 {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-242:not(.et-fb) .et_pb_text_10 {
    width: min(100%, 310px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-79:not(.et-fb) .et_pb_text_2 {
    width: min(100%, 335px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.page-id-79:not(.et-fb) .et_pb_text_2 .et_pb_text_inner {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.55;
    text-align: center;
  }

  body.page-id-79:not(.et-fb) .et_pb_text_2 p {
    line-height: 1.55;
  }

  body:not(.et-fb) #main-content .et_pb_row {
    width: 88%;
    max-width: 100%;
  }

  body:not(.et-fb) #main-content .et_pb_column {
    max-width: 100%;
  }

  body:not(.et-fb) #main-content h1,
  body:not(.et-fb) #main-content .et_pb_text h1,
  body:not(.et-fb) #main-content .et_pb_heading h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  body:not(.et-fb) #main-content h2,
  body:not(.et-fb) #main-content .et_pb_text h2,
  body:not(.et-fb) #main-content .et_pb_heading h2 {
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.18;
  }

  body:not(.et-fb) #main-content h3,
  body:not(.et-fb) #main-content .et_pb_text h3,
  body:not(.et-fb) #main-content .et_pb_heading h3 {
    font-size: clamp(23px, 6.4vw, 30px);
    line-height: 1.25;
  }

  body:not(.et-fb) #main-content h4,
  body:not(.et-fb) #main-content .et_pb_text h4,
  body:not(.et-fb) #main-content .et_pb_heading h4 {
    font-size: clamp(19px, 5.4vw, 24px);
    line-height: 1.35;
  }

  body:not(.et-fb) #main-content .et_pb_text_inner span[style*="xx-large"] {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.2;
  }

  body:not(.et-fb) #main-content .et_pb_column_4,
  body:not(.et-fb) #main-content .et_pb_column_5,
  body:not(.et-fb) #main-content .et_pb_column_6,
  body:not(.et-fb) #main-content .et_pb_column_10,
  body:not(.et-fb) #main-content .et_pb_column_11,
  body:not(.et-fb) #main-content .et_pb_column_12,
  body:not(.et-fb) #main-content .et_pb_column_13,
  body:not(.et-fb) #main-content .et_pb_column_14,
  body:not(.et-fb) #main-content .et_pb_column_15,
  body:not(.et-fb) #main-content .et_pb_column_16 {
    margin-bottom: 28px;
  }

  body:not(.et-fb) #main-content .et_pb_column .et_pb_module {
    max-width: 100%;
  }

  body:not(.et-fb) #main-content .et_pb_image {
    text-align: center;
  }

  body:not(.et-fb) #main-content .et_pb_image img {
    height: auto;
  }

  body.page-id-79:not(.et-fb) .et_pb_image_3,
  body.page-id-53:not(.et-fb) .et_pb_image_3,
  body.page-id-56:not(.et-fb) .et_pb_image_4 {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.page-id-79:not(.et-fb) .et_pb_image_3 .et_pb_image_wrap,
  body.page-id-53:not(.et-fb) .et_pb_image_3 .et_pb_image_wrap,
  body.page-id-56:not(.et-fb) .et_pb_image_4 .et_pb_image_wrap {
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.page-id-79:not(.et-fb) .et_pb_image_3 img,
  body.page-id-53:not(.et-fb) .et_pb_image_3 img,
  body.page-id-56:not(.et-fb) .et_pb_image_4 img {
    display: block;
    max-width: 92px;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-id-79:not(.et-fb) .et_pb_image_3 {
    align-self: center !important;
  }

  body.page-id-79:not(.et-fb) .et_pb_row_7,
  body.page-id-53:not(.et-fb) .et_pb_row_7,
  body.page-id-56:not(.et-fb) .et_pb_row_10 {
    align-items: center !important;
  }

  body.page-id-79:not(.et-fb) .et_pb_row_7 .et_pb_button_module_wrapper,
  body.page-id-53:not(.et-fb) .et_pb_row_7 .et_pb_button_module_wrapper,
  body.page-id-56:not(.et-fb) .et_pb_row_10 .et_pb_button_module_wrapper {
    justify-content: center !important;
  }

  body:not(.et-fb) .et_pb_icon_list {
    padding-left: 0;
  }

  body:not(.et-fb) .et_pb_icon_list_item {
    align-items: flex-start;
    gap: 0.55em;
  }

  body:not(.et-fb) .et_pb_icon_list_item .et-pb-icon {
    flex: 0 0 auto;
    margin-top: 0.35em;
  }

  body:not(.et-fb) #main-content .et_pb_text_3,
  body:not(.et-fb) #main-content .et_pb_text_3 .et_pb_text_inner,
  body:not(.et-fb) #main-content .et_pb_text_3 p {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  body:not(.et-fb) #main-content .et_pb_text_3 p,
  body:not(.et-fb) #main-content .et_pb_text_4 p,
  body:not(.et-fb) #main-content .et_pb_text_5 p,
  body:not(.et-fb) #main-content .et_pb_text_6 p {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  body.page-id-56:not(.et-fb) .et_pb_text_4,
  body.page-id-56:not(.et-fb) .et_pb_text_5,
  body.page-id-56:not(.et-fb) .et_pb_text_4 .et_pb_text_inner,
  body.page-id-56:not(.et-fb) .et_pb_text_5 .et_pb_text_inner {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_1,
  body.page-id-56:not(.et-fb) .et_pb_icon_list_2,
  body.page-id-56:not(.et-fb) .et_pb_icon_list_3 {
    left: auto !important;
    right: auto !important;
    width: 82% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_3 {
    width: 78% !important;
    max-width: 260px !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_1 .et_pb_icon_list_text,
  body.page-id-56:not(.et-fb) .et_pb_icon_list_2 .et_pb_icon_list_text,
  body.page-id-56:not(.et-fb) .et_pb_icon_list_3 .et_pb_icon_list_text {
    width: auto !important;
    max-width: none !important;
  }

  body.page-id-53:not(.et-fb) .et_pb_row_6 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    height: auto !important;
  }

  body.page-id-53:not(.et-fb) .et_pb_row_6 .et_pb_column {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  body.page-id-53:not(.et-fb) .et_pb_text_10,
  body.page-id-53:not(.et-fb) .et_pb_text_11,
  body.page-id-53:not(.et-fb) .et_pb_text_12 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(100%, 285px) !important;
    min-height: 58px;
    margin: 0 auto !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_row_3,
  body.page-id-56:not(.et-fb) .et_pb_column_4,
  body.page-id-56:not(.et-fb) .et_pb_column_7,
  body.page-id-56:not(.et-fb) .et_pb_column_10 {
    align-items: center !important;
    text-align: center;
  }

  body.page-id-56:not(.et-fb) .et_pb_row_3,
  body.page-id-56:not(.et-fb) .et_pb_column_7,
  body.page-id-56:not(.et-fb) .et_pb_column_10 {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_row_4,
  body.page-id-56:not(.et-fb) .et_pb_row_6,
  body.page-id-56:not(.et-fb) .et_pb_row_7 {
    width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_image_0,
  body.page-id-56:not(.et-fb) .et_pb_image_1,
  body.page-id-56:not(.et-fb) .et_pb_image_2 {
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_image_0 .et_pb_image_wrap,
  body.page-id-56:not(.et-fb) .et_pb_image_1 .et_pb_image_wrap,
  body.page-id-56:not(.et-fb) .et_pb_image_2 .et_pb_image_wrap {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_image_0 img,
  body.page-id-56:not(.et-fb) .et_pb_image_1 img,
  body.page-id-56:not(.et-fb) .et_pb_image_2 img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_text_2,
  body.page-id-56:not(.et-fb) .et_pb_text_3,
  body.page-id-56:not(.et-fb) .et_pb_text_4,
  body.page-id-56:not(.et-fb) .et_pb_text_5 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_text_3 {
    font-size: clamp(12px, 3.25vw, 14px);
    line-height: 1.9;
  }

  body.page-id-56:not(.et-fb) .et_pb_text_3 p {
    display: block;
    line-height: 1.9;
    text-align: center;
    white-space: nowrap;
  }

  body.page-id-56:not(.et-fb) .et_pb_text_3 p br {
    display: block;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_0,
  body.page-id-56:not(.et-fb) .et_pb_icon_list_1,
  body.page-id-56:not(.et-fb) .et_pb_icon_list_2 {
    width: min(100%, 285px) !important;
    max-width: 285px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_0 {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    margin-top: 12px !important;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_0 .et_pb_icon_list_item {
    align-items: flex-start;
    gap: 0.45em;
  }

  body.page-id-56:not(.et-fb) .et_pb_icon_list_0 .et_pb_icon_list_text {
    line-height: 1.65;
  }

  body.page-id-56:not(.et-fb) .et_pb_text_6,
  body.page-id-56:not(.et-fb) .et_pb_text_6 .et_pb_text_inner {
    width: 100% !important;
    white-space: nowrap;
    font-size: clamp(11px, 3.1vw, 13px);
    text-align: center;
  }

  body.page-id-58:not(.et-fb) .et_pb_row_1 {
    align-items: center !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.page-id-58:not(.et-fb) .et_pb_text_1,
  body.page-id-58:not(.et-fb) .et_pb_text_1 .et_pb_text_inner {
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
  }

  body.page-id-58:not(.et-fb) .et_pb_text_1 {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.7;
  }

  body.page-id-58:not(.et-fb) .et_pb_image_0,
  body.page-id-58:not(.et-fb) .et_pb_image_0 .et_pb_image_wrap {
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-58:not(.et-fb) .et_pb_image_0 img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-58:not(.et-fb) .et_pb_row_4,
  body.page-id-58:not(.et-fb) .et_pb_row_5,
  body.page-id-58:not(.et-fb) .et_pb_row_6,
  body.page-id-58:not(.et-fb) .et_pb_row_7,
  body.page-id-58:not(.et-fb) .et_pb_row_8,
  body.page-id-58:not(.et-fb) .et_pb_row_9 {
    display: grid !important;
    grid-template-columns: 34% 1fr;
    column-gap: 14px;
    align-items: center;
    width: 88% !important;
    min-height: 72px;
    height: auto !important;
    padding: 14px 0 !important;
  }

  body.page-id-58:not(.et-fb) .et_pb_row_4 .et_pb_column,
  body.page-id-58:not(.et-fb) .et_pb_row_5 .et_pb_column,
  body.page-id-58:not(.et-fb) .et_pb_row_6 .et_pb_column,
  body.page-id-58:not(.et-fb) .et_pb_row_7 .et_pb_column,
  body.page-id-58:not(.et-fb) .et_pb_row_8 .et_pb_column,
  body.page-id-58:not(.et-fb) .et_pb_row_9 .et_pb_column {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  body.page-id-58:not(.et-fb) .et_pb_row_4 .et_pb_text,
  body.page-id-58:not(.et-fb) .et_pb_row_5 .et_pb_text,
  body.page-id-58:not(.et-fb) .et_pb_row_6 .et_pb_text,
  body.page-id-58:not(.et-fb) .et_pb_row_7 .et_pb_text,
  body.page-id-58:not(.et-fb) .et_pb_row_8 .et_pb_text,
  body.page-id-58:not(.et-fb) .et_pb_row_9 .et_pb_text,
  body.page-id-58:not(.et-fb) .et_pb_row_4 .et_pb_text_inner,
  body.page-id-58:not(.et-fb) .et_pb_row_5 .et_pb_text_inner,
  body.page-id-58:not(.et-fb) .et_pb_row_6 .et_pb_text_inner,
  body.page-id-58:not(.et-fb) .et_pb_row_7 .et_pb_text_inner,
  body.page-id-58:not(.et-fb) .et_pb_row_8 .et_pb_text_inner,
  body.page-id-58:not(.et-fb) .et_pb_row_9 .et_pb_text_inner {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    text-align: left !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  body:not(.et-fb) #main-content .et_pb_row {
    width: 86%;
  }

  body:not(.et-fb) #main-content .et_pb_section {
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.et-fb) #main-content .et_pb_button,
  body:not(.et-fb) #main-content .et_pb_button:hover,
  body:not(.et-fb) #main-content .et_pb_module .et_pb_button:hover {
    min-width: 10.5em;
    max-width: 100%;
    font-size: 15px;
  }

}
