:root {
  --primary-color: #0077cc;
  --secondary-color: #005fa3;
  --text-color: #333;
  --background-color: #fff;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

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

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
}

header h1 {
  margin-bottom: 1rem;
}

header h1 a {
  color: white;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.nav-item-active a {
  font-weight: bold;
  text-decoration: underline;
}

main {
  padding: 2rem 0;
  min-height: 70vh;
}

.page header {
  background-color: transparent;
  color: var(--text-color);
  padding: 0;
  margin-bottom: 2rem;
}

.page header h1 {
  color: var(--primary-color);
}

.featured-image {
  margin-bottom: 2rem;
}

.featured-image img {
  max-width: 100%;
  height: auto;
}

.page-content {
  margin-bottom: 2rem;
}

footer {
  background-color: #f5f5f5;
  padding: 1.5rem 0;
  text-align: center;
}

/* Blog styles */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.blog-card h2 a {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-card h2 a:hover {
  text-decoration: underline;
}

.blog-card time {
  display: block;
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 3px;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

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

/* Post styles */
.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  margin: 1rem 0;
  color: #666;
}

.post-tags {
  margin-top: 0.5rem;
}

.post-tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 3px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.post-nav-previous,
.post-nav-next {
  max-width: 45%;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-list {
    grid-template-columns: 1fr;
  }
}