/* ── Reset & Variables ────────────────────────────────────────────────────── */

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

:root {
  --green: #355E3B;
--green-hover: #2a4c30;
  --green-light: #e8f0ec;
  --bg: #fafaf9;
  --surface: #fff;
  --border: #e8e8e6;
  --text: #1a1a18;
  --muted: #6b6b68;
  --tag: #f2f2f0;
  --gold: #f59e0b;
  --r: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

nav {
  background: var(--green);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* New logo markup: <a class="logo"> with wordmark/tagline divs */
.logo { text-decoration: none; display: flex; flex-direction: column; justify-content: center; }
.logo-wordmark { font-size: 18px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.logo-wordmark .brand { color: #fff; }
.logo-wordmark .ai { color: rgba(255,255,255,0.45); font-weight: 400; }
.logo-tagline { font-size: 10px; color: #fff; font-weight: 500; letter-spacing: .3px; margin-top: 2px; }

/* Legacy logo markup: <a class="nav-logo"> plain text */
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  text-decoration: none;
}
.nav-logo:hover { color: rgba(255,255,255,0.85); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 500; }
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: #fff !important;
  color: var(--green) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-light) !important; }

/* ── Blog Index ───────────────────────────────────────────────────────────── */

.blog-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.blog-hero { margin-bottom: 48px; }

.blog-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.blog-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

/* Tool banner */
.blog-banner {
  background: var(--green);
  border-radius: var(--r);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.blog-banner-text h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 5px;
}

.blog-banner-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 520px;
}

.blog-banner-btn {
  background: #fff;
  color: var(--green);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.blog-banner-btn:hover { background: var(--green-light); }

/* Posts grid */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.post-img-wrap {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--tag);
}

.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-img { transform: scale(1.03); }

.post-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.post-meta { font-size: 12px; color: var(--muted); }

.post-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -.2px;
}

.post-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 2px;
}

/* Explore more */
.blog-explore {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.blog-explore h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}

/* ── Article Page ─────────────────────────────────────────────────────────── */

.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--r);
  margin-bottom: 32px;
  background: var(--tag);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--text);
}

.article-content h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.3;
  margin: 36px 0 12px;
  color: var(--text);
}

.article-content p {
  font-size: 16.5px;
  color: #2a2a28;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content strong { font-weight: 700; color: var(--text); }

.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--green-hover); }

/* In-article CTA block */
.article-cta {
  background: var(--green);
  border-radius: var(--r);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta p {
  font-size: 15px !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 440px;
}

.article-cta strong { color: #fff !important; }

.article-cta-btn {
  background: #fff;
  color: var(--green);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.article-cta-btn:hover { background: var(--green-light); }

/* Related articles */
.article-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.article-related h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: box-shadow 0.15s;
}

.related-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.06); }
.related-card .post-meta { font-size: 11px; margin-bottom: 6px; }
.related-card .post-title { font-size: 14px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 12px;
}

.footer a { color: rgba(255,255,255,0.55); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; }

/* ── Hamburger ────────────────────────────────────────────────────────────── */

.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  nav { padding: 0 20px; position: relative; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--green); padding: 12px 20px 20px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 15px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 8px; text-align: center; width: 100%; }
  .blog-index { padding: 40px 20px 60px; }
  .blog-banner { flex-direction: column; }
  .posts { grid-template-columns: 1fr; }
  .article-main { padding: 32px 20px 60px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; }
  .footer { padding: 20px; flex-direction: column; align-items: flex-start; }
}

/* ── Article Sidebar Layout ───────────────────────────────────────────────── */

.article-main--sidebar {
  max-width: 1100px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta {
  background: var(--green);
  border-radius: var(--r);
  padding: 20px;
}

.sidebar-cta-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.sidebar-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 14px;
}

.sidebar-cta-btn {
  display: block;
  background: #fff;
  color: var(--green);
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.sidebar-cta-btn:hover { background: var(--green-light); }

.sidebar-more-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-post-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: opacity 0.15s;
}

.sidebar-post-card:hover { opacity: 0.75; }

.sidebar-post-img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-post-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-post-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.sidebar-post-date {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    border-top: 1px solid var(--border);
    padding-top: 40px;
  }
}