/* Overlay */
.vga-hero-overlay {
  width: 100%;
  height: 100%;
  /* max-height: 300px; */
  background-color: var(--color-dark-blue);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Content Wrappers */
.vga-hero-content-wrapper {
  position: relative;
  z-index: 1;
  height: 100%;
}

.vga-hero-main-content {
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 4rem);
  padding: 0 2rem 2rem 2rem;
  position: absolute;
  bottom: 35px;
  left: 2rem;
  right: 2rem;
}

/* Breadcrumb */
.vga-hero-breadcrumb {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  display: block;
  color: var(--color-white);
  font-family: var(--font-sans);
  margin-bottom: 6px;
  line-height: 1.4;  
  letter-spacing: 0.025rem;
}
.vga-hero-breadcrumb .breadcrumb-link {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}
.vga-hero-breadcrumb .breadcrumb-link:hover {
  color: #b6e0e3;
  text-decoration: underline;
}
.vga-hero-breadcrumb .breadcrumb-current {
  color: var(--color-white);
  font-weight: 500;
}
.vga-hero-breadcrumb .breadcrumb-sep {
  margin: 0 0.5em;
  opacity: 0.7;
}

/* Page Title */
.vga-hero-main-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 5.75vw, 3.75rem);
  /* the weight below overrides Libre Baskerville font weights unique to views */
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  hyphens: none;
}

/* Front Page Hero */
.vga-hero-front {
  height: 80vh;
  width: 100vw;
  background-size: cover;
  background-position: center bottom;
  position: relative;
}

.vga-hero-front .vga-hero-overlay {
  max-height: none;
}
.vga-hero-front .vga-hero-main-content {
  margin-top: 25vh;
  bottom: 30%;
  left: 2rem;
  right: 2rem;
  width: calc(100% - 4rem);
}
.vga-hero-front .vga-hero-main-content h1 {
  font-size: 3.5rem;
}

/* Normal Page Hero */
.vga-hero-page {
  height: 300px;
  width: 100vw;
  background-size: cover;
  /* the background position below overrides custom image placements unique to HOD views */
  /* background-position: center bottom; */
  position: relative;
}
.vga-hero-page .vga-hero-main-content {
  margin: 0 auto;
  padding: 0 0 0 3rem;  
}

/* Mobile */
@media (max-width: 1080px) {
  /* Front Page Hero */
  .vga-hero-front {
    height: 100vh;
    padding-top: 10px;
  }
  .vga-hero-front .vga-hero-main-content{
    margin:0;
    top: 30%;
  }
  .vga-hero-front .vga-hero-main-content {
    bottom: 80%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .vga-hero-page .vga-hero-content-wrapper {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .vga-hero-page .vga-hero-main-content {
    margin: 0;
    padding:0;
    bottom: 35px;
    /* padding: 0 1rem 1.5rem 1rem; */
  }

  /* Breadcrumb */
  .vga-hero-breadcrumb {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }
  .vga-hero-breadcrumb .breadcrumb-link {
    color: var(--color-white);
    text-decoration: none;
  }
  .vga-hero-breadcrumb .breadcrumb-link:hover {
    color: #b6e0e3;
    text-decoration: underline;
  }
  .vga-hero-breadcrumb .breadcrumb-current {
    color: var(--color-white);
    font-weight: 500;
  }

  /* Page Title */
  .vga-hero-page .vga-hero-main-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin: 0;
    line-height: 1.2;
  }
  .vga-hero-front .vga-hero-main-content h1 {
    font-size: clamp(2.25rem, 7vw, 2.875rem);
    line-height: 1.4;
  }
  
  /* Mobile Quick Links within Hero */
  .vga-quick-links-mobile {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .vga-quick-links-mobile .vga-quick-links {
    width: 100%;
  }
}

/* ===================================
   ZOOM LEVEL RESPONSIVE STYLES
   =================================== */

/* 125% Zoom */
@media screen and (min-resolution: 1.25dppx) {
  .vga-hero-page .vga-hero-main-content h1 {
    font-size: clamp(3rem, 5.5vw, 3.5rem);
  }
  .vga-hero-breadcrumb {
    font-size: clamp(1.1rem, 2.7vw, 1.4rem);
  }
  .vga-hero-main-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0 auto 0 5rem;
  }
}

/* 150% Zoom */
@media screen and (min-resolution: 1.5dppx) {
  .vga-hero-page .vga-hero-main-content h1 {
    font-size: clamp(2.75rem, 5.25vw, 3.25rem);
  }
  .vga-hero-breadcrumb {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.1rem;
  }
  .vga-hero-main-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin: 0 auto 0 5rem;
  }
}

/* 175% Zoom */
@media screen and (min-resolution: 1.75dppx) {
  .vga-hero-page .vga-hero-main-content h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
  }
  .vga-hero-breadcrumb {
    font-size: clamp(0.95rem, 2.3vw, 1.2rem);
    margin-bottom: 0.05rem;
  }
  .vga-hero-main-content {
    padding: 0 1rem 0 1rem;
    margin: 0 auto 0 5rem;
  }
}

/* 200% Zoom */
@media screen and (min-resolution: 2dppx) {
  .vga-hero-page .vga-hero-main-content h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }
  .vga-hero-breadcrumb {
    font-size: clamp(0.9rem, 2.1vw, 1.1rem);
    margin-bottom: 6px;
  }
  .vga-hero-main-content {
    padding: 0;
    margin: 0 auto 0 5rem;
    left: 1.5rem;
  }
}

/* Additional zoom level support for very high DPI displays */
@media screen and (min-resolution: 2.5dppx) {
  .vga-hero-page .vga-hero-main-content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }
  .vga-hero-breadcrumb {
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 0;
  }
  .vga-hero-main-content {
    padding: 0 0.5rem 0 0.5rem;
    margin: 0 auto 0 5rem;
  }
}

/* Ensure minimum readable sizes across all zoom levels */
@media screen and (max-resolution: 0.99dppx) {
  .vga-hero-main-content h1 {
    font-size: clamp(4.5rem, 7vw, 5rem);
  }
  .vga-hero-breadcrumb {
    font-size: clamp(0.875rem, 2vw, 1.1rem);
  }
}
