* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; background: #f8f9fa; color: #222; line-height: 1.6; }

/* blurred background image */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/bg.jpg') center/cover no-repeat;
  filter: blur(18px);
  transform: scale(1.1);
  opacity: 0.35;
  z-index: -1;
}

header { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 20px; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid #e5e5e5; text-align: center; }
header .logo { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: flex; }
header .logo img { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; }
header .site-name { color: #111; text-decoration: none; font-size: 1.6rem; font-weight: bold; }
header .tagline { font-size: 0.9rem; color: #555; }

.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.disclaimer { background: rgba(255,243,205,0.9); color: #856404; padding: 12px; border-radius: 14px; font-size: 0.85rem; margin-bottom: 25px; text-align: center; }
.section-title { font-size: 1.5rem; margin-bottom: 5px; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.post-card img { width: 100%; height: 220px; object-fit: cover; object-position: center 40%; background: #eee; }
.post-card .body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .btn { margin-top: auto; background: #e60023; color: #fff; padding: 10px 15px; text-align: center; border-radius: 10px; font-weight: bold; }

.empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: #555; }

footer { text-align: center; padding: 20px; color: #666; font-size: 0.85rem; margin-top: 40px; }

@media (max-width: 700px) {
  header .logo { left: 12px; }
  header .logo img { height: 34px; width: 34px; }
  header .site-name { font-size: 1.2rem; }
  .post-card img { height: 200px; }
}
