/* style/guide.css */
/* body đã có padding-top: var(--header-offset) từ shared.css；trang này không được thêm lại */
.page-guide {
  color: #ffffff; /* Màu chữ chính cho nền body tối */
  background-color: transparent; /* Khu vực nội dung chính sẽ sử dụng nền của từng section cụ thể */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Padding trên nhỏ, padding dưới lớn hơn */
  text-align: center;
  background-color: #0a0a0a; /* Phù hợp với nền body để tích hợp liền mạch */
}

.page-guide__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao ảnh hero */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-guide__hero-content {
  max-width: 900px;
  z-index: 1;
  color: #ffffff;
}

.page-guide__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Kích thước font chữ thích ứng */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #26A9E0; /* Màu thương hiệu cho tiêu đề */
}

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

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

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

.page-guide__btn-primary {
  background-color: #26A9E0; /* Màu thương hiệu chính */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-guide__btn-primary:hover {
  background-color: #1a7fb3;
}

.page-guide__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Màu thương hiệu chính */
  border: 2px solid #26A9E0;
}

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

.page-guide__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Padding trên nhỏ cho section video */
  background-color: #0d0d0d; /* Nền tối hơi khác một chút */
  color: #ffffff;
  text-align: center;
}

.page-guide__video-container {
  width: 100%; /* Chiều rộng desktop: 100% cùng với max-width */
  max-width: 1000px; /* Chiều rộng tối đa cho video */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Đảm bảo video không tràn */
}

.page-guide__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-guide__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
  overflow: hidden;
  background-color: #000;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* cursor: pointer; */ /* Cursor được xử lý qua JS */
}

.page-guide__video-description {
  font-size: 1em;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

.page-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0a0a0a; /* Nền tối cho các section nội dung chính */
  color: #ffffff; /* Chữ sáng cho nền tối */
}

.page-guide__game-category {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-guide__game-category:last-of-type {
  border-bottom: none;
}

.page-guide__category-title {
  font-size: clamp(1.5em, 2.5vw, 2em);
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-guide__category-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  border-radius: 8px;
  object-fit: cover;
}

.page-guide__sub-title {
  font-size: clamp(1.2em, 2vw, 1.5em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-guide ol,
.page-guide ul {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px; /* Thụt lề cho danh sách */
  color: #f0f0f0;
}

.page-guide ol li,
.page-guide ul li {
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-guide__promotions-section,
.page-guide__responsible-gaming-section,
.page-guide__cta-final {
  padding: 60px 20px;
  text-align: center;
  background-color: #1a1a1a; /* Nền tối hơn để phân biệt */
  color: #ffffff;
  margin-bottom: 40px;
  border-radius: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-guide__promotions-image,
.page-guide__responsible-gaming-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  border-radius: 8px;
  object-fit: cover;
}

.page-guide__promotion-list {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 30px;
  padding-left: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-guide__promotion-list li {
  text-align: left;
  margin-bottom: 10px;
}

.page-guide__responsible-gaming-tips {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 30px;
  padding-left: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-guide__responsible-gaming-tips li {
  text-align: left;
  margin-bottom: 10px;
}

.page-guide__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff; /* Chữ sáng */
}

.page-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-guide__faq-item {
  background-color: #1a1a1a; /* Nền tối hơn một chút cho các mục FAQ */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0; /* Màu thương hiệu cho câu hỏi */
  list-style: none; /* Xóa dấu mặc định cho details summary */
}

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

.page-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff;
}

.page-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-guide__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-guide__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Điều chỉnh kích thước font chữ cho di động */
  }

  .page-guide__description {
    font-size: 1em;
  }

  .page-guide__cta-buttons {
    flex-direction: column; /* Xếp chồng nút theo chiều dọc */
    gap: 10px;
    width: 100%;
    padding: 0 15px; /* Thêm padding cho container nút */
  }

  .page-guide__btn-primary,
  .page-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Đảm bảo padding trên chính các nút */
    padding-right: 15px;
  }
  
  .page-guide__video-section,
  .page-guide__content-area,
  .page-guide__promotions-section,
  .page-guide__responsible-gaming-section,
  .page-guide__faq-section,
  .page-guide__cta-final {
    padding: 30px 15px !important; /* Điều chỉnh padding section cho di động */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-guide__video-section {
    padding-top: 10px !important; /* Padding trên nhỏ cho section video trên di động */
  }

  .page-guide__video-container,
  .page-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-guide__video,
  .page-guide__hero-image,
  .page-guide__category-image,
  .page-guide__promotions-image,
  .page-guide__responsible-gaming-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-guide__section-title,
  .page-guide__category-title,
  .page-guide__sub-title {
    font-size: clamp(1.5em, 6vw, 2em); /* Điều chỉnh kích thước font chữ cho di động */
    margin-bottom: 20px;
  }

  .page-guide__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-guide__faq-answer {
    padding: 0 20px 15px;
  }

  .page-guide ol,
  .page-guide ul {
    padding-left: 15px;
  }
}