/**
 * 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: 5px 0 30px 0;
  overflow: hidden;
}

#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: 12px;
}

#bonbanners ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

#bonbanners ul li{
  padding: 10px;
}

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

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

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

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

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner h3,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h3{
    color: #fff;
}

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner{
    padding: 40px 20px 10px 40px;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.banner-inner-right {
    align-self: flex-end;
    text-align: end;
}

#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%;
  padding-left: 40px;
  z-index: 2;
  transform: translate(0, -50%);
}

#bonbanners a .banner-inner p {
  color: #7D46D8;
  margin-bottom: 12px;
}

#bonbanners a .banner-inner p strong {
    font-weight: 500;
}
#bonbanners a .banner-inner h2 {
    color: #7D46D8;
    font-size: 16px;
    font-weight: normal;
}
#bonbanners a .banner-inner h3 {
  font-size: 29px;
  font-weight: normal;
  margin: 0 0 15px;
  color: #7D46D8;
}

#bonbanners a .banner-inner h4 {
  font-size: 48px;
  font-weight: normal;
  margin: 0 0 5px;
  color: #fff;
}

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

#bonbanners a span:hover {
  box-shadow: none;
  background: #6438ac;
}

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


@media (max-width: 575.98px) {
  #bonbanners {
    margin: 5px 0 30px 0;
}
  
  #bonbanners ul {
    display: block;
  }
    #bonbanners ul li{
        /*padding: 2px;*/
    }
   #bonbanners a .banner-inner span {
        display: none;
   }
  #bonbanners .banner-list .banner-item:nth-child(3){
    display: none;
  }
}


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

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

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

    #bonbanners .banner-list .banner-item:nth-child(5){
        grid-area: 7 / 1 / 9 / 3;
    }
    #bonbanners ul li {
            /*padding: 5px;*/
          }
          #bonbanners a .banner-inner h3{
            font-size: 27px;
          }
          #bonbanners a .banner-inner h3 {
            margin: 0 0 5px;
          }
          #bonbanners a .banner-inner h4{
            font-size: 31px;
          }
          #bonbanners a .banner-inner .banner-inner-right {
            font-size: 35px;
            line-height: 1;
            margin-left: 25px;
          }
          #bonbanners a .banner-inner span{
            padding: 9px 20px;
            font-size: 12px
          }
          #bonbanners a .banner-inner {
            padding-left: 25px;
          }
}