/* reset cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

main {
  padding:40px;
  max-width:1200px;
  width: 100%;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:30px;
}
.post-card {
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  transition:0.3s;
  display:flex;
  flex-direction:column;
}
.post-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.post-card img {
  width:100%;
  height:200px;
  object-fit:cover;
}
.post-content {
  padding:15px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.post-title a {
  text-decoration:none;
  color:#111;
  font-size:20px;
  font-weight:600;
  margin-bottom:6px;
}
.post-title a:hover {
  color:#00bcd4;
}
.post-meta {
  font-size:12px;
  color:#777;
  margin-bottom:10px;
}
.post-excerpt {
  font-size:14px;
  color:#444;
  flex:1;
}
.read-more {
  margin-top:10px;
  text-align:right;
}
.read-more a {
  text-decoration:none;
  color:#00bcd4;
  font-weight:500;
  transition:0.3s;
}
.read-more a:hover {
  color:#ff5722;
}

@media (max-width: 1024px) {
  main {
    padding: 24px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .post-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  main {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card img {
    height: 160px;
  }

  .post-title a {
    font-size: 18px;
  }

  .post-excerpt {
    font-size: 13px;
  }
}
