/* ONBU Notice Tiles */
.onbu-notice--tiles {
  display: flex;
  gap: 20px;            /* 각 박스 간격 */
  margin: 16px 0 20px; /* 상 16px, 좌우 0, 하 20px */
}

.onbu-tile {
  flex: 1 1 calc((100% - 60px) / 4); /* 4개 기준, gap 20px x 3 */
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;        /* PC도 모바일과 동일하게 */
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.2s ease;
  box-sizing: border-box;

  /* 정사각형 강제 */
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
}

.onbu-tile:hover {
  background-color: #e9eef7;
}

.onbu-tile__icon {
  display: block;
  line-height: 0;
  margin-bottom: 8px;
}

.onbu-tile__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.onbu-tile__label {
  line-height: 1.3;
  text-align: center;
}

/* 모바일에서도 4개 유지 */
@media (max-width: 768px) {
  .onbu-notice--tiles {
	  flex-wrap: nowrap; 
    gap: 10px;
	    }

  .onbu-tile {
    padding: 10px;
    aspect-ratio: 1 / 1;  /* 정사각형 */
    height: auto;
    min-height: 0;
  }

  /* 아이콘 크기 */
  .onbu-tile__icon img {
    width: 40px;   /* 원하는 값으로 조절 */
    height: 40px;  /* 원하는 값으로 조절 */
  }

  /* 글자 크기 */
  .onbu-tile__label {
    font-size: 12px;   /* 원하는 값으로 조절 */
    line-height: 1.3;  /* 가독성을 위해 추가 */
    text-align: center;
  }
}
