:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #8b7355;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

.hero {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #6b5a42;
}

.button.primary {
  background-color: var(--accent-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.category-card {
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-card-content {
  padding: 1.5rem;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.category-card a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.article-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.card-content h3 a:hover {
  color: var(--accent-color);
}

.card-content .category-tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #666;
  font-size: 0.9rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.article-meta {
  color: #666;
  font-size: 0.9rem;
}

.article-hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.toc {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.toc h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--accent-color);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.checklist-box {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.checklist-box h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.checklist-box ul {
  list-style: none;
  padding-left: 0;
}

.checklist-box li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.checklist-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.author-box {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 3rem 0;
  border-top: 3px solid var(--accent-color);
}

.author-box p {
  margin-bottom: 0.5rem;
}

.related-articles {
  margin: 3rem 0;
}

.related-articles h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.responsible-note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.responsible-note h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
}

.search-container {
  max-width: 600px;
  margin: 2rem auto;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.search-results {
  margin-top: 2rem;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.search-result-item h3 {
  margin-bottom: 0.5rem;
}

.search-result-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.search-result-item a:hover {
  text-decoration: underline;
}

h2 {
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .categories-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
