/* ============================================================
   BLOG STYLES
   ============================================================ */

/* === BLOG INDEX === */
.blog-index-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
}
.blog-index-header {
  margin-bottom: 56px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card-top {
  background: var(--navy);
  padding: 26px 28px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cat {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.post-card-meta span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin: 0;
}
.post-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}
.post-card h3 a:hover { color: var(--gold-light); }
.post-card-body {
  padding: 22px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  transition: color var(--transition), gap var(--transition);
}
.read-more:hover { color: var(--gold); gap: 10px; }
.read-more::after { content: '→'; }

/* === BLOG POST === */
.blog-post-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}
.blog-article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.article-header {
  background: var(--navy);
  padding: 48px 52px 44px;
}
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.post-category {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}
.post-meta time,
.read-time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.blog-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0;
}
.article-body { padding: 44px 52px; }
.post-intro {
  font-size: 1.08rem;
  color: var(--text-dark);
  line-height: 1.8;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 36px;
}
.blog-article h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  line-height: 1.3;
}
.blog-article h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 24px 0 8px;
}
.blog-article p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.blog-article ul,
.blog-article ol {
  margin: 0 0 18px 24px;
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 0.95rem;
}
.blog-article li { margin-bottom: 6px; }
blockquote {
  background: var(--cream);
  border-left: 4px solid var(--navy);
  padding: 16px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.stat-box {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Info & warning boxes */
.info-box {
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.4);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: #6B4F0A;
  line-height: 1.7;
}
.warning-box {
  background: #FFF3F3;
  border-left: 5px solid #C0392B;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: #5A1010;
  line-height: 1.7;
}

/* Blog table */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-table th {
  background: var(--navy);
  color: var(--white);
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
}
.blog-table tr:nth-child(even) td { background: var(--cream); }

/* Checklist */
.checklist { list-style: none; margin-left: 0; padding: 0; }
.checklist li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Two-col grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.col-box {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  border-top: 3px solid var(--navy);
}
.col-box h4 { color: var(--navy); margin-bottom: 12px; }
.col-box ul { margin-left: 18px; color: var(--text-mid); line-height: 1.8; font-size: 0.9rem; }

/* Sign items */
.sign-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
  border-left: 5px solid #ccc;
}
.sign-item.high-risk   { border-color: #C0392B; }
.sign-item.important   { border-color: #E67E22; }
.sign-item.advisory    { border-color: #27AE60; }
.sign-number {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 2px 9px;
  border-radius: 4px;
  margin-right: 8px;
}
.sign-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.risk-high      { background: #FDE8E8; color: #C0392B; }
.risk-important { background: #FEF3E2; color: #E67E22; }
.risk-advisory  { background: #E8F8EE; color: #27AE60; }

/* Process flow */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  counter-reset: step;
}
.step {
  flex: 1;
  min-width: 110px;
  background: var(--cream);
  padding: 16px 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  border-radius: var(--radius-sm);
  counter-increment: step;
  border-top: 3px solid var(--gold);
}
.step::before {
  content: counter(step);
  display: block;
  width: 26px; height: 26px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  line-height: 26px;
  margin: 0 auto 10px;
  font-size: 0.8rem;
}

/* Phase blocks */
.phase-block {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-bottom: 18px;
  border-top: 3px solid var(--navy);
}
.phase-block h4 { color: var(--navy); margin-bottom: 12px; }

/* Post summary, tags, CTA */
.post-summary {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-top: 40px;
  border-left: 4px solid var(--navy);
}
.post-summary h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 10px; border: none; padding: 0; margin-top: 0; }
.post-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags span {
  background: var(--cream);
  color: var(--text-mid);
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 30px;
  border: 1px solid var(--border);
  font-weight: 600;
}
.post-cta {
  margin-top: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  text-align: center;
  font-size: 0.95rem;
}
.post-cta a { color: var(--gold); font-weight: 700; }
.post-back {
  margin-bottom: 28px;
}
.post-back a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.post-back a:hover { color: var(--navy); }

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cta-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.sidebar-cta-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.sidebar-cta-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}
.sidebar-related-list { list-style: none; }
.sidebar-related-list li { border-bottom: 1px solid var(--border); }
.sidebar-related-list li:last-child { border-bottom: none; }
.sidebar-related-list li a {
  display: block;
  padding: 11px 0;
  font-size: 0.87rem;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition);
}
.sidebar-related-list li a:hover { color: var(--gold); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .blog-post-main { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-index-main { padding: 60px 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-post-main { padding: 48px 24px; }
  .article-header { padding: 36px 28px; }
  .article-body { padding: 32px 28px; }
  .two-col { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
