/* Make the hero container full-width and crop overflow */
.subpage-hero {
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.subpage-hero .hero-text {
  display: flex;
  flex-direction: column;
  max-width: 1241px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
@media (max-width: 768px) {
  .subpage-hero {
    padding: 8.5rem 2.24rem 3.3rem;
  }
}

/* The overlay gradient from Figma */
.subpage-hero .overlay {
  
  box-sizing: border-box;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* Center the hero text on top of the overlay */
.subpage-hero .hero-content {
  box-sizing: border-box;
  color: #fff;
  /*   padding: 100px 20px; */
  /*   padding: 6.03rem 19.62rem 2.22rem 6.19rem; */
/*   padding: 8.2rem 19.62rem 1.6rem 8.30rem; */
  padding: 8.2rem 8.30rem 13.2rem 8.30rem;
  position: relative;
/*   width: 70rem; */
  z-index: 2;
/*   height: 65vh; */
}
@media (max-width: 1024px) {
  .subpage-hero .hero-content {
    padding: 6.2rem 5.3rem 8.2rem 5.3rem;
  }
}
@media (max-width: 768px) {
  .subpage-hero .hero-content {
    align-items: center;
    align-self: stretch;
    background: rgba(1, 38, 58, 0.50);
    backdrop-filter: blur(2px);
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0rem 1.125rem 0rem;
  }
}
.subpage-hero .hero-content h1 {
  color: #fff;
/*   font-size: 4rem; */
  font-size: 5.2rem;
  font-style: normal;
  font-weight: 700;
/*   line-height: 4.25rem; /* 106.25% */
  line-height: 5.5rem;
  letter-spacing: -0.08rem;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.30);
}
.subpage-hero .hero-content p {
  color: var(--strong-orange);
  /*   font-size: 1.25rem; */
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.025rem;
  line-height: 1.75rem; /* 140% */  
  margin-bottom: 12px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.30);
}

/* Ensure the curved border SVG always spans 100% width */
.subpage-hero .curved-border {
  box-sizing: border-box;
  bottom: -5px;
  left: 0;
  line-height: 0;
  position: absolute;
  width: 100%;
}

.subpage-hero .curved-border img {
  display: block;
  height: auto;
  position: relative;
  width: 102%;
/*   z-index: 9; */
}

/* If you have any responsive tweaks—e.g., smaller padding on mobile—add media queries here */
@media (max-width: 768px) {
  .subpage-hero .hero-content {
    padding: 0.5rem 0rem 1.125rem 0rem;
  }
  .subpage-hero .hero-content h1 {
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.8125rem;
    letter-spacing: -0.05rem;
    text-align: center;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  }
  .subpage-hero .hero-content p {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.75rem; /* 140% */
    letter-spacing: -0.025rem;
    margin-bottom: 0;
  }
}
