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

:root {
  --p31000-win-blue: #26A9E0;
  --p31000-win-white: #FFFFFF;
  --p31000-win-login-orange: #EA7C07;
  --p31000-win-black: #000000;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--p31000-win-white); /* Mặc định cho nền tối của body */
  background-color: transparent; /* Nền body được định nghĩa trong shared.css */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Đảm bảo khoảng cách nhỏ với header, body đã có padding-top */
  text-align: center;
  background-color: var(--p31000-win-black); /* Nền cho phần hero */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Làm tối hình ảnh để chữ dễ đọc hơn, không thay đổi màu */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--p31000-win-white);
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Sử dụng clamp để kích thước chữ linh hoạt */
  font-weight: 700;
  color: var(--p31000-win-white);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-game-guides__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--p31000-win-white);
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Cho phép ngắt từ */
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background-color: var(--p31000-win-login-orange);
  color: var(--p31000-win-white);
  border: 2px solid var(--p31000-win-login-orange);
}

.page-game-guides__btn-primary:hover {
  background-color: #e06c00;
  border-color: #e06c00;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--p31000-win-blue);
  border: 2px solid var(--p31000-win-blue);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--p31000-win-blue);
  color: var(--p31000-win-white);
}

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--p31000-win-white); /* Nền trắng cho khu vực nội dung chính */
  color: #333333; /* Chữ đen trên nền trắng */
}

.page-game-guides__section-title {
  font-size: 2.2em;
  color: var(--p31000-win-blue);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
}

.page-game-guides__sub-title {
  font-size: 1.6em;
  color: #555555;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__list li {
  margin-bottom: 8px;
}

.page-game-guides p {
  margin-bottom: 1em;
}

.page-game-guides__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--p31000-win-blue);
  cursor: pointer;
  background-color: #f0f8ff;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-question:hover {
  background-color: #e6f2ff;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--p31000-win-blue);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−'; /* Change to minus when open for details tag */
}

.page-game-guides__faq-answer {
  padding: 0 20px 15px 20px;
  color: #555555;
  font-size: 1em;
  line-height: 1.8;
}

.page-game-guides__cta-buttons--bottom {
  margin-top: 50px;
}

.page-game-guides a {
  color: var(--p31000-win-blue);
  text-decoration: none;
}

.page-game-guides a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-game-guides__intro-text {
    font-size: 1em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
  }

  .page-game-guides__content-area {
    padding: 20px 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-game-guides__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* Tất cả hình ảnh phải thích ứng với màn hình */
  .page-game-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Tất cả các vùng chứa hình ảnh, video, và nút phải thích ứng */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__content-area,
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn chặn tràn nội dung */
  }
  
  /* Đảm bảo khoảng cách trên cùng của video section không bị trùng lặp */
  .page-game-guides__video-section {
    padding-top: 10px !important;
  }
}