/* =========================
   Conference Tab Menu
   (Block CSS) — FINAL CLEAN
   Breakpoints:
   ≥1400  : single row + badge
   1100-1399: slightly tighter, badge
   780-1099 : badge hidden, CTAs stay right, tabs can wrap
   480-779  : tabs top, CTAs row below (side-by-side)
   <480     : tabs top, CTAs stacked (full width)
========================= */

/* Optional Astra tweak (keep if needed globally) */
.ast-container { padding: 0; }

.conference-tab-menu p:empty { display: none; }


/* Block spacing */
.conference-top-content.conference-tab-menu {
  margin-top: -65px;
  padding: 0;
}

/* Outer row: purple bar + badge */
.conference-top-content.conference-tab-menu > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Purple bar wrapper */
.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;

  flex: 1 1 auto;
  min-width: 0;
}

/* Inner container inside purple bar */
.conference-top-content-tabs .container {
  margin: 0 auto;
  max-width: 90%; /* gives room on 1400+ */
  display: block;
}

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

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

/* Tab buttons */
.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;
}

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

.tablinks.active::before,
.tablinks:active::before {
  width: 100%;
}

button.tablinks:hover {
  background: none;
}


/* Right: CTA group */
.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;
}

.tab-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tab-section p {
  margin-bottom: 0;
}

.icon-and-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.pricing-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.custom-tablinks {
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: default;
  white-space: nowrap;
  font-family: Niveau-Grotesk, niveau-grotesk, sans-serif !important;
}

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

  background: #fff;
  color: #52287e;

  font-size: 13px;
  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;
}

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

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

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

/* Badge */
.conference-badge.desktop {
  flex: 0 0 auto;
  max-width: 261px;
  position: relative;
  left: -60px;
}

.conference-badge-img {
  width: 100%;
  height: 114px;
  display: block;
}

.conference-badge.mobile { display: none; }

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

  /* undo your <=1250 stacking if it kicks in */
  .conference-tab-menu .tabs {
    display: flex !important;
    grid-template-columns: minmax(520px, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    justify-content: space-between;
  }

  /* keep the tab items on ONE row */
  .conference-tab-menu .tab-row {
    flex-wrap: nowrap !important;
    gap: 18px !important;
    min-width: 0 !important;
  }

  /* ✅ allow wrapping INSIDE each tab item */
  .conference-tab-menu .tablinks {
    display: inline-block;
    white-space: normal !important;   /* <-- key */
    text-align: left;
    line-height: 1.15;
    max-width: 102px;                /* tune this to match screenshot */
    font-size:13px;
  }

  /* keep underline aligned nicely for 2-line labels */
  .conference-tab-menu .tablinks::before {
    bottom: -8px;
  }

  /* keep CTAs pinned right */
  .conference-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;
  }
}

@media (min-width: 1500px) {
  .conference-tab-menu .tablinks {
    max-width: 100%;
  }
}

/* =========================================================
   780–1099: badge hidden, tabs can wrap, CTAs stay right
========================================================= */
@media (max-width: 1340px) and (min-width: 780px) {
  .conference-badge.desktop { display: none; }

  .tabs {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .tab-row {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 16px;
  }

  .tab-buttons {
    width: auto;
    border-left: 3px solid #fff;
    padding-left: 14px;
    padding-right: 16px;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .tablinks,
  .custom-tablinks { font-size: 13px; }

  .pricing-icon { width: 20px; height: 20px; }

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

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



/* =========================================================
   <480: stack: tabs top, CTAs stacked (full width buttons)
========================================================= */
@media (max-width: 1079px) {
  .conference-top-content.conference-tab-menu { margin-top: 0; }
  .conference-badge.desktop { display: none; }

  .tabs .cart-btn {
    width: 200px;
  }

  .tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tablinks.active::before, .tablinks:active::before {
    width: 20%;
  }

  .tab-row {
    width: 100%;
    gap: 9px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    align-items: end;
    justify-content: space-between;
  }

  .tablinks {
    font-size: 12px;
    white-space: normal;
    text-align:left;
    letter-spacing: 0;
  }

  .tab-buttons {
    width: 100%;
    border-left: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
  }

  .tab-section {
    width: auto;
    justify-content: space-between;
  }

  .tab-section a.button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
.tab-buttons {
    width: 100%;
    border-left: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .tab-section {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .tabs .cart-btn {
      width: 150px;
    }
}
 
