/* BLOG TEMPLATES */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin: 1em 0;
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-card {
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-image {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.post-card-image.no-image {
  background-color: #41c0ee;
}

.post-card-image.no-image.cat-1 { background-color: #41c0ee; }
.post-card-image.no-image.cat-2 { background-color: #bad040; }
.post-card-image.no-image.cat-0 { background-color: #eb5b27; }

.post-card-body {
  padding: 1.2em;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-category {
  display: inline-block;
  align-self: flex-start;
  background: #e2e2e2;
  color: #555;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: .8em;
}

.post-card h3 {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: .5em;
}

.post-card h3 a {
  color: #222;
}

.post-meta {
  color: #888;
  font-size: 12px;
  margin-bottom: .8em;
}

.post-card-excerpt {
  flex: 1;
  margin-bottom: 1em;
}

.posts-pagination {
  text-align: center;
  margin: 2em 0;
}

.posts-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 14px;
  background: #f6f7f9;
  color: #222;
  border-radius: 3px;
}

.posts-pagination .page-numbers.current,
.posts-pagination a.page-numbers:hover {
  background: #bad040;
  color: #fff;
}

.single-post-meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 1.5em;
}

.single-post-meta a {
  color: #bad040;
}

.post-tags {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}

.post-tags a {
  display: inline-block;
  background: #f6f7f9;
  color: #222;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  margin: 0 6px 6px 0;
}

.single-post-nav {
  margin: 2em 0;
}

.single-post-nav .nav-previous,
.single-post-nav .nav-next {
  width: 50%;
  float: left;
  padding: 0 1em;
  box-sizing: border-box;
}

.single-post-nav .nav-next {
  text-align: right;
}

.single-post-nav a {
  color: #bad040;
  font-weight: bold;
}

@media (max-width: 767px) {
  .single-post-nav .nav-previous,
  .single-post-nav .nav-next {
    width: 100%;
    float: none;
    text-align: left;
    margin-bottom: 1em;
  }
}

.entry-content {
  overflow: hidden;
}

.entry-content h2 {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  margin: 1.4em 0 .6em;
}

.entry-content h3 {
  font-size: 19px;
  font-weight: bold;
  color: #222;
  margin: 1.2em 0 .5em;
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #bad040;
  background: #f6f7f9;
  font-style: italic;
  color: #555;
}

.entry-content blockquote p {
  margin-bottom: 0;
}

.entry-content img {
  border-radius: 3px;
}

.entry-content img.aligncenter {
  display: block;
  margin: 1.5em auto;
}

.entry-content img.alignnone {
  margin: 1.5em 0;
}

.entry-content img.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
  max-width: 45%;
}

.entry-content img.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
  max-width: 45%;
}

@media (max-width: 600px) {
  .entry-content img.alignleft,
  .entry-content img.alignright {
    float: none;
    max-width: 100%;
    margin: 1.5em 0;
  }
}

.related-posts {
  margin: 3em 0;
  padding-top: 1.5em;
  border-top: 1px solid #eee;
}

.related-posts h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: .5em;
}
