/* Thematic visual scenes for /platform-guide only. */
.guide-hero,
.academy-journey {
  isolation: isolate;
  overflow: hidden;
}

.guide-hero {
  position: relative;
  min-height: 430px;
  border-bottom: 0;
  background-image:
    linear-gradient(96deg, rgba(5, 7, 9, .98) 0%, rgba(7, 10, 12, .91) 52%, rgba(7, 10, 12, .72) 100%),
    url('/static/images/academy/academy-intelligence-v1.png');
  background-position: center, right center;
  background-size: cover;
}

.guide-hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 86px;
  right: 0;
  bottom: 24px;
  width: min(46vw, 560px);
  pointer-events: none;
  border: 1px solid rgba(224, 190, 112, .48);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .34), inset 0 0 48px rgba(0, 0, 0, .28);
  background-image:
    linear-gradient(180deg, rgba(5, 7, 9, .06), rgba(5, 7, 9, .38)),
    url('/static/images/academy/academy-intelligence-v1.png');
  background-position: center, 79% center;
  background-size: cover;
}

/* Fade the hero into the shared page background instead of cutting it off. */
.guide-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 126px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.guide-hero .guide-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

/* The language switcher is an active control, never a decorative overlay. */
.guide-hero #irfanLanguageControl {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: max(1.5rem, calc((100vw - 1100px) / 2));
  margin: 0;
}

.guide-hero h1 {
  max-width: 680px;
  margin-bottom: .38rem;
  font-size: clamp(3rem, 6vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.guide-hero .guide-lead {
  max-width: 630px;
  line-height: 1.5;
}

.academy-journey {
  background-image:
    linear-gradient(100deg, rgba(8, 10, 12, .96) 0%, rgba(8, 10, 12, .87) 56%, rgba(8, 10, 12, .48) 100%),
    url('/static/images/academy/academy-arabic-study-v1.png');
  background-position: center, right center;
  background-size: cover;
}

.academy-journey > * {
  position: relative;
  z-index: 1;
}

/* The first six choice cards are the only cards that receive scene artwork. */
.academy-journey + .guide-section .guide-grid > .guide-card {
  min-height: 178px;
  overflow: hidden;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(224, 190, 112, .18), 0 12px 26px rgba(0, 0, 0, .22);
}

.academy-journey + .guide-section .guide-grid > .guide-card:nth-child(1) {
  background-image: linear-gradient(104deg, rgba(8, 10, 12, .96), rgba(8, 10, 12, .71)), url('/static/images/academy/academy-arabic-study-v1.png');
}

.academy-journey + .guide-section .guide-grid > .guide-card:nth-child(2) {
  background-image: linear-gradient(104deg, rgba(8, 10, 12, .96), rgba(8, 10, 12, .70)), url('/static/images/academy/academy-heritage-library-v1.png');
}

.academy-journey + .guide-section .guide-grid > .guide-card:nth-child(3) {
  background-image: linear-gradient(104deg, rgba(8, 10, 12, .96), rgba(8, 10, 12, .66)), url('/static/images/guide-landmarks.svg');
}

.academy-journey + .guide-section .guide-grid > .guide-card:nth-child(4) {
  background-image: linear-gradient(104deg, rgba(8, 10, 12, .97), rgba(8, 10, 12, .70)), url('/static/images/academy/academy-islamic-study-v1.png');
}

.academy-journey + .guide-section .guide-grid > .guide-card:nth-child(5) {
  background-image: linear-gradient(104deg, rgba(8, 10, 12, .96), rgba(8, 10, 12, .68)), url('/static/images/business/saudi-business-hero-v1.png');
}

.academy-journey + .guide-section .guide-grid > .guide-card:nth-child(6) {
  background-image: linear-gradient(104deg, rgba(8, 10, 12, .96), rgba(8, 10, 12, .68)), url('/static/images/academy/academy-business-global-v1.png');
}

@media (max-width: 700px) {
  .guide-hero,
  .academy-journey {
    background-position: center, 62% center;
  }

  .guide-hero {
    min-height: 0;
  }

  .guide-hero::before {
    top: auto;
    right: 1rem;
    bottom: 1.1rem;
    width: 42vw;
    height: 108px;
    opacity: .66;
  }

  .guide-hero::after {
    height: 88px;
  }

  .guide-hero #irfanLanguageControl {
    top: 12px;
    right: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .academy-journey + .guide-section .guide-grid > .guide-card {
    min-height: 164px;
    background-position: 70% center;
  }
}
