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

:root {
  --bg-color: #fdf6e3; /* A warm, creamy background */
  --text-color: #5d4037; /* A deep, soft brown for text */
  --header-footer-bg: #f4a261; /* A muted, warm orange */
  --primary-accent: #e76f51; /* A stronger, earthy orange for accents */
  --secondary-accent: #2a9d8f; /* A contrasting teal */
  --card-bg: #fffcf2;
  --border-color: #e0e0e0;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  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 {
  font-family: var(--heading-font);
  color: var(--primary-accent);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--header-footer-bg);
  padding: 1rem 0;
  border-bottom: 3px solid var(--primary-accent);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.site-title a {
  color: #fff;
  text-decoration: none;
}

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

.main-nav a {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  text-decoration: none;
}

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

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

/* --- Homepage Specific --- */
.intro-section {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.intro-section h1 {
    font-size: 2.8rem;
}

.articles-section {
    margin-top: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.center-title {
    display: table;
    margin: 0 auto 2rem;
}


/* --- Article Card --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.article-card-header {
  font-size: 0.9rem;
  color: #757575;
  margin-bottom: 0.5rem;
}

.article-card h3 {
  color: var(--text-color);
}

.read-more-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-accent);
}

/* --- Sidebar --- */
.sidebar {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 0.5rem;
}

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

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

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


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

.article-meta {
  font-size: 0.9rem;
  color: #757575;
  margin-bottom: 0.5rem;
}

.article-content h1 {
  font-size: 3rem;
}

.article-content h2 {
    margin-top: 2.5rem;
}

.article-content ol, .article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.cta-section {
    background-color: var(--secondary-accent);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.cta-section h2 {
    color: #fff;
}

.cta-section a {
    color: var(--bg-color);
    font-weight: bold;
}


/* --- Simple Pages (About, Contact, etc.) --- */
.simple-page {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* --- Footer --- */
.site-footer {
  background-color: var(--header-footer-bg);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 3px solid var(--primary-accent);
}


/* --- Media Queries (Mobile First) --- */

/* Tablet */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-layout {
    grid-template-columns: 2fr 1fr;
  }
  
  .article-page-layout {
      grid-template-columns: 3fr 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .simple-page h1 {
      font-size: 3rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
