/* Base styles for the huong-dan page */
.page-huong-dan {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--color-deep-navy); /* Body background from shared.css */
}

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

.page-huong-dan__section {
  padding: 60px 0;
  text-align: center;
}

.page-huong-dan__section--gioi-thieu,
.page-huong-dan__section--nap-rut,
.page-huong-dan__section--game-noi-bat,
.page-huong-dan__section--bao-mat,
.page-huong-dan__section--ket-luan {
  background-color: #10233F; /* Card BG as light background for contrast */
  color: var(--text-main);
}

.page-huong-dan__section--dang-ky,
.page-huong-dan__section--tham-gia,
.page-huong-dan__section--meo-chien-thang,
.page-huong-dan__section--faq {
  background-color: var(--color-deep-navy);
  color: var(--text-main);
}

.page-huong-dan__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-huong-dan__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-huong-dan__sub-title {
  font-size: clamp(1.5em, 2.5vw, 2em);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-huong-dan__intro-text,
.page-huong-dan__text-block,
.page-huong-dan__ordered-list,
.page-huong-dan__unordered-list,
.page-huong-dan__card-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-huong-dan__ordered-list,
.page-huong-dan__unordered-list {
  text-align: left;
  padding-left: 40px;
  margin-bottom: 20px;
}

.page-huong-dan__ordered-list li,
.page-huong-dan__unordered-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-huong-dan__ordered-list li strong,
.page-huong-dan__unordered-list li strong {
  color: var(--text-main);
}

.page-huong-dan__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-huong-dan__hero-image {
  width: 100%;
  height: 600px;
  position: relative;
  z-index: 1;
}

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

.page-huong-dan__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: rgba(16, 35, 63, 0.9); /* Card BG with slight transparency */
  border-radius: 10px;
  margin-top: -100px; /* Overlap with image for visual effect */
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-huong-dan__btn-primary,
.page-huong-dan__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-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.page-huong-dan__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-huong-dan__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-huong-dan__btn-secondary {
  background-color: transparent;
  color: #F3F8FF;
  border: 2px solid #244D84; /* Border color */
}

.page-huong-dan__btn-secondary:hover {
  background-color: rgba(36, 77, 132, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
}

.page-huong-dan__image-centered {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-huong-dan__game-card {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

.page-huong-dan__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider);
}

.page-huong-dan__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold);
  padding: 15px 20px 0;
}

.page-huong-dan__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-huong-dan__card-title a:hover {
  text-decoration: underline;
}

.page-huong-dan__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  padding: 0 20px 15px;
  flex-grow: 1;
  text-align: left;
}

.page-huong-dan__card-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-huong-dan__card-link:hover {
  background-color: var(--secondary-color);
}

/* FAQ Section Styles */
details.page-huong-dan__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-b-g);
  color: var(--text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
details.page-huong-dan__faq-item summary.page-huong-dan__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__faq-item summary.page-huong-dan__faq-question::-webkit-details-marker {
  display: none;
}
details.page-huong-dan__faq-item summary.page-huong-dan__faq-question:hover {
  background: rgba(var(--primary-color-rgb), 0.1);
}
.page-huong-dan__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-huong-dan__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-huong-dan__faq-item .page-huong-dan__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--color-deep-navy-rgb), 0.5);
  border-radius: 0 0 5px 5px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-huong-dan__hero-content {
    margin-top: -80px;
  }
  .page-huong-dan__section {
    padding: 40px 0;
  }
  .page-huong-dan__main-title {
    font-size: 3em;
  }
  .page-huong-dan__section-title {
    font-size: 2.2em;
  }
  .page-huong-dan__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-huong-dan__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-huong-dan__hero-image {
    height: 400px;
  }
  .page-huong-dan__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-huong-dan__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-huong-dan__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-huong-dan__intro-text {
    font-size: 1em;
    text-align: center;
  }
  .page-huong-dan__section {
    padding: 30px 0;
  }
  .page-huong-dan__container {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .page-huong-dan__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 20px;
  }
  .page-huong-dan__sub-title {
    font-size: clamp(1.3em, 5vw, 1.6em);
    text-align: center;
  }
  .page-huong-dan__text-block,
  .page-huong-dan__ordered-list,
  .page-huong-dan__unordered-list {
    font-size: 0.95em;
    text-align: left;
    padding-left: 20px;
  }
  .page-huong-dan__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-huong-dan__btn-primary,
  .page-huong-dan__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-huong-dan__image-centered {
    margin: 20px auto;
  }
  .page-huong-dan__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-huong-dan__game-card {
    margin-left: auto;
    margin-right: auto;
  }
  details.page-huong-dan__faq-item summary.page-huong-dan__faq-question { padding: 15px; }
  .page-huong-dan__faq-qtext { font-size: 15px; }
  details.page-huong-dan__faq-item .page-huong-dan__faq-answer {
    padding: 0 15px 15px;
  }
  .page-huong-dan img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}