/* “Our Solutions” region (title + horizontal tabs below hero) */

.wdi-hero-solutions-region {
  position: relative;
  z-index: 30;
  overflow: visible;
}

.wdi-hero-solutions-heading {
  position: relative;
  z-index: 31;
  padding: 12px 0 4px;
  margin: 0;
  background: linear-gradient(180deg, rgba(247, 244, 235, 0.98) 0%, #f7f4eb 100%);
}

.wdi-hero-solutions-heading__title {
  margin: 0;
  padding: 0;
  color: #0b2342;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
}

.wdi-hero-solutions-band {
  position: relative;
  z-index: 32;
  margin-top: 0;
  padding: 12px 0 48px;
  overflow: visible;
  background: #f7f4eb;
}

.wdi-hero-solutions-band__inner {
  overflow: visible;
}

.wdi-hero-solutions-band__lead {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
  color: #5a6f87;
  font-size: 15px;
  line-height: 1.5;
}

.wdi-hero-solutions-band__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  overflow: visible;
  position: relative;
  z-index: 33;
}

.wdi-hero-solutions-band .faq-line-contet.wdi-solutions-tab {
  position: relative;
  flex: 1 1 140px;
  max-width: 200px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  margin: 0;
  border: 1px solid rgba(11, 35, 66, 0.12);
  border-bottom: 1px solid rgba(11, 35, 66, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 35, 66, 0.08);
  cursor: pointer;
  text-align: center;
  overflow: visible;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.wdi-hero-solutions-band .wdi-solutions-tab:hover,
.wdi-hero-solutions-band .wdi-solutions-tab.is-faq-open {
  border-color: #c9a734;
  box-shadow: 0 14px 36px rgba(11, 35, 66, 0.14);
  transform: translateY(-2px);
  z-index: 40;
}

.wdi-hero-solutions-band .faq-headings {
  width: 100%;
}

.wdi-hero-solutions-band .faq-main-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #0b2342 !important;
}

.wdi-hero-solutions-band .heading-main-sub {
  position: static;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a734;
  line-height: 1.3;
}

.wdi-hero-solutions-band .faq-main-heading__label {
  display: block;
}

.wdi-hero-solutions-band .faq-list {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  min-width: 0;
  overflow: visible;
  z-index: 50;
}

.wdi-hero-solutions-band .icon-arrow-faq {
  display: none !important;
}

.wdi-hero-solutions-band .list-content-block {
  position: absolute;
  left: 50%;
  top: 100%;
  right: auto;
  margin-top: 0;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 2rem));
  z-index: 100021;
}

.wdi-hero-solutions-band .wdi-solutions-tab:hover .list-content-block,
.wdi-hero-solutions-band .wdi-solutions-tab.is-faq-open .list-content-block {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Body-portal flyouts (moved off-tab for z-index) must stay visible on all viewports. */
body > .list-content-block.wdi-faq-flyout--fixed.wdi-faq-flyout--portal {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Touch / coarse pointer: hide in-tab copy so only the body portal shows. */
@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .wdi-hero-solutions-band .list-content-block {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

body.is-faq-flyout-active
  .wdi-hero-solutions-band
  .list-content-block:not(.wdi-faq-flyout--portal) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.wdi-hero-solutions-band .list-content-block.wdi-faq-flyout--fixed,
body > .list-content-block.wdi-faq-flyout--fixed {
  transform: none;
  margin-top: 0 !important;
  z-index: 100000025 !important;
}

body > .list-content-block.wdi-faq-flyout--fixed.wdi-faq-flyout--attached-below {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

body > .list-content-block.wdi-faq-flyout--fixed.wdi-faq-flyout--attached-above {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.wdi-hero-solutions-region:has(.wdi-solutions-tab:hover),
.wdi-hero-solutions-region:has(.wdi-solutions-tab.is-faq-open),
body.is-faq-flyout-active .wdi-hero-solutions-region {
  z-index: 100010;
}

body.is-faq-flyout-active .home-benefits-explainer,
body.is-faq-flyout-active .wdi-foundational-stage {
  pointer-events: none;
}

@media (max-width: 900px) {
  .wdi-hero-solutions-region {
    z-index: 50;
    margin-bottom: 8px;
  }

  .wdi-hero-solutions-heading {
    padding: 16px 0 8px;
  }

  .wdi-hero-solutions-band {
    padding: 8px 0 56px;
    margin-bottom: 12px;
  }

  .wdi-hero-solutions-band__tabs {
    gap: 10px;
  }

  .wdi-hero-solutions-band .wdi-solutions-tab {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
    min-height: 76px;
    padding: 14px 10px;
  }

  .wdi-hero-solutions-band .list-content-block {
    min-width: min(280px, calc(100vw - 2rem));
    max-width: min(320px, calc(100vw - 2rem));
  }
}

@media (max-width: 520px) {
  .wdi-hero-solutions-band {
    padding-bottom: 64px;
  }

  .wdi-hero-solutions-band .wdi-solutions-tab {
    flex: 1 1 100%;
    max-width: none;
  }
}

body.is-faq-flyout-active .wdi-hero-solutions-region {
  z-index: 100010 !important;
}

body.is-faq-flyout-active #page-container,
body.is-faq-flyout-active #main-content {
  overflow: visible !important;
}
