/*
  QBF BIO ADVISORY — Minimal CSS
  Global Styles handles colours.
  This only overrides what Global Styles cannot reach.
*/

/* White body background */
body { background-color: #ffffff !important; }

/* Heading backgrounds: remove the ghost white box from Global Styles
   BUT preserve headings that have an explicit inline background-color */
h1:not([style*="background-color"]),
h2:not([style*="background-color"]),
h3:not([style*="background-color"]),
h4:not([style*="background-color"]),
h5:not([style*="background-color"]),
h6:not([style*="background-color"]),
.wp-block-heading:not([style*="background-color"]),
.wp-block-post-title:not([style*="background-color"]) {
  background-color: transparent !important;
}

/* Headings INSIDE coloured boxes → white text */
.has-background h1, .has-background h2, .has-background h3,
.has-background h4, .has-background h5, .has-background h6,
.has-background .wp-block-heading {
  color: #ffffff !important;
  background-color: transparent !important;
}

/* Cover / dark section headings → white text */
.wp-block-cover:not(.is-light) h1,
.wp-block-cover:not(.is-light) h2,
.wp-block-cover:not(.is-light) h3,
.wp-block-cover:not(.is-light) .wp-block-heading,
.wp-block-cover:not(.is-light) p {
  color: #ffffff !important;
}

/* Banner wrapper: the parent div has #f8f9fa — override it */
[style*="background-color:#f8f9fa"],
[style*="background-color: #f8f9fa"] {
  background-color: transparent !important;
}

/* Buttons: dark green fill */
.wp-block-button__link {
  background-color: #1B4332 !important;
  color: #ffffff !important;
  border-color: #1B4332 !important;
}
.wp-block-button__link:hover {
  background-color: #7A9E84 !important;
  border-color: #7A9E84 !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: #1B4332 !important;
  border-color: #1B4332 !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #1B4332 !important;
  color: #ffffff !important;
}

/* Navigation: dark green links */
.wp-block-navigation a,
.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item a {
  color: #1B4332 !important;
  opacity: 1 !important;
}
.wp-block-navigation a:hover {
  color: #7A9E84 !important;
}

/* Headings on dark bg: force white text */
h1.has-base-color, h2.has-base-color, h3.has-base-color,
h1.has-white-color, h2.has-white-color, h3.has-white-color,
.has-text-color.has-base-color {
  color: #ffffff !important;
}

/* Footer */
.site-footer, footer {
  background-color: #1B4332 !important;
  color: #ffffff !important;
}
.site-footer a, footer a { color: #A8BBA8 !important; }

/* ===== INVESTORS PAGE — FULL BLEED VIDEO HERO ===== */
.page-id-177 .entry-content > .wp-block-html:first-child {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}
.page-id-177 .entry-content > .wp-block-html + .wp-block-html section,
.page-id-177 .entry-content > .wp-block-html section {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}