/**
 * 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 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 / 5 / 3;
}

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

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

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

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

#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;
    z-index: 2;
    padding-right: 15px;
}

#bonbanners .banner-list .banner-item:nth-child(1) a .banner-inner {
    top: 4%;
    left: 8%;
}

#bonbanners .banner-list .banner-item:nth-child(1) a .banner-inner .bonbanners-text-one {
    font-weight: 500;
}

#bonbanners .banner-list .banner-item:nth-child(1) a .banner-inner .bonbanners-text-two {
    font-weight: 300;
}

#bonbanners .banner-list .banner-item:nth-child(2) a .banner-inner {
    top: 8%;
    left: 8%;
}

#bonbanners .banner-list .banner-item:nth-child(2) a .banner-inner .bonbanners-text-one {
    font-weight: 500;
}

#bonbanners .banner-list .banner-item:nth-child(3) a .banner-inner {
    top: 8%;
    left: 5%;
}

#bonbanners .banner-list .banner-item:nth-child(3) a .banner-inner .bonbanners-text-one {
    font-weight: 300;
}

#bonbanners .banner-list .banner-item:nth-child(3) a .banner-inner .bonbanners-text-two {
    font-weight: 500;
}

#bonbanners .banner-list .banner-item:nth-child(4) a .banner-inner {
    top: 8%;
    left: 5%;
}

#bonbanners .banner-list .banner-item:nth-child(4) a .banner-inner .bonbanners-text-one {
    font-weight: 300;
}

#bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner {
    top: 9%;
    left: 8%;
}

#bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner .bonbanners-text-one {
    font-weight: 300;
}

.bonbanners-btn {
    margin-top: 25px;
}

.bonbanners-text-one,
.bonbanners-text-two {
    font-size: calc(12px + (21 - 12) * ((100vw - 320px) / (1880 - 320)));
    line-height: 147%;
    color: #464646;
    margin-bottom: 0;
}

#bonbanners .banner-list .banner-item:nth-child(2) a .banner-inner p {
   max-width: 400px;
}

#bonbanners .banner-list .banner-item:nth-child(4) a .banner-inner h3 {
    max-width: 470px;
}

#bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner .bonbanners-text-one {
    max-width: 330px;
}
 
#bonbanners a .banner-inner p strong {
    font-weight: 500;
}
#bonbanners a .banner-inner h2 {
    color: #fff;
    font-size: 45px;
    line-height: 140%;
    margin-bottom: 2px;
}
#bonbanners a .banner-inner h3 {
    font-size: calc(12px + (40 - 12) * ((100vw - 320px) / (1880 - 320)));
    line-height: 148%;
    margin: 0 0 5px;
    color: #464646;
    margin-bottom: calc(5px + (20 - 5) * ((100vw - 320px) / (1880 - 320)));
}

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

#bonbanners a .banner-inner span {
    background: linear-gradient(90deg, #015680 -15.5%, #1694DD 158.25%);  
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    font-size: 15px;
    padding: 13px 32px;
    transition: all .2s linear;
    box-shadow: rgba(0, 0, 0, 0.1) 4px 4px 4px;
    position: relative;
    z-index: 1;
}

#bonbanners a .banner-inner span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all .5s;
    z-index: -1;
    background: linear-gradient(270deg, #015680 -25.75%, #1694DD 147.75%); 
}

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

#bonbanners a span:hover::after {
    opacity: 1;
}

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

@media (min-width: 1200px) and (max-width: 1400px) {
    #bonbanners a .banner-inner h2 {
        font-size: 28px;
        margin-bottom: 2px;
    }
}


@media (min-width: 1024px) and (max-width: 1200px) {  
    #bonbanners a .banner-inner h2 {
        font-size: 23px;
        line-height: 100%;
    }
    #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-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 h2{
        font-size: 19px;
        line-height: 120%;
    }
}

@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 (max-width: 575.98px) {
    #bonbanners {
        margin: 5px 0 30px 0;
    }
  
    #bonbanners ul {
        display: block;
    }

    #bonbanners a .banner-inner span {
        display: none;
    }

    #bonbanners .banner-list .banner-item:nth-child(1){
        display: none;
    }

    #bonbanners a .banner-inner h4 {
        font-size: 22px;
    }
}


@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: 3 / 1 / 7 / 2;
    }

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

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

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