/* Custom overrides — do not edit the main Webflow CSS file. */
.popup[hidden] {
  display: none !important;
}

.cms-richtext-spacer {
  min-height: 1em;
}

/* Sector pages — replace Webflow "Background Image" placeholder with CMS hero */
.sector-top {
  background-color: var(--dark-blue, #0f406e);
  background-image: linear-gradient(rgba(0, 0, 0, 0.71), rgba(0, 0, 0, 0.71)),
    var(--sector-hero-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Our Projects grid — keep card captions short */
.project-page-wrapper .blogtxt .heading-301.main {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-page-wrapper .project-card-meta {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Company News — replace Webflow "Background Image" placeholder with CMS images */
.collection-item-2:not([style*='background-image']) {
  background-image: none;
  background-color: var(--dark-blue, #0f406e);
}

.article-cms-grid .collection-item-3 {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100%;
}

/* Hero pages — nav lived inside Webflow heroes; overlay global nav instead of stacking */
.navigation-2:has(+ .h-s-hero),
.navigation-2:has(+ .section-10),
.navigation-2:has(+ .section-27),
.navigation-2:has(+ .media---hero),
.navigation-2:has(+ .hero-home) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
}

/* Collapse empty nav slots left in exported hero markup */
.h-s-hero > .div-block-529:not(:has(.navigation-2)),
.sector-overlay .div-block-514:not(:has(.navigation-2)),
.hero-home .div-block-521:not(:has(.navigation-2)),
.media---hero > .navigation-wrap:not(:has(.navigation-2)) {
  display: none;
}

/* About Us — dark link text when the white navbar backdrop is active */
@media screen and (max-width: 991px) {
  html[data-wf-page='67eeaca6513391693abd6997'] .navigation-link-2:not(.gradient),
  html[data-wf-page='67eeaca6513391693abd6997'] .hover-link.white,
  html[data-wf-page='67eeaca6513391693abd6997'] .nav-dropdown-icon {
    color: var(--dark-blue);
  }
}
