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

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Header Container */
header {
  background-color: #000;
  /* padding: 20px 0; */
  color: #fff;
}

/* Header layout with flexbox */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

/* Navigation Menu */
nav {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin: 0 20px;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #007bff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
      flex-direction: column;
      align-items: center;
  }

  nav {
      margin-top: 15px;
  }

  .nav-list {
      flex-direction: column;
      align-items: center;
  }

  .nav-list li {
      margin: 10px 0;
  }
}

/* Filter Form */
.filter-form {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-group select {
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ddd;
  width: 30%;
  background-color: #f9f9f9;
}

.filter-group select:focus {
  outline: none;
  border-color: #007bff;
}

.filter-select {
  font-weight: 600;
}

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

/* Blog Post */
.blog-post {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

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

.blog-post-inner {
  display: flex;
  gap: 20px;
}

.blog-image img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.blog-content {
  flex-grow: 1;
}

.blog-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.date {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.blog-excerpt {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}

.categories, .tags {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.categories span, .tags span {
  font-weight: bold;
}

.tags a {
  color: #007bff;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 5px;
  transition: background-color 0.3s ease;
}

.tags a:hover {
  background-color: #e0e0e0;
}

.read-more-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #0056b3;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.pagination-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-btn:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 15px;
  /* position: absolute; */
  bottom: 0;
  width: 100%;
}

footer p {
  font-size: 14px;
}

/* Blog Post Image and Content Layout */
.blog-post-inner {
  display: flex;
  flex-wrap: wrap;
}

.blog-image {
  flex: 1;
  max-width: 200px;
  min-width: 200px;
}

.blog-content {
  flex: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .blog-post-inner {
      flex-direction: column;
      align-items: center;
  }

  .blog-image {
      max-width: 100%;
      text-align: center;
  }

  .blog-content {
      margin-top: 15px;
  }

  .filter-form {
      flex-direction: column;
      gap: 10px;
  }

  .filter-group select {
      width: 100%;
  }
}

