:root {
  --primary: #0088cc;
  --background: #f6f6f6;
  --card-bg: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--background);
  color: #222;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}
header {
  text-align: center;
  margin-bottom: 2rem;
}
h1 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--primary);
}
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.search-bar input {
  width: 100%;
  max-width: 450px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus {
  border-color: var(--primary);
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.blog-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transition: transform 0.1s;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.blog-card:hover {
  transform: translateY(-4px) scale(1.02);
}
.blog-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 0.7rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.blog-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.blog-title:hover {
  color: #005577;
}
.blog-desc {
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 0.8rem;
  flex: 1;
}
.blog-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: auto;
  text-align: right;
}
@media (max-width: 600px) {
  .container {
    padding: 0.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .blog-card {
    padding: 0.7rem;
  }
  .blog-image {
    max-height: 120px;
  }
}