.iconbox a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}


/* กล่องการ์ดหลัก */
.hover-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* เงาเข้มชัด */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  padding: 0;
  text-align: center;
}

/* เอฟเฟกต์ hover */
.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35); /* เงาแน่น ลอยสูง */
}


/* ภาพด้านบนการ์ด */
.hover-card img {
  width: 100%;
  height: 180px; /* บังคับให้ภาพสูงเท่ากัน */
  object-fit: cover; /* ตัดภาพให้พอดีไม่บิดเบี้ยว */
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s ease;
}

/* ข้อความใต้ภาพ (ชื่อระบบ) */
.hover-card + .wpb_text_column {
  padding: 16px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px; /* บังคับความสูงข้อความให้เท่ากันทุกการ์ด */
  box-sizing: border-box;
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
  .hover-card img {
    height: 150px;
  }
  .hover-card + .wpb_text_column {
    font-size: 15px;
    height: auto;
    padding: 12px;
  }
}