@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --green: #1a6b3c;
  --green-light: #e8f5ee;
  --green-mid: #2d9b5a;
  --gold: #c9a84c;
  --dark: #0f1a14;
  --gray: #4a5568;
  --light-gray: #f7f9f7;
  --border: #e2e8e4;
  --white: #ffffff;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Lora', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--green);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: var(--white);
  padding: 0.5rem 1.2rem; border-radius: 6px;
  text-decoration: none; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-mid); }

/* HERO BANNER */
.article-hero {
  background: var(--dark);
  padding: 3.5rem 2rem 0;
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(45,155,90,0.18) 0%, transparent 65%);
}
.hero-inner {
  max-width: 820px; margin: 0 auto;
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.article-category {
  display: inline-block;
  background: var(--green-mid); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 4px;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); line-height: 1.25;
  margin-bottom: 1rem;
}
.article-hero .subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  max-width: 680px; margin-bottom: 1.8rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  padding-bottom: 2rem;
}
.article-meta .author { display: flex; align-items: center; gap: 0.5rem; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--green-mid);
}
.meta-divider { color: rgba(255,255,255,0.2); }

/* HERO IMAGE */
.hero-image-wrap {
  max-width: 820px; margin: 0 auto;
  border-radius: 12px 12px 0 0; overflow: hidden;
  position: relative; z-index: 1;
  height: 340px;
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* CONTENT LAYOUT */
.article-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ARTICLE BODY */
.article-body { min-width: 0; }

.key-takeaways {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
}
.key-takeaways h3 {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--green);
  margin-bottom: 0.8rem;
}
.key-takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.key-takeaways li {
  font-size: 0.9rem; color: var(--dark);
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.key-takeaways li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--dark);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin: 1.8rem 0 0.6rem;
}
.article-body p { font-size: 1.02rem; color: #2d3748; margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem; margin-bottom: 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.article-body li { font-size: 1rem; color: #2d3748; }
.article-body strong { color: var(--dark); font-weight: 700; }

.callout {
  background: #fffbf0;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  font-size: 0.95rem;
  color: #5a4a1a;
}
.callout strong { color: #3d3010; }

.data-table {
  width: 100%; border-collapse: collapse;
  margin: 1.8rem 0; font-size: 0.9rem;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.data-table th {
  background: var(--green); color: var(--white);
  padding: 0.75rem 1rem; text-align: left;
  font-weight: 600; font-size: 0.85rem;
}
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--light-gray); }

.article-footer-cta {
  background: linear-gradient(135deg, var(--green) 0%, #0d4a28 100%);
  border-radius: 12px; padding: 2.5rem;
  text-align: center; margin-top: 3rem;
  color: var(--white);
}
.article-footer-cta h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; margin-bottom: 0.6rem;
}
.article-footer-cta p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.cta-form input {
  flex: 1; padding: 0.7rem 1rem; border-radius: 6px;
  border: none; font-size: 0.9rem;
}
.cta-form button {
  background: var(--gold); color: var(--dark);
  border: none; padding: 0.7rem 1.2rem;
  border-radius: 6px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; white-space: nowrap;
}

/* SIDEBAR */
.article-sidebar { position: sticky; top: 80px; }

.toc-box {
  background: var(--light-gray);
  border-radius: 10px; padding: 1.5rem;
  margin-bottom: 1.8rem;
}
.toc-box h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray); margin-bottom: 1rem;
}
.toc-box ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 0.4rem; }
.toc-box li { counter-increment: toc; display: flex; gap: 0.5rem; }
.toc-box li::before {
  content: counter(toc);
  background: var(--green); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.toc-box a { text-decoration: none; color: var(--gray); font-size: 0.875rem; line-height: 1.4; }
.toc-box a:hover { color: var(--green); }

.related-box { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.related-box h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 1rem; }
.related-post { display: flex; gap: 0.8rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.related-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.related-post img { width: 60px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-post span { font-size: 0.82rem; color: var(--dark); font-weight: 500; line-height: 1.35; }
.related-post:hover span { color: var(--green); }

/* FOOTER */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  text-align: center; padding: 2rem;
  font-size: 0.85rem; margin-top: 4rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }

@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .nav-links { display: none; }
  .cta-form { flex-direction: column; }
  .hero-image-wrap { height: 220px; }
}
