* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff4d4d;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ff4d4d;
}

.blog-hero {
  background-color: #ff4d4d;
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.blog-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #eee;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  background-color: #ddd;
}

.filter-btn.active {
  background-color: #ff4d4d;
  color: white;
}

.search-box {
  display: flex;
  max-width: 300px;
}

.search-box input {
  flex-grow: 1;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
}

.search-box button {
  padding: 0.7rem 1rem;
  border: none;
  background-color: #ff4d4d;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.featured-post {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.featured-image {
  flex: 0 0 50%;
  max-height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.featured-tag {
  display: inline-block;
  background-color: #ff4d4d;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.featured-excerpt {
  margin-bottom: 1.5rem;
  color: #555;
  flex-grow: 1;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #777;
}

.read-more {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: #ff4d4d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.read-more:hover {
  background-color: #ff3333;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background-color: #ff4d4d;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.card-excerpt {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a:hover {
  background-color: #eee;
}

.pagination a.active {
  background-color: #ff4d4d;
  color: white;
}

.newsletter {
  background-color: #f0f0f0;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  color: #666;
}

.newsletter-form {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  background-color: #ff4d4d;
  color: white;
  border-radius: 0 4px 4px 0;
  font-weight: 500;
  cursor: pointer;
}

.footer {
  background-color: #222;
  color: white;
  padding: 3rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  margin-bottom: 1.2rem;
  color: #ff4d4d;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 900px) {
  .featured-post {
    flex-direction: column;
  }

  .featured-image {
    flex: 0 0 250px;
  }

  .blog-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .blog-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    width: 100%;
    max-width: none;
    margin-top: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }

  .newsletter-form button {
    margin-top: 0.5rem;
  }
}
