/* The Word Bee Blog Styles */

/* Blog Container */
.blog-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.blog-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

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

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.blog-card-icon {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #ffeb3b 0%, #f9d71c 100%);
  border-bottom: 2px solid #f9d71c;
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  border-bottom: none;
  padding-bottom: 0;
}

.blog-card h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #ffeb3b;
}

.date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.blog-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.read-more {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  background: #ffeb3b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  align-self: start;
  margin-top: auto;
  transition: all 0.2s ease;
}

.read-more:hover {
  background: #fff000;
}

/* Single Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-header h1 {
  font-size: 2.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.post-header .date {
  margin-bottom: 0;
}

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

.post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #2c3e50;
  border-bottom: 2px solid #ffeb3b;
  padding-bottom: 0.5rem;
}

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

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.8rem;
}

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

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.8rem;
}

.related-posts a {
  color: #333;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.related-posts a:hover {
  color: #ffeb3b;
  border-bottom-color: #ffeb3b;
}

/* Blog Tags */
.blog-tags {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f8f9fa;
  color: #666;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #ffeb3b;
  color: #333;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination a:hover {
  background: #ffeb3b;
  border-color: #ffeb3b;
}

.pagination .current {
  background: #ffeb3b;
  border-color: #ffeb3b;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .blog-container, .blog-post {
    padding: 1rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
}