/**
 * 2015-2019 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-2019 Bonpresta
 *  @license   http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
 */

#bonbanners {
  margin: 14px 0 40px 0;
  overflow: hidden;
}

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

#bonbanners ul {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 20px;
}

#bonbanners .banner-item:nth-child(1){
  grid-area: 1 / 1 / 2 / 2;
}
#bonbanners .banner-item:nth-child(2){
  grid-area: 1 / 2 / 2 / 3;
}

#bonbanners .banner-item:nth-child(3){
  grid-area: 2 / 1 / 3 / 3;
}

#bonbanners .banner-item:nth-child(4){
  grid-area: 1 / 3 / 3 / 4; 
}

#bonbanners .banner-item:nth-child(5){
  grid-area: 1 / 4 / 2 / 5;
}

#bonbanners .banner-item:nth-child(6) {
  grid-area: 2 / 4 / 3 / 5;
}

#bonbanners > ul > li:nth-child(1) > a > div {
  right: 20px;
  left: unset;
  max-width: 220px;
}

#bonbanners > ul > li:nth-child(1) > a > .banner-inner > h4 {
  margin-bottom: 15px;
  font-size: 26px;
}

#bonbanners ul li:nth-child(1) .banner-inner h3 span:after {
  width: 35%;
}

#bonbanners > ul > li:nth-child(1) > a > .banner-inner > p {
  font-size: 20px;
  color: #3a3a3a;
}

#bonbanners > ul > li:nth-child(2) > a > div {
  right: 22px;
  left: unset;
  top: 30%;
}

#bonbanners  ul li:nth-child(2) .banner-inner h3:nth-child(3) {
  color: #3a3a3a;
}

#bonbanners  ul li:nth-child(2) .banner-inner h3 span:after {
  width: 40%;
}

#bonbanners > ul > li:nth-child(3) > a > .banner-inner {
  right: 6%;
  left: unset;
  max-width: 320px;
  width: 100%;
  top: 40%;
}

#bonbanners > ul > li:nth-child(3) .banner-inner p {
  position: absolute;
  bottom: -45%;
}

#bonbanners > ul > li:nth-child(3) .banner-inner p:last-child {
  position: static;
}

#bonbanners  ul li:nth-child(3) .banner-inner h3 span:after {
  width: 35%;
}

#bonbanners  ul li:nth-child(3) .banner-inner h3:nth-child(2),
#bonbanners  ul li:nth-child(4) .banner-inner h3:nth-child(2) {
  font-weight: 300;
  color: #3a3a3a;
}

#bonbanners > ul > li:nth-child(4) > a > .banner-inner {
  bottom: -5%;
  top: unset;
  left: 30px;
}

#bonbanners  ul li:nth-child(4) .banner-inner h3 span:after {
  width: 25%;
}

#bonbanners > ul > li:nth-child(4) > a > .banner-inner h4 {
  font-weight: 400;
  font-size: 26px;
}

#bonbanners > ul > li:nth-child(5) > a > .banner-inner {
  left: unset;
  right: 30px;
}

#bonbanners > ul > li:nth-child(5) > a > .banner-inner p {
  margin: 0;
  color: #3a3a3a;
}

#bonbanners > ul > li:nth-child(5) > a > .banner-inner h3:nth-child(2) {
  color: #3a3a3a;
}

#bonbanners ul li:nth-child(5) .banner-inner h3 span:after {
  width: 22%;
}

#bonbanners > ul > li:nth-child(6) > a > div {
  right: 30px;
  left: unset;
}

#bonbanners > ul > li:nth-child(6) > a > .banner-inner > p {
  margin: 0;
  margin-top: 50%;
  text-align: right;
}

#bonbanners > ul > li:nth-child(6) > a > .banner-inner p:last-child {
  margin-top: 0;
}

#bonbanners ul li:nth-child(6) .banner-inner h3 span:after {
  width: 22%;
}

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

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

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

#bonbanners a .banner-inner {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  transform: translate(0, -50%);
}

#bonbanners a .banner-inner p {
  color: rgba(0, 0, 0, 0.45);
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5;
}

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

#bonbanners a .banner-inner h3 {
  font-size: 29px;
  font-weight: normal;
  margin: 0;
  color: #1c1c1c;
  position: relative;
  line-height: 1.5;
  position: relative;
}

#bonbanners a .banner-inner h3 span {
  position: relative;
}

#bonbanners a .banner-inner h3 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background-color: #000;
  transition: all .5s linear;
}

#bonbanners ul li a:hover .banner-inner h3 span::after {
  width: 100%;
}


#bonbanners a .banner-inner h4 {
  font-size: 25px;
  font-weight: 300;
  margin: 0 0 5px;
  color: #3a3a3a;
}

#bonbanners a .banner-inner p span {
  background: #3a3a3a;
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  padding: 13px 32px;
  margin-top: 5px;
  transition: all .2s linear;
  box-shadow: rgba(0, 0, 0, 0.1) 4px 4px 4px;
  font-size: 15px;
}

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


@media screen and (min-width: 1441px) and (max-width: 1780px){
  #bonbanners a .banner-inner h3 {
    font-size: 26px;
    margin-bottom: 8px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 22px;
  }
  #bonbanners a .banner-inner p {
    font-size: 14px;
    margin-bottom: 8px;
  }
  #bonbanners a .banner-inner p span {
    padding: 12px 20px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1440px){
  #bonbanners a .banner-inner h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 21px;
  }
  
  #bonbanners a .banner-inner p span{
    padding: 12px 20px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1280px) {
  #bonbanners a .banner-inner {
    padding-left: 20px;
  }
  #bonbanners a .banner-inner h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 15px;
  }
 
  #bonbanners a .banner-inner p span{
    padding: 8px 18px;
  }
}

@media screen and (min-width: 769px) and (max-width: 991px) {
  #bonbanners a .banner-inner h3 {
    margin: 3px 0 0;
    font-size: 16px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 13px;
  }
}

@media screen and (min-width: 576px) and (max-width: 768px) {
  #bonbanners a .banner-inner {
    max-width: 235px; 
    padding-left: 12px;
  }
  #bonbanners a .banner-inner h3 {
    font-size: 15px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 12px;
  }
}

@media screen and (min-width: 481px) and (max-width: 575px) {

  #bonbanners a .banner-inner h3 {
    font-size: 20px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 21px;
  }
  #bonbanners a .banner-inner p {
    font-size: 13px;
    margin-top: 10px;
  }
  #bonbanners a .banner-inner p span {
    padding: 10px 20px;
  }
}



@media (max-width: 480px) {
  #bonbanners > ul > li:nth-child(1) > a > div {
    padding: 15px 25px 15px 10px;
    max-width: 255px;
  }
  #bonbanners > ul > li:nth-child(2) > a > div{
    max-width: 185px;
  }
  #bonbanners .col-sm-4:last-child {
    padding-right: 15px;
  }
  #bonbanners a .banner-inner h3 {
    font-size: 20px;
    margin-bottom: 0;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 15px;
  }
  #bonbanners a .banner-inner {
    padding: 0 20px;
    text-align: center;
    max-width: 240px;
    margin-top: 5px;
    margin-bottom: 0;
  }
  #bonbanners a .banner-inner p {
    font-size: 12px;
    margin-bottom: 8px;
    display: none;
  }
  #bonbanners a .banner-inner p span {
    padding: 8px 18px;
  }
  
  #bonbanners > ul > li:nth-child(4) > a > div{
    left: 15px;
  }
  #bonbanners > ul > li:nth-child(3) > a > .banner-inner{
    max-width: 220px;
    right: 0;
  }
  
  #bonbanners > ul > li:nth-child(6) > a > div{
    right: 15px;
  }

  #bonbanners>ul>li:nth-child(1)>a>.banner-inner>h4,
  #bonbanners>ul>li:nth-child(4)>a>.banner-inner>h4 {
    font-size: 20px;
  }
}



@media (min-width: 320px) and (max-width: 900px) {
  #bonbanners ul {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  
  #bonbanners .banner-item:nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
  }
  
  #bonbanners .banner-item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }

  #bonbanners .banner-item:nth-child(3) {
    grid-area: 2 / 1 / 3 / 3;
  }
  
  #bonbanners .banner-item:nth-child(4) {
    grid-area: 3 / 1 / 5 / 2;
  }
  
  #bonbanners .banner-item:nth-child(5) {
    grid-area: 3 / 2 / 4 / 3;
  }
  
  #bonbanners .banner-item:nth-child(6) {
    grid-area: 4 / 2 / 5 / 3;
  }
}
