/* =========================
   On-Demand Tab Menu (Block CSS)
   - No icons before labels
   - No badge
========================= */

.ast-container { padding: 0; }

.on-demand-tab-menu p:empty { display: none; }
.on-demand-tab-menu p { margin: 0; }

.conference-top-content.on-demand-tab-menu {
  z-index: 9 !important;
  position: relative;
  margin-top: -65px;
  padding: 0;
}

/* No badge = single full-width bar */
.conference-top-content.on-demand-tab-menu > .container {
  display: block;
}

/* Purple bar wrapper */
.conference-top-content.on-demand-tab-menu .conference-top-content-tabs {
  position: relative;
  background: url(/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg) center / cover no-repeat !important;
  padding: 20px 0;
}

/* Inner container inside purple bar */
.conference-top-content.on-demand-tab-menu .conference-top-content-tabs .container {
  margin: 0 auto;
  max-width: 90%;
  display: block;
}

/* Main layout: left tabs + right CTAs */
.on-demand-tab-menu .tabs {
  display: grid;
  grid-template-columns: minmax(391px, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: 100%;
}

/* Left: tab links */
.on-demand-tab-menu .tab-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Tab buttons (generated by JS) */
.on-demand-tab-menu .tablinks {
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;

  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  font-size: 16px;
  white-space: nowrap;

  position: relative;
  text-decoration: none;
  outline: none;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

.on-demand-tab-menu .tablinks::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  background: #fff;
  transition: width 0.3s ease;
}

.on-demand-tab-menu .tablinks.is-active::before,
.on-demand-tab-menu .tablinks:active::before {
  width: 100%;
}

.on-demand-tab-menu button.tablinks:hover {
  background: none;
}

/* Right: CTA group */
.on-demand-tab-menu .tab-buttons {
  display: flex;
  align-items: center;
  gap: 18px;

  border-left: 3px solid #fff;
  padding-left: 18px;
  padding-right: 34px;

  flex: 0 0 auto;
  white-space: nowrap;
}

/* label text to the LEFT of each button */
.on-demand-tab-menu .tab-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.on-demand-tab-menu .cta-label {
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  cursor: default;
  white-space: nowrap;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}


/* Label only (no icon) */
.on-demand-tab-menu .custom-tablinks {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: default;
  white-space: nowrap;
}

/* CTA button */
.on-demand-tab-menu .tab-section a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background: #fff;
  color: #52287e;

  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  padding: 10px 16px;
  border-radius: 3px;
  text-decoration: none;

  flex: 0 0 auto;
  white-space: nowrap;
}

.on-demand-tab-menu .tab-section a.button:hover {
  background: #fff;
  color: #52287e;
}

.on-demand-tab-menu .tab-section a.button svg {
  width: 25px;
  height: 25px;
  display: block;
  margin-left: 6px;
}

.on-demand-tab-menu .tab-section a.button svg path { fill: #52287e; }


/* =========================================================
   1100–1600: tabs stay one row, each tab wraps inside itself
========================================================= */
@media (min-width: 1340px) and (max-width: 1600px) {

  .on-demand-tab-menu .tabs {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    justify-content: space-between;
  }

  .on-demand-tab-menu .tab-row {
    flex-wrap: nowrap !important;
    gap: 18px !important;
    min-width: 0 !important;
  }

  .on-demand-tab-menu .tablinks {
    display: inline-block;
    white-space: normal !important;
    text-align: left;
    line-height: 1.15;
    max-width: 102px;
    font-size: 13px;
  }

  .on-demand-tab-menu .tablinks::before { bottom: -8px; }

  .on-demand-tab-menu .tab-buttons {
    width: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    padding-right: 22px !important;
  }
}


/* =========================================================
   780–1339: tabs can wrap, CTAs stay right
========================================================= */
@media (max-width: 1200px) and (min-width: 780px) {

  .on-demand-tab-menu .tabs {
        display: flex;
        flex-direction: column;
        gap: 24px;
  }

  .on-demand-tab-menu .tab-row {
    row-gap: 10px;
    column-gap: 16px;
    width: 100%;
    justify-content:space-between;
  }

  .on-demand-tab-menu .tab-buttons {
    width: 100%;
    border-left: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: space-between;
    gap: 12px;
    flex-direction: row;
    padding: 0;
  }

  .on-demand-tab-menu .tablinks,
  .on-demand-tab-menu .custom-tablinks { font-size: 13px; }

  .on-demand-tab-menu .tab-section a.button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .on-demand-tab-menu .tab-section a.button svg {
    width: 22px;
    height: 22px;
  }
}


/* =========================================================
   <=768: stack: tabs top, CTAs stacked full width
========================================================= */
@media (max-width: 768px) {
  .conference-top-content.on-demand-tab-menu { margin-top: 0; }

  .on-demand-tab-menu .tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .on-demand-tab-menu .tab-row {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }

  .on-demand-tab-menu .tablinks { font-size: 13px; }

  .on-demand-tab-menu .tab-buttons {
    width: 100%;
    border-left: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .on-demand-tab-menu .tab-section {
    width: 100%;
    justify-content: space-between;
  }

  .on-demand-tab-menu .tab-section a.button {
    width: auto;
    justify-content: space-between;
  }
}
