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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-image: url("/blue-box.jpg");
  background-repeat: repeat;
  background-size: 500px 500px;
  background-position: center center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 40px;
  color: #ffffff;
  background-color: #120a39;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card p {
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  h1 {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .card-grid {
    gap: 20px;
  }
}

@media (max-width: 550px) {
  h1 {
    font-size: 26px;
  }
}
