:root {
  --accent-color: #455a64;
  --primary-color: #37474f;
  --secondary-color: #78909c;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 4px;
}

* {
  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: var(--bg-color);
}

a {
  text-decoration: none;
  color: var(--accent-color);
}

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

/* Header */
.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent-color);
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}

.search-box button {
  padding: 8px 16px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.category-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

/* Featured Section */
.featured-section {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px 0;
}

.featured-item {
  display: flex;
  gap: 30px;
  align-items: center;
}

.featured-image {
  width: 300px;
  height: 200px;
  background: var(--bg-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.featured-content h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.featured-meta {
  color: var(--text-light);
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent-color);
  color: white;
  border-radius: var(--radius);
  transition: background 0.3s;
}

.btn:hover {
  background: var(--primary-color);
}

/* Regulation List */
.regulation-list {
  margin: 40px 0;
}

.regulation-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.regulation-info h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

.regulation-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.status.active {
  background: #e8f5e9;
  color: var(--success-color);
}

.status.proposed {
  background: #fff3e0;
  color: var(--warning-color);
}

/* Three Column Section */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.column {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.column h3 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.column ul {
  list-style: none;
}

.column li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.column li:last-child {
  border-bottom: none;
}

.column a {
  color: var(--text-color);
  transition: color 0.3s;
}

.column a:hover {
  color: var(--accent-color);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--card-bg);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  color: var(--text-color);
  margin: 0 5px;
}

/* Page Header */
.page-header {
  background: var(--card-bg);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-light);
}

/* Filter */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.filter-bar a {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s;
}

.filter-bar a.active,
.filter-bar a:hover {
  background: var(--accent-color);
  color: white;
}

/* Article Detail */
.article-detail {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px 0;
}

.article-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.article-header h1 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-content {
  line-height: 1.8;
}

.article-content h2 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin: 30px 0 15px;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Resources */
.resources {
  background: var(--bg-color);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 30px;
}

.resources h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.resource-links {
  display: flex;
  gap: 15px;
}

/* Related Section */
.related-section {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.related-section h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.related-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 100px 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.error-title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 20px 0;
}

.error-desc {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer h4 {
  margin-bottom: 15px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav {
    gap: 15px;
  }

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

  .categories-grid,
  .three-column,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .featured-item {
    flex-direction: column;
  }

  .featured-image {
    width: 100%;
  }

  .regulation-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .article-detail {
    padding: 20px;
  }

  .resource-links {
    flex-direction: column;
  }
}
