/* 
  Theme: Nature Inspired
  Font: Montserrat
  Primary Color: #6B8E23 (Olive Drab)
*/

/* --- Basic Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #6B8E23; /* Olive Drab */
  --primary-hover-color: #8FBC8F; /* Dark Sea Green */
  --bg-color: #F5F5DC; /* Beige */
  --surface-color: #FFFFFF;
  --text-color: #36454F; /* Charcoal */
  --text-secondary-color: #696969; /* Dim Gray */
  --border-color: #D3D3D3; /* Light Gray */
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.8rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.site-title {
  font-size: 2rem;
  font-weight: 700;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
}
.site-title a:hover {
    color: var(--primary-color);
}

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

.main-nav a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  padding-bottom: 5px;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-color);
  text-decoration: none;
}

/* --- Main Content Layout --- */
.main-content {
  padding: 2.5rem 0;
}

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

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

/* --- Sidebar --- */
.sidebar-widget {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  margin-top: 0;
  font-size: 1.3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.sidebar-widget ul {
  list-style: none;
  margin-top: 1rem;
}

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

.sidebar-widget ul a {
  font-weight: 400;
}

.sidebar-promo-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-top: 1rem;
}

/* --- Article & Page Content --- */
.article-list .article-preview {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-list .article-preview:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.article-preview h3 a {
  color: var(--text-color);
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: 700;
}

.article-preview h3 a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.btn-read-more {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: var(--surface-color);
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.btn-read-more:hover {
  background-color: var(--primary-hover-color);
  color: var(--surface-color);
  text-decoration: none;
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  margin-bottom: 0.5rem;
}

.article-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.cta-box {
  background-color: #e8f5e9; /* Light green */
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 5px;
}

.cta-box h3 {
  margin-top: 0;
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.contact-form button {
  background-color: var(--primary-color);
  color: var(--surface-color);
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--primary-hover-color);
}


/* --- Footer --- */
footer.site-footer {
  background-color: var(--text-color);
  color: var(--surface-color);
  padding: 2.5rem 0;
  text-align: center;
  margin-top: 2rem;
}

/* --- General Components --- */
.card {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Idea Generator --- */
#idea-generator {
    margin-top: 2.5rem;
    padding: 2rem;
}

#idea-generator h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}

.idea-generator-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.idea-generator-form input[type="text"] {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    min-width: 200px;
}

.idea-generator-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.2);
}

.idea-generator-form button {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.idea-generator-form button:hover {
    background-color: var(--primary-hover-color);
}

.idea-generator-form button:disabled {
    background-color: var(--text-secondary-color);
    cursor: not-allowed;
}


.loader-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.loader {
    border: 6px solid var(--bg-color);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ideas-container {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.idea-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.08);
}


.idea-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}


/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}