/* ==========================================================================
   1836 Conveyancing — Blog (/blog/ index and posts). Loaded on blog pages only.
   After editing, bump the ?v= number in blog.php and includes/blog/post-top.php.
   ========================================================================== */

/* Breadcrumb + meta line
   ------------------------------------------------------------------------ */
.blog-breadcrumb {
  font-size: 14px;
  color: #8a8a8a;
  margin-bottom: 25px;
}
.blog-breadcrumb a {
  color: #293966;
}
.blog-breadcrumb span[aria-hidden] {
  margin: 0 8px;
}
.blog-meta {
  font-size: 14px;
  color: #8a8a8a;
  margin-bottom: 25px;
}
.blog-meta a {
  color: #293966;
  font-weight: 600;
}

/* Index
   ------------------------------------------------------------------------ */
.blog-intro {
  font-size: 18px;
  line-height: 30px;
  max-width: 780px;
  margin-bottom: 35px;
}
.blog-intro a {
  color: #293966;
  font-weight: 600;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 30px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e7ef;
  border-top: 4px solid #24335b;
  border-radius: 4px;
  padding: 24px 26px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  box-shadow: 0 10px 26px rgba(36, 51, 91, 0.12);
  transform: translateY(-2px);
}
#main .blog-card h2 {
  font-size: 20px;
  line-height: 28px;
  text-transform: none;
  margin: 0 0 6px;
}
#main .blog-card h2 a {
  color: #24335b;
}
#main .blog-card h2 a:hover {
  color: #df1e36;
  border-bottom: 0;
}
.blog-card .blog-meta {
  margin-bottom: 12px;
}
.blog-card p {
  margin-bottom: 18px;
}
.blog-more {
  margin-top: auto;
  font-weight: 700;
  color: #df1e36;
}
.blog-more:hover {
  color: #b2182b;
  border-bottom: 0;
}

/* Post
   ------------------------------------------------------------------------ */
.blog-post h1 {
  font-size: 32px;
  line-height: 42px;
  margin-top: 0;
}
.blog-entry {
  font-size: 16px;
}
.blog-entry p {
  line-height: 28px;
  margin-bottom: 18px;
}
#main .blog-entry ul {
  padding-left: 22px;
  margin: 0 0 22px;
}
.blog-entry li {
  line-height: 26px;
  margin-bottom: 8px;
}
#main .blog-entry h2 {
  font-size: 24px;
  line-height: 32px;
  text-transform: none;
  margin: 32px 0 14px;
}
.blog-entry a {
  color: #293966;
  font-weight: 600;
  text-decoration: underline;
}
.blog-callout {
  background: #f4f6fa;
  border-left: 4px solid #24335b;
  padding: 16px 20px;
  margin: 26px 0;
}
.blog-entry .blog-cta {
  background: #24335b;
  color: #fff;
  border-radius: 4px;
  padding: 18px 22px;
  margin-top: 32px;
  font-weight: 600;
}
.blog-entry .blog-cta a,
.blog-entry .blog-cta a:hover {
  color: #fff;
  border-bottom: 0;
}
.blog-author {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #e3e7ef;
}
.blog-author-title {
  font-weight: 700;
  color: #24335b;
  margin-bottom: 6px;
}
.blog-author a {
  color: #293966;
  font-weight: 600;
}
.blog-disclaimer {
  font-size: 13px;
  line-height: 20px;
  color: #8a8a8a;
  margin-top: 18px;
}

/* Sidebar
   ------------------------------------------------------------------------ */
.blog-box {
  background: #f4f6fa;
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.blog-box-title {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 10px;
}
.blog-box-link,
.blog-box-all,
.blog-box-list a {
  color: #24335b;
  font-weight: 700;
}
.blog-box a:hover {
  color: #df1e36;
  border-bottom: 0;
}
#main .blog-box-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.blog-box-list li {
  line-height: 22px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e7ef;
}
.blog-box-list li:first-child {
  padding-top: 0;
}
.blog-box-list a {
  font-weight: 600;
}
.blog-box-contact {
  background: #24335b;
}
.blog-box-contact .blog-box-title {
  color: #afc5eb;
}
.blog-phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.blog-btn {
  display: inline-block;
  background: #df1e36;
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 3px;
}
.blog-box-contact .blog-phone:hover,
.blog-box-contact .blog-btn:hover {
  color: #fff;
  border-bottom: 0;
}
.blog-box-contact .blog-btn:hover {
  background: #b2182b;
}

/* "Related articles" box on service pages (includes/blog/related-articles.php)
   ------------------------------------------------------------------------ */
.related-articles {
  background: #f4f6fa;
  border-top: 4px solid #24335b;
  border-radius: 4px;
  padding: 22px 24px 20px;
  margin: 25px 0 10px;
}
#main .related-articles h2 {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 12px;
}
#main .related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.related-articles li {
  line-height: 22px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e7ef;
}
.related-articles li:first-child {
  padding-top: 0;
}
.related-articles li a {
  color: #24335b;
  font-weight: 600;
}
.related-articles-all {
  color: #df1e36;
  font-weight: 700;
}
.related-articles a:hover {
  color: #df1e36;
  border-bottom: 0;
}

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 991px) {
  .blog-sidebar {
    margin-top: 20px;
  }
}
@media (max-width: 767px) {
  .blog-post h1 {
    font-size: 26px;
    line-height: 34px;
  }
  .blog-intro {
    font-size: 16px;
    line-height: 26px;
  }
  .blog-list {
    gap: 20px;
  }
}
