/**
 * 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: 3px 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 {
    max-width: 370px;
    right: 0;
    top: 90px;
}

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner{
    top: 75px;
    right: 0;
    max-width: 260px;
}

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner{
    bottom: -50px;
    right: 0;
    max-width: 410px;
}

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner {
    max-width: 270px;
    top: 100px;
    left: 0;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
    max-width: 410px;
    bottom: -30px;
    right: 0;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner h4,
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4 {
    position: relative;
    padding-right: 30px;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner h4::after,
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4::after {
    content: "";
    display: inline-block;
    position: absolute;
    right: 15px;
    bottom: 0;
    width: 1px;
    max-height: 50px;
    height: 100%;
    background-color: #3A3A3A;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner .banner-inner__text {
    flex-basis: 40%;
}

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner .banner-inner__text {
    flex-basis: 79%;
}

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner .banner-inner__text {
    flex-basis: 88%;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .banner-inner__text {
    flex-basis: 46%;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner .banner-inner__btn,
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .banner-inner__btn {
    position: absolute;
    bottom: -65px;
}

#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 h3 {
    margin-bottom: 5px;
    flex-basis: 89%;
}

#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 .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;
}

.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;
  padding: 25px 30px;
  z-index: 2;
  transform: translate(0, -50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#bonbanners a .banner-inner:before {
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .85);
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    opacity: 0.83;
}

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

#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: 27px;
    line-height: 140%;
    /* margin: 0 0 5px; */
    margin-bottom: 0;
    color: #3a3a3a;
}

#bonbanners a .banner-inner h4 {
    font-size: 35px;
    font-weight: normal;
    /* margin: 0 0 5px; */
    margin-bottom: 0;
    color: #3a3a3a;
}

#bonbanners a .banner-inner span {
    background: #3A3A3A;
    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: #1d1d1d;
}

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

@media (min-width: 1800px) {
    #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 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; */
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    #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; */
        margin-bottom: 0;
    }
    #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 .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 h2{
        font-size: 19px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner h3 {
        margin: 0 0 5px;
        line-height: 120%;
    }
    #bonbanners a .banner-inner p {
        font-size: 17px;
        /* margin-bottom: 1rem; */
        margin-bottom: 0;
    }
}

@media (min-width: 320px) and (max-width: 576px) {
    #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; */
        margin-bottom: 0;
    }
}

@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(1) .banner-inner,
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner{
        bottom: -15px;
        flex-direction: column;
        align-items: flex-start;
        top: auto;
    }

    #bonbanners .banner-list .banner-item:nth-child(1) .banner-inner h4::after,
    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4::after {
        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;
    } */
}