/**
 * 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: 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(1) .banner-inner:before{
    width: 130%;
}
#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(3) .banner-inner{
    top: 18%;
}
#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner {
    padding: 10px 40px 33px 35px;
}

#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(5) .banner-inner{
    display: flex;
    align-items: center;
    padding: 30px;
    top: 60%;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner:before{
    height: 100%;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3:before{
    content: '';
    background: black;
    width: 1px;
    height: 40px;
    position: absolute;
    left: 39.5%;
    top: 33%;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3{
    margin: 0 45px 0 0;
    font-size: 39px;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-p{
    font-size: 20px;
    width: 56%;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3,
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-p{
    margin-bottom: 0;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .bonbanners-btn{
    bottom: -60%;
    margin-bottom: 0;
}

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner{
    padding: 17px 40px 33px 35px;
    top: 36%;
}

.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 .bonbanners-btn {
    position: absolute;
    left: 35px;
    margin-bottom: 0;
}

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

#bonbanners a .banner-inner:before {
    content: '';
    width: 100%;
    height: 80%;
    background: white;
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    opacity: 0.83;
}

#bonbanners a .banner-inner p {
  color: #3a3a3a;
    font-size: 17px;
    line-height: 140%;
    margin-bottom: 3rem;
}

#bonbanners a .banner-inner p strong {
    font-weight: 500;
}
#bonbanners a .banner-inner h2 {
    color: #3a3a3a;
    font-size: 32px;
    line-height: 140%;
    margin-bottom: 2px;
}
#bonbanners a .banner-inner h3 {
    font-size: 32px;
    line-height: 140%;
  margin: 0 0 5px;
  color: #3a3a3a;
}

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

#bonbanners a .banner-inner span {
    background: linear-gradient(
            227.99deg,
            #F9748F,
            #FD868C 49%,
            #F9748F
    ) 0 / 200%;
  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: linear-gradient(
            227.99deg,
            #F9748F,
            #FD868C 49%,
            #F9748F
  ) 100% / 200%;
}

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

@media (min-width: 1800px) {
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
        padding: 30px 0 30px 30px;
        max-width: 53%;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-p {
        width: 51%;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3:before {
        left: 44.5%;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    #bonbanners a .banner-inner {
        padding: 20px 20px 20px 35px;
    }
    #bonbanners a .banner-inner:before {
        height: 90%;
    }
    #bonbanners a .banner-inner h2 {
        font-size: 28px;
        margin-bottom: 2px;
    }
    #bonbanners a .banner-inner h3 {
        font-size: 28px;
    }
    #bonbanners a .banner-inner p {
        font-size: 17px;
        line-height: 100%;
        margin-bottom: 1rem;
    }
    #bonbanners .banner-list .banner-item:nth-child(1) .bonbanners-btn {
        margin-top: 1.4rem;
    }
}

@media (max-width: 1600px) {
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
        top: 40%;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    #bonbanners .banner-list .banner-item:nth-child(1) .bonbanners-btn {
        margin-top: 0.5rem;
    }
    #bonbanners a .banner-inner {
        padding: 20px 20px 20px 35px;
    }
    #bonbanners a .banner-inner:before {
        height: 88%;
    }
    #bonbanners a .banner-inner h2 {
        font-size: 23px;
        line-height: 100%;
    }
    #bonbanners a .banner-inner h3 {
        font-size: 29px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner p {
        font-size: 17px;
        margin-bottom: 1rem;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3 {
        font-size: 33px;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
        padding: 15px;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3:before {
        height: 35px;
        left: 36%;
        top: 30%;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-p {
        font-size: 18px;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-btn {
        bottom: -75%;
        left: 15px;
    }
}
@media (min-width: 576px) and (max-width: 768px) {
    #bonbanners a .banner-inner {
        padding: 10px 20px 10px 20px;
    }
    #bonbanners a .banner-inner:before {
        height: 80%;
    }
    #bonbanners a .banner-inner h2{
        font-size: 19px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner h3 {
        margin: 0 0 5px;
        font-size: 31px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner p {
        font-size: 17px;
        margin-bottom: 1rem;
    }
}
@media (min-width: 320px) and (max-width: 576px) {
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
        padding: 20px;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3 {
        margin: 0 30px 0 0;
        font-size: 18px;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-h3:before {
        height: 30px;
        left: 30.5%;
        top: 32%;
    }
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .resp-custom-p {
        font-size: 15px;
        width: 56%;
    }
}
@media (min-width: 320px) and (max-width: 400px) {
    #bonbanners a .banner-inner {
        padding: 20px 30px 20px 30px;
    }
    #bonbanners a .banner-inner h2 {
        font-size: 28px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner h3 {
        font-size: 28px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner p {
        font-size: 17px;
        line-height: 120%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
  #bonbanners {
    margin: 10px 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;*/
  }
}