
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #f9f9fb;
  color: #1a1a1a;
}

a {
  text-decoration: none;
  color: #0a0a8f;
}

.hero {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.hero-divider {
  height: 16px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  margin-top: 1.5rem;
}

.blog-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.post-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: white;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.gradient-card {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  color: white;
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 1rem;
}

.post-content h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.post-content p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: white;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 20px;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

.loading-msg {
  text-align: center;
  font-size: 1rem;
  color: #555;
}

.error-message {
  text-align: center;
  color: red;
  font-weight: bold;
}
