.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: white;
}

.page-hero-image {
  position: relative;
  width: 100%;
  z-index: 0;
  /* Ensure image is tall enough so the bar overlaps it */
  min-height: 300px;
}

.page-hero-image img,
.page-hero-no-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}

.page-hero-no-image {
  background-color: #07272D;
  height: 320px;
}

/* --- THE ANGLED BAR CONTAINER --- */
.page-hero-content {
  position: relative;
  width: 100%;
  /* Move the bar UP to overlap the image. */
  margin-top: -100px;
  padding-top: 0.5rem; /* Spacing for section below */
  z-index: 10;
}

/* UPDATED SHAPE LOGIC:
   1. Start Top Left (0,0) -> Slope DOWN to (Width, Height)
   2. Go STRAIGHT RIGHT to (100%, Height)
   3. Down to Bottom Right (100%, 100%)
   4. Left to Bottom Indent (Width, 100%)
   5. Slope UP to Bottom Left (0, 100% - Height)
*/
/* --- LAYER 1: GREEN BORDER --- */
.page-hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #43976A;
  clip-path: polygon(0 0, 150px 85px, 100% 85px, 100% 100%, 150px 100%, 0 calc(100% - 85px));
  z-index: 1;
}

/* --- LAYER 2: BLUE BACKGROUND --- */
.page-hero-content::after {
  content: "";
  position: absolute;
  /* Push down by thickness to show Green at the top */
  top: 18px;
  left: 0;
  width: 100%;
  /* Make it shorter so it doesn't stick out the bottom */
  height: calc(100% - 18px);
  background-color: #07272D;
  /* Same shape as before */
  clip-path: polygon(0 0, 150px 85px, 100% 85px, 100% 100%, 150px 100%, 0 calc(100% - 85px));
  z-index: 2;
}

/* --- LAYER 3: TEXT --- */
.page-hero-content-inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Vertical Spacing:
     Top Padding adjusted for the downward slope intrusion 
  */
  padding-top: calc(103px + 0.25rem);
  padding-bottom: calc(85px - 3.75rem);
  padding-left: 2rem;
  padding-right: 2rem;
}

.page-hero-content h1 {
  margin: 0;
  font-size: 2.5rem;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .page-hero-content {
    margin-top: -100px;
  }
  .page-hero-content::before,
  .page-hero-content::after {
    /* Smaller angle on mobile (80w / 30h) - Updated to go straight across */
    clip-path: polygon(0 0, 80px 30px, 100% 30px, 100% 100%, 80px 100%, 0 calc(100% - 30px));
  }
  .page-hero-content-inner {
    padding-top: calc(30px + 2rem);
    padding-bottom: calc(0px + 0.25rem);
  }
  .page-hero-content h1 {
    font-size: 1.8rem;
  }
}