/* /static/css/blog.css */

/* Blog Listing Page Styles */
.blog-container {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f0f2f5;
}

.post-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  font-size: 0.85em;
  color: #764ba2;
  margin-bottom: 10px;
  font-weight: 500;
}

.post-card-title {
  font-size: 1.4em;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-card-excerpt {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.post-card-readmore {
  color: #667eea;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.post-card-link:hover .post-card-readmore {
  color: #764ba2;
}

/* Single Blog Post Page Styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
}

.post-header {
  text-align: center;
  margin-bottom: 30px;
}

.post-title {
  font-size: 2.5em;
  color: #333;
  line-height: 1.2;
  margin-bottom: 15px;
}

.post-meta {
  color: #666;
  font-size: 1em;
}

.featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
}

.post-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
}

.post-content h2 {
  font-size: 1.8em;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.post-content li {
  margin-bottom: 10px;
}

.back-to-blog {
  display: inline-block;
  color: white;
  text-decoration: none;
  opacity: 0.8;
  margin-bottom: 15px;
  transition: opacity 0.2s;
}
.back-to-blog:hover {
  opacity: 1;
}

.cta-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f8 100%);
  border: 1px solid #e0e6ed;
  border-left: 5px solid #667eea;
  padding: 30px;
  margin-top: 50px;
  border-radius: 10px;
  text-align: center;
}

.cta-section h3 {
  color: #333;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.cta-section p {
  color: #555;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .blog-post {
    padding: 20px;
  }
  .post-title {
    font-size: 2em;
  }
  .post-content {
    font-size: 1em;
  }
}