*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #16a34a;
  --green-light: #dcfce7;
  --green-dark: #14532d;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --radius: 12px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.25; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
}
nav .container {
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; background: var(--green); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-text span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--green); background: var(--green-light); }
.nav-cta {
  background: var(--green); color: white !important; padding: 9px 18px; border-radius: 8px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; text-decoration: none;
}
.nav-cta:hover { background: #15803d; text-decoration: none; }
@media (max-width: 768px) { .nav-links { display: none; } }

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px; color: var(--text-muted);
  padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text-light); }

/* ARTICLE HEADER */
.article-header { padding: 24px 0 8px; }
.article-cat {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(26px, 4.5vw, 38px); font-weight: 700; color: var(--text); margin-bottom: 16px;
}
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 14px; color: var(--text-muted);
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.article-meta .author { font-weight: 600; color: var(--text); }

/* ANSWER / TL;DR BLOCK */
.answer-block {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 18px 20px; margin: 28px 0;
  font-size: 16px; color: var(--text);
}
.answer-block strong { color: var(--green-dark); }

/* ARTICLE BODY */
.article-body { padding: 8px 0 16px; }
.article-body h2 {
  font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 36px 0 12px; color: var(--text);
}
.article-body h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.article-body p { margin-bottom: 18px; color: #374151; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #374151; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px;
}
.article-body th, .article-body td {
  border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top;
}
.article-body th { background: var(--bg-soft); font-family: 'Sora', sans-serif; font-size: 14px; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* AUTHOR BOX */
.author-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 32px 0; font-size: 15px; color: var(--text-muted);
}
.author-box strong { color: var(--text); font-family: 'Sora', sans-serif; }

/* RELATED POSTS */
.related { padding: 8px 0 48px; }
.related h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-card {
  display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover { border-color: #86efac; box-shadow: 0 4px 12px rgba(22,163,74,0.08); text-decoration: none; }
.related-card .rc-cat { font-size: 11px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }
.related-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 6px 0 0; }

/* CTA */
.blog-cta {
  background: var(--green); border-radius: 16px; padding: 32px 28px; text-align: center; margin: 32px 0;
}
.blog-cta h2 { color: white; font-size: 22px; margin-bottom: 8px; }
.blog-cta p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 20px; }
.btn-white {
  background: white; color: var(--green-dark); padding: 13px 28px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-block;
}
.btn-white:hover { text-decoration: none; transform: translateY(-1px); }

/* INDEX LIST */
.blog-hero { padding: 40px 0 8px; }
.blog-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; margin-bottom: 12px; }
.blog-hero p { font-size: 17px; color: var(--text-muted); max-width: 560px; }
.post-list { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 48px; }
.post-item {
  display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-item:hover { border-color: #86efac; box-shadow: 0 4px 14px rgba(22,163,74,0.08); text-decoration: none; }
.post-item .pi-cat { font-size: 11px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }
.post-item h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 8px 0 6px; }
.post-item p { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }
.post-item .pi-meta { font-size: 13px; color: var(--text-light); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
footer p { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
footer .container { max-width: 860px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--green); }
