/* Base styles for the Hướng dẫn chơi page */
.page-huong-dan-choi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom text color for dark background */
}

.page-huong-dan-choi__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per rules */
  margin-bottom: 40px;
}

.page-huong-dan-choi__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.page-huong-dan-choi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-huong-choi__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: -80px auto 0 auto; /* Pull content up slightly over the image */
  background-color: rgba(42, 18, 18, 0.9); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
  border: 1px solid #6A1E1E; /* Custom border color */
}

.page-huong-dan-choi__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size for H1 */
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-huong-dan-choi__hero-description {
  font-size: 1.1em;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-huong-dan-choi__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #ffffff;
  border: none;
}

.page-huong-dan-choi__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-huong-dan-choi__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #F3C54D; /* Gold text */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-huong-dan-choi__btn-secondary:hover {
  background: #F3C54D; /* Gold background */
  color: #2A1212; /* Card BG text */
  transform: translateY(-2px);
}

.page-huong-dan-choi__btn-block {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0 auto;
}

.page-huong-dan-choi__btn-inline {
  margin-top: 15px;
  margin-right: 10px;
}

.page-huong-dan-choi__content-wrapper {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 40px;
  background-color: #2A1212; /* Custom Card BG */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E; /* Custom border color */
  color: #FFF1E8;
}

.page-huong-dan-choi__section-intro,
.page-huong-dan-choi__why-guide,
.page-huong-dan-choi__guide-section,
.page-huong-dan-choi__faq-section,
.page-huong-dan-choi__conclusion-section {
  margin-bottom: 40px;
  padding: 20px;
  border-bottom: 1px solid rgba(110, 30, 30, 0.5); /* Deep Red with transparency */
}

.page-huong-dan-choi__guide-section:last-of-type,
.page-huong-dan-choi__conclusion-section:last-of-type {
  border-bottom: none;
}

.page-huong-dan-choi__section-heading {
  font-size: 2.2em;
  color: #F3C54D; /* Gold color */
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-huong-dan-choi h3 {
  font-size: 1.6em;
  color: #E53030; /* Accent color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-huong-dan-choi p {
  margin-bottom: 15px;
  color: #FFF1E8;
}

.page-huong-dan-choi__list,
.page-huong-dan-choi__ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #FFF1E8;
}

.page-huong-dan-choi__list li,
.page-huong-dan-choi__ordered-list li {
  margin-bottom: 10px;
}

.page-huong-dan-choi__list strong {
  color: #F3C54D; /* Gold color */
}

.page-huong-dan-choi__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 25px 0;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-huong-dan-choi__faq-list {
  margin-top: 30px;
}

.page-huong-dan-choi__faq-item {
  background-color: #1A0F0F; /* Slightly darker than card BG */
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-huong-dan-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F3C54D; /* Gold color */
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
}

.page-huong-dan-choi__faq-question::-webkit-details-marker {
  display: none;
}

.page-huong-dan-choi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E53030; /* Accent color */
}

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-huong-dan-choi__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #FFF1E8;
}

.page-huong-dan-choi__faq-answer p {
  margin-bottom: 0;
}

.page-huong-dan-choi__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #7E0D0D; /* Deep Red for subtle copyright */
  margin-top: 40px;
  border-top: 1px solid #6A1E1E;
}

/* Ensure all links have proper contrast */
.page-huong-dan-choi a {
  color: #F3C54D; /* Gold for links */
  text-decoration: underline;
}

.page-huong-dan-choi a:hover {
  color: #FFB04A; /* Lighter gold on hover */
}

/* Generic image and button responsiveness for desktop */
.page-huong-dan-choi img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-huong-dan-choi a[class*="button"],
.page-huong-dan-choi a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-dan-choi__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Mobile Responsive Styles - @media (max-width: 768px) MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
  .page-huong-dan-choi {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-huong-dan-choi__hero-section {
    margin-bottom: 20px;
  }

  .page-huong-choi__hero-content {
    padding: 25px 15px;
    margin-top: -50px; /* Adjust pull-up for mobile */
  }

  .page-huong-dan-choi__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-huong-dan-choi__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-huong-dan-choi__content-wrapper {
    padding: 20px;
    margin: 0 auto 30px auto;
  }

  .page-huong-dan-choi__section-heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-huong-dan-choi h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-huong-dan-choi__btn-primary,
  .page-huong-dan-choi__btn-secondary {
    padding: 10px 20px;
    font-size: 0.95em;
  }

  .page-huong-dan-choi__btn-block {
    max-width: 100% !important;
    width: 100% !important;
    margin: 15px auto 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__btn-inline {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Universal image responsiveness for mobile */
  .page-huong-dan-choi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Required Mobile CSS Template Sections (even if not fully used in HTML) */
  /* 1. HERO 主图区域 (already covered above with specific styles) */

  /* 2. 长文金框区 (adapted for general content wrapper) */
  .page-huong-dan-choi__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    /* No fixed height, let content flow */
    overflow-y: visible; /* Ensure content is not cut off */
  }

  /* 3. 游戏轮播 (placeholder, assuming it would be a flex container) */
  .page-huong-dan-choi__slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep horizontal scroll */
    overflow-x: auto; /* Enable horizontal scroll for games */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-huong-dan-choi__game-slide {
    flex: 0 0 160px; /* Smaller fixed width for mobile */
    max-width: 160px;
    scroll-snap-align: start;
  }
  .page-huong-dan-choi__slider-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden; /* Hide scrollbar if not active */
    box-sizing: border-box !important;
  }

  /* 4. 合作品牌六宫格 (placeholder, adapting to 3 columns) */
  .page-huong-dan-choi__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns on mobile */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-huong-dan-choi__banner-item img {
     /* Smaller image size */
    
  }

  /* 5. 博客卡片区 (placeholder, adapting to single column) */
  .page-huong-dan-choi__blog-masonry {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-huong-dan-choi__blog-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep horizontal scroll */
    overflow-x: auto; /* Enable horizontal scroll for blog cards */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-huong-dan-choi__blog-slide {
    flex: 0 0 calc(90% - 10px); /* Adjust width for mobile slide */
    max-width: calc(90% - 10px);
    scroll-snap-align: start;
  }

  /* 6. 通用图片与容器 (already covered by .page-huong-dan-choi img and content wrapper) */
  .page-huong-dan-choi__section,
  .page-huong-dan-choi__card,
  .page-huong-dan-choi__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 (already covered above with specific styles) */
  .page-huong-dan-choi__cta-buttons,
  .page-huong-dan-choi__button-group,
  .page-huong-dan-choi__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-huong-dan-choi__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-huong-dan-choi__faq-answer {
    padding: 0 20px 15px 20px;
  }
}