/* Harmony Healing Center — V7.9.71
   AR MOBILE TRUSTED ORGANIZATIONS — RESTORE + FIT FIX

   Root correction:
   V7.9.70 hid the proven .home45r-exact block and tried to switch AR mobile
   to .home45d-partners. On the real Arabic page that fallback is not the
   active/usable visual implementation, so the section collapsed completely.

   V7.9.71 restores the known-good exact-art block on AR mobile and only
   scales/contains the Arabic overlays so they do not collide with the logos.
   V7.9.68 language switch remains untouched.
*/

@media (max-width: 760px) {

  /* Restore the proven exact-art implementation. */
  html[lang="ar"] .home45r-exact {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  /* Prevent duplicate/alternate partner implementations on AR mobile. */
  html[lang="ar"] .home45d-partners,
  html[lang="ar"] .home45k-live,
  html[lang="ar"] .home45z-mobile-cards,
  html[lang="ar"] .home45d-card-row {
    display: none !important;
    visibility: hidden !important;
  }

  /* Scale the whole Arabic heading overlay as one unit.
     This is more reliable than trying to fight every child font rule. */
  html[lang="ar"] .home45r-head {
    position: relative !important;
    z-index: 5 !important;
    width: 136% !important;
    max-width: none !important;
    margin-left: -18% !important;
    margin-right: -18% !important;
    padding: 0 !important;
    box-sizing: border-box !important;

    direction: rtl !important;
    text-align: center !important;

    transform: translateY(-1px) scale(.72) !important;
    transform-origin: top center !important;
  }

  html[lang="ar"] .home45r-title {
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    line-height: 1.05 !important;
    direction: rtl !important;
    text-align: center !important;
  }

  html[lang="ar"] .home45r-description {
    width: 92% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    direction: rtl !important;
    text-align: center !important;
  }

  /* Keep bottom benefit copy inside its three columns. */
  html[lang="ar"] .home45r-benefits {
    width: 104% !important;
    margin-left: -2% !important;
    margin-right: -2% !important;
    box-sizing: border-box !important;
  }

  html[lang="ar"] .home45r-benefit {
    min-width: 0 !important;
    overflow: visible !important;
    direction: rtl !important;
    text-align: center !important;
    transform: scale(.80) !important;
    transform-origin: center center !important;
  }

  html[lang="ar"] .home45r-benefit strong,
  html[lang="ar"] .home45r-benefit span {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    letter-spacing: 0 !important;
    line-height: 1.28 !important;
  }

  /* Keep the working V7.9.68 switch visible. */
  .hhc-mobile-lang-switch-v7968 {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 420px) {
  html[lang="ar"] .home45r-head {
    width: 142% !important;
    margin-left: -21% !important;
    margin-right: -21% !important;
    transform: translateY(-1px) scale(.67) !important;
  }

  html[lang="ar"] .home45r-benefit {
    transform: scale(.74) !important;
  }
}
