/* Base styles for the Hướng dẫn chơi page */
.page-huong-dan-choi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
}

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

.page-huong-dan-choi__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #08160F; /* Background */
}

.page-huong-dan-choi__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-huong-dan-choi__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-huong-dan-choi p {
  margin-bottom: 1em;
  color: #F2FFF6;
}

.page-huong-dan-choi a {
  color: #22C768;
  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;
  position: relative;
  overflow: hidden;
  background-color: #08160F;
  padding-bottom: 40px;
}

.page-huong-dan-choi__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop hero, will be responsive */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-huong-dan-choi__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 1;
  margin-top: 30px;
}

.page-huong-dan-choi__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-huong-dan-choi__description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-huong-dan-choi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-huong-dan-choi__cta-buttons--center {
  margin-top: 40px;
}

.page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-huong-dan-choi__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-huong-dan-choi__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-huong-dan-choi__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D;
}

.page-huong-dan-choi__btn-secondary:hover {
  background: #57E38D;
  color: #08160F;
  transform: translateY(-2px);
}

/* Numbered List */
.page-huong-dan-choi__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-huong-dan-choi__numbered-list li {
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-huong-dan-choi__numbered-list li strong {
  color: #A7D9B8;
}

/* Image Block */
.page-huong-dan-choi__image-block {
  margin: 30px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi__image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.page-huong-dan-choi__image-caption {
  background-color: #11271B; /* Card BG */
  color: #A7D9B8; /* Text Secondary */
  padding: 15px;
  font-size: 0.9em;
  text-align: center;
}

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

.page-huong-dan-choi__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-huong-dan-choi__game-card img {
  width: 100%;
  height: 200px; /* Consistent height for card images */
  object-fit: cover;
  display: block;
}

.page-huong-dan-choi__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  padding: 15px;
  margin-bottom: 0;
}

.page-huong-dan-choi__card-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-huong-dan-choi__card-title a:hover {
  color: #57E38D;
}

.page-huong-dan-choi__game-card p {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-huong-dan-choi__card-link {
  display: block;
  padding: 10px 15px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-huong-dan-choi__card-link:hover {
  background-color: #1E3A2A; /* Divider */
  text-decoration: none;
}

/* Bullet List */
.page-huong-dan-choi__bullet-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-huong-dan-choi__bullet-list li {
  margin-bottom: 10px;
  color: #F2FFF6;
}

/* Contact List */
.page-huong-dan-choi__contact-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-huong-dan-choi__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #F2FFF6;
}

.page-huong-dan-choi__contact-list li strong {
  color: #57E38D;
}

/* FAQ Section */
details.page-huong-dan-choi__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  color: #F2FFF6;
}

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: #0A4B2C; /* Deep Green */
}

.page-huong-dan-choi__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6;
}

.page-huong-dan-choi__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  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: #0A4B2C; /* Deep Green */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8;
}

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

  .page-huong-dan-choi__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-huong-dan-choi__description {
    font-size: 1.1em;
  }

  .page-huong-dan-choi__section-title {
    font-size: 2em;
  }

  .page-huong-dan-choi__sub-title {
    font-size: 1.5em;
  }

  .page-huong-dan-choi__game-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Responsive styles for mobile (up to 768px) */
@media (max-width: 768px) {
  .page-huong-dan-choi {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-huong-dan-choi__container,
  .page-huong-dan-choi__section,
  .page-huong-dan-choi__image-block,
  .page-huong-dan-choi__game-cards-grid,
  .page-huong-dan-choi__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  /* HERO Main Image Mobile Adaptation */
  .page-huong-dan-choi__hero-image {
    height: auto !important;
    aspect-ratio: unset !important; /* Allow aspect ratio to be determined by content */
  }

  .page-huong-dan-choi__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible, no cropping */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-huong-dan-choi__hero-section {
    padding-top: 10px; /* Small top padding, not header offset */
    padding-bottom: 20px;
  }

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

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

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

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

  /* General Image Adaptation */
  .page-huong-dan-choi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Button Adaptation */
  .page-huong-dan-choi__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

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

  /* Game Cards Grid Mobile Adaptation (2 columns) */
  .page-huong-dan-choi__game-cards-grid {
    grid-template-columns: 1fr 1fr !important; /* 2 columns for mobile */
    gap: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-huong-dan-choi__game-card {
    height: auto;
  }

  .page-huong-dan-choi__game-card img {
     /* Adjust height for mobile cards */
  }

  .page-huong-dan-choi__card-title {
    font-size: 1.2em;
    padding: 10px;
  }

  .page-huong-dan-choi__game-card p {
    font-size: 0.9em;
    padding: 0 10px 10px;
  }

  .page-huong-dan-choi__card-link {
    padding: 8px 10px;
    font-size: 0.9em;
  }

  /* List Adaptation */
  .page-huong-dan-choi__numbered-list,
  .page-huong-dan-choi__bullet-list {
    padding-left: 20px;
  }

  /* FAQ Mobile Adaptation */
  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;
  }

  .page-huong-dan-choi__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

/* Ensure all images are at least 200x200px where not explicitly sized (e.g., card images are 200px height) */
.page-huong-dan-choi img:not([width]):not([height]) {
  min-width: 200px;
  min-height: 200px;
}

/* Color Contrast Fixes (if needed - applied based on dark background) */
.page-huong-dan-choi__dark-bg {
  color: #ffffff;
  background: #11A84E;
}

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

.page-huong-dan-choi__medium-bg {
  color: #000000;
  background: #22C768;
}