/* Blog Layout */
.blog-wrapper {
  padding: 2rem 0;
}

.blog-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin-top: 2rem;
}

/* Blog Header */
.blog-header {
  background: #f8f9fa;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-description {
  color: #6c757d;
  margin-bottom: 2rem;
}

.blog-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 25px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  &:hover {
    background: #e9ecef;
  }
}

.filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Featured Post */
.featured-post {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.post-image {
  position: relative;
}

.post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

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

.blog-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Author Section */
.author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  &:focus {
    outline: none;
    border-color: #007bff;
  }
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: inherit;
  text-decoration: none;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 1rem;
}

.recent-post img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 25px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  &:hover {
    background: #e9ecef;
    transform: translateY(-2px);
  }
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.newsletter-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  &:hover {
    background: #0056b3;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.page-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-container {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header {
    padding: 2rem 0;
  }

  .post-image img {
    height: 300px;
  }
}
