:root {
  --primary: #1a6b3c;
  --primary-light: #2d9e5e;
  --accent: #f5a623;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg: #f8fdf9;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #1a6b3c 0%, #2d9e5e 100%);
  --shadow: 0 4px 20px rgba(26,107,60,0.1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.75; }
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.25; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary); }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.nav { background: #fff; border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 99; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.nav-logo img { width: 32px; height: 32px; border-radius: 50%; }
.nav-cta { background: var(--gradient); color: #fff !important; padding: 10px 22px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.88rem; text-decoration: none !important; }

/* POST HERO */
.post-hero { background: var(--gradient); color: #fff; padding: 70px 0 50px; }
.post-hero .container { max-width: 800px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.post-tag { background: rgba(255,255,255,0.2); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem; padding: 4px 12px; border-radius: 50px; letter-spacing: 1px; }
.post-date { font-size: 0.85rem; opacity: 0.8; }
.post-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 18px; }
.post-intro { font-size: 1.05rem; opacity: 0.9; line-height: 1.8; }

/* CONTENT LAYOUT */
.post-body { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 60px 0; align-items: start; }
.post-content { min-width: 0; }

/* CONTENT STYLES */
.post-content h2 { font-size: 1.6rem; color: var(--text); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-size: 1.2rem; color: var(--primary); margin: 24px 0 10px; }
.post-content p { margin-bottom: 16px; font-size: 1rem; color: var(--text-light); line-height: 1.8; }

/* TOC */
.post-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.post-toc h3 { font-size: 1rem; margin-bottom: 14px; color: var(--text); }
.post-toc ul li { margin-bottom: 8px; }
.post-toc ul li a { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

/* HIGHLIGHT BOX */
.highlight-box { background: rgba(26,107,60,0.07); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; }
.highlight-box p { margin: 0; color: var(--text); font-size: 0.95rem; }

/* REVIEW BLOCK */
.review-block { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 18px; }
.reviewer { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; margin-bottom: 10px; color: var(--text); }
.review-block p { margin: 0; color: var(--text-light); font-size: 0.92rem; }

/* STYLED LIST */
.styled-list { padding-left: 0; margin: 16px 0 24px; }
.styled-list li { padding: 8px 0; font-size: 0.95rem; color: var(--text-light); border-bottom: 1px solid var(--border); }
.styled-list li:last-child { border-bottom: none; }

/* CTA BLOCK */
.cta-block { background: var(--gradient); color: #fff; border-radius: var(--radius); padding: 32px 28px; margin: 36px 0; text-align: center; }
.cta-block h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.cta-block p { color: rgba(255,255,255,0.88); font-size: 0.95rem; margin-bottom: 20px; }
.cta-btn { display: inline-block; background: #fff; color: var(--primary) !important; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; padding: 14px 32px; border-radius: 50px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.15); text-decoration: none !important; }
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0,0,0,0.2); text-decoration: none !important; }

/* RELATED POSTS */
.related-posts { background: #fff; border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--border); margin-top: 36px; }
.related-posts h3 { font-size: 1rem; margin-bottom: 16px; }
.related-posts ul li { margin-bottom: 10px; }
.related-posts ul li a { font-size: 0.9rem; font-weight: 600; color: var(--primary); }

/* SIDEBAR */
.post-sidebar { position: sticky; top: 80px; }
.sidebar-box { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 20px; }
.sidebar-box h4 { font-size: 1rem; margin-bottom: 12px; }
.sidebar-box p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; }
.sidebar-box .cta-btn { display: block; background: var(--gradient); color: #fff !important; text-align: center; font-size: 0.9rem; padding: 12px 20px; }
.sidebar-box ul li { padding: 5px 0; font-size: 0.87rem; color: var(--text-light); border-bottom: 1px solid var(--border); }
.sidebar-box ul li:last-child { border-bottom: none; }

/* FOOTER */
.footer { background: #0a1a10; color: rgba(255,255,255,0.6); padding: 36px 0; text-align: center; font-size: 0.85rem; }
.footer a { color: #2d9e5e; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .post-body { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 600px) {
  .post-hero { padding: 50px 0 36px; }
  .post-content h2 { font-size: 1.3rem; }
}
