/**
 * 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: -4px 0 30px 0;
  overflow: hidden;
}

#bonbanners ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 20px;
}

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

#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(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(3) .banner-inner {
  top: 5%;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner h4::after,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h4::after {
  display: block;
  content: "";
  height: 2px;
  background: #fff;
  margin: 20px 0;
  width: 42.6%;
}

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h4::after {
  width: 63%;
}

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner h4 {
  float: right;
  left: 20px;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h3 {
  max-width: 200px;
  text-transform: capitalize;
  margin-left: 40px;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4 {
  width: auto;
}

#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner h4::after {
  content: "";
  margin: 0 20px;
  border-left: 2px solid #fff;
  height: 75%;
  position: absolute;
}

#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 a img {
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: all 0.2s linear;
}

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

#bonbanners a .banner-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  z-index: 2;
  margin-left: 45px;
}

#bonbanners a .banner-inner p {
  color: #fff;
  margin: 10px 0;
}

#bonbanners a .banner-inner p strong {
  font-weight: 500;
}
#bonbanners a .banner-inner h2 {
  color: #fff;
  font-size: calc(18px + (16 - 18) * ((100vw - 320px) / (1880 - 320)));
  font-weight: normal;
}
#bonbanners a .banner-inner h3 {
  color: #fff;
  font-size: calc(18px + (26 - 18) * ((100vw - 320px) / (1880 - 320)));
  font-weight: normal;
  margin: 0;
}

#bonbanners a .banner-inner h4 {
  color: #fff;
  font-size: calc(18px + (37 - 18) * ((100vw - 320px) / (1880 - 320)));
  width: 45%;
  font-weight: normal;
  text-transform: capitalize;
  margin: 0 0 5px;
}

#bonbanners a .banner-inner span {
  background: #1e9bd2;
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  font-size: 15px;
  padding: 13px 32px;
  margin-top: 5px;
  transition: all 0.2s linear;
  box-shadow: rgba(0, 0, 0, 0.1) 4px 4px 4px;
}

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

#bonbanners a:before,
#bonbanners a:after {
  pointer-events: 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;
  }
}

/*// Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
  #bonbanners ul {
    display: block;
  }
  #bonbanners ul li {
    padding-bottom: 5px;
  }
  #bonbanners a .banner-inner span {
    display: none;
  }
  #bonbanners a .banner-inner h2 {
    margin: 0;
  }
  #bonbanners a .banner-inner h3 {
    font-size: 23px;
  }
  #bonbanners a .banner-inner h4 {
    font-size: 32px;
  }
  .banner-inner-text {
    padding: 12px 25px;
  }
  #bonbanners .banner-list .banner-item:nth-child(1) h4 {
    width: 100%;
  }
  #bonbanners .banner-list .banner-item:nth-child(3) {
    display: none;
  }
}

/*// Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
  .banner-inner-text {
    padding: 15px 35px;
  }
}

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {
}

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {
}

/*// Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
}
