.page-huong-dan-choi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color); /* Ensures light background */
}

.page-huong-dan-choi__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Section (Hero-like) */
.page-huong-dan-choi__top-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f5f5f5; /* Slightly off-white for contrast */
}

.page-huong-dan-choi__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-huong-dan-choi__intro-text {
  font-size: clamp(16px, 2vw, 20px);
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-huong-dan-choi__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-huong-dan-choi__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding and border in element's total width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-huong-dan-choi__btn--primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-huong-dan-choi__btn--primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-huong-dan-choi__btn--secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-huong-dan-choi__btn--secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb8;
}

/* Content Section */
.page-huong-dan-choi__content-section {
  padding: 40px 0;
}

.page-huong-dan-choi__article-wrap {
  max-width: 900px; /* Slightly narrower for readability in long-form content */
  margin: 0 auto;
  padding: 0 20px;
  background-color: #ffffff; /* White background for article */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding-bottom: 30px;
}

.page-huong-dan-choi__article {
  padding: 20px 0;
}

.page-huong-dan-choi__heading {
  font-size: 32px;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-huong-dan-choi__sub-heading {
  font-size: 24px;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-huong-dan-choi__paragraph {
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #444444;
}

.page-huong-dan-choi__figure {
  margin: 30px 0;
  text-align: center;
}

.page-huong-dan-choi__figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Ensures image does not have extra space below */
  margin: 0 auto;
  object-fit: cover;
}

.page-huong-dan-choi__figcaption {
  font-size: 15px;
  color: #777777;
  margin-top: 10px;
  font-style: italic;
}

.page-huong-dan-choi__ordered-list,
.page-huong-dan-choi__unordered-list,
.page-huong-dan-choi__tips-list,
.page-huong-dan-choi__game-list,
.page-huong-dan-choi__contact-list {
  margin-bottom: 20px;
  padding-left: 25px;
  list-style-position: outside;
}

.page-huong-dan-choi__ordered-list li,
.page-huong-dan-choi__unordered-list li,
.page-huong-dan-choi__tips-list li,
.page-huong-dan-choi__game-list li,
.page-huong-dan-choi__contact-list li {
  font-size: 17px;
  margin-bottom: 10px;
  color: #444444;
}

.page-huong-dan-choi__ordered-list li::marker {
  font-weight: bold;
  color: #26A9E0;
}

.page-huong-dan-choi__unordered-list li::before,
.page-huong-dan-choi__tips-list li::before,
.page-huong-dan-choi__contact-list li::before {
  content: "•";
  color: #26A9E0;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.page-huong-dan-choi__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding-left: 0;
  list-style: none; /* Remove default list styling */
}

.page-huong-dan-choi__game-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-huong-dan-choi__game-item .page-huong-dan-choi__sub-heading {
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-huong-dan-choi__game-item .page-huong-dan-choi__paragraph {
  flex-grow: 1; /* Allow paragraph to take available space */
  margin-bottom: 15px;
}

.page-huong-dan-choi__btn--small {
  font-size: 16px;
  padding: 8px 18px;
  border-radius: 5px;
}

.page-huong-dan-choi__cta-box {
  background-color: #eaf7fc; /* Light blue background for CTA box */
  border: 1px solid #26A9E0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 40px 0;
}

.page-huong-dan-choi__cta-text {
  font-size: 20px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-huong-dan-choi__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-huong-dan-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #eaf7fc; /* Light blue background for question */
  user-select: none;
  list-style: none; /* Hide default marker for details summary */
}

.page-huong-dan-choi__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-huong-dan-choi__faq-qtext {
  flex-grow: 1;
}

.page-huong-dan-choi__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-huong-dan-choi__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 16px;
  color: #555555;
}

.page-huong-dan-choi__faq-answer .page-huong-dan-choi__paragraph:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-dan-choi__container {
    padding: 0 15px;
  }

  .page-huong-dan-choi__main-title {
    font-size: clamp(26px, 5vw, 42px);
  }

  .page-huong-dan-choi__intro-text {
    font-size: clamp(15px, 2.5vw, 18px);
  }

  .page-huong-dan-choi__heading {
    font-size: 28px;
  }

  .page-huong-dan-choi__sub-heading {
    font-size: 22px;
  }

  .page-huong-dan-choi__paragraph,
  .page-huong-dan-choi__ordered-list li,
  .page-huong-dan-choi__unordered-list li,
  .page-huong-dan-choi__tips-list li,
  .page-huong-dan-choi__game-list li,
  .page-huong-dan-choi__contact-list li {
    font-size: 16px;
  }

  .page-huong-dan-choi__btn {
    padding: 10px 20px;
    font-size: 16px;
  }

  .page-huong-dan-choi__cta-text {
    font-size: 18px;
  }

  .page-huong-dan-choi__faq-question {
    font-size: 16px;
  }

  .page-huong-dan-choi__faq-answer {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* Top Section */
  .page-huong-dan-choi__top-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-huong-dan-choi__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }

  .page-huong-dan-choi__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-huong-dan-choi__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-huong-dan-choi__btn {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important; /* Adjust padding */
    font-size: 17px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Content Section */
  .page-huong-dan-choi__content-section {
    padding: 30px 0;
  }

  .page-huong-dan-choi__article-wrap {
    padding: 0 15px 20px 15px !important; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__article {
    padding: 15px 0;
  }

  .page-huong-dan-choi__heading {
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__sub-heading {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-huong-dan-choi__paragraph,
  .page-huong-dan-choi__ordered-list li,
  .page-huong-dan-choi__unordered-list li,
  .page-huong-dan-choi__tips-list li,
  .page-huong-dan-choi__contact-list li {
    font-size: 16px;
    margin-bottom: 8px;
  }

  /* Universal Images and Figure */
  .page-huong-dan-choi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__figure {
    margin: 20px 0;
  }

  .page-huong-dan-choi__figcaption {
    font-size: 14px;
    margin-top: 8px;
  }

  .page-huong-dan-choi__cta-box {
    padding: 20px;
    margin: 30px 0;
  }

  .page-huong-dan-choi__cta-text {
    font-size: 17px;
    margin-bottom: 15px;
  }

  /* Game List */
  .page-huong-dan-choi__game-list {
    grid-template-columns: 1fr; /* Single column for games */
    gap: 15px;
  }

  .page-huong-dan-choi__game-item {
    padding: 15px;
  }

  .page-huong-dan-choi__btn--small {
    width: auto !important; /* Allow small buttons to be naturally sized */
    max-width: 100% !important;
    font-size: 15px !important;
    padding: 10px 15px !important;
  }

  /* FAQ Section */
  .page-huong-dan-choi__faq-item {
    margin-bottom: 10px;
  }

  .page-huong-dan-choi__faq-question {
    padding: 12px 15px;
    font-size: 16px;
  }

  .page-huong-dan-choi__faq-toggle {
    font-size: 20px;
  }

  .page-huong-dan-choi__faq-answer {
    padding: 0 15px 12px 15px;
    font-size: 15px;
  }

  /* All containers with images or buttons must have proper mobile padding */
  .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;
  }
}