/* Base typography and colors */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f9f8fc;
  margin: 0;
  color: #222;
  line-height: 1.6;
}

/* Header and navigation */
header {
  background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 100%);
  padding: 1rem 0;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-left: 2rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin: 0 2rem;
  padding: 0;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: text-shadow 0.2s;
}
nav ul li a:hover {
  text-shadow: 0 2px 8px rgba(255,255,255,0.9);
}

/* Hero section */
.hero {
  background: #fff;
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(250,208,196,0.2);
  text-align: center;
}

/* Posts grid */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Card styling */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(250,208,196,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 24px rgba(250,208,196,0.4);
}

/* Card image */
.post-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Card content wrapper */
.post-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}
.post-card-content p {
  margin: 0 0 1rem;
  flex: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #ffe6fa;
  color: #b26cf0;
  margin-top: 3rem;
  border-radius: 12px 12px 0 0;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin: 0 1rem;
  }
  .hero {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }
}
