/* --- BẮT ĐẦU MÃ CSS CHO DANH SÁCH DỊCH VỤ (PHIÊN BẢN 2) --- */

/* Kiểu dáng cho toàn bộ khung chứa widget */
.custom-services-list {
  font-family: 'Montserrat', sans-serif; /* Bạn có thể đổi font chữ cho phù hợp với web */
  border-top: 1px solid #f8f8f8; /* Đường kẻ trên cùng */
  width: 100%; /* --- MỚI: Đảm bảo widget chiếm 100% chiều rộng cột chứa nó --- */
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state animation */
.custom-services-list.loading {
  opacity: 0.5;
}

.custom-services-list.loading .service-item {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* Responsive animations */
@media (max-width: 768px) {
  .service-item:hover {
    transform: translateY(-1px) scale(1.005);
  }
  
  .service-title {
    font-size: 36px;
  }
  
  .service-item:hover .service-title {
    font-size: 42px;
    transform: scale(1.02);
  }
  
  .sub-services-list {
    padding-left: 20px;
  }
}

/* Kiểu dáng cho mỗi mục dịch vụ (container div) */
.service-item {
  border-bottom: 1px solid #f8f8f8; 
  padding: 25px 10px 25px 10px; 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  background: linear-gradient(135deg, transparent 0%, rgba(250, 183, 39, 0.02) 100%);
  border-radius: 8px;
  margin: 15px 0;
}

/* Đảm bảo service có sub-services có padding-bottom nhất quán */
.service-item:has(.sub-services-list) {
  padding-bottom: 25px;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(250, 183, 39, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.service-item:hover::before {
  left: 100%;
}

.service-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 30px rgba(250, 183, 39, 0.15), 0 0 20px rgba(250, 183, 39, 0.1);
  background: linear-gradient(135deg, rgba(250, 183, 39, 0.05) 0%, rgba(250, 183, 39, 0.08) 100%);
  border-bottom-color: rgba(250, 183, 39, 0.3);
  padding-left: 20px;
  padding-right: 20px;
}

/* Kiểu dáng cho link dịch vụ */
.service-link {
  display: block; 
  text-decoration: none; 
  color: inherit;
  position: relative;
  z-index: 2;
}

/* Căn chỉnh nội dung bên trong mỗi mục */
.service-content {
  display: flex;
  align-items: center; 
}

/* Kiểu dáng cho số thứ tự dịch vụ */
.service-number {
  font-size: 24px; 
  color: #FAB727; 
  font-weight: 700;
  margin-right: 15px; 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: inline-block;
  padding: 8px;
  border-radius: 50%;
  background: rgba(250, 183, 39, 0.1);
  border: 2px solid rgba(250, 183, 39, 0.2);
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 34px;
  flex-shrink: 0;
}

.service-number::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FAB727, #FFC107, #FAB727);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover .service-number {
  transform: scale(1.1) rotate(5deg);
  background: rgba(250, 183, 39, 0.9);
  border-color: #FAB727;
  box-shadow: 0 0 15px rgba(250, 183, 39, 0.4);
  color: #ffffff;
  font-weight: 800;
}

.service-item:hover .service-number::before {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Kiểu dáng cho tiêu đề dịch vụ */
.service-title {
  font-size: 48px; /* --- CẬP NHẬT: Tăng kích thước font chữ mặc định --- */
  color: #666666; 
  font-weight: 600;
  margin: 0; 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: left center;
  position: relative;
  display: inline-block;
}



/* ----- HIỆU ỨNG KHI DI CHUỘT (HOVER) ----- */

.service-item:hover .service-title {
  color: #FAB727; 
  font-size: 56px; /* --- MỚI: Tăng kích thước font chữ khi di chuột --- */
  transform: scale(1.05);
  text-shadow: 0 2px 10px rgba(250, 183, 39, 0.3);
  letter-spacing: 1px;
}




/* --- CSS CHO DANH SÁCH DỊCH VỤ CON --- */
.sub-services-list {
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0;
  position: relative;
  background: linear-gradient(135deg, rgba(250, 183, 39, 0.02), rgba(250, 183, 39, 0.04));
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.service-item:hover .sub-services-list {
  padding: 25px 20px 20px 80px;
  margin-top: 20px;
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 20px rgba(250, 183, 39, 0.08);
  border: 1px solid rgba(250, 183, 39, 0.1);
}

.sub-service-item {
  display: block;
  text-decoration: none;
  color: #555555;
  padding: 16px 24px 16px 20px;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 10px;
  margin: 6px 0;
  position: relative;
  transform: translateX(-15px);
  opacity: 0;
  animation: slideInStagger 0.5s ease forwards;
  line-height: 1.5;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(250, 183, 39, 0.05);
  backdrop-filter: blur(5px);
}

.sub-service-item:nth-child(1) { animation-delay: 0.1s; }
.sub-service-item:nth-child(2) { animation-delay: 0.2s; }
.sub-service-item:nth-child(3) { animation-delay: 0.3s; }
.sub-service-item:nth-child(4) { animation-delay: 0.4s; }
.sub-service-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInStagger {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sub-service-item:hover {
  background: linear-gradient(135deg, rgba(250, 183, 39, 0.12), rgba(250, 183, 39, 0.18));
  transform: translateX(12px) translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 183, 39, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(250, 183, 39, 0.3);
  backdrop-filter: blur(8px);
}

.sub-service-item:hover .sub-service-title {
  color: #FAB727;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sub-service-title {
  font-weight: 500;
  transition: all 0.4s ease;
  position: relative;
  display: inline-block;
}

.sub-service-title::before {
  content: '▸';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #FAB727;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.sub-service-item:hover .sub-service-title::before {
  opacity: 1;
  left: -22px;
}





/* --- KẾT THÚC MÃ CSS CHO DANH SÁCH DỊCH VỤ (PHIÊN BẢN 2) --- */