/*
  Bootstrap Carousel Fade Transition (for Bootstrap 3.3.x)
  CSS from:       http://codepen.io/transportedman/pen/NPWRGq
  and:            http://stackoverflow.com/questions/18548731/bootstrap-3-carousel-fading-to-new-slide-instead-of-sliding-to-new-slide
  Inspired from:  http://codepen.io/Rowno/pen/Afykb
*/
#bsm .carousel-fade .carousel-inner .item {
  opacity: 0;
  transition-property: opacity;
}

#bsm .carousel-fade .carousel-inner .active {
  opacity: 1;
}

#bsm .carousel-fade .carousel-inner .active.left,
#bsm .carousel-fade .carousel-inner .active.right {
  left: 0;
  opacity: 0;
  z-index: 1;
}

#bsm .carousel-fade .carousel-inner .next.left,
#bsm .carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}

#bsm .carousel-fade .carousel-control {
  z-index: 2;
}

/*
  WHAT IS NEW IN 3.3: "Added transforms to improve carousel performance in modern browsers."
  Need to override the 3.3 new styles for modern browsers & apply opacity
*/
@media all and (transform-3d), (-webkit-transform-3d) {
  #bsm .carousel-fade .carousel-inner > .item.next,
  #bsm .carousel-fade .carousel-inner > .item.active.right {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  #bsm .carousel-fade .carousel-inner > .item.prev,
  #bsm .carousel-fade .carousel-inner > .item.active.left {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  #bsm .carousel-fade .carousel-inner > .item.next.left,
  #bsm .carousel-fade .carousel-inner > .item.prev.right,
  #bsm .carousel-fade .carousel-inner > .item.active {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* Basic Layout Styles */

@media screen and (min-width: 992px) {
  #bsm.layout-wrapper {
    margin-top: -213px;
  }
}

#bsm .layout {
  position: relative;
  margin: 0 auto;
  padding: 30px 0;
  max-width: 1240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#bsm .bg--black.layout {
  color: white;
}

#bsm .layout:last-of-type {
  margin-bottom: 30px;
}

#bsm .layout.js-fixed {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  margin: 0;
  transition: bottom .6s ease-in-out;
  z-index: 2;
}

#bsm .layout h1,
#bsm .layout h2 {
  font-family: 'alegreya_sanslight',arial,sans-serif;
}

#bsm .layout--full {
  max-width: 100%;
}

#bsm .layout--band {
  margin: 0 0 15px;
  padding: 45px 0;
  background-color: #2E89DE;
  color: white;
}

#bsm .layout__item--centered {
  padding: 0 15px;
  text-align: center;
}

#bsm .layout__item--half {
  max-width: 788px;
  margin: 0 auto;
}

#bsm .layout__title {
  margin-top: 0;
  color: #1e3861;
  font-size: 30px;
  line-height: 1.067em;
  transition: margin .3s linear;
}

#bsm .layout__title--med {
  font-size: 28px;
}

#bsm .layout--band .layout__title {
  color: inherit;
}

#bsm .bg--black .layout__title {
  color: white;
  background-color: inherit;
}

@media screen and (min-width: 600px) {
  #bsm .layout__title {
    font-size: 44px;
    line-height: 48px;
  }

  #bsm .layout__title--med {
    font-size: 36px;
  }
}

@media screen and (min-width: 1200px) {
  #bsm .layout--band {
    margin: 36px 0;
  }
}


/* Carousel Styles */

#bsm .layout--carousel {
  position: relative;
  height: 240px;
  margin-bottom: 24px;
  padding: 0;
}

#bsm .layout--carousel .carousel,
#bsm .layout--carousel .carousel-inner,
#bsm .layout--carousel .carousel-inner .item {
  height: 100%;
}

#bsm .layout--carousel .bg-green {
  background-color: #009f4a;
}

#bsm .layout--carousel .bg-red {
  background-color: #e73445;
}

#bsm .layout--carousel .bg-magenta {
  background-color: #b81453;
}

#bsm .layout--carousel .bg-purple {
  background-color: #77348b;
}

#bsm .layout--carousel .bg-blue {
  background-color: #699fca;
}

#bsm .layout--carousel .bg-orange {
  background-color: #eb722a;
}

#bsm .layout--carousel .bg-cyan {
  background-color: #00add0;
}

#bsm .layout--carousel__inner {
  position: relative;
  height: 100%;
  text-align: center;
}

#bsm .layout--carousel .carousel-control {
  background: none;
  opacity: 1;
}

#bsm .layout--carousel .container {
  position: relative;
}

#bsm .layout--carousel .campaign-carousel__indicators {
  position: absolute;
  top: 200px;
  left: 0;
  width: 100%;
  text-align: center;
}

#bsm .layout--carousel .carouselPlayPause {
  position: relative;
  display: inline-block;
  border: none;
  width: 20px;
  height: 20px;
  margin: 0 5px 0 0;
  z-index: 15;
  color: #fff;
  font-family: "FontAwesome";
  font-size: 22px;
  line-height: 22px;
  cursor: pointer;
  vertical-align: top;
}

#bsm .layout--carousel .carouselPlayPause i {
  font-size: 23px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#bsm .layout--carousel .carouselPlayPause.pause i.play {
  display: none;
}

#bsm .layout--carousel .carouselPlayPause.play i.pause {
  display: none;
}

#bsm .layout--carousel .carousel-indicators {
  display: inline-block;
  left: 0;
  top: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  width: auto;
  text-align: left;
  vertical-align: top;
}

#bsm .layout--carousel .carousel-indicators li {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px 0 0;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  border: 2px solid white;
  vertical-align: text-bottom;
}

#bsm .layout--carousel .carousel-indicators .active {
  background-color: white;
}

@media screen and (min-width: 600px) {
  #bsm .layout--carousel .campaign-carousel__indicators {
    top: 260px;
  }
}

@media screen and (min-width: 768px) {
  #bsm .layout--carousel .carousel-control {
    display: inline-block;
  }

  #bsm .layout--carousel .carousel-indicators {
    vertical-align: middle;
  }

  #bsm .layout--carousel .campaign-carousel__indicators {
    top: 420px;
  }
}

@media screen and (min-width: 992px) {
  #bsm .layout--carousel .campaign-carousel__indicators {
    top: 540px;
    width: auto;
    text-align: left;
  }
}

@media screen and (min-width: 1200px) {
  #bsm .layout--carousel .campaign-carousel__indicators {
    top: 620px;
    text-align: left;
  }
}

#bsm .layout--carousel__chevron {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-block;
  width: 50px;
  height: 54px;
  background-color: transparent;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-transition: all 0.25s ease-out 0s;
  transition: all 0.25s ease-out 0s;
}

#bsm .layout--carousel__chevron:after {
  content: '';
  position: absolute;
  left: calc(50% - 11px);
  top: calc(50% - 11px);
  height: 22px;
  width: 22px;
  transform: rotate(135deg);
  border: 6px solid white;
  border-top: 0;
  border-left: 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#bsm .layout--carousel__chevron--right {
  left: auto;
  right: 0;
}

#bsm .layout--carousel__chevron--right:after {
  transform: rotate(-45deg);
}

#bsm .layout--carousel img {
  position: static;
  width: 100%;
  height: auto;
  left: auto;
  margin-top: 20px;
  -webkit-transition: all 0.25s ease-out 0s;
  transition: all 0.25s ease-out 0s;
}

@media screen and (min-width: 600px) {
  #bsm .layout--carousel {
    height: 300px;
  }
}

@media screen and (min-width: 768px) {

  #bsm .layout--carousel {
    height: 480px;
  }

  #bsm .layout--carousel__chevron {
    left: 20px;
    bottom: 20px;
  }

  #bsm .layout--carousel__chevron--right {
    left: auto;
    right: 20px;
  }

  #bsm .layout--carousel img {
    margin-top: 60px;
  }
}

@media screen and (min-width: 992px) {
  #bsm .layout--carousel {
    height: 580px;
  }

  #bsm .layout--carousel img {
    /*position: absolute;*/
    position: relative;
    /*bottom: 0;*/
    width: auto;
    margin-top: 100px;
  }

  #bsm .layout--carousel__chevron {
    bottom: 108px;
    width: 100px;
    height: 108px;
  }

  #bsm .layout--carousel__chevron:after {
    content: none;
  }

  #bsm .layout--carousel__chevron--left {
    background-image: url(/sites/default/files/assets/media/image/image/2023-05/hero-left.png);
  }

  #bsm .layout--carousel__chevron--left:hover {
    background-position: 0% 50%;
  }

  #bsm .layout--carousel__chevron--right {
    right: 20px;
    background-image: url(/sites/default/files/assets/media/image/image/2023-05/hero-right.png);
  }

  #bsm .layout--carousel__chevron--right:hover {
    background-position: 100% 50%;
  }
}

@media screen and (min-width: 1200px) {

  #bsm .layout--carousel {
    height: 680px;
  }
}

@media screen and (min-width: 1440px) {

  #bsm .layout--carousel img {
    position: relative;
    width: auto;
    margin-top: 0;
  }
}


/* Grid Layout Styles */

@media screen and (min-width: 768px) {
  #bsm .g-container {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
  }

  #bsm .g-container--third {
    padding: 0 24px;
  }

  #bsm .g-item {
    width: 50%;
  }

  #bsm .g-container--third .g-item {
    width: calc(33.33% - 15px);
  }
}

@media screen and (min-width: 992px) {
  #bsm .g-container--third .g-item {
    width: calc(33.33% - 24px);
  }
}


/* Card Styles */

#bsm .c-card {
  position: relative;
  background-color: white;
}

#bsm .c-card--full {
  height: 100%;
}

#bsm .c-card--blue {
  background-color: #6b9ec9;
}

#bsm .c-card--magenta {
  background-color: #b62659;
}

#bsm .c-card--pink {
  background-color: #e377ab;
}

#bsm .c-card--cyan {
  background-color: #00a7d7;
}

#bsm .c-card--orange {
  background-color: #eb722a;
}


@media screen and (min-width: 768px) {
  #bsm .c-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
  }
}

/* -- Featured Cards -- */

#bsm .c-card--featured {
  margin: 15px;
  padding: 150px 24px 24px;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  color: white;
}

#bsm .c-card--featured.c-card-full {
  background-size: 60%;
}

#bsm .c-card--featured__title {
  margin-top: 0;
  font-size: 44px;
  line-height: 48px;
}

#bsm .c-card--featured__link {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  #bsm .c-card--featured {
    height: 300px;
    padding-top: 24px;
    background-size: cover !important;
  }

  #bsm .c-card--full {
    height: 600px;
  }
}

/* -- Signpost Cards -- */

#bsm .c-card--signpost {
  margin: 15px;
  box-shadow: 0 6px 10px 0 rgba(0,0,0,0.15), 0 8px 6px 0 rgba(0,0,0,0.08);
}

#bsm .c-card--signpost__body {
  position: relative;
  margin-top: -37px;
  padding: 0 24px 12px 24px;
}

#bsm .c-card--signpost__img {
  position: relative;
  overflow: hidden;
}

#bsm .c-card--signpost__img img {
  -webkit-transition: all 0.8s ease-out 0s;
  transition: all 0.8s ease-out 0s;
}

#bsm .c-card--signpost__title {
  position: relative;
  display: inline-block;
  margin: 0 12px 12px -10px;
  padding: 6px 30px 6px 8px;
  background: white;
  color: #1e3861;
  font-size: 24px;
  line-height: 1.1;
}

#bsm .c-card--signpost__title:after {
  content: '';
  position: absolute;
  right: 15px;
  top: 16px;
  height: 10px;
  width: 10px;
  transform: rotate(-45deg);
  border: 3px solid #1e3861;
  border-top: 0;
  border-left: 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#bsm .c-card__signpost-link {
  display: block;
  color: inherit;
}

#bsm .c-card__signpost-link:hover {
  text-decoration: none;
}

#bsm .c-card__signpost-link:hover .c-card--signpost__img img {
  -webkit-transition: all 0.8s ease-out 0s;
  transition: all 0.8s ease-out 0s;
  transform: scale(1.1);
}

@media screen and (min-width: 768px) {
  #bsm .c-card--featured {
    margin: 0;
    padding: 36px;
  }

  #bsm .c-card--signpost {
    margin: 0;
    min-height: 270px;
    justify-content: flex-start;
  }
}


/* Element Styles */

#bsm .img-responsive {
  display: block;
  width: 100%;
}

#bsm .e-btn {
  position: relative;
  display: inline-block;
  margin: 15px 0;
  padding: 15px 24px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 6px 6px 0 rgba(0,0,0,0.5);
  font-size: 18px;
  text-decoration: none;
  color: #002664;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#bsm .e-btn:hover {
  background-color: #002664;
  color: white;
  text-decoration: none;
}

#bsm .e-btn--small {
  font-size: 16px;
}

@media screen and (min-width: 768px) {
  #bsm .e-btn {
    font-size: 24px;
  }

  #bsm .e-btn--small {
    font-size: 16px;
  }
}

#bsm .chevron-link {
  position: relative;
  padding-right: 30px;
}

#bsm .chevron-link:after {
  content: '';
  position: absolute;
  right: 8px;
  top: calc(50% - 5px);
  height: 10px;
  width: 10px;
  transform: rotate(-45deg);
  border: 3px solid white;
  border-top: 0;
  border-left: 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#bsm .chevron-link:hover {
  color: inherit;
}

#bsm .e-btn.chevron-link {
  padding-right: 44px;
}

#bsm .e-btn.chevron-link:after {
  right: 24px;
  border-color: #002664;
}

#bsm .e-btn.chevron-link:hover:after {
  border-color: white;
}

#bsm .c-card--featured__link:hover:after {
  right: 0;
}

/* Buttons */

#bsm .btn-expand {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  background-color: #59636F;
  border-radius: 50%;
  border: none;
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(/sites/default/files/assets/media/image/image/2023-05/plus.png);
  transition: all .3s ease-in-out;
}

#bsm .info-reveal.is-expanded .btn-expand {
  top: calc(40% - 19px);
  background-image: url(/sites/default/files/assets/media/image/image/2023-05/minus.png);
}

#bsm .info-reveal .btn-expand {
  position: absolute;
  top: calc(50% - 19px);
  left: calc(50% - 19px);
  z-index: 1;
  transition: all .3s ease-in-out;
}



/* Info Reveal */

#bsm .info-reveal {
  position: relative;
  display: block;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: black;
}

#bsm .info-reveal__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  transition: all .3s ease-in-out;
}

#bsm .info-reveal__panel h2 {
  color: white;
  margin: 0 0 65px 0;
}

#bsm .info-reveal__panel p {
  transition: opacity .3s ease-in-out;
}

#bsm .info-reveal.is-expanded .info-reveal__panel {
  top: -100px;
}

#bsm .info-reveal.is-expanded .info-reveal__panel p {
  opacity: 0;
}

#bsm .info-reveal.is-expanded .layout__title {
  margin-top: 5rem;
}

#bsm .info-reveal__content {
  position: absolute;
  bottom: -60%;
  left: 0;
  width: 100%;
  height: 60%;
  background-color: #002664;
  color: white;
  box-shadow: inset 0 2px 10px 0 rgba(0,0,0,0.3);
  transition: all .3s ease-in-out;
}

#bsm .info-reveal.is-expanded .info-reveal__content {
  bottom: 0;
}

@media screen and (min-width: 768px) {
  #bsm .info-reveal__content {
    bottom: -50%;
    height: 50%;
  }

  #bsm .info-reveal .btn-expand,
  #bsm .info-reveal.is-expanded .btn-expand {
    top: calc(50% - 19px);
  }
}

/* Hero panel */

#bsm .hero-panel {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
  #bsm .hero-panel {
    height: 680px;
  }
}

/* Helper Styles */

#bsm .mb-0 {
  margin-bottom: 0 !important;
}

#bsm .pt-0 {
  padding-top: 0;
}

#bsm .pb-0 {
  padding-bottom: 0;
}

#bsm .pt-2 {
  padding-top: 2rem;
}

#bsm .pb-2 {
  padding-bottom: 2rem;
}

#bsm .pl-2 {
  padding-left: 2rem;
}

#bsm .pr-2 {
  padding-right: 2rem;
}

#bsm .p-0 {
  padding: 0;
}

#bsm .bg--black,
#bsm.bg--black {
  background-color: black;
}

#bsm .bg--green {
  background-color: #009F4A;
}

#bsm .f-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#bsm .text-shadow {
  text-shadow: 1px 1px 3px black;
}

.text-hide {
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}
