section.hero button {
  text-transform: none;
  font-size: 17px;
  letter-spacing: 0.25px;
}

section.hero-block {
  height: 50em;
  margin: 100px 20px 0;
  position: relative;
}

section.hero-block.img-focus--left .hero-block--bg-img img {
  -o-object-position: left;
     object-position: left;
}

section.hero-block.img-focus--right .hero-block--bg-img img {
  -o-object-position: right;
     object-position: right;
}

section.hero-block.img-focus--center .hero-block--bg-img img {
  -o-object-position: center;
     object-position: center;
}

section.hero-block.img-focus--bottom .hero-block--bg-img img {
  -o-object-position: bottom;
     object-position: bottom;
}

section.hero-block.img-focus--top .hero-block--bg-img img {
  -o-object-position: top;
     object-position: top;
}

section.hero-block .hero-block--bg-img {
  position: absolute;
  width: 100%;
}

section.hero-block .hero-block--bg-img img {
  -o-object-position: top;
     object-position: top;
  -o-object-fit: cover;
     object-fit: cover;
  max-height: 50em;
  width: 100%;
  pointer-events: none;
}

section.hero-block .img-container {
  align-items: center;
  display: grid;
  position: relative;
  height: 100%;
  margin: auto;
  max-width: 1000px;
  pointer-events: none;
  padding: 0 20px;
}

section.hero-block .img-container img {
  width: 30%;
}

section.hero-block .hero-block__text-container {
  display: none;
}

section.hero-block.hero-block--text .hero-block__text-container {
  align-items: center;
  display: grid;
  height: 100%;
  margin: auto;
  max-width: 1000px;
  padding: 0 20px;
  position: relative;
}

section.hero-block.hero-block--text .hero-block__text-container .inner-container {
  max-width: 430px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  padding: 20px;
}

section.hero-block.hero-block--text .hero-block__text-container .inner-container > * {
  margin: 20px 0;
}

section.hero-block.hero-block--text .hero-block__text-container .inner-container > p {
  font-size: 1.125em;
}

section.hero-block.hero-block--text .hero-block__text-container .inner-container h1.title {
  font-size: 3.75em;
  line-height: 1.25em;
  font-family: archerBold;
}

section.hero-block.hero-block--text .img-container {
  position: relative;
  align-items: center;
  display: none;
  height: 100%;
  margin: auto;
  max-width: 1000px;
  pointer-events: none;
}

section.hero-block.hero-block--text .img-container img {
  width: 30%;
}

@media (max-width: 1040px) {
  section.hero-block {
    background-position: right center;
    height: 25em;
    overflow: hidden;
    margin: 100px 0;
    border-bottom: 3px solid white;
  }
  section.hero-block.hero-block--hide-on-mobile {
    height: 260px;
    background-color: #afdcf6;
    border-bottom: 0;
  }
  section.hero-block.hero-block--hide-on-mobile .hero-block--bg-img {
    display: none;
  }
  section.hero-block .img-container {
    align-items: inherit;
    justify-content: center;
    padding: 150px 20px 20px;
  }
  section.hero-block .img-container img {
    width: 200px;
  }
  section.hero-block.hero-block--text .hero-block__text-container {
    display: none;
  }
  section.hero-block.hero-block--text .img-container {
    align-items: inherit;
    justify-content: center;
    padding: 150px 20px 20px;
    display: grid;
  }
  section.hero-block.hero-block--text .img-container img {
    width: 200px;
  }
}

section.hero-article {
  padding: 0;
  margin: 120px auto 0;
  max-width: 1000px;
}

section.hero-article .outer-container {
  margin: 0;
  align-items: center;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  position: relative;
}

section.hero-article .outer-container .img-container {
    grid-column: 2 / 4;
    grid-row: 1;
    height: 100%;
    max-height: 600px;
    overflow: hidden;
    position: absolute;
    width: 100%;
}

section.hero-article .outer-container .img-container img {
  height: -moz-available;
  height: -webkit-fill-available;
  width: -moz-available;
  width: -webkit-fill-available;
  max-width: 100%;
  max-height: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
}

section.hero-article .outer-container .img-container.left {
  left: -5%;
  transform-origin: left;
}

section.hero-article .outer-container .img-container.right {
  right: -5%;
  transform-origin: right;
}

section.hero-article .outer-container .img-container.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: -2px 3px 19px 2px rgba(0, 0, 0, 0.18);
  z-index: 5;
  transition: 0.3s transform ease-out;
}

section.hero-article .outer-container .copy-wrapper {
    position: relative;
    grid-column: 1 / 3;
    grid-row: 1;
    padding: 20px 0px 20px 40px;
    z-index: 0;
    width: 65%;
    background-color: inherit;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section.hero-article .outer-container .copy-wrapper:before {
    content: '';
    transform: skewX(-16deg);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0px;
    background-color: inherit;
    z-index: -1;
    transform-origin: bottom left;
}

section.hero-article .outer-container .copy-wrapper:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 119%;
    background-color: inherit;
    opacity: 0.7;
    z-index: -1;
    transform: skewX(-16deg);
    transform-origin: bottom left;
}

section.hero-article .outer-container .copy-wrapper .category {
  background-color: transparent;
  border-radius: 2px;
  color: #0f5293;
  font-size: 14px;
  line-height: 13px;
  padding: 6px 0px;
}

section.hero-article .outer-container .copy-wrapper h2.title {
  padding: 22px 0 0px;
  font-family: archerSemiBold;
  font-size: 2.625em;
  line-height: 1.125em;
}

section.hero-article .outer-container .copy-wrapper .copy a {
  color: #007dbd;
  display: inline;
}

section.hero-article .outer-container .copy-wrapper p.second-line {
  font-family: archerLight;
  font-size: 3.25em;
  line-height: 1.25em;
  padding-bottom: 30px;
}

section.hero-article .outer-container .copy-wrapper .button-container {
    display: flex;
    padding-top: 42px;
}

section.hero-article .outer-container .copy-wrapper .button-container a {
    padding: 0px 10px 10px 0px;
}

section.hero-article .outer-container .copy-wrapper a button {
  line-height: inherit;
  font-family: sansBold;
  transition: 0.2s all ease-out;
  box-shadow: -1px 1px 7px 0px rgba(0, 0, 0, 0.18);
}

section.hero-article .outer-container .copy-wrapper a button:hover {
  background-color: #0f5293;
  color: #ffffff;
}

section.hero-article .outer-container.blue-bg .copy-wrapper .category, section.hero-article .outer-container.ltblue-bg .copy-wrapper .category {
  background-color: #007dbd;
  color: #ffffff;
  padding: 6px 11px 4px;
}

section.hero-article .outer-container.dkblue-bg .copy-wrapper .category, section.hero-article .outer-container.midblue-bg .copy-wrapper .category {
  background-color: #ffffff;
  padding: 6px 11px 4px;
  color: #007dbd;
}

section.hero-article.image-left .outer-container .img-container {
  grid-column: 1;
  grid-row: 1;
}

section.hero-article.image-left .outer-container .copy-wrapper {
  grid-column: 2;
  grid-row: 1;
}

section.hero-article.image-left .outer-container .copy-wrapper {
  grid-column: 2;
  grid-row: 1;
  padding: 60px 35px 60px 75px;
}

section.hero-article.large-type .outer-container .copy-wrapper {
  padding: 20px 40px 20px 90px;
}

section.hero-article.large-type .outer-container .copy-wrapper h1.title {
  font-family: archerBold;
  font-size: 3.75em;
  line-height: 1em;
  padding-bottom: 20px;
}

section.hero-article.image-left:not(.blue-bg) .inner-container .copy-wrapper {
  padding: 20px 0 20px 90px;
}

section.hero-article ul.nav-bar {
    border-top: 1px solid #64b5e5;
    border-bottom: 1px solid #64b5e5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 5px;
}

section.hero-article ul.nav-bar li {
    min-height: 50px;
}

section.hero-article ul.nav-bar li:hover {
    background-color: #eff2f9;
}

section.hero-article ul.nav-bar li a.active {
    border-bottom: 5px solid #64b5e5;
}

section.hero-article ul.nav-bar li a {
    color: #0f5293;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0px 10px;
}

@media (max-width: 1040px) {
  section.hero-article {
    margin: 120px 20px 0;
  }
  section.hero-article .outer-container .img-container {
    max-height: 500px;
  }
  section.hero-article.large-type .outer-container .copy-wrapper h1.title {
    font-size: 3.25em;
  }
  section.hero-article.image-left .outer-container .copy-wrapper {
    padding: 20px 40px 20px 20px;
  }
}

@media (max-width: 767px) {
  section.hero-article {
    margin: 120px 20px 0;
  }
  
  section.hero-article .outer-container .copy-wrapper .button-container {
    flex-wrap: wrap;
  }
  section.hero-article.image-left .outer-container .copy-wrapper {
    grid-column: 1;
    grid-row: 2;
    padding: 20px 10px;
    margin-top: -35px;
  }
  section.hero-article.large-type .outer-container .copy-wrapper {
    padding: 20px 10px;
  }
  section.hero-article.large-type .outer-container .copy-wrapper > a {
    display: flex;
  }
  section.hero-article .outer-container {
    border-bottom: 3px solid white;
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr;
    margin: 0;
  }
  section.hero-article .outer-container .img-container {
    height: 200px;
    grid-column: 1;
    grid-row: 1;
    position: relative;
  }
  section.hero-article .outer-container .copy-wrapper {
    grid-row: 2;
    grid-column: 1;
    padding: 0px 10px 10px 10px;
    width: unset;
    min-height: unset;
  }

  section.hero-article .outer-container .copy-wrapper:before {
    content: '';
    transform: skewY(4deg);
    position: absolute;
    top: unset;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: inherit;
    z-index: -1;
    transform-origin: bottom right;
  }

  section.hero-article .outer-container .copy-wrapper:after {
    content: '';
    transform: skewY(4deg);
    position: absolute;
    top: unset;
    left: 0px;
    width: 100%;
    height: 100%;
    bottom: 35px;
    background-color: inherit;
    z-index: -1;
    transform-origin: bottom right;
  }
  section.hero-article .outer-container .copy-wrapper h2.title {
    padding: 5px 0 16px;
    font-size: 1.875em;
    line-height: 1.25em;
  }
  section.hero-article .outer-container .copy-wrapper .copy {
    padding-bottom: 20px;
  }
  section.hero-article .outer-container .copy-wrapper .category {
    background-color: #ffffff;
    color: #007dbd;
    position: absolute;
    top: -10px;
    padding: 5px 10px;
    padding: 6px 11px 4px;
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.18);
  }
  
  section.hero-article ul.nav-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

section.hero-feature {
  height: 50em;
  margin: 20px 20px 0;
  position: relative;
}

section.hero-feature.img-focus--left .hero-block--bg-img img {
  -o-object-position: left;
     object-position: left;
}

section.hero-feature.img-focus--right .hero-block--bg-img img {
  -o-object-position: right;
     object-position: right;
}

section.hero-feature.img-focus--center .hero-block--bg-img img {
  -o-object-position: center;
     object-position: center;
}

section.hero-feature.img-focus--bottom .hero-block--bg-img img {
  -o-object-position: bottom;
     object-position: bottom;
}

section.hero-feature.img-focus--top .hero-block--bg-img img {
  -o-object-position: top;
     object-position: top;
}

section.hero-feature .hero-block--bg-img {
  position: absolute;
  width: 100%;
}

section.hero-feature .hero-block--bg-img img {
  -o-object-position: top;
     object-position: top;
  -o-object-fit: cover;
     object-fit: cover;
  max-height: 50em;
  width: 100%;
  pointer-events: none;
}

section.hero-feature .img-container {
  align-items: center;
  display: grid;
  position: relative;
  height: 100%;
  margin: auto;
  max-width: 1000px;
  pointer-events: none;
  padding: 0 20px;
}

section.hero-feature .img-container img {
  width: 30%;
}

section.hero-feature .hero-block__text-container {
  display: none;
}

section.hero-feature.hero-block--text .hero-block__text-container {
  align-items: center;
  display: grid;
  height: 100%;
  margin: auto;
  max-width: 1000px;
  padding: 0 20px;
  position: relative;
}

section.hero-feature.hero-block--text .hero-block__text-container .inner-container {
  max-width: 430px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  padding: 20px;
}

section.hero-feature.hero-block--text .hero-block__text-container .inner-container > * {
  margin: 20px 0;
}

section.hero-feature.hero-block--text .hero-block__text-container .inner-container > p {
  font-size: 1.125em;
}

section.hero-feature.hero-block--text .hero-block__text-container .inner-container h1.title {
  font-size: 3.75em;
  line-height: 1.25em;
  font-family: archerBold;
}

section.hero-feature.hero-block--text .img-container {
  position: relative;
  align-items: center;
  display: none;
  height: 100%;
  margin: auto;
  max-width: 1000px;
  pointer-events: none;
}

section.hero-feature.hero-block--text .img-container img {
  width: 30%;
}

@media (max-width: 1040px) {
  section.hero-feature {
    background-position: right center;
    height: 25em;
    overflow: hidden;
    margin: 0px;
    border-bottom: 3px solid white;
  }
  section.hero-feature.hero-block--hide-on-mobile {
    height: 260px;
    background-color: #afdcf6;
    border-bottom: 0;
  }
  section.hero-feature.hero-block--hide-on-mobile .hero-block--bg-img {
    display: none;
  }
  section.hero-feature .img-container {
    align-items: inherit;
    justify-content: center;
    padding: 150px 20px 20px;
  }
  section.hero-feature .img-container img {
    width: 200px;
  }
  section.hero-feature.hero-block--text .hero-block__text-container {
    display: none;
  }
  section.hero-feature.hero-block--text .img-container {
    align-items: inherit;
    justify-content: center;
    padding: 150px 20px 20px;
    display: grid;
  }
  section.hero-feature.hero-block--text .img-container img {
    width: 200px;
  }
}

/* --- Banner Styles --- */
section.hero-feature .banner {
    position: relative;
    overflow: hidden;
    display: flex;
    background-color: #4a90e2;
    background-repeat: no-repeat;
    background-size: auto 120%;
    background-position: 100%;
    margin-top: 100px;
    min-height: 450px;
}

/*
  This ::before element still creates the gradient...
*/
section.hero-feature .banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 70%; /* Make the gradient area slightly wider to allow for fading */
    background: linear-gradient(to right, #0a2351, #2b5197);
    z-index: 1;

    /* --- FIX FOR BLENDING --- */
    /* This mask creates the seamless fade effect. It makes the pseudo-element */
    /* fully visible on the left and gradually transparent on the right. */
    -webkit-mask: linear-gradient(to right, #000 70%, transparent 100%);
    mask: linear-gradient(to right, #000 70%, transparent 100%);
}

section.hero-feature.hero-feature--mid-blue .banner::before {
    background: linear-gradient(to right, #8dcef2, #8dcef2);
}

section.hero-feature.hero-feature--mid-blue .banner__content {
    color: #000;
}

section.hero-feature .banner__content {
    position: relative;
    z-index: 2;
    width: 55%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

section.hero-feature .banner__content h1 {
    font-size: 2.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

section.hero-feature .banner__content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 450px;
    margin-bottom: 2rem;
}

section.hero-feature .banner__buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

section.hero-feature .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 2px solid transparent;
}

section.hero-feature .btn--primary {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

section.hero-feature .btn--primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

section.hero-feature .btn--secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

section.hero-feature .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 800px) {
    section.hero-feature .banner {
        background-color: #89cff0;
        align-items: flex-end;
        background-size: auto 100%;
        background-position: center 0%;
    }

    section.hero-feature .banner::before {
        top: 20%;
        width: 100%;
        height: 80%;
        background: linear-gradient(to top, #0a2351, #2b5197);

        /* --- FIX FOR BLENDING (MOBILE) --- */
        /* The mask direction is changed to match the mobile layout. */
        -webkit-mask: linear-gradient(to top, #000 55%, transparent 70%);
        mask: linear-gradient(to top, #000 55%, transparent 70%);
    }

    section.hero-feature.hero-feature--mid-blue .banner::before {
        background: linear-gradient(to right, #8dcef2, #8dcef2);
    }

    section.hero-feature.hero-feature--mid-blue .banner__content {
        color: #000;
    }

    section.hero-feature .banner__content {
        width: 100%;
        padding: 18rem 1rem 1.5rem;
    }

    section.hero-feature .banner__content h1 {
        font-size: 2.25rem;
        margin-bottom: 0px;
        margin-top: 40px;
    }

    section.hero-feature .banner__content p {
        font-size: unset;
        margin-bottom: 1rem;
    }

    section.hero-feature .banner__buttons {
        justify-content: center;
        margin-bottom: 20px;
    }
}

section.hero-feature:has(.banner) {
    height: unset;
    width: 100%;
    margin: 0 auto;
    max-width: 1600px;
}

