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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.8;
  color: #2c2c2c;
  background-color: #fafafa;
}

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

a {
  color: #1a5f2a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0d3517;
  text-decoration: underline;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 600; margin-top: 2rem; border-bottom: 2px solid #e8e0d4; padding-bottom: 0.4rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 1.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.2rem; }

p {
  margin-bottom: 1.2rem;
}

ul, ol {
  margin-bottom: 1.2rem;
  padding-left: 1.8rem;
}

li {
  margin-bottom: 0.4rem;
}

blockquote {
  border-left: 4px solid #1a5f2a;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f0f5f1;
  font-style: italic;
  color: #3a3a3a;
}

/* ===== LAYOUT ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 2rem 0;
}

.main-content {
  min-width: 0;
}

/* ===== HEADER ===== */
.site-header {
  background: #1a3a2a;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-logo:hover {
  color: #c8dcc0;
  text-decoration: none;
}

.site-tagline {
  font-size: 0.85rem;
  color: #a8c8a0;
  display: block;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #a8c8a0;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: #15302a;
}

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  color: #d4e8cc;
  padding: 0.75rem 1.2rem;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

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

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: #777;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.breadcrumbs a {
  color: #1a5f2a;
}

.breadcrumbs span {
  margin: 0 0.4rem;
  color: #aaa;
}

/* ===== ARTICLE ===== */
.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
  margin-bottom: 0.5rem;
}

.article-meta {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: #888;
}

.article-body {
  font-size: 1.05rem;
}

.article-body p:first-of-type {
  font-size: 1.15rem;
  color: #333;
}

/* ===== INFO BOX ===== */
.info-box {
  background: #f0f7f1;
  border: 1px solid #c8dcc0;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box h3 {
  margin-top: 0;
  color: #1a5f2a;
  font-size: 1.1rem;
}

.info-box ul {
  margin-bottom: 0;
}

/* ===== QUICK FACTS TABLE ===== */
.quick-facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
}

.quick-facts th {
  background: #1a3a2a;
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
}

.quick-facts td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e8e0d4;
}

.quick-facts tr:nth-child(even) td {
  background: #f8f6f3;
}

/* ===== SIDEBAR ===== */
.sidebar {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid #e0dcd6;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a3a2a;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a5f2a;
}

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

.sidebar-widget li {
  margin-bottom: 0;
}

.sidebar-widget li a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0ede8;
  font-size: 0.9rem;
  color: #444;
}

.sidebar-widget li a:hover {
  color: #1a5f2a;
  padding-left: 0.3rem;
}

.sidebar-widget li:last-child a {
  border-bottom: none;
}

/* ===== CATEGORY CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #fff;
  border: 1px solid #e0dcd6;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.2rem;
}

.card-body h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card-body h3 a {
  color: #1a3a2a;
}

.card-body p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a5f2a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a3a2a;
  color: #c8dcc0;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2d5a3a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: #a8c8a0;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a8c8a0;
}

.footer-bottom {
  border-top: 1px solid #2d5a3a;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7aa870;
}

/* ===== HOME PAGE ===== */
.hero {
  background: linear-gradient(135deg, #1a3a2a 0%, #2d6b3f 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #c8dcc0;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: #1a3a2a;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: #e8f5e0;
  text-decoration: none;
}

.home-section {
  padding: 3rem 0;
}

.home-section:nth-child(even) {
  background: #fff;
}

.home-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  border: none;
  padding-bottom: 0;
}

.home-section .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #666;
}

/* ===== CATEGORY INDEX ===== */
.category-header {
  background: #f0f7f1;
  padding: 2.5rem 0;
  border-bottom: 3px solid #1a5f2a;
  margin-bottom: 2rem;
}

.category-header h1 {
  margin-bottom: 0.5rem;
}

.category-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
}

.category-count {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e8e0d4;
}

.related-articles h2 {
  border: none;
  padding: 0;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5f2a;
  box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background: #1a5f2a;
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #0d3517;
  color: #fff;
  text-decoration: none;
}

/* ===== SITEMAP PAGE ===== */
.sitemap-list {
  column-count: 3;
  column-gap: 2rem;
}

.sitemap-list h3 {
  break-after: avoid;
  margin-top: 1.5rem;
  color: #1a5f2a;
}

.sitemap-list h3:first-child {
  margin-top: 0;
}

.sitemap-list ul {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.pagination a:hover {
  background: #f0f7f1;
  text-decoration: none;
}

.pagination .current {
  background: #1a5f2a;
  color: #fff;
  border-color: #1a5f2a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

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

  .sitemap-list {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-top {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #1a4a30;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-list {
    column-count: 1;
  }

  h1 { font-size: 1.5rem; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .main-nav, .sidebar, .site-footer, .breadcrumbs {
    display: none;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
