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

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

header p {
  color: #555;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.card h2 {
  font-size: 1.3rem;
  margin: 1rem 1rem 0.5rem;
  color: #111;
}

.card p {
  margin: 0 1rem 1rem;
  color: #555;
  flex-grow: 1;
}

.card a {
  background: #0078ff;
  color: #fff;
  text-decoration: none;
  text-align: center;
  margin: 1rem;
  padding: 0.7rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.card a:hover {
  background: #005fcc;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #111;
  color: #ccc;
  text-align: center;
  line-height: 60px;
  font-size: 0.9rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  .card img {
    height: 140px;
  }
}
