/*SHOW LIST ON HOMEPAGE*/
/* Grid Layout */
.hover-box-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px auto;
  max-width: 1400px;
}

@media (max-width: 1024px) {
  .hover-box-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .hover-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .hover-box-grid {
    grid-template-columns: 1fr;
  }
}

/* Hover Box */
.hover-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 30px;
}

.hover-box img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.hover-box:hover img {
  transform: scale(1.08);
}

/* Bottom Title */
.hover-box-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(28, 130, 162, 0.9);
  color: #fff;
  font-size: 20px;   
  font-weight: bold;
  text-align: center;
  padding: 8px 6px;
  z-index: 2;
  transition: opacity 0.3s ease;
  line-height: 1.2;
  word-break: break-word; 
  white-space: normal;
  overflow: hidden;
  max-height: 2.6em; 
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
} 

.hover-box:hover .hover-box-title {
  opacity: 0;
}

/* Hover Overlay */
.hover-box-text {
  position: absolute;
  inset: 0;
  background: rgba(28, 130, 162, 0.95);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  text-align: center;      
  transition: opacity 0.4s ease, visibility 0.4s ease;
  border-radius: 12px;
  z-index: 3;
}

.hover-box:hover .hover-box-text {
  opacity: 1;
  visibility: visible;
}

.hover-title {
  font-weight: bold;
  font-size: 25px;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
  word-break: break-word; 
  white-space: normal;
  text-align: center;
  max-width: 90%;
}

.hover-box-text p {
  font-size: 1rem;   
  line-height: 1.5;
  margin: 0;
  max-width: 90%;
}

.sub-menu-1 {
	border-radius: 10px;

}

.sub-menu-2 {
	padding-right: -20px;
}

