/* Blog post */

.blog-post {
  margin: 0 auto;
  max-width: 960px;
}

.blog-post__meta {
  margin-bottom: 1.4rem;
}

.blog-post__meta a {
  text-decoration: underline;
}

.blog-post__timestamp {
  display: block;
}

.blog-post__tags svg {
  height: auto;
  margin-right: 0.35rem;
  width: 15px;
}

.blog-post__tag-link {
  font-size: 0.875rem;
}

/* 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 detail page css ========================= **/

/** banner **/
.body-container--blog-post {
  position: relative;
  isolation: isolate;
}

.body-container--blog-post::after {
  position: absolute;
  content: "";
  top: 83px;
  background-size: cover;
  width: 100%;
  left: 0;
  height: 358px;
  z-index: -1;
}

.body-container--blog-post article.blog-post {
  max-width: 87rem !important;
  padding-top: 150px;
  padding-bottom:62px;
}
.body-container--blog-post article.blog-post{
 max-width:1037px !important;
}
/*** Author ***/

.blog-post-author p {
  margin: 0;
  font-size: 14px;
  line-height: 30px;
  color: #7490a5;
  margin: 0 0 20px;
}

.blog-post-author p a {
  color: #7490a5;
  font-weight:500;
}

.blog-post-author p a:hover {
  color: var(--primary_blue);
  font-weight:500;
  transition: all .3s linear;
}

.blog-post-featured_image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 0 40px;
  border-radius: 0.5rem;
}
.blog-post-title h2 {
    font-size: 38px;
    font-family: 'DM Serif Text', serif;
    line-height: 40px;
    color: #303439;
    font-weight: 400;
    margin-bottom: .5rem!important;
}

/*** pagination ***/

.post-pagination {
  display: flex;
  justify-content: space-between;
  margin: 70px 0 0;
}

/* arrow */
.nav-text a,
.nav-text a:hover,
.nav-text a:focus {
  position: relative;
  font-size: 16px;
  line-height: 30px;
  color: #303439;
  font-weight: 500 !important;
  padding-left: 18px;
}

.nav-text a::after {
  position: absolute;
  content: "";
  width: 11px;
  height: 11px;
  border-top: 3px solid #303439;
  border-left: 3px solid #303439;
  transform: rotate(-45deg);
  top: 5px;
  left: 0;
}

.next-post .nav-text a::after {
  left: auto;
  right: 0;
  border-left: 0;
  border-right: 3px solid #1b1b1b;
  transform: rotate(45deg);
}

.next-post .nav-text a {
  padding-left: 0;
  padding-right: 18px;
}

.nav-text.active a {
    color: var(--primary_blue);
}

.nav-text.active a::after {
    border-color: var(--primary_blue);
}
/** ============== Related post ===============**/
section.blog-related-posts {
  padding: 18px  0 69px!important;
  position: relative;
  background-color: transparent !important;
  overflow:hidden;
}

section.blog-related-posts::after {
    position: absolute;
    content: "";
    top: 8px;
    left: 0;
    background-image: url(https://24201671.fs1.hubspotusercontent-na1.net/hubfs/24201671/grid-1.svg);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 614px;
    z-index: -1;
    background-position: 50%;
    background-attachment: scroll;
}

.blog-related-posts h1 {
    text-align: center;
    margin: 0 0 48px;
}
.blog-related-posts__list {
    margin-right: -20px;
}
.blog-related-posts__list > .blog-related-posts__post {
    flex: 0 0 calc(25% - 20px);
    margin-right: 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 15px !important;
    transition: all .3s linear;
}
.blog-related-posts__list > .blog-related-posts__post:hover{
    border:1px solid #d6e9f2;!important;
    background-color: #fff;
}
.blog-related-posts_feature-img{
    height: 131px !important;
    margin: 0 0 14px;
    overflow:hidden;
    border-radius:10px;
    box-shadow: 0 2px 2px 0 #00000036;
}
.blog-related-posts_feature-img img {
    width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    transition:all 0.3s linear;
}
.blog-related-posts__list>.blog-related-posts__post:hover img.blog-related-posts__image {

}
.blog-related-posts__author p {
    font-size: 14px;
    color: #7490a5;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin: 0 0 10px;
    line-height: 1;
    margin:0px 0px 10px 5px;
}

.blog-related-posts__author p a {
    color: #7490a5;
    font-weight: 600;
}

.blog-related-posts__title {
   margin: 0 0 0.9rem 5px !important;
}

.blog-related-posts__title h3,.blog-related-posts__title a {
    font-family: var(--primary_font) !important;
    font-size: 18px !important;;
    line-height: 1.5;
    color: #2f343a !important;;
    font-weight: 700 !important;;
}

.blog-related-posts__list>.blog-related-posts__post:hover .blog-related-posts__title a, .blog-related-posts__list>.blog-related-posts__post:hover .blog-related-posts__title h3 {
    color: var(--primary_blue) !important;
}


/**** responsive *****/
@media (min-width:768px){
.blog-post-title, .blog-post-author {
    padding-left: 7px;
}
 .prev-post {
    padding-left: 14px;
}
.next-post {
    padding-right: 24px;
}
}

@media (max-width:991px){
  .blog-related-posts__list>.blog-related-posts__post {
    flex: 0 0 calc(50% - 20px);
    margin-right: 20px;
    padding: 0!important;
    margin-bottom: 30px;
  }
}


@media (max-width:767px){

  .body-container--blog-post article.blog-post {
     padding-top: 130px;
    padding-bottom: 50px;
}
  .blog-post-title h2 {
    font-size: 29px;
    line-height: 40px;
  }
  article.blog-post {
    padding-bottom: 50px;
  }

  .post-pagination {
    margin: 50px 0 0;
  }
  .blog-related-posts__list {
    margin-right: 0;
  }
  .blog-related-posts__list>.blog-related-posts__post {
    flex: 0 0 100%;
    margin-right: 0px;
    padding: 0!important;
    margin-bottom: 40px;
  }
  .blog-related-posts__list>.blog-related-posts__post:last-child {
    margin: 0;
  }
  .blog-related-posts_feature-img img {
    height: 250px !important;
  }
  .blog-related-posts__author p {
    margin: 0 0 10px;
  }

  /*** featured image ***/
  .blog-post-featured_image img {
    height: auto;
    margin: 0 0 40px;
  }
}



/**==================================== blog listing page =====================================***/

/** blog tag btn **/

.blog-post-category-main {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 0 0 64px;
    flex-wrap: wrap;
.}

.inner-single-category a,
.inner-single-category a:hover,
.inner-single-category a:focus {
    font-size: 16px;
    line-height: 1;
    color: #34383d;
    font-weight: 400;
    font-family: "Inter";
    text-align: center;
    padding: 17px 27px;
    display: inline-block;
    border-radius: 5px;
    border: 1px solid #d6e9f2;
    transition:all 0.3s linear;
}

.inner-single-category:first-child a,
.inner-single-category a:hover {
    background-color: var(--primary_blue);
    color: var(--primary_white);
}

.hs-blog-post-listing .hs-blog-post-listing__post {margin-right: 20px !important;width: calc(25% - 20px) !important;margin-bottom: 0 !important;}

.hs-blog-post-listing {
    margin-right: -20px;
    row-gap: 32px;
}

.hs-blog-post-listing__featured-image {
    height: auto;
    margin: 0 0 14px !important;

    border-radius: 10px !important;
}

.hs-blog-post-listing--grid  .hs-blog-post-listing__post-image {
  aspect-ratio: unset!important;
    border-radius: 10px;
    display: block;
    height: auto!important;
    object-fit: contain;
    box-shadow: 0 2px 2px 0 #00000036;
    transition:all 0.3s linear;
    max-height:136px;
}
.hs-blog-post-listing--grid  .hs-blog-post-listing__post-author p {
    margin: 0;
    font-size: 14px;
    color: #7490a5;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin: 0 0 10px;
    line-height: 1;
}

.hs-blog-post-listing--grid  .hs-blog-post-listing__post-author p a {
    color: #7490a5;
    font-weight: 600;
}

.hs-blog-post-listing--grid  h2.hs-blog-post-listing__post-title,a.hs-blog-post-listing__post-title-link {
    font-size: 18px !important;
    line-height: 1.5;
    color: #2f343a !important;
    font-weight: 700 !important;
    font-family: var(--primary_font) !important;
    transition:all 0.3s linear;
}
article.hs-blog-post-listing__post:hover h2.hs-blog-post-listing__post-title, article.hs-blog-post-listing__post:hover a.hs-blog-post-listing__post-title-link {
    color: var(--primary_blue)!important;
}
article.hs-blog-post-listing__post {
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: all 0.3s linear;
}

article.hs-blog-post-listing__post:hover {
    border: 1px solid #d6e9f2;
}
/** pagination **/
  nav.hs-pagination {
    margin: 40px 0 53px;
}
  .hs-pagination__link--numbe {
    border-radius: 5px;
    background-color: #4f46e5;
}

.hs-pagination__link--number {
    border-radius: 5px;
    line-height: 1;
    padding: 8px 11.2px !important;
    color: #454449 !important;
}

a.hs-pagination__link.hs-pagination__link--number.hs-pagination__link--active {
    background-color: var(--primary_blue);
    color: var(--primary_white) !important;
}

a.hs-pagination__link.hs-pagination__link--next {
    position: relative;
    padding-left: 9px;
}
a.hs-pagination__link.hs-pagination__link--next::after {
    position: absolute;
    content: "";
    top: 2px;
    right: 0;
    width: 11px;
    height: 11px;
    border-top: 3px solid #454449;
    border-right: 3px solid #454449;
    transform: rotate(45deg);
}

a.hs-pagination__link.hs-pagination__link--next svg,
a.hs-pagination__link.hs-pagination__link--prev svg  {
    opacity: 0 !important;
}
a.hs-pagination__link.hs-pagination__link--prev {
    position: relative;
    padding-right: 9px;
}

a.hs-pagination__link.hs-pagination__link--prev::after {
    border-left: 3px solid #454449;
    border-top: 3px solid #454449;
    content: "";
    height: 11px;
    position: absolute;
    left: 0;
    top: 2px;
    transform: rotate(-45deg);
    width: 11px;
}


/*** responsive ***/
@media (max-width:1199px){
.hs-blog-post-listing .hs-blog-post-listing__post {
    margin-bottom: 0!important;
    margin-right: 20px!important;
    width: calc(50% - 20px)!important;
}
  .hs-blog-post-listing--grid .hs-blog-post-listing__post-image,
  .hs-blog-post-listing__featured-image {
    height: auto !important;
    max-height:252px;
  }
  .blog-post-featured_image img {
    height: auto !important;
}
}

@media (max-width:767px){
  .hs-blog-post-listing {
    margin-right: 0;
    row-gap: 40px;
}
  .hs-blog-post-listing .hs-blog-post-listing__post {
    margin-bottom: 0!important;
    margin-right: 0px!important;
    width: 100%!important;
}
  .hs-blog-post-listing--grid .hs-blog-post-listing__post-image,
  .hs-blog-post-listing__featured-image {
    height: auto !important;
    max-height:unset !important;
}
  
  .hs-blog-post-listing--grid .hs-blog-post-listing__post-author p {
    margin-bottom: 16px;
}
  
  .hs-blog-post-listing__featured-image {
  margin-bottom: 18px!important;
  }
 
  .blog-post-category-main {
    gap: 9px;
    justify-content: center;
    margin: 0 0 45px;
    row-gap: 9px;
}

  .inner-single-category a {
    padding: 11px 14px !important;
    text-align: center;
    transition: all .3s linear;
}
  a.hs-pagination__link.hs-pagination__link--next {
    padding-left: 20px;
}
  a.hs-pagination__link.hs-pagination__link--prev {
    padding-right: 20px;
}
}