@use "variables" as *;

.single-forum-post-widget {
  box-shadow: 0 1.6px 3.5px 0 #334d7226, 0 0.5px 1px 0 #334d721a;
  border-radius: 10px;
  background-color: var(--bs-white);
  transition: all 0.3s ease-out;
  padding: 22px 35px 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;

  &:first-child {
    margin-top: 0;
  }

  &:hover {
    box-shadow: 0 20px 45px 0 #334d7226;
    transform: translateX(2px);

    .post-title {
      h6 {
        a {
          color: var(--bbpc_brand_color);
        }
      }
    }
  }

  .post-title {
    margin-bottom: 15px;

    h6 {
      margin-bottom: 0;
      line-height: 22px;
      font-size: 16px;
      font-weight: 500;
      text-transform: capitalize;

      a {
        color: var(--black_800);
        font-size: 18px;

        &:hover {
          text-decoration: none;
        }
      }
    }

    i {
      font-size: 15px;
      color: #2ed83f;
      vertical-align: middle;
      margin-left: 6px;
    }
  }

  .post-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;

    >div {
      margin-right: 15px;
      display: flex;

      img {
        margin-right: 5px;
        height: 15px;
        width: 15px;
      }

      color: var(--black_600);
      font-size: 14px;
      font-weight: 400;
      line-height: 16px;

      a {
        color: var(--black_600);
      }
    }
  }

  .post-tags {
    display: flex;

    .single-tag {
      padding: 3px 9.5px;
      border-radius: 3px;
      font-size: 12px;
      font-weight: 400;
      line-height: 14px;
      color: #fff;
      margin: 12px 10px 0 0;

      &:last-child {
        margin-right: 0;
      }

      &.tag-jq {
        background-color: #f7ab40;
      }

      &.tag-php {
        background-color: #7543e0;
      }

      &.tag-wp {
        background-color: #6078ce;
      }

      &.tag-js {
        background-color: #ff7245;
      }

      &.tag-dvlp {
        background-color: #48a6ea;
      }

      &.tag-ecmrc {
        background-color: #333333;
      }

      &.tag-foram {
        background-color: $brand_color;
      }

      &.tag-hlp {
        background-color: #2c53df;
      }

      &.tag-sprt {
        background-color: #0cc72a;
      }
    }
  }

  .post-reach {
    border-left: 1px solid var(--black_50);
    padding-left: 15px;

    >div {
      font-size: 12px;
      font-weight: 400;
      line-height: 14px;
      color: #848d95;
      margin-top: 10px;
      display: flex;
      align-items: center;

      &:first-child {
        margin-top: 0;
      }

      img {
        margin-right: 5px;
      }
    }
  }
}

.community-area {
  .nav-tabs {
    border-bottom: 1px solid var(--black_50);

    .nav-item {
      &:hover button {
        color: var(--bbpc_brand_color);
      }

      button {
        background-color: transparent;
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
        color: #535a60;
        padding: 10px 0;
        margin-right: 30px;
        border: none;
        border-bottom: 2px solid transparent;
        cursor: pointer;

        &.active {
          border-bottom-color: var(--bbpc_brand_color);
          color: #171d24;
          font-weight: 500;
        }
      }
    }
  }

  .sec-btn-blue {
    border-radius: 26px;
    border: 1px solid rgba(#4a6ee0, 40%);
    color: #4a6ee0;
    background-color: transparent;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 37px;

    &:hover {
      background-color: #4a6ee0;
      color: #fff;
      box-shadow: none;
    }
  }
}

.community-topic-widget-box {
  box-shadow: 0 1.6px 3.5px 0 #334d7226, 0 0.5px 1px 0 #334d721a;
  border-radius: 10px;
  display: flex;
  padding: 40px;
  transition: all 0.3s ease-out;
  background-color: var(--bs-white);

  &:hover {
    box-shadow: 0 20px 45px 0 #334d7226;
  }

  img {
    margin-right: 24px;
    width:auto;
    // max-width: 48px !important;
    height: 48px;
  }
  .box-content{
    h5{
      margin-top:0px;
      padding-top: 0px;
    }
  }

  h5 {
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    color: #171d24;
    margin-bottom: 5px;
    margin-top: 0;
    text-transform: capitalize;
    

    &:hover {
      a {
        color: var(--bbpc_brand_color);
        text-decoration: none;
      }
    }
  }

  span {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #6a737c;
    display: inline-block;

    &:nth-child(2) {
      padding-right: 8px;
    }

    &:nth-child(4) {
      padding-left: 8px;
    }

    &.vr-line {
      color: var(--black_75);
    }
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  margin-left: 0;
}

.bbpc-community-topic-widget-main-wrapper {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  //margin-top: 40px;

  .bbpc-community-topic-widget-wrapper {
    display: contents;
  }

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 768px) {
    grid-template-columns: repeat(1, 1fr);
  }
}

.bbpc-show-more-btn-wrapper {
  width: 100%;
  text-align: center;

  .show-more-btn {
    display: inline-block;
    box-shadow: 0 1.6px 3.5px 0 #334d7226, 0 0.5px 1px 0 #334d721a;
    transition: all 0.3s ease-out;
    font-size: 18px;
    font-weight: 400;
    color: #4a6ee0;
    height: 50px;
    border-radius: 5px;
    line-height: 48px;
    padding: 0 40px;
    text-align: center;
    background-color: var(--bs-white);
    margin-top: 50px;

    &:hover {
      box-shadow: 0 10px 30px 0 #334d721f;
      color: #4a6ee0;
    }

    i {
      color: #4a6ee0;
      vertical-align: middle;
    }

    &.show-more-round {
      height: 48px;
      border-radius: 24px;
      line-height: 47px;
    }

    &:hover {
      text-decoration: none;
    }
  }
}

/*------- Forum Tab widget tags --------*/
.single-forum-post-widget {
  .post-tags {

    a {
      font-weight: 400;
      line-height: 14px;
      font-size: 12px;
      padding: 3px 10px;
      background: #6078ce;
      margin: 12px 10px 0 0;
      border-radius: 3px;
      color: #fff;
      text-decoration: none;

      &:hover {
        background: #4766d5;
      }
    }
  }
}

.tab-content {
  padding-top: 40px;

  .tab {
    display: none;
  }

  &.active {
    display: block;
  }
}

.community-area {
  .tab-content {
    &:not(.active) {
      display: none;
    }
  }
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

// show more button icon style
.dbl-arrow-upper {
  display: inline-block;

  .arrow-cont {
    cursor: pointer;
    position: relative;
    display: inline-block;
    height: 24px;
    width: 20px;
    margin-right: 3px;

    svg {
      position: absolute;
      bottom: 0;
      margin-left: 0;
      background-size: contain;
      top: 8px;
      left: 0;
    }

    .second {
      margin-top: 5px;
    }
  }

  &:hover {
    svg {
      animation-name: bounceAlphaUp;
      animation-duration: 1.4s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;

      &.first {
        animation-name: bounceAlphaUp;
        animation-duration: 1.4s;
        animation-delay: 0.2s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
      }
    }
  }
}


@keyframes bounceAlphaUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1)
  }

  25% {
    opacity: 0;
    transform: translateY(10px) scale(.9)
  }

  26% {
    opacity: 0;
    transform: translateY(-10px) scale(.9)
  }

  55% {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}