


/* Hero Cover: use contain so it never crops */
.custom-hero {
  position: relative;
  overflow: hidden;
}
.custom-hero .wp-block-cover__image-background {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}
/* Optional: remove any dim filter */
.custom-hero.has-background-dim-1 .wp-block-cover__gradient-background {
  opacity: 0 !important;
}

//FOR HOSTS PAGE TITLES
/* ❶  Mobile / tablet (all viewports by default)  */
.center-showtitle{
    text-align:center !important;   /* beat core rule */
    margin-inline:auto;             /* keep it visually centred */
}

/* ❷  Desktop-only override (change 640 px to your breakpoint) */
@media (min-width:640px){
    .center-showtitle{
        text-align:left !important;
        margin-inline:0;            /* return to the normal flow   */
    }
}


/*  Hide the .hide-banner section on these four slugs  */
body.page-amitsegal        .hide-banner,
body.page-get-in-touch     .hide-banner,
body.page-terms-of-service .hide-banner,
body.page-privacy-policy   .hide-banner{
    display:none !important;
}

/* Hide the “hide-banner” section on four specific pages */
body.page-id-766  .hide-banner,
body.page-id-101  .hide-banner,
body.page-id-1285 .hide-banner,
body.page-id-1289 .hide-banner{
    display:none !important;
}


/* only on mobile homepage */
@media (max-width: 768px) {
  body.home > .sticky-button {
    position: fixed !important;
    bottom: env(safe-area-inset-bottom,16px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 400px !important;
    z-index: 10000 !important;
    margin: 0 !important;
  }
}

/* revert on desktop */
@media (min-width: 769px) {
  .sticky-button {
    position: static !important;
    transform: none !important;
    width: auto !important;
    margin: initial !important;
  }
}

/* secondary button hover*/
/* Base pill button */
.wp-block-button.btn-hover-accent .wp-block-button__link {
  background-color: #304181;
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover */
.wp-block-button.btn-hover-accent .wp-block-button__link:hover {
  background-color: #0b153c;
  color: #fff;
}

/* Job title links only */
h3.job-title a {
  text-decoration: none;       /* remove underline */
  color: #0b153c;              /* default color */
  transition: color 0.2s ease; /* smooth hover */
}

h3.job-title a:hover {
  color: #3eb5f9;              /* hover color */
  cursor: pointer;             /* shows it’s clickable */
}

@media (max-width: 768px) {
  .stack-button-top {
    display: flex;
    flex-direction: column-reverse; /* button comes first */
    gap: 1rem;
  }

  .stack-button-top > * {
    width: 100%;
  }

  .stack-button-top .apply-button {
    max-width: 200px;
    margin: 0 auto;
  }
}

