body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #121212;
  color: #f1f1f1;
}

header {
  text-align: center;
  padding: 30px 0;
  background-color: #1f1f1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: #90caf9;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 0.7;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.card .image-box {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 90%;
  border-radius: inherit;
  transition: filter 0.5s ease-in-out;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid white;
  border-radius: inherit;
  opacity: 0;
  transition: 0.4s ease-in-out;
}

.card:hover img {
  filter: grayscale(1) brightness(0.4);
}

.card:hover::after {
  opacity: 1;
  inset: 20px;
}

.content {
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: none;
}

.content:hover {
  display: unset;
}

.card h2 {
  color: #90caf9;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #03a9f4;
  font-weight: bold;
  transition: color 0.2s;
}

.card a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .card {
    margin: 0 auto;
  }
}
