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

.blog-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post .post-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f5f5f5;
}

.blog-post .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.blog-post .placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 60px;
}

.blog-post .post-content {
  padding: 25px;
}

.blog-post .post-meta {
  margin-bottom: 15px;
  font-size: 13px;
  color: #999;
}

.blog-post .post-meta span {
  margin-right: 15px;
  display: inline-block;
}

.blog-post .post-meta i {
  margin-right: 5px;
}

.blog-post h2 {
  margin: 0 0 15px 0;
  font-size: 22px;
  line-height: 1.4;
}

.blog-post h2 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post h2 a:hover {
  color: var(--primary-color, #667eea);
}

.blog-post p {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.6;
}

/* Blog Post Single Page */
.post-featured-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}

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

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color, #667eea);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

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

.post-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.post-content table th,
.post-content table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.post-content table th {
  background: #f5f5f5;
  font-weight: 600;
}

.post-tags {
  font-size: 14px;
  color: #666;
}

.post-tags span {
  display: inline-block;
  padding: 5px 12px;
  background: #f5f5f5;
  border-radius: 15px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Sidebar */
.sidebar .widget {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.sidebar .widget-title {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  border-bottom: 2px solid var(--primary-color, #667eea);
  padding-bottom: 10px;
}

.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li i {
  margin-right: 8px;
  color: var(--primary-color, #667eea);
}

.social-share a {
  display: block;
  margin-bottom: 10px;
  padding: 10px 15px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.social-share a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-post .post-image {
    height: 200px;
  }
}
