.image-card {
    width: 260px;              /* STANDARD SIZE */
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: block;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  }

  .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* STRONGER BLACK OVERLAY (BOTTOM ONLY) */
  .image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.55) 25%,
      rgba(0,0,0,0.0) 70%
    );
    z-index: 1;
  }

  /* TITLE ONLY – CENTERED – BOTTOM */
  .card-text {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-family: "Poppins", Arial, sans-serif;
    z-index: 2;
    padding: 0 14px;
  }

  .card-text h3 {
    margin: 0;
    font-size: 25px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.4px;
  }
  .card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 per row */
  gap: 20px;
  max-width: 1400px;
  margin: auto;
}

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
   .image-card {
    width: 100%;        /* full column width */
    height: 280px;     /* balanced height */
  }
  .card-text h3 {
    font-size: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .image-card {
    width: 100%;
   height: 500px;
  }

  .card-text h3 {
    font-size: 18px;
  }
}