body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* ========== Navigation ========== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  top: 0;
  z-index: 1000;
}

.logo img {
  width: 60px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links li a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffcc00;
}
.top {
  text-align: center;
  padding: 2rem;
}
.top h1 {
  font-size: 2.5rem;
  color: rgb(59, 59, 224);
  margin-bottom: 0.5rem;
}

header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 3px solid rgb(59, 59, 224);
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(59, 59, 224);
}

header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.tags {
  text-align: center;
  margin: 1.5rem 0;
}

.tags button {
  background: rgb(92, 92, 196);
  color: white;
  border: none;
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.tags button:hover {
  background: white;
  color: rgb(92, 92, 196);
  
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card .badge {
  background: rgb(59, 59, 224);
  color: white;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  margin: 0.5rem 1rem;
  border-radius: 5px;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 1rem;
}

.card p {
  font-size: 0.9rem;
  margin: 0.5rem 1rem 1rem;
  color: #444;
}

.card a {
  display: block;
  margin: 0 1rem 1rem;
  color: rgb(59, 59, 224);
  text-decoration: none;
  font-weight: bold;
}

footer {
  background: linear-gradient(to right,rgb(59, 59, 224), #face1d);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  margin-top: 2rem;
}
