/**
 * 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: 14px 0 70px 0;
  overflow: hidden;
}
#bonbanners .banner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows: repeat(4, 1fr); */
  gap: 20px;
  grid-template-areas:
    "banner-item-1 banner-item-1 banner-item-2 banner-item-2"
    "banner-item-1 banner-item-1 banner-item-3 banner-item-4"
    "banner-item-5 banner-item-6 banner-item-7 banner-item-7"
    "banner-item-8 banner-item-8 banner-item-7 banner-item-7";
}
#bonbanners .banner-list .banner-item:nth-child(1) {
  grid-area: banner-item-1;
}
#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner {
  top: 28.5%;
  right: 6.5%;
}
#bonbanners .banner-list .banner-item:nth-child(2) {
  grid-area: banner-item-2;
}
#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner {
  right: 7%;
  top: 29%;
}
#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner h3 {
  color: #fff;
  background: #595959;
  margin: 0 0 24px;
}
#bonbanners .banner-list .banner-item:nth-child(3) {
  grid-area: banner-item-3;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner {
  text-align: center;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h3 {
  color: #D24545;
  font-size: calc(20px + (50 - 20) * ((100vw - 950px) / (1880 - 950)));
  margin: 0;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h2 {
  font-weight: 200;
  position: relative;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2:before,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h2:before{
  content: "";
  width: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -17px;
  height: 1px;
  background:url(../img/border.png) bottom right no-repeat;
  opacity: 0.6;
}

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h4 {
  font-weight: 400;
  color: #3a3a3a;
}

#bonbanners .banner-list .banner-item:nth-child(5) a:hover img,
#bonbanners .banner-list .banner-item:nth-child(3) a:hover img{
  transform: none;
}

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

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4 {
  font-size: 20px;
  color: #5b5b5b;
  font-weight: 200;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2 {
  position: relative;
  font-size: 30px;
  font-weight: 400;
  color: #3a3a3a;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3 {
  font-size: 50px;
  font-weight: 400;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2:before {
  bottom: -75%;
}
#bonbanners .banner-list .banner-item:nth-child(6) {
  grid-area: banner-item-6;
}

#bonbanners .banner-list .banner-item:nth-child(6) .banner-inner{
  left: 6%;
  top: 11%;
}

#bonbanners .banner-list .banner-item:nth-child(7) {
  grid-area: banner-item-7;
}
#bonbanners .banner-list .banner-item:nth-child(7) h3 {
  font-size: 35px;
  padding: 15px 17px;
  color: #333333;
}
#bonbanners .banner-list .banner-item:nth-child(7) .banner-inner {
  right: 9%;
  top: 19%;
}
#bonbanners .banner-list .banner-item:nth-child(8) {
  grid-area: banner-item-8;
}
#bonbanners .banner-list .banner-item:nth-child(8) .banner-inner{
  top: 10%;
  right: 35px;
}
#bonbanners .banner-list .banner-item:nth-child(8) .banner-inner h3{
  background: #595959;
  color: #fff;
}
#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: 15px;
}

#bonbanners ul {
  margin-bottom: 0;
}

#bonbanners a {
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  color: #333333;
  display: block;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: 100%;
}

#bonbanners a img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: all .2s linear;
}

#bonbanners a:hover img {
  transform: scale(1.07);
}

#bonbanners a .banner-inner {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
  text-align: left;
}

#bonbanners a .banner-inner p {
  color: #ffffff;
  margin-bottom: 35px;
}

#bonbanners a .banner-inner p strong {
  font-weight: 500;
}

#bonbanners a .banner-inner h3 {
  font-size: 35px;
  margin: 0 0 15px;
  color: #3A3A3A;
  font-weight: 300;
  padding: 10px;
  background-color: #ffffff;
  width: max-content;
}

#bonbanners a .banner-inner h4 {
  font-size: 25px;
  font-weight: 300;
  margin: 0 0 5px;
  color: #3A3A3A;
}

#bonbanners a .banner-inner span.banner-btn {
  font-weight: normal;
  white-space: inherit;
  font-size: 20px;
  border: none;
  transition: 0.5s;
  color: #5b5b5b;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  position: relative;
}
#bonbanners a .banner-inner span.banner-btn:after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #5b5b5b;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: all .4s ease;
}

#bonbanners a span.banner-btn:hover:after {
  width: 0;
  right: 0;
  left: auto;
}

#bonbanners a:before,
#bonbanners a:after {
  pointer-events: none;
}
@media (max-width: 1880px) {
  #bonbanners {
    margin: 14px 0 calc(30px + (70 - 30) * ((100vw - 320px) / (1880 - 320))) 0;
  }
}
@media (min-width: 951px) and (max-width: 1880px) {
  #bonbanners .banner-list {
    gap: calc(10px + (20 - 10) * ((100vw - 951px) / (1880 - 951))) calc(10px + (20 - 10) * ((100vw - 951px) / (1880 - 951)));
  }
}
@media (min-width: 950px) and (max-width: 1880px) {
  #bonbanners a .banner-inner h3 {
    font-size: calc(20px + (45 - 20) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(7) h3 {
    font-size: calc(20px + (35 - 20) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners a .banner-inner span.banner-btn {
    font-size: calc(15px + (20 - 15) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(2) .banner-inner h3 {
    margin: 0 0 calc(10px + (24 - 10) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h2 {
    font-size: calc(13px + (20 - 13) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners a .banner-inner p {
    margin-bottom: calc(0px + (35 - 0) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3, #bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h3 {
    margin: 0 0 15px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: calc(19px + (30 - 19) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2 {
    font-size: calc(18px + (30 - 18) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3 {
    font-size: calc(19px + (50 - 19) * ((100vw - 950px) / (1880 - 950)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4 {
    font-size: calc(14px + (20 - 14) * ((100vw - 950px) / (1880 - 950)));
  }
}

@media (max-width: 950px) {
  #bonbanners .banner-list {
    gap: calc(6px + (20 - 6) * ((100vw - 320px) / (991 - 320))) calc(6px + (20 - 6) * ((100vw - 320px) / (991 - 320)));
  }
  #bonbanners a .banner-inner h3 {
    font-size: calc(15px + (45 - 15) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(7) h3 {
    font-size: calc(20px + (35 - 20) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners a .banner-inner span.banner-btn {
    font-size: calc(10px + (20 - 10) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(2) .banner-inner h3 {
    margin: 0 0 calc(10px + (24 - 10) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h2 {
    font-size: calc(11px + (20 - 11) * ((100vw - 320px) / (950 - 320)));
    max-width: 80%;
  }
  #bonbanners a .banner-inner p {
    margin-bottom: calc(0px + (35 - 0) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3, #bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h3 {
    margin: 0 0 calc(0px + (-50 - 0) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners a .banner-inner h4 {
    font-size: calc(14px + (25 - 14) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h2 {
    font-size: calc(12px + (30 - 12) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3 {
    font-size: calc(16px + (50 - 16) * ((100vw - 320px) / (950 - 320)));
  }
  #bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4 {
    font-size: calc(12px + (20 - 12) * ((100vw - 320px) / (950 - 320)));
    max-width: 80%;
  }
}

@media (max-width: 950px) {
  #bonbanners .banner-list {
    grid-template-rows: repeat(8, 1fr);
    grid-template-areas:
      "banner-item-1 banner-item-1 banner-item-1 banner-item-1"
      "banner-item-1 banner-item-1 banner-item-1 banner-item-1"
      "banner-item-2 banner-item-2 banner-item-2 banner-item-2"
      "banner-item-3 banner-item-3 banner-item-4 banner-item-4"
      "banner-item-5 banner-item-5 banner-item-5 banner-item-5"
      "banner-item-6 banner-item-6 banner-item-7 banner-item-7"
      "banner-item-8 banner-item-8 banner-item-8 banner-item-8"
      "banner-item-8 banner-item-8 banner-item-8 banner-item-8";
  }
   #bonbanners .banner-list .banner-item:nth-child(8) {
    grid-area: banner-item-7;
  }
  /*#bonbanners .banner-list .banner-item:nth-child(5) {
    grid-area: banner-item-7;
  }*/
  #bonbanners .banner-list .banner-item:nth-child(7) {
    grid-area: banner-item-8;
  } 
}