/* ============================================================
   BLOG — shared image placeholders
============================================================ */
.blog-img--1 { background: linear-gradient(135deg, #1a2a3a 0%, #0d1a2a 100%); }
.blog-img--2 { background: linear-gradient(135deg, #2a1a0d 0%, #1a0d00 100%); }
.blog-img--3 { background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%); }

/* ============================================================
   BLOG CATEGORY PILLS
============================================================ */
.blog-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-category--residential {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.blog-category--commercial {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.blog-category--safety {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================================
   BLOG META
============================================================ */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-avatar {
  width: 28px;
  height: 28px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 166, 35, 0.2);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-meta i {
  color: var(--accent);
  margin-right: 3px;
}

.blog-meta-dot {
  color: var(--border);
}

/* ============================================================
   BLOG HERO
============================================================ */
.blog-hero {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 80px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.blog-hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.blog-hero-content .section-tag {
  margin-bottom: 20px;
}

.blog-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

.blog-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* ============================================================
   FEATURED ARTICLE
============================================================ */
.blog-featured {
  padding: 80px 0 48px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
}

.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.featured-img {
  min-height: 400px;
  position: relative;
}

.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg-card));
}

.featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.featured-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: var(--text-primary);
}

.featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.blog-read-btn {
  align-self: flex-start;
  margin-top: 8px;
}

 .blog-img--1 { background: #0d1a2a url('../assets/images/portfolio/REZ2_BEFORE.jpg') center/cover no-repeat; }
/* ============================================================
   BLOG GRID
============================================================ */
.blog-grid-section {
  padding: 0 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img-link {
  display: block;
}

.blog-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  opacity: 0;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img-overlay {
  opacity: 1;
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card-title {
  font-size: 1.1rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--text-primary);
  transition: var(--transition);
}

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

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-more-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-more-hint i {
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}
 .blog-img--3 { background: #0d1a2a url('../assets/images/portfolio/fault_1.jpg') center/cover no-repeat; }
/* ============================================================
   ARTICLE HEADER
============================================================ */
.article-header {
  position: relative;
  padding: calc(var(--nav-height) + 64px) 0 72px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.article-header-content {
  max-width: 740px;
  position: relative;
  z-index: 1;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: var(--transition);
}

.article-back:hover {
  color: var(--accent);
}

.article-header-content .blog-category {
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   ARTICLE BODY
============================================================ */
.article-main {
  padding: 72px 0 80px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 400;
}

.article-body p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-quote {
  border-left: 3px solid var(--accent);
  background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
}

.article-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-list li {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.article-list li strong {
  color: var(--text-primary);
}

/* TABLE */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.article-table tr:nth-child(even) {
  background: var(--bg-surface);
}

.table-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* CTA BOX */
.article-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.article-cta-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #0d0d0d;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.article-cta > div {
  flex: 1;
  min-width: 200px;
}

.article-cta h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.article-cta p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   RELATED ARTICLES
============================================================ */
.related-articles {
  padding: 64px 0 100px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.related-title {
  font-size: 1.4rem;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-primary);
}

.related-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-img {
  flex: 0 0 120px;
  min-height: 120px;
}

.related-info {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-info .blog-category {
  margin-bottom: 0;
}

.related-info h4 {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.related-read {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}

.related-read i {
  color: var(--accent);
  margin-right: 4px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-img {
    min-height: 280px;
  }

  .featured-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, var(--bg-card));
  }

  .featured-content {
    padding: 32px 28px 36px;
  }

}

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .related-card {
    flex-direction: column;
  }

  .related-img {
    flex: none;
    height: 160px;
    width: 100%;
  }

  .related-info {
    padding: 16px;
  }
}
