/* --- Áp dụng cho máy tính (trên 1024px) --- */
@media (min-width: 1024px) {
  .services-detail-title {
    width: 100%;
    background-color: #005498;
    color: #fff;
    height: 35px;
    padding-top: 5px;
    padding-left: 10px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .services-detail {
    margin-top: 10px;
  }

  .services-detail p {
    text-align: justify;
    margin-top: 2px;
    margin-bottom: 5px;
  }
  .mini-services-banner-group {
    text-align: right;
  }
  .fask-detail-text {
    width: 68%;
    margin: 0px 12px;
  }
  .fask-image {
    width: 28%;
    margin: 0px 10px;
  }

  .fask-dest {
    margin-top: 25px;
    background-color: #f2f2f2;
  }

  .fask-title {
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
    height: 40px;
    display: flex; /* RẤT QUAN TRỌNG: Kích hoạt Flexbox cho thẻ cha */
    align-items: center; /* Căn giữa các item con theo chiều dọc */
    justify-content: center; /* Tùy chọn: Căn giữa toàn bộ nhóm theo chiều ngang */
    /*justify-content: space-between;  Hoặc nếu bạn muốn hr đẩy ra sát 2 bên */
    gap: 1px; /* Tùy chọn: Khoảng cách giữa các phần tử */
  }
  .fask-title-line {
    width: 33%;
  }

  .fask-title-line hr {
    background-color: #005498;
  }

  .fask-title-text {
    color: #005498;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    padding-left: 20px;
    padding-right: 20px;
    display: inline-block; /* RẤT QUAN TRỌNG: Biến div thành inline-block */
  }

  /* CSS để sắp xếp các đối tượng theo chiều ngang */
  .search-form-container {
    display: flex; /* Sử dụng Flexbox để sắp xếp */
    flex-wrap: nowrap;
    justify-content: center; /* Đây là thuộc tính quan trọng để căn các đối tượng về bên phải */
    gap: 15px; /* Khoảng cách giữa các đối tượng */
    align-items: center; /* Căn chỉnh các đối tượng theo chiều dọc */
    padding-top: 10px;
    padding-bottom: 20px;
    margin: 20px auto; /* Căn giữa form */
    width: 100%;
  }

  .search-form-container select,
  .search-form-container input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    flex-shrink: 0; /* Ngăn các phần tử co lại */
    height: 45px;
    width: 24%;
  }

  .search-form-container select {
    background-image: linear-gradient(45deg, transparent 50%, gray 50%),
      linear-gradient(135deg, gray 50%, transparent 50%),
      linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 20px) calc(1em + 2px),
      calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    -webkit-appearance: none; /* Dành cho trình duyệt Webkit (Chrome, Safari) */
    -moz-appearance: none; /* Dành cho trình duyệt Mozilla (Firefox) */
    appearance: none; /* Tiêu chuẩn */
  }

  .search-form-container select:focus {
    background-image: linear-gradient(45deg, green 50%, transparent 50%),
      linear-gradient(135deg, transparent 50%, green 50%),
      linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 15px) 1em, calc(100% - 20px) 1em,
      calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    border-color: green;
    outline: 0;
  }

  .search-form-container button {
    height: 45px;
    width: 19%;
    margin-left: 20px;

    /* Các thuộc tính mới cho background ảnh */
    background-image: url("../images/button-bg.png"); /* Thay thế bằng đường dẫn ảnh của bạn */
    background-size: cover; /* Phóng ảnh để phủ kín toàn bộ button, giữ tỷ lệ */
    background-position: center; /* Căn giữa ảnh trong button */
    background-repeat: no-repeat; /* Không lặp lại ảnh */

    /* Các thuộc tính cũ của button */
    color: white; /* Màu chữ trên button */
    cursor: pointer;
    border: none;
    padding: 8px 12px; /* Đặt lại padding vì nó bị bỏ khỏi nhóm trên */
    font-size: 1rem; /* Đặt lại font-size */
    flex-shrink: 0;
    min-width: 100px; /* Đảm bảo button có đủ chiều rộng cho ảnh */
    min-height: 40px; /* Đảm bảo button có đủ chiều cao cho ảnh */
    /* Để chữ hiển thị rõ trên ảnh, bạn có thể cần điều chỉnh màu chữ hoặc thêm text-shadow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
}
/* Trang nhóm hổ trợ */

/* Container cho mỗi nhóm đóng mở */
.toggle-group-css {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
}

/* Ẩn checkbox thực sự */
.toggle-checkbox {
  /* Đảm bảo checkbox không hiển thị nhưng vẫn hoạt động */
  position: absolute;
  opacity: 0;
  pointer-events: none; /* Không tương tác được bằng chuột */
}

/* Phần tiêu đề (đóng vai trò là label cho checkbox) */
.toggle-header-css {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f0f0f0;
  cursor: pointer;
  user-select: none;
}

/* Icon tam giác */
.toggle-icon-css {
  font-size: 1.2em;
  margin-right: 10px;
  transition: transform 0.3s ease; /* Hiệu ứng xoay mượt mà */
  display: inline-block;
}

/* Tiêu đề text */
.toggle-title-css {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}

/* Phần chi tiết (ẩn đi ban đầu) */
.toggle-details-css {
  max-height: 0; /* Quan trọng: Ẩn bằng cách đặt max-height về 0 */
  overflow: hidden; /* Ẩn nội dung khi max-height là 0 */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Hiệu ứng trượt */
  padding: 0 15px; /* Ban đầu padding theo chiều dọc là 0 */
  background-color: #fff;
  border-top: 1px solid #eee; /* Chỉ hiển thị border khi nó mở ra */
  box-sizing: border-box; /* Đảm bảo padding không làm tràn max-height */
}

/* --- Kích hoạt khi checkbox được CHECKED --- */
.toggle-checkbox:checked + .toggle-header-css .toggle-icon-css {
  transform: rotate(90deg); /* Xoay icon khi checkbox được check */
}

.toggle-checkbox:checked + .toggle-header-css + .toggle-details-css {
  max-height: 100%; /* Đặt một giá trị max-height đủ lớn để chứa toàn bộ nội dung */
  /* (Bạn cần ước lượng chiều cao tối đa của nội dung chi tiết) */
  padding: 15px; /* Thêm lại padding khi mở ra */
}

.list-manufacturer-logo ul {
  display: flex; /* Kích hoạt Flexbox cho thẻ <ul> */
  justify-content: space-between;
  list-style: none; /* Xóa dấu chấm mặc định của <li> */
  margin: 15px 0px;
  padding: 0px 30px;
}

.list-manufacturer-logo ul li img {
  width: auto;
  height: auto;
}

/* Trang dịch vụ */

.services-dest {
  margin-top: 20px;
}

.services-dest ul {
  list-style: none;
  width: 100%;
  padding: 0px 15px;
}

.mini-services-banner-group {
  text-align: right;
}

.mini-services-banner {
  border: 1px solid #0aaf50;
  padding: 3px;
  margin-top: 10px;
  display: inline-block;
}
