/* ===== Slide Hero — baycorp.com.au homepage carousel ===== */
.bc-slide-hero {
  --bc-slide-hero-bottom-gap: 55px;
  --bc-slide-hero-arrow-size: 52px;
  --bc-slide-hero-panel-shift: 55px;
  position: relative;
  z-index: 3;
  width: 100%;
  height: var(--bc-slide-hero-h, calc(450px - var(--bc-slide-hero-bottom-gap)));
  min-height: calc(280px - var(--bc-slide-hero-bottom-gap));
  overflow: visible;
  background: #0a3b4c;
}

.bc-slide-hero + .baycorp-home,
#bc-home-main {
  position: relative;
  z-index: 1;
  scroll-margin-top: var(--bc-header-h, 74px);
  padding-top: calc(var(--bc-slide-hero-arrow-size, 52px) / 2);
}
.bc-slide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background-color: rgba(0, 61, 82, 0.3);
  pointer-events: none;
}

.bc-slide-hero__slider {
  position: relative;
  height: 100%;
  z-index: 6;
}

.bc-slide-hero__slider .slick-list,
.bc-slide-hero__slider .slick-track {
  height: 100%;
}

.bc-slide-hero__slider .slick-slide {
  height: var(--bc-slide-hero-h, 450px);
  min-height: 280px;
}

.bc-slide-hero__slider .slick-slide > div {
  height: 100%;
}

.bc-slide-hero__slide,
.bc-slide-hero__header {
  display: block;
  height: 100%;
  min-height: inherit;
}

.bc-slide-hero__slide {
  position: relative;
}

.bc-slide-hero__header {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  min-height: var(--bc-slide-hero-h, 450px);
  padding: 0;
  overflow: hidden;
  background-color: #0a3b4c;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bc-slide-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Diagonal cyan panels (right side — same as home .bc-hero-slider) */
.bc-slide-hero__header .bc-hero-panel-wash {
  position: absolute;
  top: 0%;
  bottom: 0%;
  right: -31%;
  width: 76%;
  z-index: 1;
  background: rgba(0, 176, 204, 0.5);
  transform: skew(-18deg) translateX(calc(8.5% + var(--bc-slide-hero-panel-shift, 55px)));
  transform-origin: top right;
  pointer-events: none;
  opacity: 1;
}

.bc-slide-hero__header .bc-hero-panel {
  position: absolute;
  top: 0%;
  bottom: 0%;
  right: -31%;
  width: 74%;
  z-index: 2;
  background: rgba(0, 176, 204, 0.94);
  transform: skew(-18deg) translateX(calc(12% + var(--bc-slide-hero-panel-shift, 55px)));
  transform-origin: top right;
  pointer-events: none;
  opacity: 1;
}

.bc-slide-hero__header .bc-hero-panel-wash,
.bc-slide-hero__header .bc-hero-panel {
  animation: none !important;
}

.bc-slide-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 36px;
  padding-left: max(36px, calc(100% - 680px));
  color: #fff;
  text-align: right;
  box-sizing: border-box;
  gap: 0;
}

.bc-slide-hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 0 34px;
  padding: 0 0 34px;
  font-family: "Ostrich Sans", sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.625rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  opacity: 1;
  visibility: visible;
  animation: none !important;
  transform: none;
}

.bc-slide-hero__title > .bc-slide-hero__title-line {
  display: block;
}

.bc-slide-hero__title > .bc-slide-hero__title-line + .bc-slide-hero__title-line {
  margin-top: 0.06em;
}

.bc-slide-hero__title:has(.bc-slide-hero__title-link) {
  line-height: 1;
}

.bc-slide-hero__title-link {
  display: inline-block;
  max-width: 100%;
  text-align: right;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.bc-slide-hero__title-link .bc-slide-hero__title-line {
  display: block;
  text-align: right;
}

.bc-slide-hero__title-link .bc-slide-hero__title-line + .bc-slide-hero__title-line {
  margin-top: 0.06em;
}

.bc-slide-hero__title-link .bc-slide-hero__title-line-text {
  display: inline;
}

.bc-slide-hero__title-line-text .bc-slide-hero__title-link-icon {
  display: inline-block;
  width: 40px;
  height: 34px;
  margin-left: 0.1em;
  vertical-align: middle;
  object-fit: contain;
}

.bc-slide-hero__title-link:hover,
.bc-slide-hero__title-link:focus-visible {
  color: #003d52;
}

.bc-slide-hero__title-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .bc-slide-hero__title {
    font-size: 5.625rem;
    width: max-content;
    max-width: min(75vw, 52rem);
  }

  .bc-slide-hero__title-line {
    text-align: right;
  }
}

.bc-slide-hero__title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 86px;
  height: 2px;
  background-color: #fff;
}

.bc-slide-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-family: "Ostrich Sans", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  opacity: 1;
  visibility: visible;
  animation: none !important;
  transform: none;
}

.bc-slide-hero__link + .bc-slide-hero__link {
  margin-top: 1.25rem;
}

.bc-slide-hero__link-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.bc-slide-hero__link .bc-hero-cta-mark {
  width: 32px;
  height: 32px;
}

.bc-slide-hero__link .bc-hero-cta-diamond {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
}

.bc-slide-hero__link .bc-hero-cta-arrow {
  stroke: #fff;
  stroke-width: 0.9;
}

.bc-slide-hero__link:hover,
.bc-slide-hero__link:focus-visible {
  color: #003d52;
}

.bc-slide-hero__link:hover .bc-hero-cta-diamond,
.bc-slide-hero__link:focus-visible .bc-hero-cta-diamond {
  fill: #003d52;
  stroke: #fff;
  stroke-width: 2;
}

.bc-slide-hero__link:hover .bc-hero-cta-arrow,
.bc-slide-hero__link:focus-visible .bc-hero-cta-arrow {
  stroke: #fff;
}

.bc-slide-hero__footer {
  position: absolute;
  left: 50%;
  bottom: -6px;
  z-index: 30;
  transform: translateX(-50%) translateY(50%);
  pointer-events: auto;
}

.bc-slide-hero__link-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  text-decoration: none;
  color: #fff;
}

.bc-slide-hero__arrow-down {
  display: block;
  width: 62px;
  height: 62px;
}

.bc-slide-hero__link-icon-btn:hover,
.bc-slide-hero__link-icon-btn:focus-visible {
  opacity: 0.9;
}

.bc-slide-hero__link-icon-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.bc-slide-hero .slick-slide.slick-active .bc-slide-hero__content,
.bc-slide-hero .slick-slide.slick-active .bc-slide-hero__title,
.bc-slide-hero .slick-slide.slick-active .bc-slide-hero__link {
  opacity: 1;
  visibility: visible;
}

/* Dot navigation — baycorp.com.au bottom-left */
.bc-slide-hero > .slick-dots {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: auto;
  margin: 0;
  padding: 0;
  z-index: 25;
  display: flex !important;
  align-items: center;
  gap: 0;
  list-style: none;
}

.bc-slide-hero > .slick-dots li {
  width: auto;
  height: auto;
  margin: 0 5px 0 0;
}

.bc-slide-hero > .slick-dots li:last-child {
  margin-right: 0;
}

.bc-slide-hero > .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--bc-ease-out), opacity 0.2s var(--bc-ease-out);
}

.bc-slide-hero > .slick-dots li button::before {
  content: none;
}

.bc-slide-hero > .slick-dots li button:hover,
.bc-slide-hero > .slick-dots li button:focus-visible {
  background: rgba(255, 255, 255, 0.65);
  outline: none;
}

.bc-slide-hero > .slick-dots li.slick-active button {
  background: #fff;
}

.bc-slide-hero > .slick-dots li button:focus-visible {
  box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 767.98px) {
  .bc-slide-hero__content {
    padding: 36px 25px;
    padding-left: 25px;
  }

  /* One flowing title — ignore ". " line split from CMS; wrap only when the line runs out of width */
  .bc-slide-hero__title {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    font-size: clamp(1.75rem, 12vw, 3rem);
    line-height: 0.9;
    margin-bottom: 24px;
    padding-bottom: 24px;
    text-align: right;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .bc-slide-hero__title-link {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: right;
    line-height: inherit;
    white-space: normal;
  }

  .bc-slide-hero__title > .bc-slide-hero__title-line,
  .bc-slide-hero__title-link .bc-slide-hero__title-line {
    display: inline;
    margin-top: 0;
    white-space: normal;
    text-align: right;
  }

  .bc-slide-hero__title-line + .bc-slide-hero__title-line::before {
    content: "\00a0";
  }

  .bc-slide-hero__title-line--tail .bc-slide-hero__title-line-text {
    display: inline;
    white-space: normal;
  }

  .bc-slide-hero__title-line-text .bc-slide-hero__title-link-icon {
    display: none !important;
  }

  .bc-slide-hero__header .bc-hero-panel {
    width: 70%;
    right: -18%;
    transform: skew(-18deg) translateX(calc(12% + var(--bc-slide-hero-panel-shift, 55px) + 135px));
  }

  .bc-slide-hero__header .bc-hero-panel-wash {
    width: 74%;
    right: -20%;
    transform: skew(-18deg) translateX(calc(5.5% + var(--bc-slide-hero-panel-shift, 55px) + 100px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-slide-hero__title,
  .bc-slide-hero__link {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
