/* Styles for the blog listing cards */

.blog-grid {
  width: 100%;
}

.blog-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 1.25rem; /* vertical spacing between cards */
  display: flex;
  flex-direction: column;
}

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

.blog-card-img {
  width: 100%;
  display: block;
  object-fit: contain; /* show full preview map image */
  background: transparent; /* ensure no gray fill behind images */
  max-width: 100%;
}

.blog-card-col-img {
  padding: 0.5rem 0.75rem 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.blog-card-col-text {
  padding: 0.5rem 0.75rem 0.75rem 0.75rem;
}

.blog-card-title {
  margin: 0 0 6px 0;
  color: #21320F; /* darker green */
  font-size: 1.05rem;
}

.blog-card-date {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.85rem;
}

.blog-card-excerpt {
  margin-top: 8px;
  color: #333;
  font-size: 0.95rem;
}

.blog-card-body {
  padding: 0.75rem 1rem 1.25rem 1rem;
  max-width: 86%; /* make text section a bit narrower */
  margin-left: auto;
  margin-right: auto;
}

/* When `.blog-card-body` is used on the excerpt inside the right column,
   override the centering so the excerpt lines up to the left with the date. */
.blog-card-col-text .blog-card-body {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.blog-card-col-text {
  text-align: left;
}

.blog-card-header {
  padding: 0.75rem 1rem 0.25rem 1rem;
  background: transparent;
  border-bottom: none;
}

/* Center card titles */
.blog-card-header .blog-card-title,
.blog-card-title {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

.blog-link {
  text-decoration: none;
  color: inherit;
}

/* Remove default link color/underline on any inner links */
.blog-link a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Ensure card content aligns horizontally on larger screens */
@media (min-width: 768px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }
  .blog-card-img {
    max-height: 260px;
    width: 100%;
  }
  .blog-card-col-img {
    max-width: 48%;
    flex: 0 0 48%;
  }
  .blog-card-col-text {
    max-width: 52%;
    flex: 1 1 52%;
  }
}

@media (max-width: 576px) {
  .blog-card {
    margin-bottom: 1rem;
  }
  .blog-card-img {
    /* slightly taller feeling on small screens */
    max-height: 300px;
  }
  .blog-card-body {
    max-width: 94%;
  }
}
