/* Blog listing */
.blog-index {
  display: flex;
  display: -ms-flexbox;
  flex-wrap: wrap;
}

.blog-index__post {
  flex: 0 0 100%;
  padding: 1.4rem 1rem;
}

.blog-index__post:not(.blog-index__subscribe-card-parent-wrapper--layout):hover {
  background-color: rgba(40, 49, 92, 0.1);
}

.blog-index__post-image {
  height: auto;
  width: 100%;
  /* TODO: */
  object-fit: cover;
  object-fit: contain;
  object-position: top;
}

.blog-index__post-title {
  font-size: 1.25rem;
}

.blog-index__post-timestamp {
  display: block;
}

.blog-index__post-author {
  align-items: center;
  display: flex;
  display: -ms-flexbox;
}

.blog-index__post-author-image {
  border-radius: 50%;
  height: auto;
  margin-right: 0.35rem;
  width: 30px;
}

.blog-index__post-tags,
.blog-index__post-title,
.blog-index__post-timestamp,
.blog-index__post-author {
  margin: 0 0 16px;
}

/* Blog pagination */

.blog-pagination {
  display: flex;
  display: -ms-flexbox;
  justify-content: center;
  align-items: center;
}

.blog-pagination__link {
  border: 2px solid transparent;
  border-radius: 5px;
  line-height: 1;
  margin: 0 0.1rem;
  padding: 0.25rem 0.4rem;
  text-decoration: none;
}

.blog-pagination__link--active {
  border-color: #b0c1d4;
}

.blog-pagination__link:hover,
.blog-pagination__link:focus {
  text-decoration: none;
}

.blog-pagination__prev-link {
  margin-right: 0.25rem;
}

.blog-pagination__next-link {
  margin-left: 0.25rem;
}

.blog-pagination__link.blog-pagination__prev-link--disabled,
.blog-pagination__link.blog-pagination__next-link--disabled {
  color: #b0c1d4;
  cursor: default;
  pointer-events: none;
}

.blog-pagination__prev-link svg,
.blog-pagination__next-link svg {
  margin: -5px 0.3rem;
}

.blog-pagination__prev-link--disabled svg,
.blog-pagination__next-link--disabled svg {
  fill: #b0c1d4;
}

.blog-pagination__number-link:hover,
.blog-pagination__number-link:focus {
  border: 2px solid #b0c1d4;
}

/* Blog post */

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

.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: 8px;
  width: 16px;
}

.blog-post__tag-link {
  font-size: 16px;
}

/* Blog related posts */

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

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

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

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

.blog-related-posts__image {
  height: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: fill;
}

.blog-related-img-wrap {
 max-height: 200px;
  height: 200px;
}

.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;
}

/* .hs-search-field input {
  max-width: 560px;
  margin: 0 auto 0 auto;
  padding-left: 32px !important;
} */

.blog-listing-page__search-wrapper--layout input.hs-search-field__input {
  background: #EEEEF2 url(https://www.medianet.com.au/hubfs/MDN_HD_Website_2021/Blog%20Images/search22.svg) !important;
  background-repeat: no-repeat !important;
  color: #5E5F6E;
  background-position: 98% center !important;
  border-radius: 5px;
  font-size: 16px !important;
  border-color: #EEEEF2 !important;
}

.post-item-header h4 a {
  font-size: 24px;
  display: inline-block;
  color: #121733;
}
.blog-related-posts-date,
.post-item__minute-count--styles {
  font-size: 14px;
  font-weight: 700;
  color: #9C9DAA;
  float:left;
}
.blog-related-posts-date{
  float: right;
}

.blog-list-filter__wrapper--layout input[type="radio"] {
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.active-group,
div.active-group * {
  cursor: pointer;
  /* color: var(--main-dark-navy); */
}

a.blog-index__post-image-wrapper {
  display: block;
  position: relative;

  /* height: 200px;*/
  /* height: 52%; */
  width: 100%;
  /*width: 384px;*/

  object-fit: contain;
  padding: 16px 0;
}

/*
a.blog-index__post-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
*/
.c-listing {
  margin-top: 8px;
}

.c-listing p {
  font-size: 16px;
  line-height: 28px;
  color: #474954;
  margin-bottom: 21px;
}

.c-tags a {
  color: #474954;
  font-size: 14px;
  background: #ffffff;
  border-radius: 5px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 8px 12px;
  /* text-transform: capitalize; */
  text-transform: none;
  margin-top: 8px;
}

.c-tags a:hover {
  background: var(--main-red);
  color: #ffffff;
}

.hs-blog-post .blog-related-posts__list .post-item-header h4 a:hover {
  color: var(--main-red);
}

.blog-post-intro .hs-search-field,
.blog-intro .hs-search-field {
  position: relative;
}


.blog-post-intro .hs-search-field.hs-search-field--open .hs-search-field__suggestions,
.blog-intro .hs-search-field.hs-search-field--open .hs-search-field__suggestions {
  display: block;
}


.blog-post-intro ul.hs-search-field__suggestions,
.blog-intro ul.hs-search-field__suggestions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 45px;
  z-index: 10;
  text-align: left;
  display: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--light-grey-bg);
  border-top: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;

}

.blog-post-intro ul.hs-search-field__suggestions {
  max-width: 480px;
  top: 75px;
  padding: 12px 16px 12px 32px;
}



.blog-post-intro ul.hs-search-field__suggestions li,
.blog-intro ul.hs-search-field__suggestions li {
  list-style: none;
  margin-top: 10px;
}

.blog-post-intro ul.hs-search-field__suggestions li#results-for,
.blog-intro ul.hs-search-field__suggestions li#results-for {
  margin-top: 0;
  font-style: italic;
  font-weight: bold;
}


.blog-post-intro ul.hs-search-field__suggestions li a,
.blog-intro ul.hs-search-field__suggestions li a {
  color: #0c1725;
}

.blog-post-intro ul.hs-search-field__suggestions li a:hover,
.blog-intro ul.hs-search-field__suggestions li a:hover {
  color: #bf1f2e;
}

.button.back-to-blog {
  margin-top: 64px;
}

/*
.back-to-blog {
  border: 1px solid #EEEEF2;
  background: #EEEEF2;
  margin-top: 64px;
  display: inline-block;
  border-radius: 5px;
  font-size: 16px;
  line-height: 24px;
  color: #474954;
  padding: 8px 32px 8px 64px;
  position: relative;
  text-transform: uppercase;
}

.back-to-blog:before {
  position: absolute;
  left: 32px;
  top: 16px;
  content: "";
  background: url(https://www.medianet.com.au/hubfs/MDN_HD_Website_2021/Blog%20Images/arrow-pointing-to-right.svg);
  width: 16px;
  height: 10px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

a.back-to-blog:hover {
  color: var(--main-red);
  border: var(--main-red) 1px solid;
}
*/

.hs-blog-post .blog-post {
  margin: 0 auto;
  padding: 72px 0;
  max-width: 1080px;
}

.hs-blog-post article.blog-post .blog-post__title {
  margin-bottom: 32px;
}

.hs-blog-post article.blog-post .blog-post__title h1 {
  font-size: 60px;
  line-height: 120%;
  text-transform: none;
  color: #121733;
  font-weight: 600;
}
.hs-blog-post article.blog-post .blog-post__publish-date {
  font-size: 14px;
}

@media screen and (max-width: 1160px) {
  .hs-blog-post article.blog-post .blog-post__title h1 {
    font-size: 40px;
    line-height: 110%;
  }

  .blog-index__post--small {
    flex: 0 0 calc(100% / 2);
  }
}



.hs-blog-post .blog-post__body h3 {
  font-size: 40px;
  line-height: 120%;
  font-weight: 700;
  text-transform: none;
}

.hs-blog-post .blog-post__body h4 {
  font-size: 30px;
  line-height: 120%;
  font-weight: 700;
  text-transform: none;
}

.hs-blog-post blockquote {
  border-top: 1px solid #9c9daa;
  border-bottom: 1px solid #9c9daa;
}

.hs-blog-post blockquote span {
  display: block;
  font-size: 24px;
  line-height: 24px;
  margin: 17px 0;
  font-family: var(--fieldwork-font-stack);
  font-weight: 400;
}

.hs-blog-post blockquote p {
  font-size: 30px;
  line-height: 48px;
  color: #121733;
  font-weight: 700;
  text-align: center;
  font-family: var(--fieldwork-font-stack);
}

.hs-blog-post blockquote {
  border-left: none;
  padding: 48px 0px;
  max-width: 960px;
}

.hs-blog-post .blog-post__body p {
  font-size: 16px;
  line-height: 28px;
  margin: 0px;
  color: #474954;
  max-width: 100%;
}

li {
  font-size: 16px;
  line-height: 28px;
  margin: 0px;
  color: #474954;
  max-width: 100%;
}

.hs-blog-post .blog-post__body blockquote p {
  line-height: 135%;
}

.hs-blog-post .blog-post__body span>*+*:not(img) {
  margin-top: 16px;
}

.hs-blog-post .blog-post__body span pre {
  margin-top: 4px !important;
  font-family: var(--lato-font-stack);
  color: #76788a;
  display: inline-block;
  width: auto;
  height: auto;
  white-space: pre-wrap;
  max-width: 100%;
}

.hs-blog-post .blog-post__body span>*+h2,
.hs-blog-post .blog-post__body span>*+h3,
.hs-blog-post .blog-post__body span>*+h4,
.hs-blog-post .blog-post__body span>*+h5,
.hs-blog-post .blog-post__body span>*+blockquote,
.hs-blog-post .blog-post__body span>*+p>img {
  margin-top: 32px;
}

.hs-blog-post .blog-post__body span>*+blockquote {
  margin: 48px auto;
}

.hs-blog-post .blog-post__body span>h2+*,
.hs-blog-post .blog-post__body span>h3+*,
.hs-blog-post .blog-post__body span>h4+*,
.hs-blog-post .blog-post__body span>h5+* {
  margin-top: 0px;
}

.hs-blog-post .blog-related-posts {
  padding: 72px 0;
  margin: 0px 0px 160px 0px;
}

.hs-blog-post .blog-related-posts__list {
  padding-top: 16px;
  max-width: 33%;
  margin: 0;
}

.hs-blog-post .blog-related-posts__list .post-item-header h4 a {
  font-size: 20px;
  line-height: 28px;
  overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hs-blog-post .blog-related-posts__list a.blog-index__post-image-wrapper {
  height: 200px;
  width: auto;
  margin: 32px 0;
}

.hs-blog-post .blog-related-posts>div>h4 {
  text-align: center;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.img-block {
  margin: 48px 0 0 0;
}

.img-block,
.img-block p {
  width: 100%;
  display: flex;
  display: -ms-flexbox;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.img-block img {
  width: 49.3%;
  min-height: 347px;
}

.blog-share-icon p {
  font-size: 16px;
  color: #585858;
  line-height: 22px;
  margin-bottom: 0;
  padding-right: 24px;
  text-transform: uppercase;
}

figcaption,
.img-block {
  font-size: 18px;
  color: #ACAEB9;
  display: inline-block;
}

.blog-share-icon {
  display: flex;
  display: -ms-flexbox;
  border-top: 1px solid #D3D5DE;
  padding-top: 32px;
  margin-top: 96px;
  justify-content: flex-end;
  align-items: center;
  max-width: 1080px;
}

.social-container .blog-share-icon a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-align: center;
  line-height: 34px;
  margin-right: 16px;
}

.social-container .blog-share-icon a i {
  color: #ffffff;
}

.hs-blog-post article.blog-post ul,
.article.blog-post ol {
/*  padding-left: 16px; */
  margin: 0;
  margin-bottom: 32px;
}


.hs-blog-post h4.blog-related-posts__title {
  text-align: left;
  margin-bottom: 0;
}

.img-block p {
  margin: 0;
}

@media screen and (min-width: 1160px) {
  .blog-index__post--small {
    flex: 0 0 calc(100% / 3);
  }
}

@media screen and (max-width: 640px) {
  .blog-index__post--small {
    flex: 0 0 100%;
  }

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

  @media screen and (min-width: 768px) {
    .blog-index__post--large {
      display: flex;
      display: -ms-flexbox;
      flex: 1 0 100%;
    }
  }


  @media screen and (min-width: 768px) {
    .blog-index__post-image-wrapper--large {
      flex: 1 1 48%;
    }

    .blog-index__post-content--large {
      flex: 1 1 48%;
      padding-left: 2rem;
    }

    .blog-index__post-content--full-width {
      flex: 1 1 100%;
      padding-left: 0;
    }
  }


  @media (max-width: 1160px) {
    .blog-pagination__number-link {
      display: none;
    }
  }

  /*
@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);
  }
}
*/

  @media screen and (max-width: 1160px) {

    .hs-blog-post article.blog-post h2 {
      font-size: 40px;
      line-height: 1.4;
    }

    .hs-blog-post .blog-related-posts {
      margin: 0 0 160px 0;
    }

    .hs-blog-post .blog-related-posts {
      margin: 0 0 144px 0;
    }

    .hs-blog-post article.blog-post h2 {
      font-size: 30px;
      line-height: 1.4;
    }

    .hs-blog-post .blog-related-posts {
      padding: 32px 0px 0px 0px;
      margin: 0 0 72px 0;
    }

    .img-block p img {
      width: 100%;
      min-height: 0;
      margin-bottom: 16px;
    }

    .hs-blog-post blockquote p {
      font-size: 24px;
      line-height: 36px;
    }

    .hs-blog-post blockquote {
      margin: 48px auto;
    }

    .hs-blog-post article.blog-post h2 {
      font-size: 32px;
    }

    .hs-blog-post .blog-post__body h3 {
      font-size: 26px;
      line-height: 1.4;
    }

    .hs-blog-post .blog-post__body h4 {
      font-size: 24px;
      line-height: 1.4;
    }

    figcaption,
    .img-block {
      font-size: 16px;
    }

    .img-block img:last-child {
      margin-bottom: 0;
    }

    .img-block p img {
      width: 100%;
      margin-bottom: 20px;
    }

    .hs-blog-post .blog-related-posts__list a.blog-index__post-image-wrapper img {
      /* height: 240px; */
      width: fit-content;
      height: auto;
    }

    .blog-intro form .hs-search-field input {
      padding-left: 12px !important;
    }

    .blog-share-icon {
      padding-top: 32px;
      margin-top: 64px;
      justify-content: center;
    }

    a.blog-index__post-image-wrapper {
      display: block;
      position: relative;

      /*max-height: 200px;*/
      /* height: 52%; */
      width: 100%;
      /* width: 300px;*/

      object-fit: contain;
      padding: 16px 0;
    }

  }