/* Dark Theme */
body.bg-dark section h2 {
  color: #ffd700;
}

body.bg-dark .banner-section img {
  border-color: #ffd700;
}

body.bg-dark .btn-view-all {
  color: #ffd700;
  border-color: #ffd700;
}

body.bg-dark .btn-view-all:hover {
  background-color: #ffd700;
  color: #000;
}

/* Căn chỉnh cho tiêu đề section */
.section-title {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 36px;
  font-weight: bold;
  color: #393e46;
  text-transform: uppercase;
}

/* Căn chỉnh cho phần hot-movie */
.hot-movie {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  color: white;
  margin-bottom: 40px;
}

/* Video nền */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.8);
}

/* Overlay đen mờ */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Nội dung thông tin phim */
.movie-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Poster phim */
.poster {
  width: 365px;
  border-radius: 10px;
  margin-right: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Chi tiết phim */
.details {
  flex: 1;
  color: white;
}

.movie-title {
  font-size: 32px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.movie-description {
  color: #ffd700;
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Nút "Xem chi tiết" */
.btn-primary {
  background-color: #ffd700;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #e0521a;
}

.hot-movies-slider {
  height: 650px;
}

.swiper-container {
  width: 100%;
  margin-bottom: 0;
  position: relative; /* Đảm bảo pagination được đặt dựa vào container này */
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Căn chỉnh pagination */
.swiper-pagination {
  position: absolute;
  bottom: 15px; /* Đưa pagination gần hơn với slide */
  left: 50%;
  z-index: 2;
}

/* Pagination Bullet */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 0.5;
  margin: 0 8px;
  transition: opacity 0.3s;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #ffd700; /* Đổi màu khi slide đang được chọn */
}

/* Điều chỉnh Navigation nếu cần */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  z-index: 2;
}

/* Ẩn icon không dùng */
.hidden {
  display: none;
}

/* Style cho poster slider */
.poster-slider {
  position: relative;
}

/* Ảnh poster */
.poster-image {
  width: 100%;
  height: auto; /* Đảm bảo chiều cao tự động */
  border-radius: 10px; /* Bo góc cho poster */
}

/* Overlay cho poster */
.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 7px;
  background-color: rgba(0, 0, 0, 0.7); /* Màu nền cho overlay */
  display: flex;
  align-items: center; /* Căn giữa theo chiều dọc */
  justify-content: center; /* Căn giữa theo chiều ngang */
  opacity: 0; /* Ẩn overlay ban đầu */
  transition: opacity 0.3s ease; /* Hiệu ứng chuyển đổi */
}

/* Hiện overlay khi hover */
.poster-slide:hover .poster-overlay {
  opacity: 1; /* Hiện overlay khi hover */
}

.button-container {
  display: flex;
  flex-direction: column; /* Sắp xếp button theo chiều dọc */
  gap: 10px; /* Khoảng cách giữa hai button */
}

/* Nút bấm trong poster overlay */
.btn-primary,
.btn-secondary {
  margin: 5px; /* Khoảng cách giữa các nút */
}

/* Đặt container để căn giữa nút */
.centered-container {
  display: flex;
  justify-content: center; /* Căn giữa theo chiều ngang */
  margin-top: 1rem; /* Khoảng cách phía trên */
}

/* CSS cho nút "Xem tất cả" */
.btn-view-all {
  font-size: 1rem;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #007bff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  background-color: #007bff;
  color: #fff;
}

/* Banner Section */
.banner-section {
  display: block; /* Đặt các banner theo chiều dọc */
  text-align: center; /* Căn giữa các ảnh nếu cần */
}

.banner-section img {
  width: 100%; /* Đảm bảo các banner chiếm toàn bộ chiều rộng của container */
  max-width: 1920px; /* Giới hạn chiều rộng tối đa cho banner, bạn có thể thay đổi giá trị này */
  height: auto; /* Giữ tỷ lệ ảnh */
  margin: 20px 0; /* Thêm khoảng cách giữa các ảnh */
  border: 3px solid #000;
}

.banner-section > div:last-child img {
  margin-bottom: 0;
}
