/* Blog section block: sub heading, main heading, description, row of blog post cards */

.blog-section-block {
  width: 100%;
  margin-bottom: 3rem;
}

.blog-section-block__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-section-block__sub-heading {
  font-size: 1rem;
  color: #0d9488;
  font-style: italic;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.blog-section-block__main-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.blog-section-block__description {
  font-size: 0.9375rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.blog-section-block__description p {
  margin: 0;
}

.blog-section-block__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.blog-section-block__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.blog-section-block__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-section-block__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-section-block__card-image-wrap {
  aspect-ratio: 400 / 280;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-section-block__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-section-block__card-image--placeholder {
  background: #e2e8f0;
}

.blog-section-block__card-body {
  padding: 1.25rem;
}

.blog-section-block__card-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-section-block__card-author::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  vertical-align: -0.15em;
}

.blog-section-block__card-date::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  vertical-align: -0.15em;
}

.blog-section-block__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.blog-section-block__card-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.blog-section-block__card-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626;
}

.blog-section-block__card:hover .blog-section-block__card-read-more {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-section-block__cards {
    grid-template-columns: 1fr;
  }
}
