/* ==========================================================================
   Blog Card Grid — blog.php
   Scoped, self-contained styles for the redesigned blog listing cards.
   Namespaced under .blog-card so nothing here touches the legacy
   .pbmit-ele-blog styles used elsewhere on the site.
   ========================================================================== */

.blog-card-grid {
  margin-top: 10px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--pbmit-white-color, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(64, 50, 38, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
/*  border: 1px solid #ff80004a; */
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(64, 50, 38, 0.14);
}

/* ---- Image ---- */
.blog-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 20 / 9; /* matches the actual source images (2000x900) so nothing is cropped */
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.06);
}

/* ---- Body ---- */
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 24px 24px;
}

.blog-card__title {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--pbmit-heading-color, #403226);
}

.blog-card__title a {
  color: inherit;
  font-size: 17px;
}

.blog-card__title a:hover {
  color: var(--pbmit-global-color, #ff8000);
}

/* ---- Read More button ---- */
.blog-card__readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pbmit-global-color, #ff8000);
  width: fit-content;
}

.blog-card__readmore i {
  font-size: 13px;
  transition: transform 0.3s ease;
}

.blog-card__readmore:hover {
  color: var(--pbmit-global-color, #ff8000);
}

.blog-card__readmore:hover i {
  transform: translate(3px, -3px);
}

@media (max-width: 767px) {
  .blog-card__body {
    padding: 18px 20px 20px;
  }

  .blog-card__title {
    font-size: 18px;
  }
}
