/* Blog Listing Widget — Figma Design */

.blog-widget {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Header */
.blog-header {
  padding: 32px 0 24px;
  margin-bottom: 32px;
}

.blog-heading {
  font-size: 2.25rem;
  font-weight: 500;
  color: #101828;
  margin: 0 0 8px;
  line-height: 1.1;
}

.blog-subheading {
  font-size: 1rem;
  color: #4a5565;
  margin: 0;
  line-height: 1.5;
}

.blog-empty {
  color: #4a5565;
  font-style: italic;
  padding: 60px 0;
  text-align: center;
}

/* Card Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 769px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Card Image */
.blog-card-img-link {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.03);
}

/* Card Body */
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  display: block;
  font-size: 0.875rem;
  color: #6a7282;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  line-height: 20px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: #101828;
  margin: 0 0 12px;
  letter-spacing: 0.07px;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--accent, #155dfc);
}

.blog-card-excerpt {
  font-size: 1rem;
  line-height: 1.625;
  color: #4a5565;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Tags */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-card-tag {
  background: #f3f4f6;
  color: #4a5565;
  font-size: 0.75rem;
  line-height: 16px;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Card Footer */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.blog-card-author {
  font-size: 0.875rem;
  color: #6a7282;
  line-height: 20px;
}

.blog-card-author strong {
  color: #364153;
  font-weight: 400;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent, #155dfc);
  text-decoration: none;
  line-height: 20px;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Load More */
.blog-load-more {
  text-align: center;
  margin-top: 40px;
}

.blog-load-more button {
  background: var(--accent, #155dfc);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.blog-load-more button:hover {
  opacity: 0.9;
}
