/**
 * 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 {
  position: relative;
  margin-top: -8%;
}

#bonbanners .banner-list {
  margin-bottom: 0;
}

#bonbanners .banner-item {
  margin-bottom: 5px;
}

#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: #656a50;
  color: #fff;
  margin-bottom: 40px;
}

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

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

#bonbanners .banner-inner {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

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

#bonbanners p.h1 {
  color: #3a3a3a;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  /*text-transform: uppercase;*/
}

#bonbanners p.h2 {
  color: #3a3a3a;
  line-height: 1.5;
}

#bonbanners p.h3 {
  color: #3a3a3a;
  line-height: 1.5;
  text-transform: none;
}

#bonbanners .bonbanners-btn,
#bonbanners .bonbanners-btn-more {
  display: inline-block;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  border-radius: 46px;
  font-weight: 500;
}

#bonbanners .bonbanners-btn {
  color: #fff;
  background-color: #656a50;
  border: 1px solid #656a50;
}

#bonbanners .bonbanners-btn:hover {
  background-color: #265931;
  border-color: #265931;
}

#bonbanners .bonbanners-btn-more {
  color: #656a50;
  border: 1px solid #656a50;
  background-color: transparent;
}

#bonbanners .bonbanners-btn-more:hover {
  color: #31a34a;
  border-color: #31a34a;
}

#bonbanners a:before,
#bonbanners a:after {
  pointer-events: none;
}

@media screen and (min-width: 1881px) {
  #bonbanners .banner-inner {
    max-width: 580px;
  }

  #bonbanners {
    margin-bottom: 90px;
  }

  #bonbanners p.h1 {
    font-size: 68px;
  }

  #bonbanners p.h2 {
    font-size: 29px;
    margin-bottom: 44px;
  }

  #bonbanners p.h3 {
    font-size: 20px;
    margin-bottom: 60px;
  }

  #bonbanners .bonbanners-btn,
  #bonbanners .bonbanners-btn-more {
    font-size: 20px;
    padding: 19px 28px;
  }

  #bonbanners .bonbanners-btn-more {
    margin-left: 30px;
  }
}

@media screen and (max-width: 1880px) {
  #bonbanners {
    margin-bottom: calc(30px + (90 - 30) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonbanners p.h1 {
    font-size: calc(18px + (68 - 18) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonbanners p.h2 {
    font-size: calc(14px + (29 - 14) * ((100vw - 320px) / (1880 - 320)));
    margin-bottom: calc(5px + (44 - 5) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonbanners p.h3 {
    font-size: calc(14px + (20 - 14) * ((100vw - 320px) / (1880 - 320)));
    margin-bottom: calc(5px + (60 - 5) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonbanners .bonbanners-btn,
  #bonbanners .bonbanners-btn-more {
    font-size: calc(12px + (20 - 12) * ((100vw - 320px) / (1880 - 320)));
    padding: calc(8px + (19 - 8) * ((100vw - 320px) / (1880 - 320))) calc(12px + (28 - 12) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonbanners .bonbanners-btn-more {
    margin-left: calc(10px + (30 - 10) * ((100vw - 320px) / (1880 - 320)));
  }
}

@media screen and (min-width: 1200px) {
  #bonbanners p.h2 {
    width: 90%;
  }

  #bonbanners p.h3 {
    width: 80%;
  }
} 

@media screen and (max-width: 991px) {
  #bonbanners p.h3 {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  #bonbanners p.h2,
  #bonbanners .bonbanners-btn-more {
    display: none;
  }
}

@media (min-width: 576px) and (max-width: 1880px) {
  #bonbanners .banner-inner {
    max-width: calc(250px + (580 - 250) * ((100vw - 300px) / (1880 - 576)));
    padding-left: 5px;
  } 
}

@media screen and (max-width: 575px) {
  #bonbanners .banner-inner {
    max-width: calc(105px + (180 - 105) * ((100vw - 320px) / (575 - 320)));
  } 

  #bonbanners p.h1 {
    margin-bottom: 0;
  }

  #bonbanners {
    display: none;
  }
}

