/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Page base */
html {
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: white;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #1e1e2f, #2e2e4f);
}

/* Header */
.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 10px 18px;
  text-align: center;
}

.back-home {
  display: inline-block;
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 14px;
}

.back-home:hover {
  text-decoration: underline;
}

.topbar h1 {
  font-size: 2.7rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 820px;
  margin: 0 auto;
}

/* Main layout */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px 40px 18px;
}

/* Grid of cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 240, 255, 0.35);
}

/* Image section */
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.04);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text section */
.card-body {
  padding: 16px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 1.05rem;
  line-height: 1.25;
  color: #b7f7ff;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.35);
}

.card-desc {
  font-size: 0.98rem;
  line-height: 1.45;
  opacity: 0.92;
}

/* CTA */
.card-cta {
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #00f0ff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 10px 30px 10px;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding-top: 22px;
  }

  .topbar h1 {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.05rem;
  }
}
