/* Page Header Styles */
.page-header {
  position: relative;
  width: 100%;
  /* min-height: 54vh; */
  display: flex;
  flex-direction: column;
}

.page-header-background {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 48vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: var(--color-navy);
}

/* Navy overlay for child pages */
.page-header-background--child-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-navy);
  opacity: 0.4;
  z-index: 1;
}

/* Ensure navigation and content are above overlay */
.page-header-background .site-navigation-wrapper {
  margin-top: 2rem;
}
.page-header-background .site-navigation {
  position: relative;
  z-index: 2;
}

.page-header-background .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* min-height: 34vh; */
  /* padding: 2rem 0; */
}

.page-title {
  max-width: 756px;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 3rem 0 2rem 0;
  line-height: 1.2;
  text-align: left;
  align-self: flex-start;
}

/* Keep "Search: " and query on the same line */
.page-title--search {
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* Allow wrapping on mobile for very long search queries */
  .page-title--search {
    white-space: normal;
  }
}

.page-caption {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
  margin-top: auto;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: left;
  align-self: flex-start;
  opacity: 0.8;
}

/* Breadcrumb Styles */
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 2rem 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.page-breadcrumb__link {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  padding: 8px 12px;
  background-color: var(--color-navy);
}

.page-breadcrumb__link:hover,
.page-breadcrumb__link:focus {
  opacity: 1;
  text-decoration: underline;
  outline: none;
}

.page-breadcrumb__separator {
  color: var(--color-white);
  opacity: 0.7;
  margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-caption {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    min-height: 40vh;
  }
  
  .page-header-background {
    min-height: 40vh;
  }
  
  .page-header-content {
    padding: 1.5rem 0;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-caption {
    font-size: 0.75rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    min-height: 32vh;
  }
  
  .page-header-background {
    min-height: 32vh;
  }
  
  .page-header-content {
    padding: 1rem 0;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .page-caption {
    font-size: 0.7rem;
    padding-bottom: 1rem;
  }
}
