.blog {
  margin-top: 70px;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 39px;
    background: url("./../images/background/bg-blog.png") 0 0 no-repeat;
    background-size: 100% 100%;
    height: 836px;
    transform: translateY(-196px);
    z-index: -6;
  }

  &-search {
    max-width: 584px;
    width: 100%;
    margin: 0 auto 50px;

    &-title {
      font-size: 44px;
      font-weight: bold;
      line-height: 58px;
      color: #f6509c;
      text-shadow: 0 3px 20px rgba(#000, 0.55);
      max-width: fit-content;
      margin: 0 auto 37px;

      &::before,
      &::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-size: 100% 100%;
        background-position: 0 0;
        background-repeat: no-repeat;
        z-index: -1;
        mix-blend-mode: hard-light;
      }

      &::before {
        background-image: url("./../images/icon/bell-dynamic-clay.png");
        width: 78px;
        height: 78px;
        right: calc(100% + 66px);
      }

      &::after {
        background-image: url("./../images/icon/location-dynamic-clay.png");
        width: 77px;
        height: 77px;
        left: calc(100% + 60px);
      }

      span {
        color: #fff;

        &::before,
        &::after {
          content: "\e932";
          font-family: "icomoon";
          font-size: 20px;
          color: #70737d;
          position: absolute;
          bottom: 0;
        }

        &::before {
          right: calc(100% + 11px);
        }

        &::after {
          left: calc(100% + 24px);
        }
      }
    }

    p {
      font-size: 18px;
      font-weight: 500;
      line-height: 24px;
      color: #acb3c9;
      margin-bottom: 33px;
    }

    form {
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        opacity: 0.77;
        background-color: #1b1e28;
        border: 1px solid rgba(#fff, 0.13);
        z-index: -1;
      }

      i,
      button {
        top: 50%;
        transform: translateY(-50%);
      }

      i {
        font-size: 21px;
        left: 30px;
        color: #9c9faa;
      }

      .form-control {
        background-color: transparent;
        border: none;
        padding: 0 95px 0 58px;
        font-weight: 500;
        color: #8d94a8;
        height: 73px;
      }

      button {
        right: 17px;
        background-color: #21232e;
        width: 71px;
        height: 53px;
        color: #acb3c9;
        font-weight: 500;
        border-radius: 15px;

        &:hover {
          background-color: #8f2ffd;
          color: #fff;
        }
      }
    }
  }

  &-category {
    padding-right: 12px;

    &-title {
      margin-bottom: 25px;
      padding-bottom: 25px;
      border-bottom: 1px dashed #313640;
      font-size: 16px;
      font-weight: 600;
      line-height: 21px;
      color: #acb3c9;

      img {
        margin-right: 20px;
      }
    }

    .swiper {
      padding-bottom: 0;
      
      &-slide {
        width: auto;

        a {
          font-size: 16px;
          font-weight: 600;
          line-height: 26px;
          color: #acb3c9;
          padding: 22px 12px;
          background-color: #1d222e;
          border-radius: 16px;
          z-index: 2;

          i {
            color: #5e6275;
            font-size: 10px;
            margin-left: 30px;
          }

          &::before,
          &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            background-image: linear-gradient(
              144.99deg,
              #8f2ffd 42.05%,
              #f6509c 111.39%
            );
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0;
            visibility: hidden;
            transition: all .3s ease-in-out;
          }

          &::before {
            border-radius: inherit;
          }

          &::after {
            filter: blur(8px);
          }

          &.active {
            &::before,
            &::after {
              opacity: 1;
              visibility: visible;
            }

            &,
            i {
              color: #fff;
            }
          }
        }
      }
    }
  }

  &-articles {
    margin-top: 44px;

    .row {
      gap: 15px 0;
    }

    .pagination {
      margin-top: 68px;
    }
  }

  @include sm {
    &::before {
      background-image: url("./../images/background/bg-blog-sm.png");
      left: 0;
      height: 770px;
      transform: translateY(-196px);
    }

    &-category {
      .swiper {
        &-slide {
          a {
            font-size: 14px;
            border-radius: 12px;
            padding: 16px 12px;

            i {
              margin-left: 16px;
            }
          }
        }
      }
    }
  }

  @include xs {
    &::before {
      transform: translateY(-160px);
    }
  }

  @include media("max", 399px) {
    &-search {
      &-title {
        font-size: 34px;
        line-height: 48px;
      }

      p {
        font-size: 14px;
      }
    }
  }
}
