/* Top banner */
.section-banner{
  position: relative;
  width: 100%;
  padding: 25px 0;
  &:before{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background: $bg_accent_1;
  }
}

.top-banner_body{
  width: 60%;
}

.top-banner_img{
  width: 40%;
}

.top-banner{
  background: #fff;
  position: relative;
  border-radius: $border_radius;
  display: flex;
  .updated{
    font-size: 11px;
    color: $text_color_accent_lighter;
  }
  .top-banner-head{
    font-size: 40px;
    line-height: 50px;
    text-transform: uppercase;
  }
  .description{
    font-size: 22px;
    color: $text_color_accent;
  }
  .top-banner_body{
    padding: 40px;
  }
  .top-banner_img{
    width: 40%;
    .img-cut{
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    img{
      object-fit: cover;
      height: 100%;
      width: 100%;
      display: block;
    }
  }
  .top-banner-row{
    span{
      color: #6D7E95;
      font-size: 14px;
      line-height: 140%;
    }
  }
}
/* END Top banner */

.with-sidebar{
  display: flex;
  .main{
    padding-left: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    flex-grow: 2;
  }
  .loans-filter-list{

  }
}

.loan-item{
  background: #fff;
  position: relative;
  box-shadow: 0 28px 29px -5px rgba(#374B55, 0.06);
  border-radius: 8px;
  .h3-like{
    padding-bottom: 10px;
    font-size: 20px;
  }
  .loan-item_row{
    padding: 30px 0;
    align-items: stretch;
  }
  .num{
    position: absolute;
    top: 0;
    left: 0;
    background: $bg_body;
    width: 33px;
    height: 33px;
    line-height: 33px;
    text-align: center;
    color: $text_color_accent;
    font-weight: bold;
    font-size: 15px;
    border-radius: 0 0 $border_radius 0;
  }
  .loan-item_logo{
    position: relative;
    box-sizing: border-box;
    width: 300px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .loan-details{
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: 0;
      text-align: center;
    }
  }
  .loan-item_logo:after{
    content: '';
    width: 1px;
    height: calc(100% - 10px);
    top: 10px;
    background: #F3F3F3;
    display: block;
    position: absolute;
    right: 0;
  }
  .loan-icon{
    padding: 20px 0;
    width: 130px;
    height: 30px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    top: -10px;
    img{
      max-width: 100%;
      height: 100%;
      display: inline-block;

      object-fit: contain;
    }
  }
  .loan-details{
    text-align: center;
  }
  .loan-item_info{
    width: calc(100% - 300px);
    display: flex;
  }
  .loan-item_desc{
    padding: 10px 30px 0px;
    width: 65%;
    display: flex;
    flex-direction: column;
  }
  .loan-item_t{
    flex-grow: 2;
  }
  .loan-item_btn{
    padding: 0px 30px 70px;
    position: relative;
    width: 35%;
    .btn-box{
      position: absolute;
      bottom: 0;
      width: calc(100% - 60px);
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    .btn{
      margin-top: 0;
    }
    &:after{
      content: '';
      width: 1px;
      height: calc(100% - 0px);
      top: 0px;
      background: #F3F3F3;
      display: block;
      position: absolute;
      left: 0;
    }
  }
  .subtitle{
    color: $text_color_accent;
    font-size: 15px;
    padding: 0 0 20px;
    line-height: 135%;
  }
}

.loan-label{
  position: absolute;
  top: 0;
  left: 55px;
  width: 170px;
  text-align: center;
  height: 33px;
  .loan-label_t{
    background: #04B9D8;
    height: 100%;
    left: 33px;
    position: relative;
    width: calc(100% - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  span{
    font-size: 12px;
    text-transform: uppercase;
    line-height: 24px;
    color: #fff;
    font-weight: bold;
  }
  &:before{
    content: '';
    background: url('../img/assets/bg_label-blue-left.svg') no-repeat center / contain;
    width: 33px;
    height: 33px;
    position: absolute;
    left: 0;
    top: 0;
  }
  &:after{
    content: '';
    background: url('../img/assets/bg_label-blue-right.svg') no-repeat center / contain;
    width: 33px;
    height: 33px;
    position: absolute;
    top: 0;
    right: 0;
  }
}

.link-more{
  display: inline-flex;
  text-decoration: none;
  span{
    font-size: 13px;
    line-height: 22px;
    color: $text_color_main;
    padding-right: 5px;
  }
  &:after{
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background: url('../img/assets/icon_more.svg') no-repeat center / contain;
  }
}

.col-has-chk{
  padding-left: 25px;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  &:before{
    content: '';
    background: url('../img/assets/icon_checkbox-green.svg') no-repeat center / contain;
    width: 11px;
    height: 9px;
    display: block;
    position: absolute;
    left: 0;
    top: 6px;
  }
  &:after{
    content: '';
    width: 1px;
    height: calc(100% - 20px);
    display: block;
    position: absolute;
    left: 4px;
    top: 20px;
    background: #f3f3f3;
  }
  .label{
    display: block;
    color: #6D7E95;
    font-size: 13px;
  }
  .value{
    display: block;
    color: #203045;
    font-size: 14px;
    font-weight: bold;
    padding-top: 5px;
  }
}

.peoples-box{
  border: 1px solid rgba(#2097F2, 0.3);
  border-radius: 5px;
  padding: 15px 20px;
  box-sizing: border-box;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  .peoples-box_ic{
    border-right: 1px solid #B6EBF4;
    margin-right: 15px;
    padding: 0 15px 0 0;
    display: flex;
    align-items: center;
  }
  .peoples-box_desc{
    span{
      font-size: 12px;
      line-height: 110%;
      display: block;
      color: #8496AD;
    }
  }
  .peoples-box_ic{

  }
}

.loans-filter-list{
  counter-reset: itemnumbers;
}

.loan-item-box{
  margin-bottom: 30px;
  counter-increment: itemnumbers;
  > .loan-item .num:after{
    content: counter(itemnumbers);
  }
  &:last-of-type{
    margin-bottom: 0;
  }
}

.text-loan{
  text-align: left !important;
  p{
    color: #6D7E95;
    font-size: 13px;
    line-height: 140%;
    padding: 0;
    margin: 0;
  }
  li{
    display: flex;
    color: #6D7E95;
    font-size: 13px;
    line-height: 140%;
    &:before{
      content: '•';
      display: inline-block;
      color: #2097F2;
      padding-right: 5px;
    }
  }

  ul{
    margin: 0px;
    padding: 0;
  }
}

.btn-loan-details{
  display: flex;
  background: url('../img/assets/loan-btn-bg.svg') no-repeat center / contain;
  width: 260px;
  height: 47px;
  margin: 0 auto;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  span{
    color: #203045;
    font-family: $font-title;
    font-weight: 600;
    line-height: 47px;
  }
  i{
    width: 10px;
    height: 10px;
    background: url('../img/assets/arrow-more-right.svg') no-repeat center / contain;
    display: block;
    margin-left: 10px;
    position: relative;
    top: 0px;
  }
}

.text-box{
  h3{
    padding: 15px 0 6px;
  }
  p{
    color: #203045;
    font-size: 14px;
    line-height: 130%;
  }
  ul{
    padding: 0;
    margin: 15px 0;
  }
  li{
    padding-bottom: 5px;
    display: flex;
    color: #203045;
    font-size: 14px;
    line-height: 150%;
    &:before{
      content: '•';
      color: #48A5FA;
      padding-right: 10px;
      display: block;
    }
    &:last-of-type{
      padding-bottom: 0;
    }
  }
}

.loan-item-details{
  box-shadow: 0px 12px 58px -45px rgba(34, 60, 80, 0.2) inset;
  .text-box{
    padding: 25px;
  }
}

.loan-item-details{
  max-height: 0;
  transition: 0.5s;
}

.loan-item.expanded{
  .loan-item-details{
    transition: 0.3s;
    max-height: 700px;
  }
}

.loan-item{
  overflow: hidden;
}

.loan-item-details{
  max-height: 0;
  transition: 0.3s;
  &.show{
    max-height: 1000px;
  }
}