/* Blog-specific styles */
.blog .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2rem;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f8f9fc;
  border-radius: 8px;
}

.filter {
  display: flex;
  align-items: center;
}

.filter label {
  margin-right: 10px;
  font-weight: 500;
}

.filter select,
.search input {
  padding: 8px 12px;
  border: 1px solid #d1d3e2;
  border-radius: 4px;
}

.featured-post {
  position: relative;
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.featured-label {
  position: absolute;
  top: 20px;
  left: 0;
  background: #4e73df;
  color: white;
  padding: 8px 15px;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  z-index: 1;
}

.featured-post .post {
  display: flex;
  flex-direction: row;
  padding: 0;
  border: none;
  margin: 0;
}

.post-image {
  flex: 0 0 40%;
  max-height: 350px;
  overflow: hidden;
}

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

.post-content {
  flex: 0 0 60%;
  padding: 30px;
}

.featured-post .post h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 2rem;
}

.post {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f8f9fc;
  color: #4e73df;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 500;
}

.post h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.post .meta {
  font-size: 0.85rem;
  color: #858796;
  margin-bottom: 1rem;
}

.post p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.6;
}

.read-more {
  color: #4e73df;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.read-more:hover {
  text-decoration: underline;
}

#loadMoreBtn {
  display: block;
  margin: 2rem auto;
  padding: 10px 25px;
}

.hidden {
  display: none;
}

/* Single blog post page */
.blog-post .post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.blog-post .post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post .post-meta {
  color: #858796;
  font-size: 1rem;
}

.blog-post .post-image {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  max-height: 450px;
}

.blog-post .post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-post .post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.blog-post .post-content h3 {
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem;
}

.blog-post .post-content p {
  margin-bottom: 1.5rem;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-post .post-content li {
  margin-bottom: 0.5rem;
}

.blog-post .post-content blockquote {
  border-left: 4px solid #4e73df;
  padding: 0.5rem 1rem;
  background: #f8f9fc;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.author-section {
  display: flex;
  align-items: center;
  margin: 3rem 0;
  padding: 1.5rem;
  background: #f8f9fc;
  border-radius: 8px;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.5rem;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.author-bio p {
  margin-bottom: 0;
}

.related-posts {
  margin-top: 3rem;
}

.related-posts h2 {
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .featured-post .post {
    flex-direction: column;
  }
  
  .post-image,
  .post-content {
    flex: 0 0 100%;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .filter-container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
