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

#bonbanners a {
  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;
  top: 0;
  padding: 12px 33px;
  z-index: 2;
  background: rgb(255 255 255 / 80%);
  margin-left: 7%;
}

#bonbanners a .banner-inner p {
  color: #3a3a3a;
  font-size: 23px;
  margin-top: 25px;
}

#bonbanners a .banner-inner h2 {
  font-size: 23px;
}

#bonbanners a .banner-inner h3 {
  font-size: 1.8vw;
  line-height: 140%;
  margin: 0 0 10px;
  color: #3a3a3a;
}

#bonbanners a .banner-inner h4 {
  font-size: 1.3vw;
  font-weight: normal;
  margin: 0 0 5px;
  color: #3a3a3a;
}

#bonbanners a .banner-inner .bonbanners-btn .shaft {
  position: relative;
  height: 1px;
  width: 28px;
  background-color: #4c4c4c;
  display: block;
  transition: all 0.3s ease-in-out;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow.right {
  position: absolute;
  right: 6px;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow.right .shaft:before,
#bonbanners a .banner-inner .bonbanners-btn .arrow.right .shaft:after {
  width: 8px;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow .shaft:before,
#bonbanners a .banner-inner .bonbanners-btn .arrow .shaft:after {
  background-color: #4c4c4c;
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  top: 0;
  right: 0;
  transition: all 0.2s;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow .shaft:before {
  transform-origin: top right;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow .shaft:after {
  transform-origin: bottom right;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow.right .shaft:before {
  transform: rotate(40deg);
}

#bonbanners a .banner-inner .bonbanners-btn .arrow.right .shaft:after {
  transform: rotate(-40deg);
}

.bonbanners-btn .main {
  display: flex;
  align-items: center;
}

#bonbanners a .banner-inner .bonbanners-btn {
  position: absolute;
  left: 0;
  top: 100%;
  font-size: 16px;
  margin-top: 40px;
  padding: 13px 27px 13px 32px;
  border: 1px solid #3A3A3A;
  text-transform: uppercase;
  font-weight: normal;
  white-space: inherit;
  letter-spacing: 0.5px;
  border-right: none;
}

#bonbanners a .banner-inner .bonbanners-btn .arrow.right{
  transition: all 0.3s ease-in-out;
}

#bonbanners a .banner-inner .bonbanners-btn:hover .arrow.right{
  transform: translateX(80%);
  transition: all 0.3s ease-in-out;
}

#bonbanners a .banner-inner .bonbanners-btn .text{
  margin-right: 25px;
}

#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(3) a .banner-inner h3 {
  font-size: 1.6vw;
}

#bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner h3 {
  margin-right: 15px;
}

#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(1) a .banner-inner {
  margin-left: 40px;
  max-width: 23vw;
  top: 7%;
}

#bonbanners .banner-list .banner-item:nth-child(2) a .banner-inner {
  top: unset;
  bottom: 20px;
  max-width: 21vw;
}

#bonbanners .banner-list .banner-item:nth-child(3) a .banner-inner {
  top: 5%;
  max-width: 22vw;
}

#bonbanners .banner-list .banner-item:nth-child(4) a .banner-inner {
  top: unset;
  bottom: 20px;
  max-width: 19vw;
}

#bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner {
  display: flex;
  align-items: center;
  top: 12%;
  max-width: 25vw;
  padding: 34px;
}

#bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner h4 {
  font-size: 43px;
  padding-right: 20px;
  white-space: nowrap;
}

#bonbanners
  .banner-list
  .banner-item:nth-child(5)
  a
  .banner-inner
  > p:nth-child(2) {
  margin: 0;
  font-size: 1.1vw;
  padding-left: 20px;
  line-height: 1.25;
  border-left: 1px solid #3a3a3a;
}

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

@media (max-width: 1024px) {



  #bonbanners a .banner-inner h3 {
    font-size: 3vw;
  }

  #bonbanners ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

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

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

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

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

  #bonbanners .banner-list .banner-item:nth-child(1) a .banner-inner {
    max-width: 61vw;
  }

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

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

  #bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner{
    max-width: 59vw;
  }

  #bonbanners .banner-list .banner-item:nth-child(3) a .banner-inner h3 {
    max-width: 43vw;
  }

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

  #bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner h4 {
    font-size: 4vw;
  }

  #bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner > p:nth-child(2){
    font-size: 2.1vw;
  }
}

@media (max-width: 575.98px) {
  #bonbanners a .banner-inner .bonbanners-btn{
    display: none;
  }
  #bonbanners .banner-list .banner-item:nth-child(1) a .banner-inner {
    max-width: 77vw;
  }

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

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

  #bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner {
    max-width: 80vw;
  }

  #bonbanners .banner-list .banner-item:nth-child(5) a .banner-inner h4 {
    font-size: 5vw;
  }

  #bonbanners
    .banner-list
    .banner-item:nth-child(5)
    a
    .banner-inner
    > p:nth-child(2) {
    font-size: 3.1vw;
  }

  #bonbanners a .banner-inner h3 {
    font-size: 4.75vw;
  }

  #bonbanners a .banner-inner h4 {
    font-size: 3.5vw;
  }

  #bonbanners {
    margin: 5px 0 30px 0;
  }

  #bonbanners ul {
    display: block;
  }

  #bonbanners .banner-list .banner-item {
    margin-bottom: 15px;
  }

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