* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  min-height: 100vh;
  font-family: "Helvetica Neue", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

/* Search input */
.input {
  width: 100%;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #111;
  color: #888;
  border: none;
  outline: none;
  font-size: 16px;
}

/* Cards wrapper */
.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Card */
.card {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 320px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Image */
.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blur layer */
.blurred-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom;
  filter: blur(10px);
  z-index: 1;

  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}

/* Content */
.content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  z-index: 2;
}

.content h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.content p {
  font-size: 14px;
  color: #ddd;
}

/* 🔹 Responsive tweaks */
@media (max-width: 768px) {
  .card {
    max-width: 200px;
    height: 300px;
  }

  .content h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    gap: 25px;
  }

  .input {
    font-size: 14px;
    padding: 14px 16px;
  }

  .card {
    max-width: 100%;
  }
}
