/* ═══════════════════════════════════════
   BLOG.CSS — sppf_blog.php
   ═══════════════════════════════════════ */

body.blog-bg {
  background: var(--warm-white);
  color: var(--navy);
}
body.blog-bg ::selection {
  color: var(--navy);
}

section.blog-hero {
  padding: 180px 32px 100px;
  background: var(--navy); text-align: center;
  position: relative; overflow: hidden;
}
section.blog-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
section.blog-hero h1 {
  font-family: var(--f-display); font-size: clamp(48px, 7vw, 88px);
  color: #fff; line-height: 1.05; margin: 0 0 20px; font-weight: 400;
  position: relative;
}
section.blog-hero h1 em { font-style: italic; color: var(--gold); }
section.blog-hero p {
  font-size: 18px; color: var(--text-light); max-width: 560px;
  margin: 0 auto; line-height: 1.7; font-weight: 300; position: relative;
}

/* ─── Category Bar ─── */
.category-bar {
  padding: 24px 32px; background: #fff;
  border-bottom: 1px solid rgba(10,22,40,0.06);
  position: sticky; top: 64px; z-index: 50;
}
.category-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.cat-btn {
  padding: 10px 24px; border-radius: 999px;
  border: 1px solid rgba(10,22,40,0.08);
  background: transparent; cursor: pointer;
  font-family: var(--f-body); font-size: 13px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.02em;
  transition: all 0.3s;
}
.cat-btn:hover { border-color: var(--gold); color: var(--gold); }
.cat-btn.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
a.cat-btn { text-decoration: none; display: inline-block; }
.journal-empty { text-align: center; padding: 40px 32px 80px; color: var(--text-muted); }
.journal-pager { display: flex; justify-content: center; gap: 24px; padding: 0 32px 80px; }
.journal-pager a { color: var(--gold); font-weight: 600; text-decoration: none; letter-spacing: 0.06em; }

/* ─── Featured Article ─── */
section.featured { padding: 80px 32px 0; background: var(--warm-white); }
.featured-inner { max-width: 1200px; margin: 0 auto; }
.featured-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  background: var(--navy); border-radius: 16px; overflow: hidden;
  transition: all 0.4s ease; text-decoration: none;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10,22,40,0.15); }
.featured-image {
  min-height: 420px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 60%, rgba(200,165,92,0.1) 100%);
  position: relative; display: flex; align-items: flex-end; padding: 40px;
}
.featured-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.6) 0%, transparent 50%);
}
.featured-image .fi-tag {
  position: relative; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 4px;
  background: rgba(200,165,92,0.15); border: 1px solid rgba(200,165,92,0.3);
}
.featured-content {
  padding: 56px 48px; display: flex; flex-direction: column;
  justify-content: center;
}
.fc-category {
  font-family: var(--f-mono); font-size: 11px; color: var(--gold);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 16px; opacity: 0.8;
}
.fc-title {
  font-family: var(--f-display); font-size: 36px; color: #fff;
  line-height: 1.15; margin-bottom: 20px; font-weight: 400;
}
.fc-title em { font-style: italic; color: var(--gold); }
.fc-excerpt {
  font-size: 15px; color: var(--text-light); line-height: 1.8;
  margin-bottom: 28px; font-weight: 300;
}
.fc-meta {
  display: flex; gap: 20px; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.fc-read {
  font-size: 13px; color: var(--gold); font-weight: 600;
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px;
}
.fc-read .arrow { transition: transform 0.3s; }
.featured-card:hover .fc-read .arrow { transform: translateX(4px); }

/* ─── Article Grid ─── */
section.articles { padding: 80px 32px 120px; background: var(--warm-white); }
.articles-inner { max-width: 1200px; margin: 0 auto; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(10,22,40,0.04); text-decoration: none;
  display: flex; flex-direction: column; transition: all 0.4s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10,22,40,0.08); border-color: var(--gold);
}
.article-thumb { height: 220px; position: relative; overflow: hidden; }
.article-thumb-inner {
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.article-card:hover .article-thumb-inner { transform: scale(1.04); }
.article-cat-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 10px; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px;
  background: rgba(10,22,40,0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(200,165,92,0.2);
}
.article-body { padding: 28px 24px; flex: 1; display: flex; flex-direction: column; }
.article-date {
  font-family: var(--f-mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.article-title {
  font-family: var(--f-display); font-size: 22px; color: var(--navy);
  line-height: 1.2; margin-bottom: 12px; font-weight: 400; flex: 1;
}
.article-excerpt {
  font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 20px;
}
.article-read {
  font-size: 12px; color: var(--gold); font-weight: 600;
  letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px;
}
.article-read .arrow { transition: transform 0.3s; }
.article-card:hover .article-read .arrow { transform: translateX(4px); }

/* Article thumbnails */
.thumb-tech { background: linear-gradient(135deg, #0E1E36, #1a3254, rgba(200,165,92,0.1)); }
.thumb-care { background: linear-gradient(135deg, #1a2a20, #2a4a32, rgba(200,165,92,0.1)); }
.thumb-culture { background: linear-gradient(135deg, #2a1a1a, #4a2a2a, rgba(200,165,92,0.1)); }
.thumb-compare { background: linear-gradient(135deg, #1a1a2a, #2a2a4a, rgba(200,165,92,0.1)); }
.thumb-owner { background: linear-gradient(135deg, #2a2a1a, #4a4a2a, rgba(200,165,92,0.1)); }
.thumb-news { background: linear-gradient(135deg, #0A1628, #132744, rgba(200,165,92,0.15)); }

/* ─── Newsletter ─── */
section.newsletter { padding: 100px 32px; background: var(--navy); }
.nl-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.nl-inner h2 {
  font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px);
  color: #fff; line-height: 1.1; margin: 0 0 16px; font-weight: 400;
}
.nl-inner h2 em { font-style: italic; color: var(--gold); }
.nl-inner p {
  font-size: 16px; color: var(--text-light); line-height: 1.7;
  margin-bottom: 36px; font-weight: 300;
}
.nl-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
}
.nl-input {
  flex: 1; padding: 16px 20px; border-radius: 6px;
  border: 1px solid rgba(200,165,92,0.2); background: rgba(255,255,255,0.04);
  color: #fff; font-family: var(--f-body); font-size: 14px; outline: none;
}
.nl-input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,165,92,0.15); }
.nl-input::placeholder { color: rgba(255,255,255,0.3); }
.nl-btn {
  padding: 16px 32px; border-radius: 6px; border: none;
  background: var(--gold); color: var(--navy);
  font-family: var(--f-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.nl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,165,92,0.3); }

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-image { min-height: 280px; }
  .featured-content { padding: 36px 28px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .nl-form { flex-direction: column; }
}
@media (max-width: 560px) {
  .articles-grid { grid-template-columns: 1fr; }
  .category-bar { top: 54px; overflow-x: auto; }
  .category-inner { flex-wrap: nowrap; justify-content: flex-start; }
  .cat-btn { white-space: nowrap; flex-shrink: 0; }
}