/* Blog Header Styles */

.blog-header {
  padding: 60px 20px 40px;
  background: #fff;
  text-align: center;
}

.blog-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.blog-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Posts Grid */
.posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Post Cards */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.post-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

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

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

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

/* Category Labels */
.post-card-category {
  margin-bottom: 12px;
}

.category-label {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Post Titles */
.post-card-title {
  margin: 0 0 16px;
  flex-grow: 1;
}

.post-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: #1f2a44;
}

/* Post Excerpt Styling */
.entry-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
  margin-top: 12px;
}

.entry-excerpt p {
  margin: 0;
}

/* Read More Link in Excerpt */
.entry-excerpt .more-link {
  display: inline-block;
  margin-top: 8px;
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.entry-excerpt .more-link:hover,
.entry-excerpt .more-link:focus {
  color: #b8941f;
  text-decoration: none;
}

/* Post Meta */
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #666;
  margin-top: auto;
}

.post-author,
.post-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-meta .post-date {
  color: #666;
}

.post-card-meta i {
  font-size: 0.75rem;
  color: #999;
}

/* View More Button */
.latest-posts-footer {
  text-align: center;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d4a574; /* Golden/brown color like in screenshot */
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 25px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-more-btn:hover {
  background: #c19660;
  transform: translateY(-1px);
}

.view-more-btn:focus {
  outline: 2px solid #d4a574;
  outline-offset: 2px;
}

.view-more-btn i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.view-more-btn:hover i {
  transform: translateX(2px);
}

/* Placeholder styling for Customizer preview */
.post-card--placeholder {
  opacity: 0.8;
}

.post-card-image--placeholder {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
}

.post-card-image--placeholder::before {
  content: "Featured Image";
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .latest-posts-title {
    font-size: 1.75rem;
  }
  
  .latest-posts-subtitle {
    font-size: 0.9375rem;
  }
  
  .latest-posts-grid {
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .post-card-content {
    padding: 20px 18px;
  }
  
  .post-card-title a {
    font-size: 1rem;
  }
  
  .post-card-meta {
    font-size: 0.8125rem;
    gap: 12px;
  }
  
  .view-more-btn {
    padding: 10px 20px;
    font-size: 0.9375rem;
  }
}
