/* Căn giữa toàn bộ trang */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #000000, #1a001a);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container trung tâm */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 850px;
  width: 90%;
}

/* Tiêu đề */
.welcome-text {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: white;
}

/* Slider */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255, 20, 147, 0.3);
  margin: 0 auto;
  background: #1a001a;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide-banner {
  min-width: 100%;
  height: 100%;
}

.text-slide {
  background: linear-gradient(to right, #330033, #1a001a);
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ✅ Căn giữa theo chiều dọc */
  align-items: center;       /* ✅ Căn giữa theo chiều ngang */
  padding: 40px;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  height: 100%;              /* ✅ Bắt buộc: để flex hoạt động đủ chiều */
  width: 100%;               /* ✅ Đảm bảo chiếm đúng vùng slider */
  box-sizing: border-box;
}


.text-slide h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ff99cc;
}

/* Nút chuyển slide */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 10;
}

.slider-control.left {
  left: 10px;
}

.slider-control.right {
  right: 10px;
}

/* Nút hành động */
.button-group {
  display: flex;
  gap: 16px;
}

.button-group button {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(to right, #471b31, #ff1493);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.button-group button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(255, 105, 180, 0.5);
}
