.page-huong-dan {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-huong-dan__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  overflow: hidden;
  background-color: #140C0C; /* Background */
}

.page-huong-dan__hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

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

.page-huong-dan__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 50px; /* Space from top */
  margin-bottom: 50px;
}

.page-huong-dan__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-huong-dan__hero-description {
  font-size: 1.2rem;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 30px;
}

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

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

.page-huong-dan__btn-primary,
.page-huong-dan__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits */
}

.page-huong-dan__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button custom color */
  color: #140C0C; /* Dark text for light button */
  border: none;
}

.page-huong-dan__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-huong-dan__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-huong-dan__btn-secondary:hover {
  background: #F3C54D; /* Gold */
  color: #140C0C; /* Dark text */
  transform: translateY(-2px);
}

.page-huong-dan__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-huong-dan__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF1E8; /* Text Main */
}

.page-huong-dan__text-block a {
  color: #FFB04A; /* Highlight links */
  text-decoration: none;
  font-weight: bold;
}

.page-huong-dan__text-block a:hover {
  text-decoration: underline;
}

.page-huong-dan__introduction-section,
.page-huong-dan__deposit-guide,
.page-huong-dan__promotions-guide,
.page-huong-dan__faq-section {
  background-color: #140C0C; /* Background, use dark background for light text */
  padding: 60px 0;
  color: #FFF1E8; /* Text Main */
}

.page-huong-dan__how-to-register,
.page-huong-dan__withdraw-guide,
.page-huong-dan__betting-tips,
.page-huong-dan__conclusion-section {
  background-color: #2A1212; /* Card BG, a darker shade for contrast */
  padding: 60px 0;
  color: #FFF1E8; /* Text Main */
}

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

.page-huong-dan__step-card {
  background: #140C0C; /* Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-huong-dan__step-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-huong-dan__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFB04A; /* Button gradient start color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-huong-dan__step-card p {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  text-align: justify;
}

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

.page-huong-dan__tip-item {
  background: #140C0C; /* Background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-huong-dan__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFB04A; /* Button gradient start color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-huong-dan__tip-item p {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  text-align: justify;
}

/* FAQ styles */
details.page-huong-dan__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8;
}
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: #7E0D0D; /* Deep Red for hover */
}
.page-huong-dan__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold */
}
.page-huong-dan__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* 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: #140C0C; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Text Main */
}

/* General image styling for content sections */
.page-huong-dan img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-dan__hero-content {
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .page-huong-dan__main-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
  }
  .page-huong-dan__hero-description {
    font-size: 1.1rem;
  }
  .page-huong-dan__btn-primary,
  .page-huong-dan__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-huong-dan__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }
  .page-huong-dan__text-block {
    font-size: 1rem;
  }
  .page-huong-dan__steps-grid,
  .page-huong-dan__tips-list {
    gap: 20px;
  }
  .page-huong-dan__step-card,
  .page-huong-dan__tip-item {
    padding: 25px;
  }
  .page-huong-dan__step-title {
    font-size: 1.3rem;
  }
  .page-huong-dan__tip-title {
    font-size: 1.2rem;
  }
  .page-huong-dan__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-huong-dan__hero-section {
    min-height: 400px;
    padding-top: 10px; /* Still small top padding */
  }
  .page-huong-dan__hero-image img {
    object-fit: contain !important; /* Mobile: contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-huong-dan__hero-content {
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: calc(100% - 30px); /* Adjust for padding */
  }
  .page-huong-dan__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for mobile */
  }
  .page-huong-dan__hero-description {
    font-size: 1rem;
  }
  .page-huong-dan__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to buttons container */
  }
  .page-huong-dan__btn-primary,
  .page-huong-dan__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-huong-dan__container {
    padding: 0 15px; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-huong-dan__text-block {
    font-size: 0.95rem;
    text-align: left;
  }

  .page-huong-dan__steps-grid,
  .page-huong-dan__tips-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-huong-dan__step-card,
  .page-huong-dan__tip-item {
    padding: 20px;
    min-height: unset; /* Remove min-height for mobile cards */
  }
  .page-huong-dan__step-card img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-huong-dan__faq-section {
    overflow-x: hidden;
  }
  details.page-huong-dan__faq-item summary.page-huong-dan__faq-question { padding: 15px; }
  .page-huong-dan__faq-qtext { font-size: 1rem; }
  .page-huong-dan__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-huong-dan__faq-item .page-huong-dan__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all content images are responsive */
  .page-huong-dan img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-huong-dan__introduction-section,
  .page-huong-dan__how-to-register,
  .page-huong-dan__deposit-guide,
  .page-huong-dan__withdraw-guide,
  .page-huong-dan__promotions-guide,
  .page-huong-dan__betting-tips,
  .page-huong-dan__faq-section,
  .page-huong-dan__conclusion-section {
    padding: 40px 0; /* Adjust section padding */
  }
}