/*
 * Careers section type `home-hero` (live `.header_component` > `.section_hero_markets`;
 * careers Home): left-aligned title and one "Join us" button over a full-bleed
 * photo, 100vh. DS Hero `centered` (photo as the band background, DS overlay),
 * restyled to live. Linked on careers pages only (CAREERS_STYLESHEETS).
 * Type-level: every `:home-hero` slot.
 *
 * Live (careers.deriv.com, measured 2026-11-11 at 1440 / 1024 / 768 / 390, EN + AR;
 * deriv-careers.*.css `.hero_*` rules):
 * - from 992: copy block in the 1280px container (24px gutters), 60% wide,
 *   vertically centred in the 100vh band (min 35.25rem); 24px from title to button;
 *   overlay linear-gradient(90deg, #181c25d9 40%, transparent 63%), mirrored (270deg)
 *   on the Arabic page;
 * - 991 and below: copy at the foot of the band, 56px above its bottom edge, full
 *   width; overlay linear-gradient(transparent 51%, #181c25 76%), photo anchored
 *   91% 100%;
 * - 767 and below: the button spans the column;
 * - 479 and below: 16px gutters, overlay linear-gradient(#181c25e6 -2%, #a7a9ac33 16%,
 *   transparent 48%, #181c25 69%), photo anchored 74% 100%.
 * - Title sizes (80/88, 64/72 at 768, 48/56 at 390, weight 800) are the DS hero's own.
 * - Button: live's coral pill (48px tall, 16px 24px, 16/16 weight 800, 0.56px).
 */
[data-raven-slot$=":home-hero"] .hero {
  height: 100vh;
  min-height: 35.25rem;
  background-position: 50% 50%;
}
[data-raven-slot$=":home-hero"] .hero__overlay {
  background-image: linear-gradient(90deg, #181c25d9 40%, #fff0 63%);
}
[dir="rtl"] [data-raven-slot$=":home-hero"] .hero__overlay {
  background-image: linear-gradient(270deg, #181c25d9 40%, #fff0 63%);
}
[data-raven-slot$=":home-hero"] .hero__inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  padding: 0 24px;
}
[data-raven-slot$=":home-hero"] .hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 60%;
  height: auto;
  padding: 0;
  text-align: start;
}
[data-raven-slot$=":home-hero"] .hero__text,
[data-raven-slot$=":home-hero"] .hero__title {
  max-width: none;
  margin: 0;
  text-align: start;
}
[data-raven-slot$=":home-hero"] .hero__buttons {
  justify-content: flex-start;
  margin: 0;
}
[data-raven-slot$=":home-hero"] .hero__buttons .button {
  height: 48px;
  padding: 16px 24px;
  font-size: 16px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0.56px;
}
/*
 * 991 and below live's photo is `object-fit: cover` inside the band minus a
 * 164px bottom padding (10.25rem), anchored 91% 100% (74% 100% at 479): it
 * covers a box 164px shorter than the band, so it is drawn smaller than a
 * plain full-band cover (checker N3, 2026-11-11: ours was ~1.22x at 768/390).
 * The band is always taller than wide there, so cover = full box height:
 * the photo is (band height - 164px) tall, its foot 164px above the band's
 * foot; the overlay below is solid #181c25, as live.
 */
@media (max-width: 991px) {
  [data-raven-slot$=":home-hero"] .hero {
    background-size: auto calc(100% - 164px);
    background-position: left 91% bottom 164px;
    background-repeat: no-repeat;
    background-color: #181c25;
  }
  /* Arabic (owner, 2026-11-15): the Arabic photo is mirrored (the two people on the left), so
     the crop is mirrored too; 91% from the left showed the empty side of the room (live too). */
  [dir="rtl"] [data-raven-slot$=":home-hero"] .hero {
    background-position: left 9% bottom 164px;
  }
  [data-raven-slot$=":home-hero"] .hero__overlay,
  [dir="rtl"] [data-raven-slot$=":home-hero"] .hero__overlay {
    background-image: linear-gradient(#fff0 51%, #181c25 76%);
  }
  [data-raven-slot$=":home-hero"] .hero__inner {
    justify-content: flex-end;
    padding-bottom: 56px;
  }
  [data-raven-slot$=":home-hero"] .hero__content {
    max-width: none;
  }
}
@media (max-width: 767px) {
  [data-raven-slot$=":home-hero"] .hero__buttons,
  [data-raven-slot$=":home-hero"] .hero__buttons a,
  [data-raven-slot$=":home-hero"] .hero__buttons .button {
    width: 100%;
  }
  [data-raven-slot$=":home-hero"] .hero__content {
    align-items: stretch;
  }
}
@media (max-width: 479px) {
  [data-raven-slot$=":home-hero"] .hero {
    height: 100svh;
    min-height: auto;
    background-position: left 74% bottom 164px;
  }
  [dir="rtl"] [data-raven-slot$=":home-hero"] .hero {
    background-position: left 26% bottom 164px;
  }
  [data-raven-slot$=":home-hero"] .hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  [data-raven-slot$=":home-hero"] .hero__overlay,
  [dir="rtl"] [data-raven-slot$=":home-hero"] .hero__overlay {
    background-image: linear-gradient(#181c25e6 -2%, #a7a9ac33 16%, #fff0 48%, #181c25 69%);
  }
}
