/**
 * 2015-2020 Bonpresta
 *
 * Bonpresta Responsive banners
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the General Public License (GPL 2.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/GPL-2.0
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade the module to newer
 * versions in the future.
 *
 *  @author    Bonpresta
 *  @copyright 2015-2020 Bonpresta
 *  @license   http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
 */

#bonbanners {
  margin-bottom: 70px;
  overflow: hidden;
}
#bonbanners .bonbanner_title{
  display: flex;
  flex-direction: column;
  align-items: center;
}

#bonbanners .bonbanner_title h2{
  font-size: 35px;
  margin-bottom: 20px;
}

#bonbanners .bonbanner_title h3{
  font-size: 25px;
  margin-bottom: 25px;
  padding: 10px;
  background: #cdaeae;
  color: #fff;
  margin-bottom: 40px;
}

#bonbanners.boxed-banners a .banner-inner h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

#bonbanners.boxed-banners a .banner-inner h4 {
  font-size: 21px;
}

#bonbanners.boxed-banners a .banner-inner p {
  font-size: 14px;
  margin-bottom: 8px;
}

#bonbanners.boxed-banners a .banner-inner span {
  padding: 12px 20px;
}


#bonbanners p {
  font-size: 15px;
}

#bonbanners ul {
  margin: 0 -5px;
}

#bonbanners ul .banner-item {
  padding: 0 5px;;
}


#bonbanners a {
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  color: #333333;
  display: block;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: 100%;
}

#bonbanners a img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: all .2s linear;
}

#bonbanners a:hover img.img-responsive {
  transform: scale(1.07);
}

#bonbanners a .banner-inner {
  position: absolute;
  left: 45px;
  bottom: 40px;
  z-index: 2;
  text-align: left;
  height: 67%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#bonbanners .banner-inner-wrapper {
  position: relative;
  max-width: 210px;
  margin-left: calc(15px + (40 - 15) * ((100vw - 320px) / (1880 - 320)));
}

#bonbanners .banner-inner-wrapper img {
  position: absolute;
  width: 100px;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
}

#bonbanners a .banner-inner p {
  font-family: 'Montserrat';
  font-weight: 500;
  color: #cdaeae;
  font-size: calc(14px + (18 - 14) * ((100vw - 950px) / (1880 - 950)));
  background-color: #fff;
  padding: 10px 5px 10px 15px;
  line-height: 1.2;
  border-radius: 10px;
  position: relative;
}

#bonbanners a .banner-inner p strong {
  font-weight: 500;
}

#bonbanners a .banner-inner h3 {
  font-size: calc(20px + (60 - 20) * ((100vw - 950px) / (1880 - 950)));
  margin: 0 0 3px;
  color: #fff;
  width: max-content;
  font-family: 'Cormorant Infant';
  font-weight: 500;
}

#bonbanners a .banner-inner h4 {
  font-family: 'Montserrat';
  font-weight: 400;
  font-size: calc(15px + (25 - 15) * ((100vw - 950px) / (1880 - 950)));
  margin: 0;
  color: #fff;
}

#bonbanners a .banner-inner span.banner-btn {
  font-weight: normal;
  white-space: inherit;
  font-size: 20px;
  border: none;
  transition: 0.5s;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  position: relative;
}
#bonbanners a .banner-inner span.banner-btn:after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: all .4s ease;
}

#bonbanners a span.banner-btn:hover:after {
  width: 0;
  right: 0;
  left: auto;
}

#bonbanners a:before,
#bonbanners a:after {
  pointer-events: none;
}
@media (max-width: 1880px) {
  #bonbanners {
    margin-bottom: calc(30px + (70 - 30) * ((100vw - 320px) / (1880 - 320)));
  }
}

@media (max-width: 991px) {
  #bonbanners .banner-item:not(:last-child) {
    margin-bottom: 10px;
  }
}

@media (min-width: 950px) and (max-width: 1880px) {
  #bonbanners a .banner-inner h3 {
    font-size: calc(20px + (45 - 20) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(7) h3 {
    font-size: calc(20px + (35 - 20) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners a .banner-inner span.banner-btn {
    font-size: calc(15px + (20 - 15) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(2) .banner-inner h3 {
    margin: 0 0 calc(10px + (24 - 10) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h2 {
    font-size: calc(13px + (20 - 13) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners a .banner-inner p {
    margin-bottom: calc(0px + (35 - 0) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3, #bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h3 {
    margin: 0 0 15px;
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2 {
    font-size: calc(18px + (30 - 18) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3 {
    font-size: calc(19px + (50 - 19) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4 {
    font-size: calc(14px + (20 - 14) * ((100vw - 950px) / (1880 - 950)));
  }
}

@media (max-width: 950px) {
  #bonbanners .banner-list {
    gap: calc(6px + (20 - 6) * ((100vw - 320px) / (991 - 320))) calc(6px + (20 - 6) * ((100vw - 320px) / (991 - 320)));
  }
  #bonbanners a .banner-inner h3 {
    font-size: calc(15px + (45 - 15) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners a .banner-inner span.banner-btn {
    font-size: calc(10px + (20 - 10) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners a .banner-inner h4 {
    font-size: calc(14px + (25 - 14) * ((100vw - 320px) / (950 - 320)));
  }
}

@media (max-width: 950px) {
  #bonbanners .banner-list {
    grid-template-rows: repeat(8, 1fr);
    grid-template-areas:
      "banner-item-1 banner-item-1 banner-item-1 banner-item-1"
      "banner-item-1 banner-item-1 banner-item-1 banner-item-1"
      "banner-item-2 banner-item-2 banner-item-2 banner-item-2"
      "banner-item-3 banner-item-3 banner-item-4 banner-item-4"
      "banner-item-5 banner-item-5 banner-item-5 banner-item-5"
      "banner-item-6 banner-item-6 banner-item-7 banner-item-7"
      "banner-item-8 banner-item-8 banner-item-8 banner-item-8"
      "banner-item-8 banner-item-8 banner-item-8 banner-item-8";
  }
   #bonbanners .banner-list .banner-item:nth-child(8) {
    grid-area: banner-item-7;
  }
  /*#bonbanners .banner-list .banner-item:nth-child(5) {
    grid-area: banner-item-7;
  }*/
  #bonbanners .banner-list .banner-item:nth-child(7) {
    grid-area: banner-item-8;
  } 
}

@media screen and (max-width: 575px) {
  #bonbanners .banner-inner-wrapper img,
  #bonbanners .banner-inner-wrapper {
    display: none;
  }

  #bonbanners a .banner-inner h3 {
    font-size: 30px;
  }

  #bonbanners a .banner-inner h4 {
    font-size: 16px;
  } 

  #bonbanners a .banner-inner {
    justify-content: flex-end;
    bottom: 20px;
  }
}

