/* === DASAR === */
body {
  font-family: 'Poppins', Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #f8f9fa;
  color: #333;
  line-height: 1.7;
}

/* === LINK === */
a {
  color: #0078d7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === HEADER === */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #222;
}

header p {
  color: #555;
}

/* === NAVIGASI === */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  background: #fff;
  padding: 0.6rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 0 auto 2rem;
  width: fit-content;
}

.top-nav a {
  color: #555;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.top-nav a:hover {
  background: #0078d7;
  color: #fff;
}

/* === GRID & CARD === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 1.2rem 1rem;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.card h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.card p {
  color: #555;
}

/* === FOOTER === */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem 0;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* === RESPONSIF === */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
