/* ==========================================================================
   PRODUCTS BAND – Horizontal strip below the navbar
   Adapted from omsquare.co-new industries band (layout.css)
   Static background #253858, no dynamic colour swap
   ========================================================================== */

/* ── Band container ── */
#products-band {
  position: fixed;
  top: 90px; /* height of the qsquare desktop navbar */
  left: 0;
  right: 0;
  z-index: 1020; /* below navbar (bootstrap default 1030 for fixed-top) */
  background: #253858;
  transition: top 0.25s ease;
}

/* ── Inner flex row ── */
.products-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  padding: 0 40px;
  ;
}



/* ── Individual item wrapper ── */
.prod-band-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* ── Link styling ── */
.prod-band-link {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.prod-band-link:hover,
.prod-band-link:focus {
  color: #ffffff;
  background: #738AAF;
  text-decoration: none;
}

/* ── Custom tooltip on hover (text set via data-tooltip attribute) ── */
.prod-band-item::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1050;
}

.prod-band-item:hover::after {
  opacity: 1;
}

.prod-band-link.active {
  color: #ffffff;
  background: #738AAF;
}

/* ── Beta pill badge ── */
.band-beta-badge {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 10px;
  font-size: 11px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #F59E0B;
  border: 1.5px solid #F59E0B;
  border-radius: 20px;
  white-space: nowrap;
  /* pointer-events: none; */
}

/* ── Body padding when band is present ── */
body.qs-has-products-band {
  padding-top: 132px !important; /* 90px navbar + 42px band */
}

/* ── Medium screens (992px – 1199px) ── */
@media (min-width: 992px) and (max-width: 1199px) {
  .products-band-inner {
    padding: 0 20px;
    gap: 0;
  }

  .prod-band-link {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ── Hide band on mobile / tablet ── */
@media (max-width: 991.98px) {
  #products-band {
    display: none;
  }

  /* Revert to navbar-only padding */
  body.qs-has-products-band {
    padding-top: 85px !important;
  }
}

/* .prod-dropdown ul {
  display: flex;
  gap: 15px;      
  list-style: none;
  padding: 0;
  margin: 0;
}

.prod-dropdown li {
  white-space: nowrap; 
} */

/* ── Products Band – Dropdown ── */
.prod-band-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.prod-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 670px;
  max-width: 670px;
  background: #f6f9fc;
  border-top: 3px solid #81b0ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1038;
  border-radius: 0 0 8px 8px;
}

/* Tabs 7+ (CPM, LOG) are near the right edge and would overflow.
   nth-child(n+7) matches the 7th child onwards, so only CPM and LOG
   (which have prod-has-dropdown) get the right-to-left dropdown. */
.prod-band-item.prod-has-dropdown:nth-child(n+7) .prod-dropdown {
  left: auto;
  right: 0;
}

/* Hover bridge — invisible area between band link and dropdown panel */
.prod-has-dropdown::after {
  content: '';
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 6px;
  /* Reset tooltip styles so the bridge is invisible */
  padding: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}

.prod-has-dropdown:hover::after {
  display: block;
}

.prod-has-dropdown:hover .prod-dropdown {
  display: block;
}

/* Keep the band link highlighted consistently while any dropdown is open */
.prod-band-link:hover,
.prod-has-dropdown:hover > .prod-band-link {
  color: #ffffff !important;
  background: #738AAF !important;
}

/* ── Dropdown tabs row ── */
.prod-dropdown-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f6f9fc;
  position: relative;
}

.prod-dropdown-tab {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.prod-dropdown-tab.prod-tab-has-sub {
  padding: 10px 16px;
}

.prod-dropdown-tab:hover,
.prod-dropdown-tab:focus {
  color: #253858;
  background: #eef3fa;
  text-decoration: none;
}

.prod-arrow-icon {
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.prod-sub-dropdown:hover .prod-arrow-icon {
  transform: rotate(180deg);
}

/* ── Sub-dropdown ── */
.prod-sub-dropdown {
  position: static;
  flex: 1;
  display: flex;
}
.prod-sub-dropdown > a {
  width: 100%;
}

/* ── Dropdown content (grid) ── */
.prod-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px 20px 20px;
  background: #f6f9fc;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  z-index: 1037;
}

.prod-dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.prod-sub-dropdown:hover .prod-dropdown-content {
  display: block;
}

.prod-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  position: relative;
}

.prod-dropdown-grid::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: #e0e0e0;
  pointer-events: none;
}

.prod-dropdown-item {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
  line-height: 1.4;
  text-align: left;
}

.prod-dropdown-item:hover,
.prod-dropdown-item:focus {
  background: #e8eef6;
  color: #253858;
  text-decoration: none;
}

[id^="card"] {
    scroll-margin-top: 250px; /* adjust value to match your navbar height */
}
