/* Blog page styles */
.blog-main {
  padding: 1rem;
  padding-top: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.blog-image {
  position: relative;
  height: auto;
  overflow: hidden;
  background: var(--background-alt);
  margin: 0.75rem 0;
  border-radius: 8px;
}

.blog-card.featured .blog-image {
  height: 100%;
  margin: 0;
}

.blog-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-category {
  color: var(--primary);
  font-weight: 500;
}

.blog-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.blog-card.featured .blog-title {
  font-size: 1.5rem;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary, #007bff);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-align: center;
}

.read-more:hover {
  background-color: var(--primary-dark, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.read-more::after {
  content: ' →';
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Responsive Grid */
@media (max-width: 768px) {
  .blog-card.featured {
    grid-template-columns: 1fr;
  }
  
  .blog-card.featured .blog-image {
    height: 220px;
  }

  .blog-title {
    font-size: 1.125rem;
  }

  .blog-card.featured .blog-title {
    font-size: 1.25rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-card {
  animation: fadeIn 0.4s ease-out forwards;
}

.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card:nth-child(4) { animation-delay: 0.3s; }
