/* style/huong-dan-choi.css */

:root {
  --dabet-primary: #2F6BFF;
  --dabet-secondary: #6FA3FF;
  --dabet-gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --dabet-card-bg: #FFFFFF;
  --dabet-background: #F4F7FB;
  --dabet-text-main: #1F2D3D;
  --dabet-text-black: #000000;
  --dabet-border: #D6E2FF;
  --dabet-glow: #A5C4FF;
}

.page-huong-dan-choi {
  font-family: 'Arial', sans-serif;
  color: var(--dabet-text-main); /* Default text color for light background body */
  line-height: 1.6;
}

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

.page-huong-dan-choi__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--dabet-primary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

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

.page-huong-dan-choi__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

/* HERO Section */
.page-huong-dan-choi__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background: var(--dabet-background);
}

.page-huong-dan-choi__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-huong-dan-choi__hero-content {
  flex: 1 1 45%;
  max-width: 550px;
  text-align: left;
  color: var(--dabet-text-main);
}

.page-huong-dan-choi__main-title {
  font-size: 3em;
  font-weight: 800;
  color: var(--dabet-text-black);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-huong-dan-choi__description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--dabet-text-main);
}

.page-huong-dan-choi__cta-button {
  display: inline-block;
  background: var(--dabet-gradient-button);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-huong-dan-choi__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.page-huong-dan-choi__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: 600px; /* Specific height for hero image */
  object-fit: contain; /* Ensure image fits without cropping */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Intro Section (Module 1 - three-column intro) */
.page-huong-dan-choi__intro-section {
  padding: 80px 0;
  background: var(--dabet-background);
}

.page-huong-dan-choi__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-huong-dan-choi__icon-box {
  flex: 1 1 calc(33.333% - 40px);
  max-width: 350px;
  background: var(--dabet-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-huong-dan-choi__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--dabet-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--dabet-glow);
}

.page-huong-dan-choi__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is perfectly circular */
  display: block;
}

.page-huong-dan-choi__icon-box-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--dabet-text-black);
  margin-bottom: 10px;
}

.page-huong-dan-choi__icon-box-description {
  font-size: 1em;
  color: var(--dabet-text-main);
}

/* Guide Section (Tutorial Long Article) */
.page-huong-dan-choi__guide-section {
  padding: 80px 0;
  background: #ffffff;
}

.page-huong-dan-choi__guide-step {
  margin-bottom: 50px;
  background: var(--dabet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-huong-dan-choi__guide-step-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--dabet-primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--dabet-border);
  padding-bottom: 10px;
}

.page-huong-dan-choi__guide-step p,
.page-huong-dan-choi__guide-step ul,
.page-huong-dan-choi__guide-step ol {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--dabet-text-main);
}

.page-huong-dan-choi__guide-step a {
  color: var(--dabet-primary);
  text-decoration: none;
  font-weight: 600;
}

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

.page-huong-dan-choi__guide-step ul,
.page-huong-dan-choi__guide-step ol {
  list-style-position: inside;
  padding-left: 20px;
}

.page-huong-dan-choi__guide-step ul li {
  list-style-type: disc;
}

.page-huong-dan-choi__guide-step ol li {
  list-style-type: decimal;
}

/* Game Tabs Section */
.page-huong-dan-choi__game-tabs-section {
  padding: 80px 0;
  background: var(--dabet-primary);
  color: #ffffff;
}

.page-huong-dan-choi__tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.page-huong-dan-choi__tab-button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-huong-dan-choi__tab-button:hover,
.page-huong-dan-choi__tab-button.is-active {
  background: #ffffff;
  color: var(--dabet-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi__game-panel {
  display: none;
  background: var(--dabet-card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  color: var(--dabet-text-main);
}

.page-huong-dan-choi__game-panel.is-active {
  display: block;
}

.page-huong-dan-choi__game-panel-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-huong-dan-choi__game-panel-image {
  flex: 1 1 45%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-huong-dan-choi__game-panel-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--dabet-primary);
  margin-bottom: 15px;
}

.page-huong-dan-choi__game-panel p {
  flex: 1 1 45%;
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-huong-dan-choi__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: var(--dabet-primary);
  border: 2px solid var(--dabet-primary);
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  text-align: center;
}

.page-huong-dan-choi__btn-secondary:hover {
  background: var(--dabet-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Promo Section */
.page-huong-dan-choi__promo-section {
  padding: 80px 0;
  background: var(--dabet-background);
}

.page-huong-dan-choi__promo-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.page-huong-dan-choi__promo-content {
  flex: 1 1 45%;
  max-width: 550px;
  text-align: left;
}

.page-huong-dan-choi__promo-image {
  flex: 1 1 45%;
  text-align: center;
}

/* Trust Section */
.page-huong-dan-choi__trust-section {
  padding: 80px 0;
  background: #ffffff;
}

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

.page-huong-dan-choi__trust-item {
  background: var(--dabet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid var(--dabet-border);
}

.page-huong-dan-choi__trust-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--dabet-primary);
  margin-bottom: 10px;
}

.page-huong-dan-choi__trust-item p {
  font-size: 0.95em;
  color: var(--dabet-text-main);
}

.page-huong-dan-choi__trust-image {
  margin-top: 50px;
}

/* FAQ Section */
.page-huong-dan-choi__faq-section {
  padding: 80px 0;
  background: var(--dabet-background);
}

.page-huong-dan-choi__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-huong-dan-choi__faq-item {
  background: var(--dabet-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--dabet-border);
  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: var(--dabet-text-black);
  cursor: pointer;
  background: #ffffff;
  border-bottom: 1px solid var(--dabet-border);
  list-style: none; /* For details tag */
}

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

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-question {
  border-bottom: 1px solid transparent; /* Remove border when open */
}

.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: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--dabet-text-main);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-huong-dan-choi__faq-image {
  margin-top: 40px;
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-dan-choi__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-huong-dan-choi__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-huong-dan-choi__hero-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-huong-dan-choi__main-title {
    font-size: 2.5em;
  }

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

  .page-huong-dan-choi__icon-box {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .page-huong-dan-choi__game-panel-content {
    flex-direction: column;
  }

  .page-huong-dan-choi__game-panel-image {
    order: -1;
  }

  .page-huong-dan-choi__game-panel p {
    text-align: center;
  }

  .page-huong-dan-choi__promo-container {
    flex-direction: column;
  }

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

  .page-huong-dan-choi__promo-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  /* HERO Section Mobile */
  .page-huong-dan-choi__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-huong-dan-choi__hero-container,
  .page-huong-dan-choi__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__main-title {
    font-size: 2em !important;
  }

  .page-huong-dan-choi__description {
    font-size: 1em !important;
  }

  .page-huong-dan-choi__cta-button {
    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;
    font-size: 1em !important;
  }

  /* Module 1 Three-column Intro Mobile */
  .page-huong-dan-choi__icon-box {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .page-huong-dan-choi__icon-box-media {
    width: 160px !important;
    height: 160px !important;
  }

  /* Game Tabs Section Mobile */
  .page-huong-dan-choi__game-tabs-section {
    padding: 50px 0;
  }

  .page-huong-dan-choi__tab-nav {
    flex-direction: column;
    gap: 8px;
  }

  .page-huong-dan-choi__tab-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 0.9em !important;
    padding: 10px 15px;
  }

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

  .page-huong-dan-choi__game-panel-title {
    font-size: 1.5em !important;
  }

  .page-huong-dan-choi__game-panel p {
    font-size: 0.95em !important;
  }

  .page-huong-dan-choi__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 0.9em !important;
    padding: 10px 15px;
  }

  /* Guide, Promo, Trust, FAQ Sections Mobile */
  .page-huong-dan-choi__section-title {
    font-size: 1.8em !important;
    margin-bottom: 25px;
  }

  .page-huong-dan-choi__text-block {
    font-size: 0.95em !important;
    margin-bottom: 20px;
  }

  .page-huong-dan-choi__guide-step-title {
    font-size: 1.5em !important;
  }

  .page-huong-dan-choi__guide-step p,
  .page-huong-dan-choi__guide-step ul,
  .page-huong-dan-choi__guide-step ol {
    font-size: 0.95em !important;
  }

  .page-huong-dan-choi__trust-grid {
    grid-template-columns: 1fr !important;
  }

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

  .page-huong-dan-choi__faq-answer {
    font-size: 0.95em !important;
    padding: 0 20px 15px;
  }

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

  .page-huong-dan-choi__hero-side-image,
  .page-huong-dan-choi__icon-box-media img,
  .page-huong-dan-choi__content-image,
  .page-huong-dan-choi__game-panel-image,
  .page-huong-dan-choi__trust-image,
  .page-huong-dan-choi__promo-image img,
  .page-huong-dan-choi__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Exception for __icon-box-media img is handled by object-fit: cover */
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__icon-box-media {
    width: 120px !important;
    height: 120px !important;
    border: 3px solid var(--dabet-secondary) !important;
    box-shadow: 0 0 0 6px var(--dabet-glow) !important;
  }

  .page-huong-dan-choi__hero-image,
  .page-huong-dan-choi__promo-image,
  .page-huong-dan-choi__game-panel-content,
  .page-huong-dan-choi__trust-grid,
  .page-huong-dan-choi__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}