/* ── Home Blog Section ────────────────────────────────────── */
.home-blog-section {
  padding: 50px 0;
  background: #f8faff;
  border-top: 1px solid #e8effa;
  border-bottom: 1px solid #e8effa;
}

.hbs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.hbs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.hbs-header-left h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 6px;
  line-height: 1.2;
}

.hbs-header-left p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  max-width: 480px;
}

.hbs-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid #1e40af;
  border-radius: 50px;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.hbs-view-all:hover {
  background: #1e40af;
  color: #fff;
}

/* 4-column grid */
.hbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card */
.hbs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hbs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
}

/* Image */
.hbs-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.hbs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hbs-card:hover .hbs-card-img {
  transform: scale(1.06);
}

.hbs-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

.hbs-cat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: #1e40af;
  backdrop-filter: blur(4px);
}

.hbs-cat-real-estate-news { color: #1e40af; }
.hbs-cat-home-decor { color: #059669; }
.hbs-cat-property-investment { color: #d97706; }
.hbs-cat-architecture { color: #7c3aed; }

/* Body */
.hbs-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.hbs-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbs-card-desc {
  font-size: 0.845rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
}

.hbs-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hbs-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbs-author span {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbs-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hbs-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Badge helper */
.hs-badge.blue {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hbs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .home-blog-section { padding: 48px 0; }
  .hbs-inner { padding: 0 16px; }
  .hbs-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hbs-header-left h2 { font-size: 1.5rem; }
  .hbs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .home-blog-section { padding: 32px 0; }
  .hbs-header-left h2 { font-size: 1.3rem; }
}
