/*
 * Careers section type `culture` (live `.section_careers-culture`; careers Home):
 * a dark rounded banner (title, copy, "Culture at Deriv" link over a photo with a
 * scroll parallax) above four grey value cards. DS ParallaxBanner (the DS block
 * modelled on this band; rendered for a slot imageBanner whose variant is
 * `parallax`), restyled to live. Linked on careers pages only (CAREERS_STYLESHEETS).
 * Type-level: every `:culture` slot.
 *
 * Live (careers.deriv.com, measured 2026-11-11 at 1440 / 1024 / 768 / 390, EN + AR;
 * deriv-careers.*.css `.culture_*` rules):
 * - 1232px wide at 1440 (the 1280px container with 24px gutters; 16px at 479 and
 *   below), band padding as the DS section's;
 * - banner at least 512px tall, 32px corners; the photo fills the whole banner
 *   (ours: the DS image layer, stretched over the card) under live's left-side
 *   gradient; from 992 the copy takes the left half, 56px padding, centred
 *   vertically; 991 and below the copy sits at the top, full width, 32px padding,
 *   under a top-down gradient; photo anchored 100% 50% (991), 80% 50% (767),
 *   81% 50% with 96px clear at the top (479);
 * - copy: title as the DS's own sizes; description 16/24 at full content width;
 *   link 16/24 weight 600;
 * - cards: four columns from 992 (two at 768-991, one below 768), 16px apart;
 *   32px padding from 992 (24px below), 32px corners, 8px from title to copy,
 *   #f6f7f8.
 * Arabic: live mirrors the banner gradient (-70deg with shorter stops; 22deg at
 * 479 and below); copy right-aligned by the page direction.
 */
[data-raven-slot$=":culture"] .parallax-banner__inner {
  max-width: 1232px;
}
[data-raven-slot$=":culture"] .parallax-banner__card {
  position: relative;
  min-height: 512px;
  border-radius: 32px;
  overflow: hidden;
}
[data-raven-slot$=":culture"] .parallax-banner__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
[data-raven-slot$=":culture"] .parallax-banner__image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(-70deg, #0000 10%, #1c212700 36%, #181c25a6 62%, #181c25eb);
}
[dir="rtl"] [data-raven-slot$=":culture"] .parallax-banner__image-wrapper::after {
  background-image: linear-gradient(-70deg, #0000, #1c212700 24%, #181c25a6 49%, #181c25eb);
}
/*
 * The photo is the banner's own size, as live (checker M10, 2026-11-11, frame-by-
 * frame scroll capture at 768 and 390: live's photo is 512px tall in a 512px
 * banner and moves -35px → +23px while the band crosses the window, so its edge
 * shows the page through the banner as it enters; the DS draws it 125% tall from
 * -60px, a 1.23x larger crop). The DS parallax still moves it; the banner has no
 * surface of its own, as live, so that edge shows the page, not slate.
 */
[data-raven-slot$=":culture"] .parallax-banner__card {
  background-color: transparent;
}
[data-raven-slot$=":culture"] .parallax-banner__image {
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* "Culture at Deriv": live's arrow moves 8px on hover (checker M3) and is not
   drawn on the Arabic page (live hides `.link_icon-local:lang(ar)`; checker M12). */
[data-raven-slot$=":culture"] .parallax-banner__cta-link .chevron {
  transition: transform 0.3s ease;
}
[data-raven-slot$=":culture"] .parallax-banner__cta-link:hover .chevron {
  transform: translateX(8px);
}
[dir="rtl"] [data-raven-slot$=":culture"] .parallax-banner__cta-link .chevron {
  display: none;
}
[data-raven-slot$=":culture"] .parallax-banner__content {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  max-width: none;
  padding: 56px;
  gap: 16px;
  text-align: start;
}
@media (min-width: 992px) {
  [data-raven-slot$=":culture"] .parallax-banner__content {
    width: 50%;
    flex: 0 0 50%;
  }
}
[data-raven-slot$=":culture"] .parallax-banner__description {
  max-width: none;
}
[data-raven-slot$=":culture"] .parallax-banner__cta-link {
  line-height: 24px;
}
[data-raven-slot$=":culture"] .parallax-banner__cards {
  gap: 16px;
}
[data-raven-slot$=":culture"] .parallax-banner__card-item {
  padding: 32px;
  gap: 8px;
  border-radius: 32px;
  background-color: #f6f7f8;
}
@media (max-width: 991px) {
  [data-raven-slot$=":culture"] .parallax-banner__image-wrapper::after,
  [dir="rtl"] [data-raven-slot$=":culture"] .parallax-banner__image-wrapper::after {
    background-image: linear-gradient(#181c25cc 7%, #181c254f 62%, #0000);
  }
  [data-raven-slot$=":culture"] .parallax-banner__image {
    object-position: 100% 50%;
  }
  [data-raven-slot$=":culture"] .parallax-banner__content {
    padding: 32px;
  }
  [data-raven-slot$=":culture"] .parallax-banner__card-item {
    padding: 24px;
  }
}
@media (max-width: 767px) {
  [data-raven-slot$=":culture"] .parallax-banner__image {
    object-position: 80% 50%;
  }
}
@media (max-width: 479px) {
  [data-raven-slot$=":culture"] .parallax-banner__image-wrapper::after {
    background-image: linear-gradient(#181c25 23%, #181c254f 62%, #0000);
  }
  [dir="rtl"] [data-raven-slot$=":culture"] .parallax-banner__image-wrapper::after {
    background-image: linear-gradient(22deg, #0000 43%, #1c212700 51%, #181c25a6 71%, #181c25eb);
  }
  /*
   * The photo starts 96px down (live); the band above it is the title's dark slate.
   * English gets it from the overlay's solid top; the Arabic overlay is live's
   * diagonal, which left that band see-through (grey over the page, a live-site bug;
   * owner, 2026-11-20), so the photo's own padding is painted slate in both.
   */
  [data-raven-slot$=":culture"] .parallax-banner__image {
    padding-top: 96px;
    object-position: 81% 50%;
    background-color: #181c25;
  }
}

/*
 * Bottom edge as it scrolls in (independent checker r2, 2026-11-12): live's photo also moves up
 * and uncovers its frame's foot, but by the time the foot is in view live's gap is 11px and closing
 * under its dark overlay, while ours trailed 60-80px of scroll behind and showed an 8-14px grey strip
 * at 1440/1024/768. The photo reaches 16px below the frame (clipped), so no strip opens while the foot
 * is visible; the crop grows 3% (not the DS's 1.23x the r1 checker flagged).
 */
@media (min-width: 768px) {
  [data-raven-slot$=":culture"] .parallax-banner__image {
    height: calc(100% + 16px);
  }
}
