/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
.hero-section {
  padding-top: 0;
  color: #5a5a5a;
}

/* Carousel base class */
.hero-section .carousel {
  margin-bottom: 60px;
}
/* Since positioning the image, we need to help out the caption */
.hero-section .carousel-caption {
  bottom: 0;
  z-index: 10;
  right: 15%;
  left:0;
  max-width: 620px;
}
.hero-section .carousel-caption h1{
  color: #000E56;
  margin-bottom: 40px;
  /* font-weight: 700; */
}
.hero-section .carousel-caption p{
  font-size:18px;
  margin-bottom: 0.01rem;
}
.hero-section a.btn.btn-primary {
  background: #000E56;
  color: #fff;
  border-color: transparent;
  padding: 15px 25px 15px 25px;;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  line-height: 20px;
  font-family: 'Rethinksans-bold';
  /* font-weight: 700; */
}
.hero-section a.btn.btn-primary:hover,
.hero-section a.btn.btn-primary:focus{
  background: #3766A8;
}
/* Declare heights because of positioning of img element */
.hero-section .carousel-item {
  height: 500px;
  width: 100%;
}
.hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}
/* adding unique style for china site hero banner */
China-herobanner.hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: fill;
  object-position: center;
}
/* Swiss site mobile banner issue*/
.swiss-career-page .hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: fill;
  object-position: center;
}
/* China site mobile banner issue */
.china-workingipsen-page .hero-section .carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 600px;
  object-fit: fill;
  object-position: center;
}
.hero-section .bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.hero-section #carouselButtons {
  float: right;
  position: relative;
  top: -65px;
  right: 20px;
  z-index: 2;
}
.hero-section #carouselButtons button {
  height: 35px;
  width: 35px;
  border: none;
  background-size: contain;
  background-color: transparent;
  background-repeat: no-repeat;
}
.hero-section .carousel-control-prev-icon{
  background-image:url(/wp-content/themes/ipsen-main/dist/images/SlideArrow-Big-Left_40x40.png);
  width: 40px;
  height: 40px;
}
.hero-section .carousel-control-next-icon{
  background-image:url(/wp-content/themes/ipsen-main/dist/images/SlideArrow-Big-Right_40x40.png);
  width: 40px;
  height: 40px;
  opacity: 1;
}
.hero-section button.carousel-control-next:hover,
.hero-section button.carousel-control-prev:hover{
  opacity: 1;
}
.hero-section button.carousel-control-next,
.hero-section button.carousel-control-prev{
  opacity: 0.9;
}
.hero-section button.carousel-control-prev:focus-visible,
.hero-section button.carousel-control-next:focus-visible,
.hero-section a.btn.btn-primary:focus-visible{
  outline: 1px solid;
}
.hero-section #playButton{
  background-image:url(/wp-content/themes/ipsen-main/dist/images/Play-Button-New.png);
}
.hero-section #pauseButton{
  background-image:url(/wp-content/themes/ipsen-main/dist/images/Pause-Button-New.png);
}
.hero-section video, .hero-section .video {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
/*.hero-section .video { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
  max-width: 100%; 
  } 
  */
.hero-section .video iframe, 
.hero-section .video object, 
.hero-section .video embed { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
}
.hero-section .hidden{
    display:none;
}
.hero-section button.carousel-control-prev,
.hero-section button.carousel-control-next,
.hero-section .carousel-indicators {
    display:none;
}
.hero-section .carousel-inner::after {
  background: linear-gradient(0.07deg, #003E7E 0.05%, rgba(0, 0, 0, 0) 60.02%);
  opacity: 10.8;
  width:100%;
  height: 600px;
  position: absolute;
}
.hero-section.no-filter .carousel-inner::after {
  display: none;
}
.netherland-herobanner-therapypage .hero-section #heroCarousel .carousel-item.active {
  display: flex;
  align-items: center;
  padding-top: 25px;
}
/* .hero-section .carousel-caption h2{
  color: #000E56;
  margin-bottom: 40px;
} */

/* .siteId-3 .hero-section .hero_fullwidth  .carousel-inner::after{
  display:none;
} */

/* Banner Text and Button Change White and Black Color */
.hero-section .carousel-caption .banner-font-color-white,
.hero-section .carousel-caption div.visible.text-start.banner-font-color-white,
.hero-section .hero_gridwidth .carousel-caption .text-start.banner-font-color-white{
  color: #ffffff;
}
.hero-section .carousel-caption .banner-font-color-white a.btn.btn-primary{
  background: #EDEBE4;
  color: #000E56;
  border: 1px solid var(--Primary-New-Dark-Blue, #000E56);
}
.hero-section .carousel-caption .banner-font-color-blue{
  color: #000E56;
}
.hero-section .carousel-caption .banner-font-color-blue a.btn.btn-primary{
  background: #000E56;
  color: #fff;
}
.hero-section .carousel-caption .banner-font-color-blue a.btn.btn-primary:hover{
  background: #3766A8;
  transition: background ease-in .5s;
  color: #fff;
}
.hero-section .carousel-caption .banner-font-color-white a.btn.btn-primary:hover{
  background: #3766A8;
  transition: background ease-in .5s;
  color: #fff;
}
/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .hero-section .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .hero-section .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
    .hero-section .featurette-heading {
    margin-top: 7rem;
  }
}

@media (min-width: 768px) {
  .hero-section .carousel {
    margin-bottom: 70px;
  }
  .hero-section .carousel-item {
    height: 650px;
  }
  .hero-section .carousel-item > img {
    height: 650px;
  }
  .hero-section .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
  .hero-section #carouselButtons {
    top: -60px;
    right: 5%;
    z-index: 2;
  }
  .hero-section .hero_fullwidth .hero-banner-bg-image:after{
    background-image: url('https://wave-eu-west-1.s3.eu-west-1.amazonaws.com/websites/ipsen_com_v2/wp-content/uploads/2023/03/15101905/blur-vector.png');
  }
  .hero-section .hero_fullwidth #heroCarousel:after {
    /* content: " "; */
    position: absolute;
    width: 100%;
    top: 0px;
    background-position: 100% 100%;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .hero-section .carousel-inner::after {
    height:650px;
  }
}
@media (min-width: 992px) {
  .hero-section #heroCarousel:after {
    background-position: right;
  }
  .hero-section .carousel-inner::after {
    background: linear-gradient(90.21deg, #003E7E 0.18%, rgba(0, 0, 0, 0) 49.17%);
    height:600px;
  }
}
@media (min-width: 1025px) {
  .hero-section .carousel-item {
    height: 600px;
  }
  .hero-section .carousel-item > img {
    height: 600px;
  }
  .hero-section #heroCarousel:after {
    height: 600px;
  }
  .hero-section .carousel-item:first-child .carousel-caption {
    /* max-width: 350px; */
  }
  .hero-section .carousel-caption {
    /* max-width: 430px; */
    top: 300px;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0 15px 0 120px;
  }
  .hero-section .align-right .carousel-caption{
    padding: 0 120px 0 15px;
  }
  .hero-section .carousel-caption p{
    font-size:32px
  }
  .hero-section button.carousel-control-prev,
  .hero-section button.carousel-control-next {
      display:block;
  }
  .hero-section .carousel-item > img {
      object-fit: cover;
  }
}
@media (min-width: 1600px) {
  .hero-section .carousel-item:first-child .carousel-caption {
    /* max-width: 570px; */
  }
  .hero-section .carousel-caption {
    /* max-width: 530px; */
  }
  .hero-section a.btn.btn-primary {
    font-size:16px;
    line-height:20px;
  }
}


/******* align CSS *********/
.hero-section .carousel-item {
  display:none; 
}
.hero-section .carousel-item.active {
  display:flex;
  align-items: center;
}
.hero-section .carousel-caption {
   position:relative;
}

.hero-section .carousel-item .container.align-right {
   display:flex;
   justify-content: end;
}
.hero-section .carousel-item .container.align-left {
   display:flex;
   justify-content: start;
}
.hero-section .carousel-item .container.align-center {
   display:flex;
   justify-content: center;
}
.hero-section .carousel-caption{
 top: 0px !important;
}

/* CSS for Hero-banner which has ".hero_gridwidth" class for stories page*/
.hero_gridwidth .carousel{margin-bottom:25px;}


.hero_gridwidth .carousel-inner{
  border-radius: 8px;
}


.hero_gridwidth .carousel-inner::after {
    background: linear-gradient(70.21deg, #003E7E 0.18%, rgba(0, 0, 0, 0) 49.17%);
    max-height:500px;
    padding: 120px 88px;
  }

.hero_gridwidth .carousel-item .container.align-left {
    display: flex;
    justify-content: start;
    left: 30px;
}
.hero_gridwidth .carousel-item .container.align-right {
  display:flex;
  justify-content: end;
}
.hero_gridwidth .carousel-item .container.align-center {
  display:flex;
  justify-content: center;
}

.hero_gridwidth .carousel-item:first-child .carousel-caption{
  max-width:500px;
}
.hero-section.blue-filter .hero_gridwidth .carousel-caption {
  margin-bottom: 0px;
}
.hero-section.blue-filter .hero_gridwidth .carousel-caption a.btn{
  margin-top: 32px;
}
.hero-section .hero_gridwidth .carousel-caption .heading-one,
.hero-section .hero_gridwidth .carousel-caption .heading-two,
.hero-section .hero_gridwidth .carousel-caption .heading-three,
.hero-section .hero_gridwidth .carousel-caption .heading-four,
.hero-section .hero_gridwidth .carousel-caption .heading-five,
.hero-section .hero_gridwidth .carousel-caption .heading-six{
  color: #000E56;
  margin-bottom: 0;
}
.hero-section .hero_gridwidth .carousel-caption .text-start{
  color: #000E56;
  margin-top: 0px;
}
.hero-section .carousel-caption div.visible.text-start{
  margin: 24px 0 40px;
  color: #000E56;
}
.hero-section .hero_gridwidth.container .carousel-caption p.visible a{
  margin-top: 45px;
}

/* Large desktop design */
@media only screen and (min-width: 1600px){
  .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
    max-width: 650px;
  }
  .hero_gridwidth .carousel-item{
    max-height:500px;
    width:100%;
  }
  .hero_gridwidth .carousel-item > img{
    max-height: 500px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  .hero_gridwidth .carousel{
    margin-bottom: 25px;
  }
  .hero-section .hero_fullwidth .carousel-caption{
    margin-bottom: 0;
  }
  .hero-section .hero_gridwidth .carousel-caption {
    margin-bottom: 0;
  }
}

/* Small desktop design */
@media only screen and (min-width: 1200px) and (max-width: 1599px){
  .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: 0px;
    }
    .hero_gridwidth .carousel-item{
      max-height:500px;
      width:100%;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 500px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom: 0px;
    }
    .hero-section .hero_gridwidth .carousel-caption{
      margin-bottom: 0px;
    }
}

/* Tablet landscape design */
@media only screen and (min-width: 992px) and (max-width: 1199px){
    .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: 60px;
    }
    .hero_gridwidth .carousel-item{
      max-height:500px;
      width:100%;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 500px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom: 0px;
    }
    .hero-section .hero_gridwidth .carousel-caption{
      margin-bottom: 0px;
    }
}

/* Tablet portrait design */
@media only screen and (min-width: 768px) and (max-width: 991px){
    .hero-section .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: 90px;
    }
    .hero_gridwidth .carousel-item{
      width:100%;
      max-height:360px;
    }
    .hero_gridwidth .carousel-item > img{
      max-height: 360px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    .hero_gridwidth{
    padding:0 12px;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }

    .hero-section .hero_fullwidth .carousel-caption{
      margin-bottom:10px;
    }
}

/* Mobile design */
@media only screen and (min-width: 360px) and (max-width: 767px){
    h1{
      font-size: 38px;
      line-height: 42px;
      word-break: break-word;
    }
    .carousel-caption h2{
      font-size: 24px !important;
      line-height: 30px !important;
    }
    .hero-section .hero_gridwidth .carousel-item:first-child .carousel-caption{
      max-width:600px;
      margin-top: -30px;
      margin-left: 0px;
    }
    .hero_gridwidth .carousel{
      margin-bottom:25px;
    }
    .hero_gridwidth .carousel-item{
      max-height:360px;
    }
  .hero_gridwidth .carousel-item > img{
    max-height: 360px;
    position: absolute;
  }
  
  /* swiss mobile banner issue*/
  .swiss-career-page .hero_gridwidth .carousel-item{
    max-height: 430px;
  }
  .swiss-career-page .hero_gridwidth .carousel-item > img{
    max-height: 425px;
  }
  /* Hero banner play/pause button */
  .hero-section #carouselButtons {
    bottom: 580px;
    top: auto;
  }
  .hero-section a.btn.btn-primary {
    font-size: 16px;
    line-height: 20px;
    border-radius: 8px;
    padding: 15px 25px 15px 25px;
  }
}

@media (max-width: 1024px){
  .hero-section button.carousel-control-prev,
  .hero-section button.carousel-control-next{
    display: block;
  }
}

@media only screen and (min-width: 992px) {
  .carousel.slide.herocaro.hero-banner-bg-image .carousel-item .video iframe {
      min-width: 222.77vh;
      min-height:100vh;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .carousel.slide.herocaro.hero-banner-bg-image .carousel-item .video iframe {
          min-height: 100vh;
          min-width: 287.77vh;
      }
  }
  
  @media only screen and (min-width: 1200px) and (max-width: 1450px) {
  .carousel.slide.herocaro.hero-banner-bg-image .carousel-item .video iframe {
          min-height: 100vh;
          min-width: 307.77vh;
      }
  }
  
  @media only screen and (min-width: 1450px) and (max-width: 1650px) {
    .carousel.slide.herocaro.hero-banner-bg-image .carousel-item .video iframe {
            min-height: 100vh;
            min-width: 325.77vh;
        }
    }
  
    @media only screen and (min-width: 1650px) {
      .carousel.slide.herocaro.hero-banner-bg-image .carousel-item .video iframe {
              min-height: 100vh;
              min-width: 345.77vh;
          }
  }

  @media only screen and (max-width: 567px) {
    #heroCarousel .carousel-control-next,
    #heroCarousel .carousel-control-prev{
      z-index: 99;
    }
    .hero-section .carousel-caption{
      left: 45px;
      max-width: 300px;
    }
    .hero-section .carousel-caption h1 {
      margin-bottom: 20px;
      font-size: 25px;
      line-height: 30px;
    }
    .hero-section .carousel-caption p {
      font-size: 18px;
    }
    .hero-section a.btn.btn-primary {
        font-size: 14px;
        padding: 10px 15px 10px 15px;
    }
    .hero-section .carousel-control-prev-icon,
    .hero-section .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
  }
  