.toolify-search {
  margin-bottom: 15px;
}

.toolify-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.toolify-search-input:focus {
  border-color: #0cc0df;
}

.toolify-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  margin-bottom: 20px;
}

.toolify-tab {
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s;
  background: #fff;
  color: #0cc0df;
  border: solid 2px #0cc0df;
}

.toolify-tab:hover {
  background: #4a4a54;
  color: #fff;
}

.toolify-tab.active {
  background: #1e214b;
  transition: background 0.3s;
  color: #fff;
}

.toolify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tool-box {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
}

.tool-box:hover {
  cursor: pointer;
}

.tool-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
  white-space: nowrap; /* Ngăn xuống dòng */
  overflow: hidden; /* Ẩn nội dung vượt quá */
  text-overflow: ellipsis; /* Thêm dấu ba chấm */
}

.tool-box h3:hover {
  color: #0cc0df;
}

.tool-box p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-search-container {
  width: 60%;
  text-align: center;
  margin: 0 auto;
}

#global-search-input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.global-search-results {
  list-style: none;
  padding: 0 !important;
  margin-top: 2px !important;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow-y: auto;
  max-height: 250px;
}

.global-search-results li {
  border-bottom: 1px solid #eee;
}

.global-search-results li:last-child {
  border-bottom: none;
}

.global-search-results li a {
  display: block;
  padding: 8px;
  text-decoration: none !important;
  color: #333;
}

.global-search-results li a:hover {
  color: #fff;
  background-color: #5195b5;
}
