/* style/huong-dan-choi.css */
.page-huong-dan-choi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff;
}

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

.page-huong-dan-choi__container--narrow {
  max-width: 800px;
}

.page-huong-dan-choi__top-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.page-huong-dan-choi__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-huong-dan-choi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-huong-dan-choi__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.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: #005a2d;
  border-color: #005a2d;
}

.page-huong-dan-choi__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-huong-dan-choi__section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-huong-dan-choi__section:last-of-type {
  border-bottom: none;
}

.page-huong-dan-choi__heading {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-huong-dan-choi__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

.page-huong-dan-choi__text-block strong {
  color: #017439;
}

.page-huong-dan-choi__link {
  color: #017439;
  text-decoration: underline;
}

.page-huong-dan-choi__link:hover {
  color: #005a2d;
}

.page-huong-dan-choi__step-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-huong-dan-choi__step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

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

.page-huong-dan-choi__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.page-huong-dan-choi__list-item {
  margin-bottom: 10px;
  color: #333333;
}

.page-huong-dan-choi__info-card {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 5px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-huong-dan-choi__info-card--warning {
  border-left-color: #C30808;
  background-color: #fff0f0;
}

.page-huong-dan-choi__info-card--tip {
  border-left-color: #017439;
  background-color: #e6f7ed;
}

.page-huong-dan-choi__info-card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-huong-dan-choi__info-card--warning .page-huong-dan-choi__info-card-title {
  color: #C30808;
}

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

.page-huong-dan-choi__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-huong-dan-choi__game-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-huong-dan-choi__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-huong-dan-choi__faq-list {
  margin-top: 30px;
}

.page-huong-dan-choi__faq-item {
  background-color: #ffffff;
  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: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-huong-dan-choi__faq-question:hover {
  background-color: #e6e6e6;
}

.page-huong-dan-choi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-toggle {
  transform: rotate(45deg);
}

.page-huong-dan-choi__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: #333333;
  border-top: 1px solid #eee;
}

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

  .page-huong-dan-choi__main-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }

  .page-huong-dan-choi__description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-huong-dan-choi__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-huong-dan-choi__btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 0.95em;
  }

  /* General Section & Content */
  .page-huong-dan-choi__section {
    padding: 40px 0;
  }

  .page-huong-dan-choi__container,
  .page-huong-dan-choi__container--narrow,
  .page-huong-dan-choi__step-card,
  .page-huong-dan-choi__info-card,
  .page-huong-dan-choi__game-card,
  .page-huong-dan-choi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-huong-dan-choi__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-huong-dan-choi__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
    padding: 0 5px;
  }

  /* Images */
  .page-huong-dan-choi__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-huong-dan-choi__figcaption {
    font-size: 0.85em;
  }

  /* Step Cards */
  .page-huong-dan-choi__step-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-huong-dan-choi__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  /* Game List */
  .page-huong-dan-choi__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-huong-dan-choi__game-card {
    padding: 20px;
  }

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

  .page-huong-dan-choi__game-title {
    font-size: 1.2em;
  }

  .page-huong-dan-choi__game-description {
    font-size: 0.9em;
  }

  /* FAQ */
  .page-huong-dan-choi__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-huong-dan-choi__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95em;
  }
}