/*==============================================================
  15. Blog Post
================================================================*/
@use "../default/breakpoints" as bp;

.cs_post_style_1 {
  .cs_post_thumbnail {
    display: block;
    width: 100%;

    img {
      width: 100%;
    }
  }

  .cs_post_content {
    .cs_post_meta_list {
      list-style: none;
      padding: 0;
      display: inline-flex;
      align-items: center;
      gap: 16px;
    }

    .cs_post_meta:not(:first-child) {
      padding-inline-start: 16px;
      position: relative;

      &::before {
        content: "";
        width: 1px;
        height: 20px;
        position: absolute;
        inset-inline-start: 0;
        top: 0px;
        background-color: var(--gray-color6);
      }
    }

    .cs_post_title {
      letter-spacing: -0.24px;

      a {
        background-repeat: no-repeat;
        background-image: linear-gradient(90deg,
            currentColor 0,
            currentColor 100%);
        transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
        background-position: var(--cs-edge-end) calc(100% - 0px);
        background-size: 0 1px;

        &:hover {
          background-size: 100% 1px;
          background-position: var(--cs-edge-start) calc(100% - 0px);
        }
      }
    }
  }
}

/*===========================================================
  Pagination Box
=============================================================*/
.cs_pagination_box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  .cs_pagination_item,
  .cs_pagination_arrow {
    background: transparent;
    height: 40px;
    width: 40px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);

    &.active {
      background-color: var(--primary-color);
      color: var(--white-color);
      pointer-events: none;
    }
  }

  a.cs_pagination_item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
  }

  .cs_pagination_arrow {
    color: var(--white-color);
    background-color: var(--primary-color);

    &:hover {
      color: var(--primary-color);
      background-color: transparent;
    }
  }

  @include bp.down(lg) {
    gap: 15px;
  }
}

/*===========================================================
  Post Details
=============================================================*/
.cs_post_details {
  .cs_post_banner {
    img {
      width: 100%;
      min-height: 160px;
    }
  }

  h2 {
    font-family: var(--primary-font);
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3em;
    color: var(--primary-color);
    margin-bottom: 20px;
  }

  h3 {
    font-family: var(--primary-font);
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3em;
    color: var(--primary-color);
    margin-bottom: 20px;
  }

  h4 {
    font-family: var(--primary-font);
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3em;
    color: var(--primary-color);
    margin-bottom: 20px;
  }

  p {
    font-family: var(--secondary-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.56em;
    color: var(--secondary-color);
    margin-bottom: 20px;

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

  article {
    margin-bottom: 30px;

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

    h2,
    h3,
    h4 {
      margin-bottom: 16px;
    }

    ul {
      list-style: disc;
      display: flex;
      gap: 10px;
      flex-direction: column;
    }
  }

  blockquote {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5em;
    padding: 30px;
    position: relative;
    margin: 40px 0;
    background-color: var(--gray-color5);

    &::before {
      content: "";
      width: 5px;
      height: 100%;
      position: absolute;
      inset-inline-start: 0;
      top: 0;
      background-color: var(--accent-color);
    }
  }

  .cs_post_gallery {
    img {
      width: 100%;
    }
  }

  @include bp.down(md) {
    h2 {
      font-size: 36px;
      margin-bottom: 16px;
    }

    h3 {
      font-size: 30px;
      margin-bottom: 16px;
    }

    h4 {
      font-size: 22px;
      margin-bottom: 16px;
    }

    blockquote {
      padding: 18px;
    }
  }
}

.cs_comment_form {
  .cs_form_field {
    &:focus {
      border-color: var(--accent-color);
    }
  }
}