.page-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  color: var(--color-text-inverse);
  background: var(--color-brand-primary);
}

.page-cover__media,
.page-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-cover__media {
  display: block;
}

.page-cover__image {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page-cover__overlay,
.page-cover__overlay::after {
  position: absolute;
  inset-block: 0;
  left: 0;
  content: "";
  pointer-events: none;
}

.page-cover__overlay {
  width: 85.78125%;
  background: linear-gradient(
    90deg,
    #004292 0%,
    rgb(0 70 155 / 77%) 20.192%,
    rgb(0 53 119 / 0%) 79.808%
  );
}

.page-cover__overlay::after {
  width: 62.477%;
  background: linear-gradient(
    83.9811deg,
    #003f8d 3.052%,
    #1b5ba9 13.265%,
    rgb(27 91 169 / 54%) 29.91%,
    rgb(0 53 119 / 0%) 43.504%
  );
}

.page-cover__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(calc(100% - 64px), var(--container-content));
  height: 100%;
  margin-inline: auto;
}

.page-cover h1 {
  font-size: var(--font-size-48);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-cover {
    height: 128px;
  }

  .page-cover__overlay {
    width: 57.6087%;
    background: linear-gradient(
      90deg,
      #004292 0%,
      rgb(0 70 155 / 77%) 49.344%,
      rgb(0 53 119 / 0%) 86.774%
    );
  }

  .page-cover__overlay::after {
    display: none;
  }

  .page-cover__inner {
    width: calc(100% - 64px);
  }

  .page-cover h1 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .page-cover {
    height: 100px;
  }

  .page-cover__overlay {
    width: 86.111111%;
    background: linear-gradient(
      90deg,
      #004292 0%,
      rgb(0 70 155 / 77%) 36.538%,
      rgb(0 53 119 / 0%) 79.808%
    );
  }

  .page-cover__overlay::after {
    display: none;
  }

  .page-cover__inner {
    width: calc(100% - 32px);
  }

  .page-cover h1 {
    font-size: var(--font-size-20);
    line-height: 1.5;
  }
}
