/* Blog styles — layered on top of the landing site's style.css / bootstrap.css,
   which already render the shared .navbar header and .ss_footer footer. This file
   only styles the blog hero, the card grid, and article typography. */

:root {
  --sf-green: #00923f;
  --sf-green-dark: #017a35;
  --sf-ink: #17223b;
  --sf-body: #3a4457;
  --sf-muted: #6b7688;
  --sf-line: #e9edf3;
}

.blog-wrap,
.article-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-wrap { max-width: 820px; }

/* ---- hero ---- */
.blog-hero {
  background: linear-gradient(120deg, #017a35 0%, #00923f 45%, #17b45f 100%);
  color: #fff;
  text-align: center;
  padding: 62px 20px 68px;
}
.blog-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 14px;
}
.blog-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

/* ---- breadcrumb ---- */
.blog-crumbs {
  font-size: 14px;
  color: var(--sf-muted);
  padding: 26px 0 2px;
}
.blog-crumbs a { color: var(--sf-green); text-decoration: none; }
.blog-crumbs a:hover { text-decoration: underline; }

/* ---- category chip ---- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sf-green-dark);
  background: #e7f6ee;
  padding: 5px 11px;
  border-radius: 20px;
}

/* ---- card grid ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 26px 0 64px;
}
.post-card {
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  padding: 26px 24px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 16px 38px rgba(20, 45, 80, 0.1);
  border-color: #d7e6dd;
  transform: translateY(-2px);
}
.post-card .tag { margin-bottom: 14px; }
.post-card h2 {
  font-size: 19px;
  line-height: 1.38;
  font-weight: 700;
  margin: 0 0 10px;
}
.post-card h2 a { color: var(--sf-ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--sf-green); }
.post-card p {
  margin: 0;
  color: var(--sf-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---- article ---- */
article {
  padding: 26px 0 44px;
  color: var(--sf-body);
  font-size: 16px;
  line-height: 1.75;
}
article .tag { margin-bottom: 16px; }
article h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--sf-ink);
  margin: 10px 0 8px;
}
article .meta { color: var(--sf-muted); font-size: 14px; margin-bottom: 26px; }
article h2 { font-size: 22px; font-weight: 700; color: var(--sf-ink); margin: 34px 0 10px; }
article h3 { font-size: 18px; font-weight: 600; color: var(--sf-ink); margin: 24px 0 8px; }
article p, article li { color: var(--sf-body); }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }
article a { color: var(--sf-green); text-decoration: none; }
article a:hover { text-decoration: underline; }
article .lead { font-size: 18px; color: #2e3a52; }

.cta {
  margin: 36px 0;
  padding: 22px 24px;
  background: #eef8f1;
  border: 1px solid #d5ecdd;
  border-radius: 12px;
}
.cta strong { display: block; margin-bottom: 4px; color: var(--sf-ink); }
.cta a.btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--sf-green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.cta a.btn:hover { background: var(--sf-green-dark); }

.disclaimer {
  font-size: 13px;
  color: #98a1b3;
  border-top: 1px solid var(--sf-line);
  padding-top: 18px;
  margin-top: 34px;
}

.related {
  border-top: 1px solid var(--sf-line);
  padding-top: 22px;
  margin-top: 30px;
}
.related h2 { font-size: 18px; margin: 0 0 10px; }
.related ul { padding-left: 20px; margin: 0; }
.related a { color: var(--sf-green); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-hero { padding: 46px 18px 50px; }
  .blog-hero h1 { font-size: 27px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  article h1 { font-size: 25px; }
}
