/* ==========================================================================
   Blog Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Blog Card (shared between archive and single "More posts")
   -------------------------------------------------------------------------- */

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  width: 100%;

  box-shadow: 0px 0px 3px 0px #00000080;
  border-radius: 5px;
  overflow: hidden;
}

.blog-card:hover,
.blog-card:focus {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}

.blog-card__image {
  overflow: hidden;
  height: 200px;
  background-color: #0079C2;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.blog-card__content {
  padding: 15px 30px;
  border: 1px solid #EBEBEB;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.blog-card__title {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 15px;
  line-height: 1.3;
  color: #0079C2;
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 20px;
  color: #000;
  margin: 0 0 15px;
}

.blog-card__read-more {
  font-size: 14px;
  font-weight: 400;
  color: #C1272D;
  text-decoration: underline;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Blog Archive
   -------------------------------------------------------------------------- */

.blog-archive {
  padding-top: 40px;
  padding-bottom: 40px;
}

.blog-archive h1 {
  margin-bottom: 30px;
}

.blog-archive__item {
  margin-bottom: 30px;
}

.blog-archive .row,
.blog-single-more-posts .row {
  display: flex;
  flex-wrap: wrap;
}

.blog-archive .row > [class*="col-"],
.blog-single-more-posts .row > [class*="col-"] {
  display: flex;
}

/* --------------------------------------------------------------------------
   Blog Single
   -------------------------------------------------------------------------- */

body.single-bunt_blog {
  overflow-x: hidden;
}

.blog-single {
  padding-top: 40px;
  padding-bottom: 40px;
  color: #4c4b4b;
}


.blog-single__featured-image {
  height: 250px;
  overflow: hidden;
}

@media screen and (min-width: 800px) {
  .blog-single__featured-image {
    height: 385px;
  }
}

.blog-single__featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.blog-single__title {
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 30px;
  margin: 0.5em 0 0;
}

.blog-single__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0072bc;
  margin-bottom: 30px;
}

.blog-single__avatar {
  display: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.blog-single__author {
  font-weight: 700;
}

.blog-single__date::before {
  content: "|";
  margin-right: 8px;
}

.blog-single__excerpt {
  font-size: 20px;
  line-height: 1.5;
  color: #000000;
  margin-bottom: 30px;
}

.blog-single__content {
  margin-bottom: 40px;
  font-size: 18px;
  color: #4c4b4b;
  line-height: 1.7;

  h1,
  h2,
  h3,
  h4,
  h5 {
    color: #0079C2;
    font-weight: 400;
    margin-top: 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
      font-size: 16px;
    }

  p {
    margin-bottom: 30px;
  }

  ul, ol {
    font-family: inherit;
    color: inherit;
  }

  .wp-block-columns {
    p {
      margin-bottom: 15px;
    }
  }

  .wp-block-pullquote {
    padding: 30px 15px;
    position: relative;


    blockquote {
      margin: 0 !important;
      padding: 0 !important;

      color: inherit;
      border: 0;
    }

    @media screen and (min-width:767px) {
      padding: 3em 0;
      font-size: 44px;
    }
  }

  .wp-block-pullquote::before,
  .wp-block-pullquote::after {
    position: absolute;
    content: "";
    left: 50%;
    width: 400px;
    max-width: 100%;
    height: 5px;
    background-color: #0079C2;
    transform: translateX(-50%);
  }

  .wp-block-pullquote::before {
    top: 0;
  }
  .wp-block-pullquote::after {
    bottom: 0;
  }

  .wp-block-pullquote:not(:has(.has-background.has-text-color)) {
    color: #0079C2;
  }

  .wp-block-quote {
    border-left: 5px solid #0072bc;
    padding: 0px 15px !important;

    line-height: 1.2;
    font-weight: bold;
    margin: 0 0 1em !important;
    border-right: 0;

    @media screen and (min-width:767px) {
      font-size: 44px;
      padding: 0em 30px !important;
    }

    p {
      line-height: 1.2;
      margin-bottom: 0;
    }
  }

}

/* --------------------------------------------------------------------------
   Share Links
   -------------------------------------------------------------------------- */

.blog-single__share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
}

.blog-single__share-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0072bc;
  margin: 0;
  white-space: nowrap;
}

.blog-single__share-links {
  display: flex;
  gap: 15px;
}

.blog-single__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.blog-single__share-link:hover,
.blog-single__share-link:focus {
  opacity: 0.8;
  text-decoration: none;
  cursor: pointer;
}

.blog-single__share-link img {
  width: 40px;
  height: 40px;
}

/* --------------------------------------------------------------------------
   About the Author
   -------------------------------------------------------------------------- */

.blog-single__author-bio {
  position: relative;
  padding: 30px 0;
}

.blog-single__author-bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 99vw;
  height: 100%;
  background-color: #f5f5f5;
  z-index: -1;
}

.blog-single__author-bio-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0072bc;
  margin-bottom: 20px;
}

.blog-single__author-bio-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.blog-single__author-bio-avatar {
  display: none;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.blog-single__author-bio-name {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.blog-single__author-bio-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* --------------------------------------------------------------------------
   Post Navigation
   -------------------------------------------------------------------------- */

.blog-single__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  font-size: 14px;
}

.blog-single__nav-prev,
.blog-single__nav-next {
  flex: 1;
}

.blog-single__nav-prev {
  text-align: left;
}

.blog-single__nav-next {
  text-align: right;
}

.blog-single__nav-prev a,
.blog-single__nav-next a {
  color: #c0392b;
  font-weight: 400;
  text-decoration: none;
}

.blog-single__nav-prev a:hover,
.blog-single__nav-next a:hover {
  text-decoration: underline;
}

.blog-single__nav-disabled {
  color: #ccc;
  font-weight: 400;
}

.blog-single__nav-pages {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.blog-single__nav-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 3px;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
}

.blog-single__nav-page:hover {
  background-color: #eee;
  text-decoration: none;
  color: #333;
}

.blog-single__nav-page--current {
  font-weight: 700;
  color: #c0392b;
  background-color: transparent;
}

.blog-single__nav-page--current:hover {
  background-color: transparent;
  color: #c0392b;
}

.blog-single__nav-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 26px;
  font-size: 13px;
  color: #999;
}

/* --------------------------------------------------------------------------
   More Posts
   -------------------------------------------------------------------------- */

.blog-single-more-posts {
  position: relative;
  padding: 60px 0;
  border-top: none;

}

.blog-single-more-posts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 99vw;
  height: 4px;
  background-color: #0072bc;
}

.blog-single-more-posts .blog-single__item {
  margin-bottom: 30px;
}

.blog-single-more-posts__heading {
  font-size: 35px;
  font-weight: 400;
  color: #0072bc;
  margin: 0 0 30px;
}

/* --------------------------------------------------------------------------
   Gutenberg Block Overrides
   -------------------------------------------------------------------------- */

.blog-single__content .wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* Safety override: bunt.css applies padding-bottom:99999px to all blockquotes
   for the faux-columns technique used elsewhere. Reset it here so it doesn't
   create massive blank space on the blog single. */
.blog-single__content blockquote {
  padding-bottom: 0;
  margin-bottom: 1em;
}

/* bunt.css #main styles add 7em padding-bottom + 110px margin for the
   absolute-positioned footer layout. That's too much extra gap on the blog
   single — reduce the padding-bottom (specificity: class+ID beats ID alone). */
.blog-single#main {
  padding-bottom: 0;
}
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .blog-single__author-bio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-single__share {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-single__share-link img {
    width: 32px;
    height: 32px;
  }

  .blog-single__nav {
    flex-direction: column;
    gap: 10px;
  }

  .blog-single__nav-prev,
  .blog-single__nav-next {
    text-align: center;
  }

  .blog-single__nav-pages {
    flex-wrap: wrap;
    justify-content: center;
  }
}
