/* Base Styles for page-huong-dan-choi */
.page-huong-dan-choi {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Matches body background from shared.css */
}

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

.page-huong-dan-choi__container--center {
  text-align: center;
}

.page-huong-dan-choi__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-huong-dan-choi__section {
  padding: 60px 0;
}

.page-huong-dan-choi__section--padded-top {
    padding-top: 10px; /* Small top padding for hero, not header-offset */
}

.page-huong-dan-choi__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-huong-dan-choi__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-huong-dan-choi__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color */
}

.page-huong-dan-choi__section-title--white {
  color: #ffffff;
}

.page-huong-dan-choi__text-white {
  color: #ffffff;
}

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

.page-huong-dan-choi a {
  color: #017439;
  text-decoration: none;
}

.page-huong-dan-choi a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-huong-dan-choi__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  position: relative;
  overflow: hidden;
}

.page-huong-dan-choi__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height on desktop */
  overflow: hidden;
}

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

.page-huong-dan-choi__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-huong-dan-choi__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-huong-dan-choi__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

.page-huong-dan-choi__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-huong-dan-choi__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-huong-dan-choi__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-huong-dan-choi__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

.page-huong-dan-choi__btn-primary--large {
    padding: 18px 40px;
    font-size: 20px;
}

.page-huong-dan-choi__btn-link {
    display: inline-block;
    margin-top: 15px;
    color: #FFFF00; /* Link color for dark background */
    text-decoration: underline;
    font-weight: 600;
}

.page-huong-dan-choi__btn-link:hover {
    color: #f0f0f0;
}

.page-huong-dan-choi__cta-center {
    text-align: center;
    margin-top: 30px;
}

/* Lists */
.page-huong-dan-choi__feature-list,
.page-huong-dan-choi__tips-list,
.page-huong-dan-choi__list-bullet {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-huong-dan-choi__feature-list li,
.page-huong-dan-choi__tips-list li,
.page-huong-dan-choi__list-bullet li {
  margin-bottom: 10px;
  color: inherit; /* Inherit color from parent */
}

.page-huong-dan-choi__feature-list li strong {
    color: #FFFF00; /* Highlight for dark background */
}

/* Content Grid */
.page-huong-dan-choi__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-huong-dan-choi__image-block,
.page-huong-dan-choi__text-block {
  width: 100%;
}

.page-huong-dan-choi__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-huong-dan-choi__image-content--small {
    max-width: 600px;
    margin: 20px auto;
}

/* Guide Steps */
.page-huong-dan-choi__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.page-huong-dan-choi__guide-step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-huong-dan-choi__dark-bg .page-huong-dan-choi__guide-step-item {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.page-huong-dan-choi__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-huong-dan-choi__step-title--white {
    color: #ffffff;
}

/* Game Types Grid */
.page-huong-dan-choi__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-huong-dan-choi__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-huong-dan-choi__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-huong-dan-choi__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-huong-dan-choi__game-card-title a {
    color: inherit;
    text-decoration: none;
}

.page-huong-dan-choi__game-card-title a:hover {
    text-decoration: underline;
}

.page-huong-dan-choi__game-card-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
}

/* Download App Section */
.page-huong-dan-choi__download-content {
  flex: 1;
}

.page-huong-dan-choi__download-image-wrapper {
  flex-shrink: 0;
  max-width: 400px;
}

/* FAQ Section */
details.page-huong-dan-choi__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-huong-dan-choi__faq-item summary.page-huong-dan-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-huong-dan-choi__faq-item summary.page-huong-dan-choi__faq-question::-webkit-details-marker {
  display: none;
}
details.page-huong-dan-choi__faq-item summary.page-huong-dan-choi__faq-question:hover {
  background: #f5f5f5;
}
.page-huong-dan-choi__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-huong-dan-choi__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-huong-dan-choi__faq-item .page-huong-dan-choi__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-huong-dan-choi__container {
    padding: 20px 30px;
  }

  .page-huong-dan-choi__section-title {
    font-size: 32px;
  }

  .page-huong-dan-choi__hero-image-wrapper {
    max-height: 400px;
  }

  .page-huong-dan-choi__hero-content {
    padding: 30px 20px;
  }

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

  .page-huong-dan-choi__hero-description {
    font-size: 17px;
  }

  .page-huong-dan-choi__btn-primary,
  .page-huong-dan-choi__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-huong-dan-choi__game-card-title {
    font-size: 20px;
  }

  .page-huong-dan-choi__game-card-description {
    font-size: 14px;
  }

  .page-huong-dan-choi__download-image-wrapper {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-huong-dan-choi__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__section {
    padding: 40px 0;
  }

  .page-huong-dan-choi__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-huong-dan-choi__hero-section {
    padding-top: 10px;
  }

  .page-huong-dan-choi__hero-image-wrapper {
    max-height: unset;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-huong-dan-choi__hero-content {
    padding: 25px 15px;
  }

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

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

  .page-huong-dan-choi__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 通用按钮与容器 */
  .page-huong-dan-choi__btn-primary,
  .page-huong-dan-choi__btn-secondary,
  .page-huong-dan-choi a[class*="button"],
  .page-huong-dan-choi a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-huong-dan-choi__cta-buttons {
    flex-direction: column;
  }

  /* Content Grid */
  .page-huong-dan-choi__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-huong-dan-choi__download-app .page-huong-dan-choi__container--flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-huong-dan-choi__download-image-wrapper {
    max-width: 100%;
  }

  /* Guide Steps */
  .page-huong-dan-choi__guide-step-item {
    padding: 20px;
  }

  .page-huong-dan-choi__step-title {
    font-size: 20px;
  }

  /* Game Types Grid */
  .page-huong-dan-choi__game-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-huong-dan-choi__game-card-image {
    height: 180px;
  }

  .page-huong-dan-choi__game-card-title {
    font-size: 18px;
  }

  .page-huong-dan-choi__game-card-description {
    font-size: 13px;
  }

  /* 通用图片与容器 */
  .page-huong-dan-choi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }

  /* FAQ */
  details.page-huong-dan-choi__faq-item summary.page-huong-dan-choi__faq-question { padding: 15px; }
  .page-huong-dan-choi__faq-qtext { font-size: 15px; }
  details.page-huong-dan-choi__faq-item .page-huong-dan-choi__faq-answer { padding: 0 15px 15px; }
}