/* style/slot-games.css */
/* body đã có padding-top: var(--header-offset)；trang này không được viết lại biến đó */

/* Base styles cho trang, kế thừa nền tối từ body */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Màu chữ mặc định cho nền body tối */
  background-color: #121212; /* Đảm bảo nhất quán, mặc dù thường kế thừa từ body */
  line-height: 1.6;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Thêm padding cho màn hình nhỏ hơn */
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0; /* Màu thương hiệu chính cho tiêu đề */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__highlight {
  color: #26A9E0; /* Làm nổi bật các từ khóa quan trọng */
  font-weight: bold;
}

/* Phần Hero */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Đảm bảo hình ảnh ở trên nội dung */
  align-items: center;
  padding: 10px 0 60px 0; /* Padding trên nhỏ, padding dưới nhiều hơn */
  overflow: hidden; /* Ngăn chặn nội dung tràn ra ngoài */
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Giới hạn chiều cao cho hình ảnh hero */
}

.page-slot-games__hero-content {
  text-align: center;
  padding: 30px 15px;
  max-width: 900px;
  z-index: 1; /* Đảm bảo nội dung ở trên hình ảnh nếu có bất kỳ sự chồng chéo nào */
  background-color: rgba(18, 18, 18, 0.8); /* Nền tối bán trong suốt để dễ đọc văn bản */
  margin-top: -100px; /* Kéo nội dung hơi chồng lên hình ảnh để tạo hiệu ứng thị giác, nhưng không chồng lên văn bản */
  position: relative;
  border-radius: 10px;
}

.page-slot-games__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Kích thước font chữ phản hồi */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-slot-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
}

/* Nút */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Ngắt từ dài */
  max-width: 100%; /* Đảm bảo nút không tràn ra ngoài */
  box-sizing: border-box;
  text-align: center;
}

.page-slot-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-slot-games__btn-tertiary { /* Được sử dụng cho các CTA nhỏ hơn như trong phần hướng dẫn */
  background-color: #EA7C07; /* Màu đăng nhập cho một CTA khác biệt */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #c96806;
  border-color: #c96806;
}

/* Kiểu hình ảnh chung */
.page-slot-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Phần tính năng */
.page-slot-games__features-section {
  padding: 60px 0;
}

.page-slot-games__dark-bg {
  background-color: #1c1c1c; /* Nền tối hơi sáng hơn để tạo độ tương phản */
  color: #ffffff;
}

.page-slot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Nền sáng rất nhẹ cho các thẻ trên phần tối */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__feature-icon {
  width: 100%; /* Đảm bảo hình ảnh lấp đầy chiều rộng thẻ */
  max-width: 200px; /* Giới hạn kích thước biểu tượng */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Phần loại trò chơi */
.page-slot-games__game-types-section {
  padding: 60px 0;
}

.page-slot-games__game-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-category-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-category-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-slot-games__game-category-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__game-category-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Phần hướng dẫn chơi */
.page-slot-games__how-to-play-section {
  padding: 60px 0;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333; /* Chữ tối cho nền sáng */
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #26A9E0; /* Màu thương hiệu chính */
}

.page-slot-games__light-bg .page-slot-games__text-block {
  color: #333333;
}

.page-slot-games__light-bg .page-slot-games__highlight {
  color: #000000; /* Điểm nổi bật tối hơn trên nền sáng */
}

.page-slot-games__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__step-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

/* Phần khuyến mãi */
.page-slot-games__promotions-section {
  padding: 60px 0;
}

.page-slot-games__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-slot-games__promotion-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__promotion-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__promotion-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Phần mẹo */
.page-slot-games__tips-section {
  padding: 60px 0;
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__tips-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #26A9E0;
  border-radius: 4px;
}

.page-slot-games__tips-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 8px;
}

.page-slot-games__tips-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Phần trách nhiệm cá cược */
.page-slot-games__responsible-gaming-section {
  padding: 60px 0;
}

.page-slot-games__responsible-list {
  list-style: disc;
  padding-left: 30px;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-slot-games__responsible-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

/* Phần Câu hỏi thường gặp */
.page-slot-games__faq-section {
  padding: 60px 0;
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff; /* Màu chữ mặc định cho mục FAQ */
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1); /* Nền hơi sáng hơn cho câu hỏi */
  color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question::-webkit-details-marker,
.page-slot-games__faq-question::marker {
  display: none; /* Ẩn dấu mặc định cho tóm tắt chi tiết */
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03); /* Nền thậm chí sáng hơn cho câu trả lời */
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
}
.page-slot-games__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Phần CTA */
.page-slot-games__cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Hình ảnh và video phản hồi */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Phản hồi trên di động */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 10px;
  }

  .page-slot-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
  }

  .page-slot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary {
    padding: 12px 20px;
    width: 100% !important; /* Đảm bảo các nút chiếm toàn bộ chiều rộng trên di động */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__hero-content {
    margin-top: -50px; /* Điều chỉnh chồng chéo cho di động */
  }

  .page-slot-games__feature-grid,
  .page-slot-games__game-category-grid,
  .page-slot-games__step-list,
  .page-slot-games__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-icon {
    max-width: 150px;
  }

  .page-slot-games__image-content {
    margin: 20px auto;
  }

  /* Ghi đè hình ảnh và video trên di động */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__introduction-section,
  .page-slot-games__features-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 30px 0;
  }

  /* Padding trên phần video */
  .page-slot-games__video-section {
    padding-top: 10px !important; /* body đã có --header-offset */
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
}

/* Đảm bảo hình ảnh và container được xử lý tràn trên di động */
.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container,
.page-slot-games__hero-section,
.page-slot-games__video-container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Màu chữ cụ thể cho nền sáng */
.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__step-item p,
.page-slot-games__light-bg .page-slot-games__step-title {
  color: #333333;
}
.page-slot-games__light-bg .page-slot-games__highlight {
  color: #000000;
}
.page-slot-games__light-bg .page-slot-games__feature-card,
.page-slot-games__light-bg .page-slot-games__game-category-card,
.page-slot-games__light-bg .page-slot-games__promotion-item,
.page-slot-games__light-bg .page-slot-games__tips-item,
.page-slot-games__light-bg .page-slot-games__faq-item {
  background-color: #f0f0f0; /* Nền sáng hơn cho các thẻ trên phần sáng */
  color: #333333;
}
.page-slot-games__light-bg .page-slot-games__feature-title,
.page-slot-games__light-bg .page-slot-games__game-category-title,
.page-slot-games__light-bg .page-slot-games__promotion-title,
.page-slot-games__light-bg .page-slot-games__tips-title,
.page-slot-games__light-bg .page-slot-games__faq-question {
  color: #26A9E0;
}
.page-slot-games__light-bg .page-slot-games__faq-toggle {
  color: #333333;
}
.page-slot-games__light-bg .page-slot-games__faq-question {
  background-color: #e8e8e8;
  border-bottom: 1px solid #dcdcdc;
}
.page-slot-games__light-bg .page-slot-games__faq-answer {
  background-color: #f5f5f5;
  color: #555555;
}