/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

/* --- CSS Variables (Nature Inspired Theme) --- */
:root {
  --bg-color: #fdfaf5;
  --primary-text: #4a4a4a;
  --heading-text: #2c5a41;
  --accent-primary: #6b8e23;
  --accent-secondary: #5a8b8f;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --font-main: 'Merriweather', serif;
}

/* --- Global & Reset Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--primary-text);
  line-height: 1.8;
  font-size: 17px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-text);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.7rem; }
p { margin-bottom: 1.5rem; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .main-layout {
    grid-template-columns: 3fr 1fr;
  }
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--card-bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--heading-text);
  margin: 0;
  letter-spacing: 1px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.main-nav a {
  font-weight: 400;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  font-size: 1.1rem;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--accent-primary);
  color: var(--heading-text);
  text-decoration: none;
}

/* --- Main Content & Articles --- */
.article-list {
  display: grid;
  gap: 2.5rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-card h2 {
    margin-top: 0;
    color: var(--heading-text);
}

.btn-read-more {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-read-more:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* --- Article Page Specific --- */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-meta {
  font-size: 0.95rem;
  color: var(--accent-secondary);
  margin-top: -0.5rem;
}

.article-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
}

.article-content h2, .article-content h3 {
    color: var(--heading-text);
    margin-top: 2rem;
}

.article-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.cta-box {
    background-color: #f4f8ec; /* Light green background */
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 5px;
    margin-top: 2.5rem;
    text-align: center;
}
.cta-box h3 {
    color: var(--heading-text);
}


/* --- Sidebar --- */
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.sidebar-widget h3 {
  color: var(--heading-text);
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  margin-bottom: 0.75rem;
}

.sidebar-widget ul li a::before {
  content: '🌿 ';
  color: var(--accent-primary);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 1rem;
  color: #7a8299;
  background-color: #fff;
}


/* --- Media Queries --- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  
  .header-content {
    flex-direction: column;
  }

  .main-nav ul {
    gap: 0.5rem 1.5rem;
  }
}
