:root {
  --background: #f0f4ff;
  --surface: #ffffff;
  --text: #17233d;
  --muted: #000000;
  --shadow: 0 14px 34px rgba(21, 43, 83, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgb(250, 250, 255);
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

header {
  color: white;
  padding: 18px;
  text-align: center;
  background: black;
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid #d7e1f3;
  border-radius: 20px;
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #a9bff6;
  box-shadow: 0 18px 35px rgba(16, 40, 76, 0.1);
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
}

.card-text {
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: blue ;
  color: #fff;
}

.mt-auto {
  margin-top: auto;
}

footer.text-center {
  color: white;
  margin: 18px auto 0;
  padding: 18px 0;
  text-align: center;
  background: black;
  border-top: 1px solid #e7efff;
}

@media (max-width: 520px) {
  .container {
    padding: 24px 16px 32px;
  }

  .card {
    min-height: 240px;
  }
}
