/* R107 — desktop hero reset + Arabic mobile portrait/language alignment.
 * Staging review showed the R106 navy identity split was visually too heavy.
 * R107 removes that artificial split and lets the untouched practice portrait
 * be the hero artwork on desktop. Arabic mobile receives only a small portrait
 * nudge and a deterministic language-menu grid so flags/labels align evenly.
 */

/* ===== DESKTOP HERO: one truthful photograph, no artificial side panel ===== */
@media (min-width: 961px) {
  body.home .r90-hero__slide.r106-hero__slide--doctor {
    display: block !important;
    grid-template-columns: none !important;
    overflow: hidden !important;
    background: #edf1ef !important;
  }

  body.home .r106-hero-doctor__brand {
    display: none !important;
  }

  body.home .r106-hero-doctor__portrait {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #edf1ef !important;
  }

  body.home .r90-hero__slide.r106-hero__slide--doctor > .r106-hero-doctor__portrait > img,
  body.home .r90-hero__slide.r106-hero__slide--doctor:first-child img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    /* Keep hairline + wall logo visible while retaining enough torso. */
    object-position: 50% 12% !important;
    transform: none !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  /* Make the media frame read like one premium photograph rather than a collage. */
  body.home .r90-hero__stage {
    background: #edf1ef !important;
  }

  body.home .r90-hero__media::after {
    content: none !important;
    display: none !important;
  }
}

/* ===== ARABIC MOBILE HERO: small rightward nudge only ===== */
@media (max-width: 560px) {
  html[dir="rtl"] body.home .r90-hero__slide.r106-hero__slide--doctor > .r106-hero-doctor__portrait > img,
  html[dir="rtl"] body.home .r90-hero__slide.r106-hero__slide--doctor:first-child img {
    /* User requested a subtle move toward the right; preserve scale and identity. */
    transform: translateX(9px) !important;
  }
}

/* ===== ARABIC MOBILE LANGUAGE PICKER: fixed flag column + aligned labels ===== */
@media (max-width: 960px) {
  html[dir="rtl"] .r90-language__menu button {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    direction: ltr !important;
    min-height: 48px !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
  }

  html[dir="rtl"] .r90-language__menu button img {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: 22px !important;
    height: 15px !important;
    margin: 0 !important;
  }

  html[dir="rtl"] .r90-language__menu button span {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: right !important;
    line-height: 1.35 !important;
  }

  html[dir="rtl"] .r90-language__menu button span[lang="de"],
  html[dir="rtl"] .r90-language__menu button span[lang="en"] {
    direction: ltr !important;
    font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
    font-size: 12px !important;
  }

  html[dir="rtl"] .r90-language__menu button span[lang="ar"] {
    direction: rtl !important;
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
  }
}
