/**
 * Nhà Ở Việt (NÓV) — Blog SEO & PropTech Editorial Stylesheet
 * Category Tabs, Featured Hero Article, Responsive Post Grid & Full Article Reader
 */

.blog-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 16px;
  margin-bottom: 14px;
}
.blog-categories::-webkit-scrollbar {
  display: none;
}

.blog-cat-btn {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}

.blog-cat-btn:hover, .blog-cat-btn.active {
  background: var(--surface-blue);
  border-color: var(--brand);
  color: var(--brand);
}

/* Featured Hero Article Card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px solid #bfdbfe;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 6px 20px rgba(21, 94, 239, 0.08);
  margin-bottom: 28px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(21, 94, 239, 0.16);
  border-color: var(--brand);
}

.blog-featured-img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Article Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  border-color: var(--brand);
}

.blog-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.blog-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--surface-blue);
  color: var(--brand);
  display: inline-block;
  margin-bottom: 8px;
  align-self: flex-start;
  border: 1px solid #bfdbfe;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 8px;
}

.blog-card-summary {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* Full Article Dialog Reader Typography */
.blog-article-content {
  font-size: 14.5px;
  line-height: 1.75;
  color: #1e293b;
}

.blog-article-content h2 {
  font-size: 18.5px;
  color: var(--ink);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--border);
  font-weight: 800;
}

.blog-article-content h3 {
  font-size: 15.5px;
  color: var(--brand);
  margin: 18px 0 6px;
  font-weight: 700;
}

.blog-article-content p {
  margin: 0 0 13px;
}

.blog-article-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.blog-article-content li {
  margin-bottom: 6px;
}

.blog-callout {
  padding: 14px 18px;
  background: var(--surface-blue);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
  .blog-featured-img {
    height: 190px;
  }
}
