/* =========================================================
   blog.css
   Page-specific styles for /blog

   The card markup now matches automationindiaexpo.com exactly,
   and that page sets the thumbnail height inline
   (height:290px; object-fit:cover). Nothing here overrides
   that - these rules only supply the card chrome that the
   live site gets from its own style.css.
   ========================================================= */

.blog .blog-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(1, 37, 63, .08);
  transition: .5s;
}

.blog .blog-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(1, 37, 63, .16);
}

/* The thumbnail link wraps the image; keep the zoom inside the card. */
.blog .blog-item > a { display: block; overflow: hidden; }
.blog .blog-item > a img { transition: .5s; display: block; }
.blog .blog-item:hover > a img { transform: scale(1.06); }

/* Card body stretches so every Read More sits at the same height. */
.blog .blog-item .p-4 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.blog .blog-item .mb-4 p {
  font-size: 14px;
  color: #6c7a88;
}

.blog .blog-item .mb-4 i { color: #44d2f6; }

.blog .blog-item h5 {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #0A1650;
  margin: 0;
}

.blog .blog-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #55636f;
}

/* Excerpts clamp to three lines so cards stay even. */
.blog .blog-item .p-4 > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.blog .blog-item .rounded-pill {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
}

.blog .blog-item .rounded-pill:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .blog .blog-item h5 { font-size: 18px; }
}