
/* ✅ Scoped CSS — Works only inside Blogger Post */
.post-body * { box-sizing: border-box; }

/* Wrapper */
.post-body .search-wrapper {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
}

.post-body .search-container {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}

.post-body .search-container input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

.post-body #searchBtn {
  padding: 10px 16px;
  font-size: 16px;
  background: #b61503;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
}

.post-body #searchBtn:hover {
  background: #770000;
}

/* Responsive */
@media (max-width: 520px) {
  .post-body .search-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .post-body #searchBtn {
    margin-top: 10px;
    width: 120px;
  }
}

/* Post Grid */
.post-body .post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 10px;
}

.post-body .post-card {
  flex: 1 1 calc(25% - 16px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.post-body .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.post-body .post-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-body .post-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f5f5f5;
}

.post-body .post-card .body {
  padding: 14px;
  flex: 1;
}

.post-body .post-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 600;
  line-height: 1.3;
}

.post-body .post-card p {
  font-size: .9rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}

/* Responsive Cards */
@media (max-width: 1200px) {
  .post-body .post-card { flex: 1 1 calc(33.333% - 16px); }
}
@media (max-width: 768px) {
  .post-body .post-card { flex: 1 1 calc(50% - 16px); }
}
@media (max-width: 480px) {
  .post-body .post-card { flex: 1 1 100%; }
}
