* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: #f4f6fb;
  color: #222;
}

/* NAVBAR */
.navbar {
  background: #0b132b;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4em;
  font-weight: bold;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1d3557, #457b9d);
  color: #fff;
  padding: 60px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1em;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 25px;
}

.btn-back {
  display: inline-block;
  background: #fff;
  color: #1d3557;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-back:hover {
  background: #e0e0e0;
}

/* GRID */
.category-grid {
  padding: 40px 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CARD */
.category-card {
  position: relative;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.card-overlay h2 {
  color: #fff;
  font-size: 1.5em;
}

.card-overlay span {
  color: #ddd;
  font-size: 0.95em;
}

/* FOOTER */
.main-footer {
  background: #0b132b;
  color: #bbb;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-size: 0.9em;
}
