/* ============================
   BLOG GRID LAYOUT
============================ */

.blog-list {
  padding: 60px 0;
  background: var(--background-color);
}

.blog-heading {
  text-align: center;
  font-size: 42px;
  color: var(--heading-color);
  margin-bottom: 40px;
}

/* GRID LAYOUT */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* CARD */
.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    height: 350px;
    display: block;
}

/* IMAGE */
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

/* OVERLAY */
.blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: .4s ease;
}

/* TEXT */
.blog-overlay h2 {
    font-size: 22px;
    font-weight: 700;
}

.blog-overlay p {
    font-size: 16px;
    margin-top: 10px;
}

/* HOVER EFFECT */
.blog-card:hover .blog-image img {
    filter: blur(4px) brightness(0.6);
    transform: scale(1.05);
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
