/* Blog Page Styles - Ferndesk-inspired clean layout */

body {
  background: #fff;
}

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

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

.blog-header h1 {
  font-size: 2rem;
  font-weight: 500;
  color: #000;
  margin: 0 0 0.5rem 0;
}

.blog-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Blog Card - Ferndesk style */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #f0f0f0;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Blog Card Image */
.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
  transform: scale(1.02);
}

/* Blog Card Content */
.blog-card-content {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin: 0.5rem 0 0.25rem 0;
  line-height: 1.3;
}

.blog-card-read-time {
  font-size: 0.75rem;
  color: #888;
  margin: 0 0 0.75rem 0;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Desktop: Horizontal card layout */
@media (min-width: 640px) {
  .blog-card {
    flex-direction: row;
  }

  .blog-card-image {
    width: 280px;
    min-width: 280px;
    height: 180px;
  }

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

  .blog-card h2 {
    font-size: 1.1rem;
  }

  .blog-card-excerpt {
    font-size: 0.85rem;
  }
}

/* Larger screens */
@media (min-width: 1024px) {
  .blog-container {
    padding: 4rem 2rem 5rem;
  }

  .blog-header h1 {
    font-size: 2.25rem;
  }

  .blog-card-image {
    width: 320px;
    min-width: 320px;
    height: 200px;
  }

  .blog-card h2 {
    font-size: 1.25rem;
  }

  .blog-card-excerpt {
    font-size: 0.9rem;
  }
}

/* Footer adjustment for blog page */
.footer-links {
  background: #fafafa;
  border-top: 1px solid #eee;
}
