/* style/casino.css */
/* body đã padding-top: var(--header-offset)；trang này không được thêm lại biến đó */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Màu chữ nhạt cho nền tối */
  background-color: #0a0a0a; /* Đảm bảo nhất quán với màu nền body */
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Phần Hero */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ảnh trên văn bản */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Khoảng đệm trên nhỏ, body xử lý --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Giới hạn chiều cao cho ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  filter: none !important; /* Đảm bảo không áp dụng bộ lọc CSS */
}

.page-casino__hero-content {
  padding: 40px 20px;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  background: rgba(38, 169, 224, 0.9); /* #26A9E0 với độ trong suốt */
  border-radius: 8px;
  margin-top: -80px; /* Đè lên một chút cho thiết kế */
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Sử dụng clamp cho H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
  justify-content: center;
  gap: 15px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Cho phép văn bản xuống dòng */
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo các nút không bị tràn */
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Màu đăng nhập cho hành động chính */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* Các phần chung */
.page-casino__introduction-section,
.page-casino__advantages-section,
.page-casino__how-to-play-section,
.page-casino__promotions-section,
.page-casino__faq-section,
.page-casino__cta-bottom-section {
  padding: 60px 0;
}

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

.page-casino__dark-bg {
  background-color: #0a0a0a; /* Màu nền body */
  color: #ffffff; /* Chữ nhạt cho nền tối */
}

.page-casino__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Kế thừa màu từ nền phần */
}

.page-casino__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  margin-bottom: 20px;
  color: inherit;
}

.page-casino__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

/* Khối ảnh với văn bản */
.page-casino__image-text-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__image-text-block:nth-child(even) {
  flex-direction: column-reverse; /* Đảo ngược hướng ảnh/văn bản */
}

.page-casino__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  filter: none !important; /* Đảm bảo không áp dụng bộ lọc CSS */
}

.page-casino__text-content {
  text-align: left;
}

/* Lưới ưu điểm */
.page-casino__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1); /* Màu trắng bán trong suốt cho nền tối */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Chữ nhạt cho nền tối */
}

.page-casino__light-bg .page-casino__card {
  background-color: #f8f8f8; /* Màu xám nhạt cho nền sáng */
  color: #333333; /* Chữ tối cho nền sáng */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-casino__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-casino__image-block {
  text-align: center;
  margin-top: 40px;
}

/* Các bước chơi */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-casino__step-card {
  background-color: #f8f8f8; /* Màu xám nhạt cho nền sáng */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0; /* Màu thương hiệu chính */
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Màu thương hiệu cho tiêu đề */
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Phần khuyến mãi */
.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Màu trắng bán trong suốt cho nền tối */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
  filter: none !important; /* Đảm bảo không áp dụng bộ lọc CSS */
}

.page-casino__promo-content {
  padding: 25px;
}

.page-casino__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__promo-content .page-casino__btn-secondary {
  margin-top: 15px;
  width: auto; /* Ghi đè max-width cho nút nhỏ hơn */
  max-width: fit-content;
}

/* Phần Câu hỏi thường gặp */
.page-casino__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-casino__faq-item summary {
  list-style: none; /* Ẩn dấu mặc định */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0; /* Màu thương hiệu cho câu hỏi */
  background-color: #eaf6ff; /* Nền xanh nhạt hơn */
  border-bottom: 1px solid #d3e7f6;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg); /* Xoay '+' thành 'x' hoặc tương tự */
}

.page-casino__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
  color: #333333;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Phần CTA dưới cùng */
.page-casino__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Màu thương hiệu chính cho CTA mạnh mẽ */
  color: #ffffff;
}

/* Thiết kế đáp ứng */
@media (min-width: 769px) {
  .page-casino__image-text-block {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .page-casino__image-text-block:nth-child(even) {
    flex-direction: row-reverse;
  }

  .page-casino__image-text-block .page-casino__content-image {
    flex: 1;
  }

  .page-casino__image-text-block .page-casino__text-content {
    flex: 1;
    padding-left: 30px;
  }
  
  .page-casino__image-text-block:nth-child(even) .page-casino__text-content {
    padding-left: 0;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-bottom: 30px;
  }

  .page-casino__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: 2em !important;
  }

  .page-casino__hero-description {
    font-size: 1em !important;
  }

  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px; /* Thêm khoảng đệm cho vùng chứa */
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-casino__sub-title {
    font-size: 1.2em !important;
  }

  .page-casino__introduction-section,
  .page-casino__advantages-section,
  .page-casino__how-to-play-section,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom-section {
    padding: 40px 0;
  }

  .page-casino__container {
    padding: 0 15px !important; /* Thêm khoảng đệm cho vùng chứa */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ghi đè cụ thể cho vùng chứa hình ảnh */
  .page-casino__image-text-block,
  .page-casino__image-block,
  .page-casino__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* body đã xử lý --header-offset, phần này chỉ cần khoảng đệm nhỏ */
  .page-casino__video-section {
    padding-top: 10px !important; 
  }
}

/* Đảm bảo hình ảnh khu vực nội dung duy trì kích thước tối thiểu nếu không bị ghi đè bởi responsive */
.page-casino__content-area img,
.page-casino__card img,
.page-casino__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* Phong cách hình ảnh toàn cầu để ngăn chặn bộ lọc */
.page-casino img {
  filter: none !important; /* Đảm bảo không áp dụng bộ lọc CSS */
}