:root {
  --primary: #2f8f4e;
  --dark: #1c2b24;
  --bg: #fafaf7;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --card-bg: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.main-nav a {
  color: #e7efe9;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--primary); }

.content { padding: 40px 20px; min-height: 60vh; }

.hero {
  text-align: center;
  padding: 100px 20px;
  background-color: #1c2b24;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero p {
  color: #f0f5f1;
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-btn:hover {
  background: #267a42;
  transform: translateY(-2px);
}

.post-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}

.post-card:hover { transform: translateY(-4px); }

.post-card a { text-decoration: none; color: inherit; }

.post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.post-card h3 {
  font-size: 1.05rem;
  margin: 12px 14px 6px;
  color: var(--dark);
}

.post-card p {
  margin: 0 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

article h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.post-content h2, .post-content h3 {
  color: var(--dark);
  margin-top: 28px;
}

.post-content a { color: var(--primary); }

.related-articles {
  margin-top: 40px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid #e7e7e2;
}

.related-articles h3 {
  margin-top: 0;
  color: var(--dark);
  font-size: 1.1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.related-articles li a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.related-articles li a:hover { text-decoration: underline; }

.site-footer {
  background: var(--dark);
  color: #cfd8d3;
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}
