/* Blogs page — matched to hibachinow.com/blogs */

.hn-blogs {
  padding-bottom: 4rem;
}

.hn-blogs__intro {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 7.5rem 1rem 2rem;
  text-align: center;
}

.hn-blogs__intro h1 {
  margin: 0 0 1.5rem;
  color: #dc2626;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.hn-blogs__intro > p {
  margin: 0 auto;
  max-width: 100%;
  color: #525252;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.625;
}

.hn-blogs__grid {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.hn-blogs__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.hn-blogs__card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hn-blogs__media {
  position: relative;
  width: 100%;
  height: 12rem;
  background: #f3f4f6;
  overflow: hidden;
}

.hn-blogs__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hn-blogs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.hn-blogs__card:hover .hn-blogs__media img {
  transform: scale(1.05);
}

.hn-blogs__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.hn-blogs__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hn-blogs__card-title a {
  color: inherit;
  text-decoration: none;
}

.hn-blogs__card:hover .hn-blogs__card-title,
.hn-blogs__card:hover .hn-blogs__card-title a {
  color: #374151;
}

.hn-blogs__excerpt {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hn-blogs__summary {
  margin: 0 0 1rem;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hn-blogs__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.hn-blogs__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.hn-blogs__meta-item svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.hn-blogs__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  margin-top: auto;
}

.hn-blogs__tags-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #9ca3af;
}

.hn-blogs__tags-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.hn-blogs__tags-list {
  display: flex;
  gap: 0.25rem;
  overflow: hidden;
  min-width: 0;
}

.hn-blogs__tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.hn-blogs__tag:not(.hn-blogs__tag--more):hover {
  background: #e5e7eb;
}

.hn-blogs__tag--more {
  flex-shrink: 0;
}
