/* ใน Feature แสดง Thumbnail */
.post-item {
  display: flex;
  align-items: flex-start;
  /* ให้ข้อความเริ่มบน ไม่อยู่กลาง */
  gap: 18px;
  /* ระยะห่างรูปกับข้อความ */
  margin-bottom: 25px;
}

.post-item .thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.post-item h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  text-align: left;
}

.post-item p {
  margin: 0;
  font-size: 14px;
  opacity: .85;
  text-align: left;
}

.thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.readmore {
  margin-left: 6px;
  font-weight: 600;
  color: #ff6a00;
  /* เปลี่ยนสีได้ */
  text-decoration: none;
}

.readmore:hover {
  text-decoration: underline;
}


/* แก้ไขการแสดงผล Card อ่านต่อหน้า Blog */
.card {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.card-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

/* ป้องกันปุ่มล้น */
.card a:not(.card-image a) {
  max-width: 100%;
  box-sizing: border-box;
}

/* จัดการ footer */
.card-footer {
  background: #f8f9fa;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #eee;
}


/* ในโทรศัพท์มือถือ */
@media (max-width:768px) {

  .post-item {
    flex-direction: column;
    /* เรียงบนลงล่าง */
    gap: 10px;
  }

  .post-item .thumb {
    width: 100%;
    /* เต็มจอ */
    height: 180px;
    /* สูงพอดี */
  }

  .post-item h3 {
    font-size: 17px;
  }

  .post-item p {
    font-size: 14px;
  }

}

/* เปลี่ยนพื้นหลัง overlay เมนูมือถือ */
.overlay {
  background: rgb(0, 0, 0) !important;
}
