/* Blog post */


/* Blog related posts */

.blog-related-posts {
  background-color: #F8FAFC;
}

.blog-related-posts h2 {
  text-align: center;
}

.blog-related-posts__list {
  display: flex;
  flex-wrap: wrap;
}

.blog-related-posts__post {
  flex: 0 0 100%;
  padding: 1rem;
}

@media screen and (min-width: 768px) {
  .blog-related-posts__post {
    flex: 0 0 calc(100% / 2);
  }
}

@media screen and (min-width: 1000px) {
  .blog-related-posts__post {
    flex: 0 0 calc(100% / 3);
  }
}

.blog-related-posts__image {
  height: auto;
  max-width: 100%;
}

.blog-related-posts__title {
  margin: 0.7rem 0;
}

/* Blog comments */

.blog-comments {
  margin: 0 auto;
  max-width: 680px;
}

.blog-comments .hs-submit {
  text-align: center;
}

.blog-comments .comment-reply-to {
  border: 0 none;
}

.blog-comments .comment-reply-to:hover,
.blog-comments .comment-reply-to:focus {
  background-color: transparent;
  text-decoration: underline;
}


.blog-page-content {
  font-size: 15px;
  line-height: 1.86667;
  font-weight: 400;
  border-top: 1px solid #222;
}
.blog-page-content .module-header {
  margin-bottom: 20px;
}
.blog-page-content h3 {
  font-size: 25px;
}
.blog-page-content p {
  font-weight: 400;
}
.blog-page-content a:hover {
  text-decoration: underline;
}
.blog-page-content ul {
  padding: 0;
  list-style: none;
}


.blog-wrap {
  padding: 0 0 88px;
  @media (max-width: 991px) {
    padding: 0 0 40px;
  }
}

.blog-wrap p:empty {
  display: none !important;
}

.blog-wrap p,
.blog-wrap ul,
.blog-wrap ol {
  margin: 0 0 30px; 
}
.blog-wrap p:last-child,
.blog-wrap ul:last-child,
.blog-wrap ol:last-child {
  margin: 0; 
}
.blog-page-content p strong {
  font-weight: 700;
}

/* Blog Post Details */
.journal-details {
  position: relative;
  padding: 24px 0 67px;

  @media (max-width: 991px) {
    padding: 24px 0;
  }

  .journal-header {
    max-width: 650px;
    margin: 0 auto 32px;
    gap: 32px;
    display: flex;
    flex-flow: column nowrap;
    text-align: center;
    @media (max-width: 991px) {
      margin-bottom: 24px;
      gap: 24px;
    }
    > * {
      margin: 0 !important;
    }

    h1 {
      color: var(--text-color);
      @media (min-width: 1200px) {
        font-size: 48px;
      }
      span {
        color: inherit;
      }
    }
  }
  .journal-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    overflow: hidden;
    flex-flow: row wrap;

    li {
      padding: 0 10px;
      flex-grow: 1;
      flex-shrink: 0;
      flex-basis: 0;
      position: relative;
      &:before {
        position: absolute;
        left: -1px;
        top: 2px;
        bottom: 2px;
        content: "";
        background: var(--border-color);
        width:1px;
      }
    }

    .title {
      font-size: 14px;
      opacity: .5;
      margin: 0 0 4px;
      line-height: 16px;
    }
    .title, .value {
      display: block;
    }
  }


}
.journal-tags {
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  margin: -8px -4px 0 !important;
  padding: 0;
  justify-content: center;
}

.journal-tags li {
  padding: 8px 4px 0
}

.journal-tags li a {
  background: #c5d3ce;
  border-radius: 4px;
  color: #374843;
  display: inline-block;
  font-size: 12px;
  line-height: 15px;
  padding: 4px 8px;
  vertical-align: top;
  text-transform: capitalize;
  @media (max-width: 991px) {
    font-size: 11px;
    line-height: 14px;
    padding: 3px 5px;
  }
}

.journal-audio {
  background: none;

  .hs-audio-player {
    max-width: 792px;
    box-shadow: 0 0 12px 0 #9F9F9F3B;
    margin: 0 auto 28px;
    height: 48px !important;
    font-size: 18px;
    background: #fff;
    padding: 0 24px;
    line-height: 1.2;
    border-radius: 8px;
    @media (max-width: 991px) {
      padding: 0 20px;
      font-size: 14px;
      margin-bottom: 20px;
      box-shadow: 0 0 10px 0 #9F9F9F3B;
    }
  }

  .hs-audio-player__controls, .hs-audio-player__volume, .hs-audio-player__mute-button, .hs-audio-player__playback-rate {
    display: flex;
    align-items: center;
    > div  {
      padding: 2px 4px !important;
      > div {
        width: 30px !important;
        height: 30px !important;
        display: flex;
        padding: 0 !important;
        color: var(--primary-color) !important;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        background: none !important;

        svg {
          display: block;
          max-width: 17px;
          height: auto;
          fill: var(--primary-color) !important;
          * {
            fill: var(--primary-color) !important;
          }

        }
      }
    }
    .hs-audio-player__skip-icon svg {
      max-width: 20px !important;
    }
  }


  .hs-audio-player__title {
    color: var(--text-color);
  }
  .hs-audio-player__duration {
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    @media (max-width: 991px) {
      font-size: 12px;
    }

  }
}
.journal-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  @media (max-width: 991px) {
    flex-flow: column nowrap;
  }

  .aside {
    width: 384px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0  0 12px 0 #9F9F9F3B;
    border-radius: 8px;
    padding: 48px 38px;
    @media (max-width: 1199px) {
      padding: 24px;
      width: 300px;
    }
    @media (max-width: 991px) {
      padding: 24px;
      width: 100%;
    }
    strong {
      display: block;
      font-weight: 400;
      border-bottom: 1px solid var(--border-color);
      padding: 0 0 24px;
      margin: 0 0 24px;
      @media (max-width: 991px) {
        padding: 0 0 20px;
        margin: 0 0 20px;

      }
    }
    ul {
      margin: 0;
      padding: 0;
      list-style: none;

      display: flex;
      flex-flow: column nowrap;
      gap: 20px;
      @media (max-width: 991px) {
        gap: 16px;
      }
      a {
        color: inherit;
      }
    }
  }

  .journal-body {
    flex-grow: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fff; 
    box-shadow: 0  0 12px 0 #9F9F9F3B;
    padding: 48px;
    line-height: 1.6111;

    @media (max-width: 1199px) {
      padding: 24px;
      box-shadow: 0  0 10px 0 #9F9F9F3B; 
    }

    @media (min-width: 1200px) {
      font-size: 18px;
    }

    h2 {
      line-height: 1.16;
      font-weight: 400;
      font-size: 36px;
      font-weight: 400;
      font-family: Inter, sans-serif;

      @media (max-width: 1199px) {
        font-size: 30px;
      }
      @media (max-width: 991px) {
        font-size: 26px;
      }
    }
    h3 {
      font-weight: 600;
    }
    img {
      border-radius: 10px;
    }
    p, h2, h3, h4, table, > img, hr {
      margin: 0  0 24px;

      @media (max-width: 991px) {
        margin: 0 0 20px;
      }

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

    a{
      color: inherit;
      text-decoration: underline;
      &:hover {
        text-decoration: none;
      }
    }
    hr {
      height: 2px;
      border: 0;
      padding: 0;
      background: var(--border-color);

    }
  }
}

.author-box {
  padding: 48px;
  background: #fff;
  margin: 0 0 24px;
  display flex;
  align-items: flex-start;
  box-shadow: 0 0 12px 0 #9F9F9F3B;
  border-radius: 8px;
  gap: 24px;
  display: flex;
  line-height: 1.5625;

  @media (max-width: 1199px) {
    padding: 36px;
  }
  @media (max-width: 991px) {
    padding: 24px;
    flex-flow: row wrap;
  }
  .author-info {
    flex-shrink: 0;
    width: 340px;
    display: flex;
    align-items: flex-start;
    @media (max-width: 1199px) {
      width: 300px;
    }
    @media (max-width: 991px) {
      width: 100%;
    }

    img {
      display: block;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      margin: 0 16px 0 0;
    }
    .author-infowrap {
      flex-grow: 1;
      overflow: hidden;
      max-width: 227px;
      align-self: center;
      @media (max-width: 991px) {
        max-width: none;
      }
    }
  }
  h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
  }
  h5 {
    margin: 0;
    color: var(--text-color);
    font-weight: 700;
    text-transform: none;
  }
  .designation {
    display: block;
    color: var(--primary-light-color);
  }
  .author-social {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 0;
    margin: 12px 0 0;
    border-top: 1px solid var(--border-color);
    a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      font-size: 14px;
      line-height: 1;
      color: #fff;
      background: var(--primary-lighter-color);
      &:hover {
        background: var(--primary-color);
      }
    }
  }
  .author-bio {
    flex-grow: 1;
    overflow: hidden;
    @media (max-width: 991px) {
      max-width: calc(100% - 180px)
    }
    @media (max-width: 991px) {
      max-width: none;
    }
  }
  .author-more {
    flex-shrink: 0;
    width: 131px;
    gap: 18px;
    display: flex;
    flex-flow: column nowrap;
    @media (max-width: 991px) {

      gap: 12px;
    }
    @media (max-width: 767px) {
      width: 100%;
    }
  }
  .button-out.btn-text a svg {
    margin-left: 12px;
  }


}

.author-box-listing {
  .author-box {
    align-items: initial;
    position: relative;
    justify-content: center;
    .author-info {
      display: flex;
      align-items: center;
      text-align: center;
      gap: 0;
      width: 336px;  
      max-width: none;

      .author-info-holder,
      .author-infowrap{
        width: 100%;
        max-width: none;
      }

      img {
        width: 128px;
        height: 128px;
        margin: 0 auto 16px;
      }
    }
    .designation {
      color: var(--text-color);
    }
    .author-social {
      border: 0;
      padding: 0;
      margin: 16px 0 0;
      justify-content: center;
    }
    .author-bio {
      border-left: 1px solid #204149;
      padding: 0 0 0 24px;
      display: flex;
      align-items: center;
      
      @media (max-width: 991px) {
        border: 0;
        padding: 0;
      }
      > div {
        width: 100%;
      }
    }
  }
  
  .btn-close {
    position: absolute;
    right: 27px;
    top: 27px;
    color: var(--primary-color);
    width: 18px;
    
    svg {
      display: block;
      max-width: 100%;
      height: auto;
    }
  }
}