body.blog {
  font-size: 1.125rem;
  line-height: 2rem;
  max-width: 100%;
  margin: auto;
}

body.blog * {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

@media (width >= 1440px) {
  body.blog {
    max-width: 880px;
  }
}

@media (width >= 768) {
  body.blog {
    max-width: 578px;
  }
}

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

.blog-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
  color: #427d9d;
  border-radius: 15px;
  margin-top: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.article-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

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

.article-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.article-date {
  display: flex;
  align-items: center;
}

.article-category {
  background: var(--light-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 500;
}

.read-more-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

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

.categories-filter {
  text-align: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
}

.no-articles {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.back-to-home {
  text-align: center;
  margin-top: 3rem;
}

.back-to-home a {
  background: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.back-to-home a:hover {
  background: var(--secondary-hover-color);
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .blog-container {
    padding: 1rem;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

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

  body.blog {
    padding: 1rem;
  }
}
