/* Public blog pages. Loaded on those pages only, so it needs no .min build. */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.8rem;
  margin-top: 2.8rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  display: block;
  aspect-ratio: 1200 / 630;
  background: #ecf0f1;
}

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

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.4rem;
}

.blog-card-body h3 {
  margin: 0 0 1.2rem;
  font-size: 2rem;
  line-height: 1.35;
}

.blog-card-body h3 a {
  color: inherit;
}

.blog-card-body h3 a:hover {
  color: #c0392b;
}

.blog-card-more {
  margin-top: auto;
  font-weight: 500;
}

.blog-meta {
  margin-bottom: 0.8rem;
  color: #7f8c8d;
  font-size: 1.4rem;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 4rem;
}

.blog-empty {
  max-width: 68rem;
  margin: 0 auto;
}

.blog-article {
  max-width: 76rem;
  margin: 0 auto;
}

.blog-featured {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 2.8rem;
  border-radius: 2px;
}

.blog-content {
  font-size: 1.7rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin: 2.8rem 0 1.2rem;
  line-height: 1.3;
  text-align: left;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content figure {
  margin-bottom: 1.8rem;
}

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

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.blog-content blockquote {
  padding: 0.4rem 0 0.4rem 2rem;
  border-left: 4px solid #c0392b;
  color: #5d6d7e;
  font-size: inherit;
}

.blog-content table {
  display: block;
  width: 100%;
  margin-bottom: 1.8rem;
  overflow-x: auto;
  border-collapse: collapse;
}

.blog-content th,
.blog-content td {
  padding: 0.8rem 1.2rem;
  border: 1px solid #dfe1e5;
}

.blog-translations {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid #ecf0f1;
}

.blog-translations a {
  margin-left: 0.8rem;
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
