@use '../utils' as *;

/*----------------------------------------*/
/* Blog style
/*----------------------------------------*/
.blog-five-item-item {
  padding: 12px 12px 20px;
  position: relative;
  z-index: 2;
  transition: all .3s;
  @include border-radius(10px);
  overflow: hidden;
  backdrop-filter: blur(4px);
  border-radius: 20px;
  &.active {
    background: rgba(27, 30, 35, 0.1);
    &::before {
      opacity: 1;
      visibility: visible;
    }
    .blog-link {
      opacity: 1;
      visibility: visible;
    }
  }
  &:before {
    content: "";
    position: absolute;
    inset: 0;
    @include border-radius(20px);
    z-index: -1;
    border: 1px solid rgba($white, $alpha: 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all .3s
  }
  .blog-thumb {
    margin-bottom: 20px;
    img {
      @include border-radius(10px);
      width: 100%;
    }
  }
  .blog-title {
    font-size: 18px;
    color: var(--td-white);
    margin-bottom: 15px;
    a {
      &:hover {
        color: var(--td-primary);
      }
    }
  }
  .description {
    font-size: 12px;
    margin-bottom: 15px;
    color: rgba($white, $alpha: 0.7);
  }
  .blog-date {
    span {
      font-size: 10px;
      display: block;
      color: rgba($white, $alpha: 0.7);
    }
  }
  .blog-link {
    text-align: end;
    transition: all .3s;
    opacity: 0;
  }
}
.blog-slider-btn {
  width: 66px;
  height: 66px;
  @include border-radius(50%);
  background: rgba($white, $alpha: 0.08);
  border: 1px solid rgba($white, $alpha: 0.08);
  @media #{$xs,$sm,$md,$lg} {
    width: 50px;
    height: 50px;
  }
}
.blog-slider-navigation {
  @media #{$xs,$sm,$md,$lg} {
    margin-top: 50px;
    text-align: center;
  }
  .blog-slider-btn {
    position: absolute;
    top: 50%;
    inset-inline-start: -86px;
    @media #{$xs,$sm,$md,$lg} {
      position: inherit;
    }
    &.blog-slider-next {
      inset-inline-start: auto;
      inset-inline-end: -86px;
    }
  }
}