:root {
  --maxw: 1200px;
  --accent: #4f46e5;
  --muted: #6b7280;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-weight: 900;
  font-size: 2rem;
  color: var(--accent);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  color: #111;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
}

/* Heading */
h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #111;
  text-align: center;
}

p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

/* Search */
.search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

/* Card Design */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-height: 84px;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #0066cc;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 6px;
}

/* List Styling */
.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card ul li {
  margin: 6px 0;
}

.card ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.card ul li a:hover {
  color: #0066cc;
  font-weight: 500;
}

/* "View All" link */
.card p {
  margin-top: 12px;
  text-align: right;
}

.card p a {
  font-size: 0.85rem;
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
  transition: color 0.2s ease;
}

.card p a:hover {
  color: #004080;
}

/* Footer */
footer {
  border-top: 1px solid #eee;
  padding: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }
  .card {
    padding: 15px;
  }
}
