/* =========================================================
   BZ Academy — My Bookings text colour fixes ONLY
   Does not change layout, spacing, columns or module positions.
   Paste after removing the previous large CSS block.
========================================================= */

/* Events Booking Registration History table header text */
body.com_eventbooking.view-history table thead,
body.com_eventbooking.view-history table thead tr,
body.com_eventbooking.view-history table thead th,
body.com_eventbooking.view-history table thead th *,
body.com_eventbooking.view-history table thead a,
body.com_eventbooking.view-history table thead span,
.eb-container table thead,
.eb-container table thead tr,
.eb-container table thead th,
.eb-container table thead th *,
.eb-container table thead a,
.eb-container table thead span,
.eb-task-history table thead,
.eb-task-history table thead tr,
.eb-task-history table thead th,
.eb-task-history table thead th *,
.eb-task-history table thead a,
.eb-task-history table thead span,
#eb-registration-history table thead,
#eb-registration-history table thead tr,
#eb-registration-history table thead th,
#eb-registration-history table thead th *,
#eb-registration-history table thead a,
#eb-registration-history table thead span {
  color: #ffffff !important;
}

/* Keep the table header background black */
body.com_eventbooking.view-history table thead tr,
.eb-container table thead tr,
.eb-task-history table thead tr,
#eb-registration-history table thead tr,
body.com_eventbooking.view-history table thead th,
.eb-container table thead th,
.eb-task-history table thead th,
#eb-registration-history table thead th {
  background: #111214 !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Left black information cards on My Bookings / Account Details.
   This targets text only, not layout. */
body.com_eventbooking.view-history .sp-module h1,
body.com_eventbooking.view-history .sp-module h2,
body.com_eventbooking.view-history .sp-module h3,
body.com_eventbooking.view-history .sp-module .sp-module-title,
body.com_eventbooking.view-history .sppb-addon-title,
body.com_eventbooking.view-history .sppb-addon-content h1,
body.com_eventbooking.view-history .sppb-addon-content h2,
body.com_eventbooking.view-history .sppb-addon-content h3,
body.com_users .sp-module h1,
body.com_users .sp-module h2,
body.com_users .sp-module h3,
body.com_users .sp-module .sp-module-title,
body.com_users .sppb-addon-title,
body.com_users .sppb-addon-content h1,
body.com_users .sppb-addon-content h2,
body.com_users .sppb-addon-content h3 {
  color: #ffffff !important;
}

/* Paragraph text inside dark left information cards */
body.com_eventbooking.view-history .sp-module p,
body.com_eventbooking.view-history .sppb-addon-content p,
body.com_users .sp-module p,
body.com_users .sppb-addon-content p {
  color: rgba(255,255,255,.76) !important;
}

/*
 * BZ Academy â€” iPhone/mobile header and homepage hero fix
 * Version: 1.0
 *
 * Add this block at the END of the active Helix Ultimate custom CSS.
 * Scope: screens up to 991.98px. Desktop layout is not changed.
 */

@media (max-width: 991.98px) {
  /* ---------- Header ---------- */
  #sp-header {
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    z-index: 9999 !important;
  }

  #sp-header .container,
  #sp-header .container-inner {
    width: 100% !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #sp-header .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
  }

  #sp-logo {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 52px) !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #sp-logo .sp-column,
  #sp-logo .logo,
  #sp-logo .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #sp-logo img,
  #sp-logo .logo-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(220px, calc(100vw - 104px)) !important;
    max-height: 38px !important;
    margin: 0 !important;
  }

  #sp-menu {
    flex: 0 0 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
  }

  #sp-menu .sp-column {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 44px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* A global desktop rule currently forces this list to display:flex.
     Restore the intended Helix mobile behaviour. */
  #sp-menu .sp-megamenu-wrapper,
  #sp-menu .sp-megamenu-parent {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  #offcanvas-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
  }

  #offcanvas-toggler .burger-icon {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 28px !important;
    height: 22px !important;
  }

  #offcanvas-toggler .burger-icon > span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    margin: 0 !important;
    background-color: #111 !important;
  }

  /* ---------- Homepage hero ----------
     iOS Safari handles fixed backgrounds poorly. The current "contain"
     setting also leaves most of the tall hero white on a phone. */
  .sp-page-builder .page-content
    #section-id-083054ba-a812-43e5-a341-2e6f44650fcc {
    height: auto !important;
    min-height: calc(100svh - 64px) !important;
    background-color: #080808 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
}

@media (max-width: 480px) {
  #sp-header .container,
  #sp-header .container-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #sp-logo img,
  #sp-logo .logo-image {
    max-width: min(200px, calc(100vw - 94px)) !important;
    max-height: 34px !important;
  }
}

/*
 * BZ Academy â€” Upcoming Courses grid fix v1
 * Scope: homepage module with class .bz-upcoming-module
 * Desktop: 3 equal cards; tablet: 2; mobile: 1.
 */

.bz-upcoming-module .eb-events-grid-items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Restore the Joomla column wrappers. They were being removed by
   display: contents, which made card widths depend on image/content width. */
.bz-upcoming-module .eb-events-grid-items > .eb-events-grid-row-1 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bz-upcoming-module .eb-event-item-grid-default-layout {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.bz-upcoming-module .eb-event-thumb-container,
.bz-upcoming-module .eb-event-thumb-container > a {
  display: block !important;
  width: 100% !important;
}

.bz-upcoming-module img.eb-event-thumb {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Keep registration buttons aligned along the bottom edge. */
.bz-upcoming-module .eb-taskbar {
  margin-top: auto !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .bz-upcoming-module .eb-events-grid-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .bz-upcoming-module .eb-events-grid-items {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .bz-upcoming-module img.eb-event-thumb {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}

/*
 * BZ Academy â€” Upcoming Courses desktop grid fix v2
 * Add this block at the VERY END of the active custom CSS file.
 * It overrides the flex/clearfix rules which move the third course
 * onto a second row.
 */

@media (min-width: 992px) {
  body .bz-upcoming-module .eb-events-grid-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Joomla/Bootstrap clearfix creates extra flex items. */
  body .bz-upcoming-module .eb-events-grid-items::before,
  body .bz-upcoming-module .eb-events-grid-items::after {
    content: none !important;
    display: none !important;
  }

  body .bz-upcoming-module .eb-events-grid-items > .eb-events-grid-row-1 {
    display: contents !important;
  }

  body .bz-upcoming-module .eb-events-grid-items
    > .eb-events-grid-row-1
    > .eb-event-item-grid-default-layout {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
/* EVENT BOOKING - smaller payment icons */

body.com_eventbooking .payment-methods img,
body.com_eventbooking .payment-method img,
body.com_eventbooking .eb-payment-method img,
body.com_eventbooking .radio img,
body.com_eventbooking .form-check img,
body.com_eventbooking label img[src*="paypal"],
body.com_eventbooking label img[src*="stripe"],
body.com_eventbooking label img[src*="PayPal"],
body.com_eventbooking label img[src*="Stripe"] {
    width: auto !important;
    max-width: 220px !important;
    max-height: 70px !important;
    height: auto !important;
    display: inline-block !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* keep radio + icon aligned nicely */
body.com_eventbooking .payment-method label,
body.com_eventbooking .eb-payment-method label,
body.com_eventbooking .radio label,
body.com_eventbooking .form-check label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

/* slightly smaller on mobile */
@media (max-width: 767px) {
    body.com_eventbooking .payment-methods img,
    body.com_eventbooking .payment-method img,
    body.com_eventbooking .eb-payment-method img,
    body.com_eventbooking .radio img,
    body.com_eventbooking .form-check img,
    body.com_eventbooking label img[src*="paypal"],
    body.com_eventbooking label img[src*="stripe"],
    body.com_eventbooking label img[src*="PayPal"],
    body.com_eventbooking label img[src*="Stripe"] {
        max-width: 170px !important;
        max-height: 56px !important;
    }
}
<style>
/* =========================================================
   BZ ACADEMY – RESPONSIVE HEADER BREAKPOINT FIX
   Desktop menu: 1280 px and wider
   Hamburger menu: below 1280 px
========================================================= */

#sp-header .row {
  flex-wrap: nowrap !important;
}

/* TABLET / NARROW LAPTOP */
@media (max-width: 1279.98px) {

  #sp-header .container,
  #sp-header .container-inner {
    width: 100% !important;
    max-width: none !important;
  }

  #sp-header .row {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  #sp-logo {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 52px) !important;
  }

  #sp-menu {
    flex: 0 0 52px !important;
    width: 52px !important;
    max-width: 52px !important;
  }

  #sp-menu .sp-column {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    justify-content: flex-end !important;
  }

  /* Hide desktop navigation */
  #sp-menu .sp-megamenu-wrapper,
  #sp-menu .sp-megamenu-parent {
    display: none !important;
    visibility: hidden !important;
  }

  /* Show hamburger */
  #offcanvas-toggler {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111111 !important;
  }
}

/* FULL DESKTOP */
@media (min-width: 1280px) {

  #sp-menu .sp-megamenu-wrapper,
  #sp-menu .sp-megamenu-parent {
    display: flex !important;
    visibility: visible !important;
  }

  #offcanvas-toggler {
    display: none !important;
  }
}
