/* Right align the primary menu */
.ast-primary-header-bar .main-header-bar-navigation {
    display: flex;
    justify-content: flex-end;
}

.hover-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: #fff;
}

/* Front-facing content */
.hover-card .uagb-ifb-content {
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
}

/* Back-side content that appears on hover */
.hover-card .hover-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  background: #fff;
  color: #000;
  z-index: 2;
  padding: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: normal;
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

/* Hide common tooltip classes */
.tooltip,
.image-tooltip,
.wp-image-tooltip {
    display: none !important;
}

/* Prevent pointer events that might trigger tooltips */
img {
    pointer-events: none;
}

/* Then re-enable clicks if needed */
a img {
    pointer-events: auto;
}

/* Hover behavior */
.hover-card:hover .uagb-ifb-content {
  opacity: 0;
}

.hover-card:hover .hover-content {
  opacity: 1;
  pointer-events: auto;
}


html, body {
  overflow-x: hidden;
}



/* Make the header sticky container the positioning context */
.ast-desktop-header {
    position: relative !important;
}
.main-header-bar-wrap,
.ast-builder-grid-row-container,
.main-header-bar-navigation {
    overflow: visible !important;
}
/* Target the Industries parent */
#menu-item-4070 {
    position: static !important;
}
/* Show dropdown on hover of parent OR dropdown itself */
#menu-item-4070:hover .sub-menu,
#menu-item-4070 .sub-menu:hover {
    display: grid !important;
}
/* Blur only main content area when dropdown is open */
body:has(#menu-item-4070:hover) .site-content,
body:has(#menu-item-4070 .sub-menu:hover) .site-content {
    filter: blur(8px);
    transition: filter 0.3s ease;
}
/* Full width dropdown - HIDDEN BY DEFAULT */
#menu-item-4070 .sub-menu {
    display: none !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 150px;
    row-gap: 0;
    padding: 70px 15% 80px 15%;
    position: fixed !important;
    top: 100px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #600000 !important;
    z-index: 999;
    margin-top: 0 !important;
}
/* Remove the hover bridge from the sub-menu (this is what's locking other items) */
#menu-item-4070 .sub-menu::after {
    display: none !important;
}

/* Add the bridge to the parent li instead — same pattern as Stitch & Snare */
#menu-item-4070::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    pointer-events: auto;
    z-index: 99999;
    display: none;
}

#menu-item-4070:hover::after {
    display: block;
}
/* INDUSTRIES header */
#menu-item-4070 .sub-menu::before {
    content: "INDUSTRIES";
    position: absolute;
    top: 20px;
    left: 16.25%;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #E31E24;
}
/* Menu items */
#menu-item-4070 .sub-menu li {
    margin: 0;
    list-style: none;
    border-bottom: none !important;
}
#menu-item-4070 .sub-menu li a {
    display: block;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}
#menu-item-4070 .sub-menu li a:hover {
    color: #E31E24 !important;
}
/* Highlight current page in submenu - RED */
#menu-item-4070 .sub-menu li.current-menu-item a,
#menu-item-4070 .sub-menu li.current_page_item a {
    color: #E31E24 !important;
}


/* Highlight Industries parent when on a child page - GREY */
body:not(.home) #menu-item-4070.current-menu-ancestor > a,
body:not(.home) #menu-item-4070.current-menu-parent > a {
    color: #AAAAAA !important;
}



.uagb-block-07c8bcc3 .uagb-container-inner-blocks-wrap {
    max-width: 100% !important;
    padding: 24px !important;
}



@media (max-width: 768px) {
    .uagb-block-07c8bcc3 .uagb-container-inner-blocks-wrap {
        padding: 0 !important;
    }

    .djb-detail-tags {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .djb-detail-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .djb-apply-btn {
        width: 100%;
        justify-content: center;
    }

    .djb-wrapper {
        border-radius: 0;
    }

    .djb-detail {
        padding: 24px 16px;
    }
}




.djb-search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.djb-controls {
    background: rgba(255, 255, 255, 0.03) !important;
}

.djb-apply-btn {
    border-radius: 30px !important;
}

.djb-share-btn {
    border-radius: 30px !important;
}

.djb-card-title {
    font-size: 20px !important;
}

.djb-location,
.djb-card-date {
    font-size: 16px !important;
}

.djb-detail-title {
    font-size: 38px !important;
}

.djb-detail-body {
    font-size: 18px !important;
}

.djb-detail-tag {
    font-size: 16px !important;
}


.djb-modal-box {
    max-width: 1100px !important;
}

.djb-modal-body {
    overflow: hidden;
}

.djb-modal-body iframe {
    margin-top: -480px;
    height: calc(100% + 680px);
    margin-bottom: -200px;
}

.djb-modal-box {
    height: 75vh !important;
}

.djb-modal-body iframe {
    margin-top: -430px !important;
    height: calc(100% + 430px) !important;
}

.djb-modal-body iframe {
    margin-top: -500px !important;
    height: calc(100% + 500px) !important;
}