.detail-blog {
  margin-top: 63px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 894px;
    background: url("./../images/background/bg-detail-blog.png") 0 0 no-repeat;
    background-size: 100% 100%;
    z-index: -6;
    transform: translateY(-189px);
    filter: blur(50px);

    @include sm {
      background-image: url("./../images/background/bg-detail-blog-sm.png");
      background-size: cover;
      background-position: center center;
    }

    @include xs {
      transform: translateY(-153px);
    }
  }

  &-wrapper,
  &-related-articles-wrapper {
    @include media("min", 1200px) {
      max-width: calc(100% - 40px);
      width: 100%;
      margin: 0 auto;
    }

    @include media("min", 1400px) {
      max-width: calc(100% - 160px);
      width: 100%;
      margin: 0 auto;
    }
  }

  &-info {
    img {
      border-radius: 47px;
      border: 4px solid rgba(#fff, 0.07);
    }

    &-title {
      margin: 34px 0 27px;
      font-size: 24px;
      font-weight: 400;
      line-height: 32px;
      color: #fff;
    }

    ul {
      gap: 12px 40px;

      li {
        line-height: 19px;
        color: #9c9faa;

        i {
          border-radius: 14px;
          background-color: #1d222e;
          width: 36px;
          height: 36px;
          margin-right: 7px;
          font-size: 20px;
          color: #fff;
        }
      }
    }

    @include sm {
      img {
        border-radius: 40px;
      }

      &-title {
        font-size: 16px;
        line-height: 28px;
      }
    }

    @include xs {
      img {
        border-radius: 20px;
      }

      ul {
        gap: 12px;

        li {
          font-size: 12px;
        }
      }
    }
  }

  &-content {
    background-color: #1d222e;
    border-radius: 20px;
    padding: 29px 24px 34px;
    margin-top: 28px;

    h3,
    h1,
    h2 {
      font-size: 16px;
      font-weight: bold;
      line-height: 26px;
      color: #dbe1f3;
      margin-bottom: 15px;

      &.has-line {
        position: relative;
        padding-left: 8px;

        &::before {
          content: "";
          position: absolute;
          top: 4px;
          left: 0;
          width: 4px;
          height: 17px;
          background-color: #f6509c;
          border-radius: 4px;
        }
      }
    }

    p {
      font-size: 14px;
      color: #acb3c9;
      line-height: 32px;
      margin-bottom: 16px;
    }

    img {
      width: 100%;
      display: block;
      border-radius: 13px;
      margin-bottom: 37px;
    }

    blockquote {
      border-radius: 13px;
      margin-bottom: 30px;
      background-color: #242936;
      padding: 30px 44px 22px;
      position: relative;

      &::after {
        content: "\e938";
        font-family: "icomoon";
        position: absolute;
        top: 50%;
        right: 62px;
        transform: translateY(-50%);
        color: rgba(#fff, 0.04);
        font-size: 96px;
      }

      h3,
      h1,
      h2 {
        position: relative;
        padding-left: 33px;

        &::before {
          content: "";
          position: absolute;
          top: 4px;
          left: 0;
          width: 10px;
          height: 10px;
          border-radius: 50%;
          border: 4px solid #f6509c;
          background-color: #1d222e;
        }
      }

      p {
        font-weight: 600;
      }
    }

    :last-child {
      margin-bottom: 0;
    }

    @include sm {
      blockquote {
        padding: 29px 16px 14px;

        &::after {
          right: 24px;
        }
      }
    }

    @include xs {
      margin: 27px -12px 0;
      border-radius: 0;
      padding: 30px 12px;
    }
  }

  &-info-author {
    border-radius: 12px;
    background-color: rgba(#8f2ffd, 0.38);
    padding: 24px 34px 24px 41px;
    margin: 53px 0 57px;

    img {
      border-radius: 50%;
      margin-right: 39px;
      border: 2px solid rgba(#000, 0.18);
    }

    .name {
      font-size: 24px;
      line-height: 36px;
      color: #dbe1f3;
    }

    p {
      line-height: 30px;
      color: #acb3c9;
    }

    @include sm {
      img {
        margin: 0 0 11px;
      }
    }

    @include xs {
      padding: 18px 16px 20px;
    }
  }

  &-related-articles {
    &-title {
      font-size: 28px;
      font-weight: 600;
      color: #fff;
      text-shadow: 0 3px 6px rgba(#000, 0.16);
      margin-bottom: 42px;
      line-height: 37px;

      span {
        color: #acb3c9;
      }

      @include xs {
        font-size: 24px;
      }
    }

    .swiper {
      padding-bottom: 0;
    }
  }

  &-comments {
    margin-top: 107px;

    @include sm {
      margin-top: 64px;
    }

    &-wrapper {
      @include media("min", 1200px) {
        max-width: calc(100% - 80px);
        width: 100%;
        margin: 0 auto;
      }

      @include media("min", 1400px) {
        max-width: calc(100% - 200px);
        width: 100%;
        margin: 0 auto;
      }
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 841px;
      transform: translateY(-351px);
      z-index: -6;
      background: url("./../images/background/bg-comments-two.png") 0 0
        no-repeat;
      background-size: 100% 100%;

      @include sm {
        content: none;
      }
    }

    &-heading {
      margin-bottom: 28px;

      &-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        color: #dbe1f3;
        margin-bottom: 69px;

        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translate(-50%, 56px);
          background: url("./../images/icon/scroll-down-danger.png") 0 0
            no-repeat;
          background-size: 100% 100%;
          width: 43px;
          height: 45px;
          filter: drop-shadow(0 3px 20px rgba(#a4a4a4, 0.16));
        }
      }

      p {
        font-size: 12px;
        font-weight: 500;
        font-style: italic;
        color: #acb3c9;
      }
    }

    &-send {
      z-index: 2;
      padding: 32px 32px 18px 26px;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1d222e;
        border: 1px solid #313747;
        border-radius: 12px;
        z-index: -1;
        opacity: 0.99;
      }

      textarea {
        border: none;
        background-color: transparent;
        padding: 0;
        margin-bottom: 8px;
        border-radius: 0;
        font-size: 16px;
        font-weight: 500;
        color: #757d91;
        background: url("./../images/icon/qoute.svg") top right no-repeat;
        background-size: 62px 53px;
        height: 93px;
      }

      > div {
        gap: 8px;
      }

      input {
        font-size: 12px;
        font-weight: 500;
        color: #dbe1f3;
        height: 53px;
      }

      .btn {
        max-width: 253px;
        height: 53px;
        flex: 1 0 auto;
      }

      @include md {
        > div {
          gap: 0 8px;
        }

        input {
          max-width: calc(50% - 4px);
        }

        .btn {
          max-width: 100%;
          margin-top: 13px;
        }
      }

      @include xs {
        padding: 32px 16px 18px;

        input {
          max-width: 100%;

          &:not(:first-child) {
            margin-top: 8px;
          }
        }
      }
    }

    &-list {
      margin-top: 64px;

      li {
        background-color: #1c212d;
        border-radius: 15px;
        padding: 17px 32px 22px 30px;

        &:not(:last-child) {
          margin-bottom: 16px;
        }

        .info {
          img {
            border: 2px solid #757d91;
            border-radius: 28px;
            margin-right: 30px;
          }

          .name {
            font-size: 18px;
            font-weight: bold;
            color: #dbe1f3;
            line-height: 29px;
            margin-bottom: 2px;
          }

          .position {
            font-size: 12px;
            font-weight: 500;
            line-height: 19px;
            background-color: #282e3d;
            padding: 0 5px;
            color: #acb3c9;
            max-width: fit-content;
            margin-bottom: 4px;
          }

          .date {
            font-size: 12px;
            font-weight: 500;
            color: #757d91;

            i {
              margin-right: 3px;
              font-size: 17px;
              color: #757d91;
            }
          }

          &.admin {
            img {
              border-color: #8f2ffd;
            }

            .position {
              background-color: #8f2ffd;
              color: #fff;
            }
          }
        }

        .response {
          background-color: #282e3d;
          border-radius: 10px;
          width: 116px;
          height: 46px;
          font-weight: 500;
          color: #757d91;

          i {
            font-size: 18px;
            margin-right: 6px;
          }

          &:hover {
            background-color: #f6509c;
            color: #fff;
          }
        }

        p {
          margin-top: 22px;
          line-height: 32px;
          font-weight: 600;
          color: #acb3c9;
        }

        .btn-responses {
          margin-top: 16px;
          width: 100%;
          z-index: 2;

          &::before {
            content: "";
            position: absolute;
            top: 50%;
            right: 32px;
            left: 0;
            border-bottom: 1px dashed #323847;
            z-index: -1;
          }

          span {
            background-color: #1c212d;
            font-size: 16px;
            font-weight: 500;
            color: #dbe1f3;
            line-height: 28px;
            padding-right: 12px;
          }

          i {
            width: 26px;
            height: 26px;
            background-color: #272d3a;
            border-radius: 50%;
            font-size: 11px;
            color: #919191;
            transition: all 0.3s ease-in-out;
          }

          &.opened {
            i {
              transform: rotate(180deg);
            }
          }
        }

        ul {
          display: none;
          margin-top: 24px;

          li {
            background-color: #272d3d;

            .response {
              background-color: #1d222e;
            }
          }
        }

        @include xs {
          padding: 17px 12px 21px;

          .info {
            img {
              width: 60px;
              height: 60px;
              margin-right: 12px;
              border-radius: 22px;
            }
          }

          .response {
            font-size: 12px;
            width: 105px;

            i {
              font-size: 16px;
            }
          }
        }

        @include media("max", 399px) {
          .content {
            padding-bottom: 60px;
            position: relative;
          }

          .response {
            position: absolute;
            right: 0;
            bottom: 0;
          }
        }
      }
    }

    .loading {
      margin: 40px auto 0;
      animation: loading 3s linear 0s infinite;

      @keyframes loading {
        0% {
          transform: rotate(0deg);
        }

        100% {
          transform: rotate(360deg);
        }
      }
    }
  }
}
