/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap');

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

/* ===== BASE ===== */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2c2c2c;
  background: #ffffff;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */
h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 20px;
}

h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f4e8;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d6a2d;
  margin: 30px 0 12px;
}

h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 20px 0 10px;
}

p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 18px;
  color: #3a3a3a;
}

/* ===== LINKS ===== */
a { color: #2d6a2d; text-decoration: none; }
a:hover { color: #1a4a1a; text-decoration: underline; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header {
  background: #1a3a1a;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.site-logo span { color: #7dc67d; }

nav ul { display: flex; gap: 24px; list-style: none; }
nav a {
  color: #ccddcc;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: #ffffff; text-decoration: none; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a3a1a 0%, #2d6a2d 100%);
  padding: 60px 0;
  color: white;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero p {
  color: #ccddcc;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MAIN LAYOUT ===== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

/* ===== POST CARDS ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: #fff;
  border: 1px solid #e0e8e0;
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-card h2 {
  font-size: 1.15rem;
  border: none;
  margin: 0 0 10px;
  padding: 0;
  color: #1a3a1a;
}

.post-card p { font-size: 0.9rem; color: #666; margin: 0 0 16px; }

.read-more {
  display: inline-block;
  background: #2d6a2d;
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover { background: #1a4a1a; color: white; text-decoration: none; }

/* ===== ARTICLE ===== */
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid #e8f4e8; }

.article-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}

.article-meta span { margin-right: 16px; }

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0f8f0;
  border: 1px solid #c8e6c8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 28px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2d6a2d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info { font-size: 0.85rem; }
.author-name { font-weight: 700; color: #1a3a1a; display: block; }
.author-title { color: #666; }

.article-content { max-width: 720px; }

.article-content ul, .article-content ol {
  margin: 16px 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-content th {
  background: #1a3a1a;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.article-content td {
  padding: 11px 16px;
  border-bottom: 1px solid #e0e8e0;
}

.article-content tr:nth-child(even) td { background: #f5faf5; }

.tip-box {
  background: #f0f8f0;
  border-left: 4px solid #2d6a2d;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.tip-box strong { color: #1a3a1a; display: block; margin-bottom: 6px; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: #f5faf5;
  border: 1px solid #e0e8e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8e6c8;
  color: #1a3a1a;
}

.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 8px 0; border-bottom: 1px solid #e8f4e8; font-size: 0.9rem; }
.sidebar-widget li:last-child { border: none; }

/* ===== FOOTER ===== */
footer {
  background: #1a3a1a;
  color: #aaccaa;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 { color: #ffffff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 0.85rem; }
.footer-col a { color: #aaccaa; }
.footer-col a:hover { color: #ffffff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #2d5a2d;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #779977;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.8rem; }
  nav ul { gap: 12px; }
}
