@charset "UTF-8";

/* Desktop image and its blur/fade layers.
   The stacked layout uses the mobile image without overlays. */
.training-hero {
  --hero-background-image: url("../first-view/main-visual.png");
  --hero-background-position: right center;
  --hero-image-background: #b1ecee;
  --hero-min-height: clamp(500px, 30vw, 590px);
  background-color: #f8fbfc;
  color: #0b2d4e;
}

.training-hero__visual,
.training-hero__blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-background-image);
  background-color: var(--hero-image-background);
  background-position: var(--hero-background-position);
  background-repeat: no-repeat;
  /* Preserve the supplied composition while the horizontal layout narrows. */
  background-size: contain;
  pointer-events: none;
}

.training-hero__visual {
  z-index: 0;
}

.training-hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 45, 72, 0.05), rgba(4, 52, 83, 0.08) 45%, rgba(3, 44, 76, 0.3));
  content: "";
}

/* A duplicate of the same photograph supplies a progressively masked blur. */
.training-hero__blur {
  z-index: 2;
  transform: none;
  filter: blur(18px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.95) 34%, rgba(0, 0, 0, 0.7) 39%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.06) 50%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.95) 34%, rgba(0, 0, 0, 0.7) 39%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.06) 50%, transparent 55%);
}

/* A cool white area protects the copy, then fades smoothly around the center. */
.training-hero::after {
  z-index: 4;
  background: linear-gradient(90deg, #f8fbfc 0%, rgba(248, 251, 252, 0.99) 28%, rgba(248, 251, 252, 0.98) 32%, rgba(248, 251, 252, 0.96) 36%, rgba(248, 251, 252, 0.9) 40%, rgba(248, 251, 252, 0.75) 44%, rgba(248, 251, 252, 0.4) 48%, rgba(248, 251, 252, 0.12) 52%, rgba(248, 251, 252, 0) 57%);
}

.training-hero__inner {
  z-index: 5;
  min-height: var(--hero-min-height);
  max-width: 1680px;
  padding: 56px 32px;
}

.training-hero__copy {
  max-width: 810px;
}

.training-hero__eyebrow {
  gap: 12px;
  color: #008780;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.training-hero__eyebrow::before {
  width: 28px;
  height: 3px;
}

.training-hero__title {
  margin: 26px 0 22px;
  color: #0b2d4e;
  font-size: clamp(36px, 3.5vw, 64px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0.015em;
}

.training-hero__title span {
  background: linear-gradient(105deg, #075369, #008d82 45%, #00516c 76%, #008c82);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.training-hero__description {
  color: #153754;
  font-size: clamp(20px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.8;
}

.training-hero__button {
  gap: 30px;
  min-width: 360px;
  min-height: 60px;
  margin-top: 32px;
  padding: 14px 30px;
  border-radius: 5px;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 800;
  line-height: 1.45;
}

.training-hero__button span {
  font-size: 28px;
}

@media (max-width: 1000px) and (min-width: 769px) {
  .training-hero__copy {
    max-width: 52%;
  }

  .training-hero__title {
    font-size: clamp(27px, 3.6vw, 36px);
  }

  .training-hero__description {
    font-size: clamp(13px, 1.6vw, 16px);
  }

  .training-hero__button {
    min-width: min(360px, 100%);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .training-hero {
    --hero-background-image: url("../first-view/sp-first.png");
    --hero-background-position: center center;
    --hero-mobile-image-height: clamp(210px, 56.25vw, 400px);
    --hero-min-height: 0px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 24px;
    background-color: #fff;
  }

  /* Keep the copy above a full-width image instead of washing out the photo. */
  .training-hero__visual {
    position: relative;
    inset: auto;
    grid-area: 2 / 1;
    height: var(--hero-mobile-image-height);
  }

  .training-hero__blur,
  .training-hero::after,
  .training-hero__visual::after {
    display: none;
  }

  .training-hero__inner {
    grid-area: 1 / 1;
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 20px clamp(16px, 5vw, 28px) 0;
  }

  .training-hero__copy {
    max-width: none;
  }

  .training-hero__eyebrow {
    gap: 8px;
    font-size: clamp(12px, 3.25vw, 16px);
    letter-spacing: 0.02em;
  }

  .training-hero__eyebrow::before {
    flex-shrink: 0;
    width: 18px;
    height: 2px;
  }

  .training-hero__title {
    margin: 14px 0 10px;
    font-size: clamp(24px, 7.8vw, 44px);
    line-height: 1.3;
    letter-spacing: 0;
  }

  .training-hero__description {
    font-size: clamp(12px, 3.45vw, 16px);
    line-height: 1.65;
  }

  .training-hero__button {
    display: flex;
    gap: 18px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    margin-top: 16px;
    padding: 10px 18px;
    font-size: clamp(14px, 4vw, 18px);
  }

  .training-hero__button span {
    flex-shrink: 0;
    font-size: 22px;
  }
}
