/**
 * Header & Footer Styles
 * Cleaned + updated to work with Astra sticky header
 *
 * Notes:
 * - Removed conflicting global `.site-header { position: sticky; }`
 * - Scoped header layout rules to #masthead and #ast-fixed-header
 * - Preserved footer styles and responsive structure
 *
 * @package SBHPP_2026_REBUILD
 */

/* ========================================
   HEADER STYLES
   ======================================== */

/* ----------------------------------------
   Header width / row constraints
----------------------------------------- */

/* Above header constrained */
.ast-above-header-wrap {
  max-width: 90%;
  margin: 0 auto;
}

/* Main desktop header constrained */
.ast-primary-header-bar {
  max-width: 90%;
  margin: 0 auto;
}

/* Fixed/sticky header rows constrained */
#ast-fixed-header .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item {
  max-width: 100% !important;
}

#ast-fixed-header .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center {
  max-width: 90%;
  margin: 0 auto;
}

#ast-fixed-header #mega-menu-wrap-primary #mega-menu-primary {
    gap: 30px;
    justify-content:space-between
  }

/* Generic builder rows */
.ast-builder-grid-row {
  width: 100%;
}

/* Above header row constraints */
.ast-above-header-wrap .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center {
  max-width: 100%;
  margin: 0 auto;
}

/* Primary header wrap full-width, inner row constrained above */
.site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
  max-width: 100% !important;
}

.ast-main-header-wrap .site-header .ast-container {
  max-width: 100% !important;
}

@media (min-width: 1201px) {
  .ast-container {
    max-width: 100% !important;
  }
}

/* ----------------------------------------
   IMPORTANT: Let Astra control sticky logic
----------------------------------------- */

#masthead,
#ast-fixed-header {
  width: 100%;
  
}

#masthead {
  z-index: 1000;
}

#ast-fixed-header {
  z-index: 1001;
}

#ast-fixed-header .ast-builder-grid-row {
  padding: 10px 0;
}

#ast-fixed-header .dash-ast-custom-button {
  background: #52287E;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
}


#ast-fixed-header #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item:first-of-type {
    display: none;
  }

@media (max-width: 1200px) {
 
}

@media (max-width: 1610px) {
  #ast-fixed-header #mega-menu-wrap-primary #mega-menu-primary {
    gap: 10px;
    justify-content:space-between
  }
}



@media (max-width: 1460px) {
  #ast-fixed-header #mega-menu-wrap-primary #mega-menu-primary {
    gap: 5px;
    justify-content:space-between
  }

  #ast-fixed-header #mega-menu-wrap-primary #mega-menu-primary li a {
    font-size: 12px !important;
  }
  #ast-fixed-header .ast-builder-grid-row {
    grid-column-gap: 10px;
  }
}


@media (max-width: 1260px) {
  #ast-fixed-header #mega-menu-wrap-primary #mega-menu-primary li a {
    font-size: 12px !important;
  }
}


/* ----------------------------------------
   Shared desktop/fixed header layout
----------------------------------------- */

#masthead .ast-container,
#ast-fixed-header .ast-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
}

/* Tighten spacing between Dashboard button and cart */
#masthead .site-header-primary-section-right,
#ast-fixed-header .site-header-primary-section-right {
  display: flex;
  justify-content: flex-end;
  gap: 6px !important;
}

/* Remove extra Astra margins */
#masthead .ast-header-html-2,
#ast-fixed-header .ast-header-html-2 {
  margin-right: 0;
  padding-right: 0;
}

#masthead .site-header-primary-section-right > *,
#ast-fixed-header .site-header-primary-section-right > * {
  margin-right: 0 !important;
}

/* Stop header HTML area from stretching */
#masthead .ast-header-html-2,
#masthead .ast-header-html-2 .ast-header-html,
#masthead .ast-header-html-2 .ast-builder-html-element,
#ast-fixed-header .ast-header-html-2,
#ast-fixed-header .ast-header-html-2 .ast-header-html,
#ast-fixed-header .ast-header-html-2 .ast-builder-html-element {
  flex: 0 0 auto !important;
  width: auto !important;
}

#masthead .ast-header-html-2,
#ast-fixed-header .ast-header-html-2 {
  flex-grow: 0 !important;
}

#masthead .site-header-primary-section-right > .ast-builder-layout-element,
#ast-fixed-header .site-header-primary-section-right > .ast-builder-layout-element {
  flex: 0 0 auto !important;
}

/* Prevent HTML wrapper stretching */
#masthead .site-header-primary-section-right .ast-header-html-2.ast-builder-layout-element,
#ast-fixed-header .site-header-primary-section-right .ast-header-html-2.ast-builder-layout-element {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

#masthead .site-header-primary-section-right .ast-header-html-2 .ast-header-html,
#masthead .site-header-primary-section-right .ast-header-html-2 .ast-builder-html-element,
#masthead .site-header-primary-section-right .ast-header-html-2 #buttonContainer,
#ast-fixed-header .site-header-primary-section-right .ast-header-html-2 .ast-header-html,
#ast-fixed-header .site-header-primary-section-right .ast-header-html-2 .ast-builder-html-element,
#ast-fixed-header .site-header-primary-section-right .ast-header-html-2 #buttonContainer {
  width: auto !important;
}

/* Kill extra width on Astra HTML wrappers */
#masthead .ast-header-html-2 .ast-header-html.inner-link-style-,
#masthead .ast-header-html-2 .ast-header-html.inner-link-style- .ast-builder-html-element,
#masthead .ast-header-html-2 .ast-header-html.inner-link-style- #buttonContainer,
#ast-fixed-header .ast-header-html-2 .ast-header-html.inner-link-style-,
#ast-fixed-header .ast-header-html-2 .ast-header-html.inner-link-style- .ast-builder-html-element,
#ast-fixed-header .ast-header-html-2 .ast-header-html.inner-link-style- #buttonContainer {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: fit-content !important;
}

/* Menu base */
.ast-builder-menu {
  margin: 0;
  padding: 0;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.custom-logo-link img {
  max-height: 60px;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* Transparent header cart colors */
.ast-theme-transparent-header .ast-menu-cart-outline .ast-cart-menu-wrap .count,
.ast-theme-transparent-header .ast-menu-cart-outline .ast-addon-cart-wrap {
  color: #fff !important;
}

body.ast-theme-transparent-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after {
  background-color: #fff;
  color: #52287E;
}

/* Header widget area */
.header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
  display: flex !important;
  margin: 0;
  padding: 0;
}

.site-header-above-section-right.site-header-section.ast-flex.ast-grid-right-section {
  flex-direction: row-reverse;
  justify-content: end;
  gap: 40px;
}

/* Desktop icon color tweaks */
@media (min-width: 1200px) {
 

  body.ast-theme-transparent-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after {
    color: #52287e;
    background-color: white;
  }
   /* Hide in regular header */
  #masthead .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
    display: none !important;
  }

  /* Show in sticky header */
  #ast-fixed-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
    display: block !important;
  }
}

/* ----------------------------------------
   Mobile header / breakpoint behavior
----------------------------------------- */

.ast-mobile-menu-buttons {
  display: none;
}

@media (max-width: 1200px) {
  .main-navigation ul {
    display: none;
  }

  .ast-mobile-menu-buttons {
    display: block;
  }

  #masthead .ast-container,
  #ast-fixed-header .ast-container {
    padding: 1rem;
  }

  /* Keep Astra mobile header visible */
  #ast-mobile-header {
    display: block !important;
  }
  
  button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-minimal {
    display: flex !important;
  }

  /* Do NOT globally hide all desktop header markup here */
}



/* ----------------------------------------
   Woo / cart drawer / mobile drawer
----------------------------------------- */

/* Astra cart drawer layout */
#astra-mobile-cart-drawer {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh;
}

#astra-mobile-cart-drawer .astra-cart-drawer-header {
  flex: 0 0 auto;
}

#astra-mobile-cart-drawer .astra-cart-drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#astra-mobile-cart-drawer .widget_shopping_cart_content {
  height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  justify-content: space-between;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__total,
#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Never allow sideways overflow */
html,
body {
  overflow-x: hidden !important;
  width: 100%;
}

/* Drawer overlay should not expand layout */
#ast-mobile-popup-wrapper,
#ast-mobile-popup,
.sb-mobile-menu,
#sb-mobile-menu {
  position: fixed !important;
}

#ast-mobile-popup {
  right: 0 !important;
  left: auto !important;
  width: min(420px, 100%) !important;
  max-width: 100% !important;
  height: 100dvh !important;
}

.ast-mobile-popup-overlay,
#ast-mobile-popup-wrapper .ast-mobile-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
}

.astra-cart-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  height: 100vh !important;
  z-index: 999999 !important;
}

/* Woo page desktop header padding tweak */
.woocommerce-page div#ast-desktop-header {
  padding-bottom: 25px !important;
}

/* ----------------------------------------
   Mega menu tweaks
----------------------------------------- */

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item > a.mega-menu-link {
  white-space: normal !important;
  line-height: 1.15;
}

#mega-menu-wrap-primary #mega-menu-primary .mega-menu-row,
#mega-menu-wrap-primary #mega-menu-primary .mega-menu-column {
  display: flex;
  flex-wrap: wrap;
}

#mega-menu-wrap-primary #mega-menu-primary .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
  width: 100%;
}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item {
  margin-bottom: 10px;
}

#mega-menu-wrap-primary #mega-menu-primary .mega-menu-row > .mega-menu-column:not(:first-child) {
  transform: translateX(-20px);
}

/* Blog header */
.blog-header {
  padding: 200px 0 40px !important;
}

@media (max-width: 768px) {
  .blog-header {
    padding: 100px 0 40px !important;
  }
}

/* ========================================
   ABOVE / PRIMARY / BELOW FOOTER CONSTRAINTS
   ======================================== */

.site-above-footer-wrap[data-section="section-above-footer-builder"] .ast-builder-grid-row,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
  max-width: 90%;
  margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.white-btn,
.purple-btn,
.link-btn,
.cart-btn,
.purple-cart-btn {
  border-style: solid;
  border-width: 0;
  padding: 10px 15px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  justify-content: space-between;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif;
}

.white-btn {
  background-color: #fff;
  color: #52287E;
}

.purple-btn {
  background-color: #52287E;
  color: #fff;
}

.link-btn {
  background-color: transparent;
  color: #52287E;
}

.cart-btn {
  background-color: #fff;
  color: #52287E;
}

.purple-cart-btn {
  background-color: #52287E;
  color: #fff;
}

.white-btn:after,
.purple-btn:after,
.link-btn:after {
  font-family: FontAwesome;
  font-weight: 400;
  vertical-align: middle;
  padding-left: 10px;
  content: "\f054";
}

.cart-btn:after,
.purple-cart-btn:after {
  font-family: FontAwesome;
  font-weight: 400;
  vertical-align: middle;
  padding-left: 10px;
  content: "\f07a";
}

.white-btn:hover,
.link-btn:hover,
.cart-btn:hover {
  color: #52287E;
}

.purple-btn:hover,
.purple-cart-btn:hover {
  color: #fff;
}

@media (max-width: 990px) {
  .white-btn,
  .purple-btn,
  .link-btn,
  .cart-btn,
  .purple-cart-btn {
    font-size: 12px !important;
    width: 100%;
  }
}

/* ========================================
   BODY LINKS / GLOBAL TWEAKS
   ======================================== */

body p a {
  color: #52287E !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
  flex-basis: auto !important;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-above-footer-wrap[data-section="section-above-footer-builder"],
.site-primary-footer-wrap[data-section="section-primary-footer-builder"],
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  padding: 20px;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  text-align: left;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] * {
  text-align: left;
}

.site-primary-footer-wrap .site-footer-section,
.site-primary-footer-wrap .footer-widget-area-inner {
  min-width: 0 !important;
  max-width: 100% !important;
}

.site-primary-footer-wrap h2.wp-block-heading,
.site-primary-footer-wrap .wp-block-heading {
  margin: 0 0 16px 0 !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-family: Niveau-Grotesk, niveau-grotesk, sans-serif !important;
}

.site-primary-footer-wrap .menu .menu-link,
.site-primary-footer-wrap .site-footer-primary-section-1 .widget_text p,
.site-primary-footer-wrap .site-footer-primary-section-1 .widget_text a {
  color: #fff !important;
  font-size: 16px !important;
}

.site-primary-footer-wrap ul.menu {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-primary-section-1 a {
  color: #fff !important;
  font-weight: 900 !important;
}

.ast-footer-copyright a {
  color: #52C4C7 !important;
  font-weight: 900 !important;
}

/* Review logo block */
.review-link-container .logo {
  background-image: url(/wp-content/uploads/2020/06/searched-marketing-reviews-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f1f1f1;
  padding: 35px 45px;
}

.review-link-container .text {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  padding: 10px;
}

.review-link-container {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: normal;
  border: 2px solid #f1f1f1;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Social spacing */
.ast-footer-social-1-wrap .ast-builder-social-element,
.ast-footer-social-1-wrap .social-show-label-true .ast-builder-social-element {
  margin-right: 0 !important;
}

/* ---- DESKTOP: >=1431px ---- */
@media (min-width: 1431px) {
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"]
  .ast-builder-footer-grid-columns.site-primary-footer-inner-wrap {
    display: grid !important;
    grid-template-columns:
      minmax(300px, 1.15fr)
      minmax(260px, 1fr)
      minmax(300px, 1fr)
      minmax(320px, 1.10fr) !important;
    column-gap: clamp(28px, 3vw, 56px) !important;
    align-items: start !important;
  }

  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .site-footer-section,
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .footer-widget-area-inner {
    min-width: 0 !important;
  }

  .site-footer-primary-section-1 .wp-block-image img {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 16px 0;
  }

  p.text-below-logo.has-ast-global-color-4-color.has-text-color {
    max-width: 420px;
    line-height: 1.55;
    margin: 0;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 48px !important;
    row-gap: 8px !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu > li {
    margin: 0 !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu > li > a {
    display: block !important;
    line-height: 28px !important;
  }

  .site-footer-primary-section-3 .footer-location-topics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  .site-footer-primary-section-3 .menu-locations-footer-container ul.menu,
  .site-footer-primary-section-3 .menu-topics-footer-container ul.menu {
    display: block !important;
  }

  .site-footer-primary-section-3 .menu-locations-footer-container ul.menu > li,
  .site-footer-primary-section-3 .menu-topics-footer-container ul.menu > li {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
  }

  .site-footer-primary-section-3 .menu-locations-footer-container ul.menu > li > a,
  .site-footer-primary-section-3 .menu-topics-footer-container ul.menu > li > a {
    display: block !important;
    width: 100% !important;
    line-height: 28px !important;
  }

  .site-footer-primary-section-4 {
    width: 100%;
    min-width: 0;
  }

  .site-footer-primary-section-4 #mc_embed_signup > span {
    display: block;
    margin: 0 0 10px 0 !important;
    font-weight: 700;
    padding-left: 0;
  }

  .site-footer-primary-section-4 #mc_embed_signup,
  .site-footer-primary-section-4 #mc_embed_signup form,
  .site-footer-primary-section-4 #mc_embed_signup_scroll,
  .site-footer-primary-section-4 .newsletter-form-wrapper,
  .site-footer-primary-section-4 .link-review-wrapper,
  .site-footer-primary-section-4 .review-link-container {
    width: 100% !important;
    max-width: none !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper {
    display: grid !important;
    grid-template-columns: 1fr clamp(140px, 10vw, 190px) !important;
    gap: 14px !important;
    align-items: center !important;
    margin: 0;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper .mc-field-group {
    min-width: 0 !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper input[type="email"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    border-radius: 6px !important;
    max-width: none !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper .button-wrapper {
    min-width: 160px !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper input[type="submit"] {
    width: 100% !important;
    height: 46px !important;
    border-radius: 6px !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    border: 2px solid #fff;
    white-space: nowrap;
  }

  .site-footer-primary-section-4 #mc-embedded-subscribe::after {
    font-family: FontAwesome;
    font-weight: 400;
    vertical-align: middle;
    padding-left: 10px;
    content: "\f054";
  }

  .site-footer-primary-section-4 .review-link-container {
    grid-template-columns: clamp(110px, 9vw, 150px) 1fr !important;
    width: 100% !important;
    max-width: 520px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 18px 0 0 0 !important;
  }

  .site-footer-primary-section-4 .review-link-container .text {
    line-height: 1.2;
  }

  .site-primary-footer-wrap .ast-footer-social-1-wrap {
    margin-top: 16px !important;
  }

  .site-primary-footer-wrap .ast-footer-social-1-wrap .footer-social-inner-wrap,
  .site-footer-primary-section-4 .ast-footer-social-1-wrap .footer-social-inner-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .ast-footer-copyright {
    text-align: left;
  }
}

/* soft step-down before 2x2 */
@media (max-width: 1640px) and (min-width: 1431px) {
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"]
  .ast-builder-footer-grid-columns.site-primary-footer-inner-wrap {
    grid-template-columns:
      minmax(300px, 1.15fr)
      minmax(260px, 1fr)
      minmax(260px, 0.95fr)
      minmax(320px, 1.15fr) !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu > li > a {
    white-space: normal !important;
  }
}

/* ---- TABLET / SMALL DESKTOP ---- */
@media (max-width: 1430px) and (min-width: 922px) {
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"]
  .ast-builder-footer-grid-columns.site-primary-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) !important;
    column-gap: clamp(28px, 4vw, 56px) !important;
    row-gap: 42px !important;
    align-items: start !important;
  }

  .site-footer-primary-section-1 {
    grid-column: 1 / 2;
  }

  .site-footer-primary-section-2 {
    grid-column: 2 / 3;
  }

  .site-footer-primary-section-3 {
    grid-column: 1 / 2;
  }

  .site-footer-primary-section-4 {
    grid-column: 2 / 3;
  }

  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] * {
    text-align: left !important;
    justify-content: flex-start !important;
    justify-items: start !important;
    align-items: flex-start !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 42px !important;
    row-gap: 10px !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu > li > a {
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  .site-footer-primary-section-3 .footer-location-topics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px !important;
  }

  .site-footer-primary-section-4 #mc_embed_signup,
  .site-footer-primary-section-4 #mc_embed_signup form,
  .site-footer-primary-section-4 #mc_embed_signup_scroll,
  .site-footer-primary-section-4 .newsletter-form-wrapper,
  .site-footer-primary-section-4 .review-link-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .site-footer-primary-section-4 input[type="email"],
  .site-footer-primary-section-4 input[type="submit"] {
    width: 100% !important;
    height: 44px !important;
    border-radius: 6px !important;
  }

  .site-primary-footer-wrap .ast-footer-social-1-wrap .footer-social-inner-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}

/* ---- MOBILE ---- */
@media (max-width: 921px) {
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"]
  .ast-builder-footer-grid-columns.site-primary-footer-inner-wrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 28px !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu {
    display: block !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu > li {
    margin: 0 0 10px 0 !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container ul.menu > li > a {
    white-space: normal !important;
  }

  .site-footer-primary-section-3 .footer-location-topics {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .site-footer-primary-section-4 .newsletter-form-wrapper input[type="email"],
  .site-footer-primary-section-4 .newsletter-form-wrapper input[type="submit"] {
    width: 100% !important;
    height: 44px !important;
    border-radius: 6px !important;
  }

  .site-footer-primary-section-4 .link-review-wrapper,
  .site-footer-primary-section-4 .review-link-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .site-primary-footer-wrap .ast-footer-social-1-wrap .footer-social-inner-wrap {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .footer-widget-area .wp-block-button.has-icon.arrow-icon {
    width: 100% !important;
    margin-top: 20px;
  }

  .ast-builder-grid-row-container.ast-builder-grid-row-tablet-2-equal .ast-builder-grid-row {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Mailchimp fixes */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 #mc_embed_signup > span {
  display: block !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-weight: 700;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 #mc_embed_signup,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 form,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 #mc_embed_signup_scroll {
  width: 100% !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 .newsletter-form-wrapper {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 0 !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 .mc-field-group {
  min-width: 0 !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 input[type="email"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 44px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 .button-wrapper {
  min-width: 160px !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 input[type="submit"] {
  width: 100% !important;
  height: 44px !important;
  border-radius: 6px !important;
  margin: 0 !important;
  border: 2px solid #fff !important;
  box-sizing: border-box !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 #mce-responses {
  display: none !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 #mc_embed_signup_scroll div[aria-hidden="true"] {
  display: none !important;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"]
.site-footer-primary-section-4 .ast-footer-social-1-wrap .footer-social-inner-wrap {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

@media (max-width: 1100px) {
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"]
  .site-footer-primary-section-4 .newsletter-form-wrapper {
    grid-template-columns: 1fr !important;
  }

  .site-primary-footer-wrap[data-section="section-primary-footer-builder"]
  .site-footer-primary-section-4 .button-wrapper {
    min-width: 0 !important;
  }
}

/* ========================================
   SITE-WIDE GLOBAL STYLES
   ======================================== */

.site-above-footer-wrap[data-section="section-above-footer-builder"] .ast-builder-grid-row,
.site-above-footer-wrap[data-section="section-above-footer-builder"] .site-footer-section {
  align-items: center;
}

.ast-builder-grid-row-2-lheavy .ast-builder-grid-row {
  grid-template-columns: 5fr 1fr !important;
}

.site-primary-footer-wrap .footer-widget-area .widget .text-below-logo a {
  color: #52C4C7 !important;
}

/* Typography */
h1,
.h1 {
  font-size: 50px;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

h2,
.h2 {
  font-size: 40px;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

h3,
.h3 {
  font-size: 34px;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

h4,
.h4 {
  font-size: 28px;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

h5,
.h5 {
  font-size: 22px;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

h6,
.h6 {
  font-size: 18px;
  font-family: 'Niveau-Grotesk', niveau-grotesk, sans-serif !important;
}

body,
p,
body ul li {
  font-size: 20px;
  font-family: 'Lato', -apple-system, sans-serif !important;
  line-height: 1.65em !important;
}

.small-copy {
  font-size: 18px;
}

.small-label {
  font-size: 16px;
}

@media (max-width: 1800px) {
  h1,
  .h1 {
    font-size: clamp(24px, 3.2px + 2.6vw, 50px);
  }

  h2,
  .h2 {
    font-size: clamp(22px, -1.4px + 2.3vw, 40px);
  }

  h3,
  .h3 {
    font-size: clamp(20px, -2px + 2vw, 34px);
  }

  h4,
  .h4 {
    font-size: clamp(18px, -2.6px + 1.7vw, 28px);
  }

  h5,
  .h5 {
    font-size: clamp(16px, -3.2px + 1.4vw, 22px);
  }

  h6,
  .h6 {
    font-size: clamp(14px, -3.6px + 1.2vw, 18px);
  }

  body,
  p,
  body ul li {
    font-size: clamp(16px, 2px + 1vw, 20px);
  }

  .small-copy {
    font-size: clamp(14px, 1.8px + 0.9vw, 18px);
  }

  .small-label {
    font-size: clamp(14px, 3.4px + 0.7vw, 16px);
  }
}

/* Footer menu anti-split */
.site-footer .site-footer-primary-section-2 ul.menu li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 !important;
}

@media (max-width: 1720px) {
  .site-primary-footer-wrap h2.wp-block-heading,
  .site-primary-footer-wrap .wp-block-heading {
    font-size: 24px;
  }
}

@media (max-width: 1560px) {
  .site-primary-footer-wrap h2.wp-block-heading,
  .site-primary-footer-wrap .wp-block-heading {
    font-size: 20px;
  }
}

/* Mobile footer fine-tuning */
@media (max-width: 768px) {
  .site-footer-primary-section-2,
  .site-footer-primary-section-2 .footer-widget-area,
  .site-footer-primary-section-2 .footer-widget-area-inner,
  .site-footer-primary-section-2 .widget_nav_menu,
  .site-footer-primary-section-2 .menu-footer-menu-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container > ul.menu,
  .site-footer-primary-section-2 .widget_nav_menu > div > ul.menu {
    display: block !important;
    column-count: 2 !important;
    column-gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container > ul.menu > li,
  .site-footer-primary-section-2 .widget_nav_menu > div > ul.menu > li {
    display: block !important;
    width: 100% !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
  }

  .site-footer-primary-section-2 .menu-footer-menu-container > ul.menu > li > a,
  .site-footer-primary-section-2 .widget_nav_menu > div > ul.menu > li > a {
    display: block !important;
    width: 100% !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .site-footer-primary-section-3 .footer-location-topics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
    margin-bottom: 0 !important;
  }

  .site-footer-primary-section-3 .footer-location-topics.wp-block-columns {
    flex-wrap: nowrap !important;
  }

  .site-footer-primary-section-3 .footer-location-topics > .wp-block-column {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .site-footer-primary-section-3 .menu-locations-footer-container > ul.menu,
  .site-footer-primary-section-3 .menu-topics-footer-container > ul.menu {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    column-count: 1 !important;
  }

  .site-footer-primary-section-3 .menu-locations-footer-container > ul.menu > li,
  .site-footer-primary-section-3 .menu-topics-footer-container > ul.menu > li {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
  }

  .site-footer-primary-section-3 .menu-locations-footer-container > ul.menu > li > a,
  .site-footer-primary-section-3 .menu-topics-footer-container > ul.menu > li > a {
    display: block !important;
    width: 100% !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .site-primary-footer-wrap .menu .menu-link,
  .site-primary-footer-wrap .site-footer-primary-section-1 .widget_text p,
  .site-primary-footer-wrap .site-footer-primary-section-1 .widget_text a {
    margin-bottom: 0 !important;
  }

  .site-primary-footer-wrap[data-section="section-primary-footer-builder"].ast-footer-row-mobile-stack .site-footer-section {
    margin-bottom: 0 !important;
  }

  .site-primary-footer-wrap .widget {
    margin-bottom: 10px !important;
  }

  .site-primary-footer-wrap h2.wp-block-heading,
  .site-primary-footer-wrap .wp-block-heading {
    font-size: 20px !important;
  }

  .site-primary-footer-wrap .widget_block,
  .site-primary-footer-wrap .widget.widget_nav_menu {
    margin-bottom: 0 !important;
  }

  .site-above-footer-wrap[data-section="section-above-footer-builder"],
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"],
  .site-below-footer-wrap[data-section="section-below-footer-builder"] {
    padding: 25px 0 !important;
  }

  .site-primary-footer-wrap .widget_media_image {
    margin-bottom: 15px !important;
  }

  .site-below-footer-wrap.ast-builder-grid-row-container.site-footer-focus-item.ast-builder-grid-row-2-lheavy.ast-builder-grid-row-tablet-2-equal.ast-builder-grid-row-mobile-full.ast-footer-row-stack.ast-footer-row-tablet-stack.ast-footer-row-mobile-stack {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* =========================================
   FOUNDATION / GIVING BACK FOOTER ROW
   ========================================= */

.site-above-footer .ast-builder-footer-grid-columns {
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
}

.site-above-footer .site-footer-section,
.site-above-footer .footer-widget-area,
.site-above-footer .ast-footer-html-2 {
  margin: 0;
}

.site-footer-above-section-1 .wp-block-image,
.site-footer-above-section-1 figure {
  margin: 0;
}

.site-footer-above-section-1 img {
  display: block;
  width: 100px;
  height: auto;
  max-width: 100%;
}

[data-section="section-fb-html-2"] .ast-builder-html-element h3,
[data-section="section-fb-html-2"] .ast-builder-html-element p {
  margin: 0;
  text-align: left !important;
}

[data-section="section-fb-html-2"] .ast-builder-html-element h3 {
  margin-bottom: 10px;
}

[data-section="section-fb-html-2"] .ast-builder-html-element p {
  max-width: 1200px;
}

[data-section="sidebar-widgets-footer-widget-6"] {
  justify-self: end;
}

[data-section="sidebar-widgets-footer-widget-6"] .wp-block-buttons,
[data-section="sidebar-widgets-footer-widget-6"] .wp-block-button {
  margin: 0;
}

[data-section="sidebar-widgets-footer-widget-6"] .wp-block-button__link {
  white-space: nowrap;
  min-width: 220px;
  text-align: center;
}

.site-above-footer .widget {
  margin-bottom: 0;
}

@media (max-width: 921px) {
  .site-above-footer .ast-builder-footer-grid-columns {
    grid-template-columns: 1fr;
    row-gap: 20px;
    text-align: center;
  }

  .site-footer-above-section-1,
  [data-section="section-fb-html-2"],
  [data-section="sidebar-widgets-footer-widget-6"] {
    justify-self: center;
  }

  [data-section="section-fb-html-2"] .ast-builder-html-element h3,
  [data-section="section-fb-html-2"] .ast-builder-html-element p {
    text-align: center !important;
  }
}

.ast-footer-row-inline .footer-widget-area.widget-area.site-footer-focus-item {
  width: auto;
}

.site-above-footer-wrap[data-section="section-above-footer-builder"].ast-footer-row-inline .site-footer-section {
  gap: 20px;
  justify-content: space-between;
}

/* Editor width */
.block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}

html :where(.editor-styles-wrapper) .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html :where(.editor-styles-wrapper) .wp-block {
  max-width: 100% !important;
}

html :where(.editor-styles-wrapper) {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* =========================================
   ABOVE FOOTER
   ========================================= */

@media (min-width: 1201px) {
  .site-above-footer-inner-wrap.ast-builder-grid-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 32px;
  }

  .site-above-footer-inner-wrap .site-footer-section {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: unset !important;
    margin: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-1,
  .site-above-footer-inner-wrap .site-footer-section-1 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-1 .widget_media_image,
  .site-above-footer-inner-wrap .site-footer-section-1 .wp-block-image {
    width: 86px;
    max-width: 86px;
    margin: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-1 img {
    width: 86px;
    max-width: 86px;
    height: auto;
    display: block;
    margin: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-2,
  .site-above-footer-inner-wrap .site-footer-section-2 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-2 .ast-header-html,
  .site-above-footer-inner-wrap .site-footer-section-2 .ast-builder-html-element {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 h3,
  .site-above-footer-inner-wrap .site-footer-section-2 p {
    margin: 0;
    max-width: none;
    text-align: left !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 p {
    margin-top: 10px;
  }

  .site-above-footer-inner-wrap .site-footer-section-3,
  .site-above-footer-inner-wrap .site-footer-section-3 .footer-widget-area {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    justify-self: end;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-buttons {
    margin: 0;
    justify-content: flex-end;
  }
}

@media (min-width: 931px) and (max-width: 1200px) {
  .site-above-footer-inner-wrap.ast-builder-grid-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    column-gap: 24px;
    row-gap: 20px;
    align-items: start;
  }

  .site-above-footer-inner-wrap .site-footer-section {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: unset !important;
    margin: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-1 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .site-above-footer-inner-wrap .site-footer-section-1,
  .site-above-footer-inner-wrap .site-footer-section-1 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-1 .widget_media_image,
  .site-above-footer-inner-wrap .site-footer-section-1 .wp-block-image {
    width: 86px;
    max-width: 86px;
    margin: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-1 img {
    width: 86px;
    max-width: 86px;
    height: auto;
    display: block;
    margin: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-2,
  .site-above-footer-inner-wrap .site-footer-section-2 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-2 .ast-header-html,
  .site-above-footer-inner-wrap .site-footer-section-2 .ast-builder-html-element {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 h3,
  .site-above-footer-inner-wrap .site-footer-section-2 p {
    margin: 0;
    max-width: none;
    text-align: left !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 p {
    margin-top: 10px;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .site-above-footer-inner-wrap .site-footer-section-3,
  .site-above-footer-inner-wrap .site-footer-section-3 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-buttons {
    margin: 0;
    padding: 0;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 930px) {
  .site-above-footer-inner-wrap.ast-builder-grid-row {
    display: grid;
    grid-template-columns: 1fr !important;
    row-gap: 18px;
    text-align: left;
    justify-items: start !important;
  }

  .site-above-footer-inner-wrap .site-footer-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0;
    flex: unset !important;
    justify-self: start !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-1,
  .site-above-footer-inner-wrap .site-footer-section-1 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-1 .widget_media_image,
  .site-above-footer-inner-wrap .site-footer-section-1 .wp-block-image {
    width: 86px;
    max-width: 86px;
    margin: 0 !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-1 img {
    width: 86px;
    max-width: 86px;
    height: auto;
    display: block;
    margin: 0 !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-2,
  .site-above-footer-inner-wrap .site-footer-section-2 .footer-widget-area,
  .site-above-footer-inner-wrap .site-footer-section-2 .ast-header-html,
  .site-above-footer-inner-wrap .site-footer-section-2 .ast-builder-html-element,
  .site-above-footer-inner-wrap .site-footer-section-3,
  .site-above-footer-inner-wrap .site-footer-section-3 .footer-widget-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 h3,
  .site-above-footer-inner-wrap .site-footer-section-2 p {
    margin: 0 !important;
    text-align: left !important;
    max-width: none;
  }

  .site-above-footer-inner-wrap .site-footer-section-2 p {
    margin-top: 10px !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 {
    justify-self: start !important;
    align-self: start !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 .widget {
    margin: 0 !important;
    text-align: left !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-buttons,
  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-buttons.is-content-justification-right,
  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-buttons.is-content-justification-center {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .site-above-footer-inner-wrap .site-footer-section-3 .wp-block-button {
    margin: 0 !important;
  }
}

.ast-builder-grid-row>.site-header-section {
  gap: 20px;
}


@media (max-width: 1200px) {
  #ast-fixed-header {
    display: none !important;
  }

  #masthead #ast-mobile-header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
  }

  .astra-logo-svg:not(.sticky-custom-logo .astra-logo-svg,.transparent-custom-logo .astra-logo-svg,.advanced-header-logo .astra-logo-svg) {
    width: auto !important;
  }

}

@media (max-width: 768px) {
  #masthead #ast-mobile-header {
    top: 0;
  }
}

.error404 .site-header {
  background-image: url("/wp-content/uploads/2025/04/sbhpp-purple-bg-d973d1.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section.sb-404-page__inner {
    max-width: 90% !important;
    margin: 0 auto;
    padding: 180px 0 20px !important;
}
    
@media (max-width: 768px) {
  section.sb-404-page__inner {
    padding: 80px 0 20px !important;
}
}

@media (min-width: 1201px) {
  #ast-fixed-header {
    display: none !important;
  }

  #ast-desktop-header {
    position: fixed;
    z-index: 9999;
    width: 100%;
  }
}

@media (min-width: 1201px) {
  /* Normal desktop header */
  #masthead {
    position: relative;
    z-index: 1000;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  }

  body.sb-scrolled-header #ast-desktop-header {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }

  /* Fixed/scrolled desktop header */
  body.sb-scrolled-header #ast-desktop-header {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  /* Prevent content jump */
  body.sb-header-is-fixed {
    padding-top: 140px; /* adjust to your desktop header height */
  }

  /* Example: different menu/link styles on scroll */
  body.sb-scrolled-header #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    color: #000 !important;
  }

  body.sb-scrolled-header .dash-ast-custom-button {
    background: #52287E;
    color: #fff;
  }

  body.sb-scrolled-header .ast-icon svg:not([fill]) {
    fill: #52287E;
  }

  /* Optional: sticky logo widget only when scrolled */
  #ast-desktop-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
    display: none !important;
  }

  body.sb-scrolled-header #ast-desktop-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
    display: flex !important;
    align-items: center;
  }
}