/**
 * 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 auto 30px auto;
  overflow: hidden;
  max-width: 980px;
}

#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(2, 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: 320px;
    left: 30px;
    top: 70px;
}

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner{
    top: 135px;
    left: 20px;
    max-width: 275px;
    padding: 19px 24px 19px 35px;
}

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner{
    top: 40px;
    left: 15px;
    max-width: 410px;
    padding: 27px 45px 27px 35px;
}

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner {
    max-width: 275px;
    top: 92px;
    right: 16px;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
    max-width: 430px;
    top: 190px;
    right: 21px;
    padding-top: 30px;
    padding-bottom: 30px;
    justify-content: space-between;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner h4,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h4 {
    margin-bottom: 10px;
}

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

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h5 {
    flex-basis: 165px;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3::after {
    content: "";
    display: inline-block;
    position: absolute;
    right: -25px;
    bottom: 7px;
    width: 1px;
    max-height: 40px;
    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 .banner-list .banner-item:nth-child(1) .banner-inner .bonbanners-btn,
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .bonbanners-btn {
    position: absolute;
    bottom: -60px;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner .bonbanners-btn {
    left: 0;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner .bonbanners-btn {
    right: 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;
  width: 100%;
  display: flex;
  align-items: center;
  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: 17px;
    line-height: 1.4;
    margin-bottom: 0;
}

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

#bonbanners a .banner-inner h4 {
    font-size: 32px;
    line-height: 1.25;
}

#bonbanners a .banner-inner h5 {
    font-size: 20px;
    line-height: 1.4;
}

#bonbanners a .banner-inner h2,
#bonbanners a .banner-inner h3,
#bonbanners a .banner-inner h4,
#bonbanners a .banner-inner h5 {
    font-weight: normal;
    color: #3a3a3a;
    margin-bottom: 0;
    position: relative;
}

#bonbanners a .banner-inner span {
    background: linear-gradient(91.14deg, #5AB6A2 0.96%, #60C6AF 99%);
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    font-size: 17px;
    padding: 12px 25px;
    line-height: 1.2;
    margin-top: 5px;
    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::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90.08deg, #60C5AF 0.08%, #5AB5A1 99.94%);
    transition: all .2s linear;
}

#bonbanners a .banner-inner span:hover::before {
    opacity: 1;
}

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

#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 .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 screen and (max-width:767px) {
    #bonbanners a .banner-inner h4 {
        font-size: 25px;
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    #bonbanners a .banner-inner h2{
        font-size: 19px;
        line-height: 120%;
    }
}

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

@media screen and (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(5) .banner-inner h5 {
        flex-basis: 100%;
    }

    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3::after {
        display: none;
    }

    #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
        top: 25px;
        right: 0;
    }

    #bonbanners .banner-list .banner-item:nth-child(1) .banner-inner {
        top: 20px;
    }
}


@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;
    }
}