@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --bg-color: #f4f1e9;
  --primary-color: #ffffff;
  --secondary-color: #e9e6dc;
  --accent-color: #28a745; /* A vibrant, natural green */
  --text-color: #333333;
  --heading-color: #004d00; /* A deep forest green */
  --border-color: #dcdcdc;
  --font-family: 'Inter', sans-serif;
  --shadow-color: rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  color: var(--heading-color);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-left: 4px solid var(--accent-color); padding-left: 1rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
  color: var(--heading-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

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

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}
.site-title a:hover {
    text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.5rem;
  border-bottom: 2px solid transparent;
}

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

/* --- Main Content & Layout --- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

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

main, article {
  background-color: var(--primary-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

aside {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background-color: var(--primary-color);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

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

.sidebar-widget ul li {
  margin-bottom: 0.75rem;
}
.sidebar-widget ul li a::before {
    content: '🌿';
    margin-right: 8px;
    color: var(--accent-color);
}


.promo-text {
  font-style: italic;
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

/* --- Blog Post Listings --- */
.blog-listings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-listings {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background-color: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.post-card-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}


.read-more-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  text-align: center;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.read-more-btn:hover {
  background-color: var(--heading-color);
  transform: scale(1.05);
  color: #fff;
  text-decoration: none;
}

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

.article-meta {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: bold;
  margin-top: -0.5rem;
}

.article-content ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}

.cta-box {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
  border: 1px solid var(--accent-color);
}

.cta-box h3 {
  color: var(--heading-color);
}

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


/* --- Responsive Menu --- */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  
  .main-nav li {
    margin-left: 0;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}