/* Scoped to the article introduction; the site's header, footer and Bootstrap stay intact. */
#consulting > .training-hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  width: 100%;
  min-height: clamp(560px, 37vw, 760px);
  padding: clamp(32px, 3.2vw, 72px) clamp(24px, 3.2vw, 72px);
  margin: 0;
  background: #0d1c29;
  color: #fff;
}
.training-hero__image {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.training-hero__copy { width: 38%; max-width: 680px; }
.training-hero__eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #dceaf5;
}
#consulting .training-hero h1 {
  /* Use the available copy width so "Tekla Structures" fits together before
     the final word moves onto the next line. */
  max-width: none;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(48px, 4.3vw, 82px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.training-hero__lead { max-width: 36ch; margin: 0 0 24px; font-size: 18px; line-height: 1.5; }
.training-hero__formats { display: flex; flex-direction: column; gap: 6px; margin: 0 0 24px; }
.training-hero__formats strong { font-size: 21px; }
.training-hero__formats span { font-size: 15px; color: #e2eaf0; }
.training-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.training-hero__actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; }
.training-hero__price { max-width: 42ch; margin: 14px 0 0; color: #dceaf5; font-size: 13px; line-height: 1.5; }
.training-hero a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media screen and (min-width: 1600px) {
  #consulting > .training-hero {
    min-height: clamp(444px, 27.75vw, 570px);
    padding-block: clamp(32px, 2.4vw, 54px);
    overflow: hidden;
  }
  /* Size the scene by height instead of filling the width: a shorter banner
     still shows the instructor's and students' heads without cutting them. */
  .training-hero__image {
    inset: 0 0 auto auto;
    width: auto;
    max-width: none;
    height: 130%;
    object-fit: contain;
    object-position: right top;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24%);
    mask-image: linear-gradient(to right, transparent, #000 24%);
  }
  /* A broad viewport-based fade keeps the copy readable and hides the image
     edge even when an ultrawide screen extends past the panoramic photograph. */
  #consulting > .training-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #0d1c29 0%, rgba(13, 28, 41, .96) 8%, rgba(13, 28, 41, .8) 25%, rgba(13, 28, 41, .4) 43%, rgba(13, 28, 41, 0) 65%);
  }
  .training-hero__copy { position: relative; z-index: 1; }
  /* Let only the heading extend across the photograph; the supporting copy
     keeps its shorter, readable line length. */
  #consulting .training-hero h1 {
    width: max-content;
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  }
}
@media (max-width: 1199px) {
  .training-hero__copy { width: 46%; padding: 24px; background: rgba(13, 28, 41, .9); }
  #consulting .training-hero h1 { font-size: clamp(44px, 5vw, 60px); }
  .training-hero__lead { font-size: 17px; }
}
@media (max-width: 991px) {
  /* Keep the class visible above the copy instead of cropping a panoramic photo
     to a phone-sized strip. The dark text panel overlaps the photo at its base. */
  #consulting > .training-hero { display: block; min-height: 0; padding: clamp(210px, 51vw, 360px) 0 0; }
  .training-hero__image { height: clamp(270px, 66vw, 440px); object-position: 65% 15%; }
  .training-hero__copy { position: relative; width: 100%; max-width: none; padding: 26px 24px 32px; background: rgba(13, 28, 41, .95); }
  .training-hero__eyebrow { margin-bottom: 12px; font-size: 11px; }
  #consulting .training-hero h1 { max-width: 15ch; font-size: clamp(38px, 7.4vw, 52px); margin-bottom: 16px; }
  .training-hero__lead { max-width: 44ch; font-size: 16px; margin-bottom: 18px; }
  .training-hero__formats { gap: 3px; margin-bottom: 20px; }
  .training-hero__formats strong { font-size: 19px; }
  .training-hero__actions .btn { flex: 1 1 auto; }
}
@media print {
  #consulting > .training-hero { min-height: 0; padding: 24px; break-inside: avoid; }
  .training-hero__copy { width: 60%; padding: 16px; background: #0d1c29; }
  #consulting .training-hero h1 { font-size: 36px; }
}
