/* 智能文字颜色选择器 - Sử dụng màu chữ phù hợp với độ sáng nền */
.page-huong-dan-choi__dark-bg {
  color: #ffffff; /* Nền tối, chữ sáng */
}

.page-huong-dan-choi__light-bg {
  color: #333333; /* Nền sáng, chữ tối */
}

.page-huong-dan-choi__medium-bg {
  color: #000000; /* Nền trung bình, chữ tối */
}

/* Chính văn nội dung - Ưu tiên cao nhất */
.page-huong-dan-choi__content-area,
.page-huong-dan-choi__text-block {
  color: #333333; /* Đảm bảo dễ đọc trên hầu hết các nền */
  background: #ffffff; /* Nền trắng mặc định */
}

/* Đoạn văn và mục danh sách trong vùng nội dung */
.page-huong-dan-choi p,
.page-huong-dan-choi li {
  color: #333333; /* Đảm bảo dễ đọc trên hầu hết các nền */
}

/* Thẻ và container - Lựa chọn nền thông minh */
.page-huong-dan-choi__card {
  background: #ffffff; /* Ưu tiên nền trắng để đảm bảo dễ đọc */
  color: #333333;
  border: 1px solid #e0e0e0; /* Thêm viền để tăng cường dễ đọc */
}

/* Xử lý đặc biệt cho vùng tối */
.page-huong-dan-choi__dark-section {
  background: #E53935;
  color: #ffffff; /* Chữ trắng bắt buộc */
}

/* Đảm bảo độ tương phản cho văn bản nút */
.page-huong-dan-choi__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff; /* Văn bản nút luôn dùng màu trắng */
  border: 2px solid transparent;
}

.page-huong-dan-choi__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Sử dụng màu thương hiệu để đảm bảo độ tương phản */
  border: 2px solid #E53935;
}

/* Sửa lỗi độ tương phản khẩn cấp */
.page-huong-dan-choi__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-huong-dan-choi__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

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

.page-huong-dan-choi__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  background-color: #F5F7FA;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-huong-dan-choi__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-huong-dan-choi__hero-content {
  max-width: 900px;
  padding: 0 20px 40px;
}

.page-huong-dan-choi__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: bold;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-huong-dan-choi__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

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

.page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-huong-dan-choi__btn-secondary {
  color: #E53935;
  background: #FFFFFF;
  border: 2px solid #E53935;
}

.page-huong-dan-choi__btn-secondary:hover {
  background: #E53935;
  color: #FFFFFF;
}

.page-huong-dan-choi__btn--center {
  margin: 30px auto 0 auto;
  display: block;
  width: fit-content;
}

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

.page-huong-dan-choi__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-huong-dan-choi__content-block {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.page-huong-dan-choi__sub-title {
  font-size: 1.8em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-huong-dan-choi__content-block p,
.page-huong-dan-choi__content-block ul,
.page-huong-dan-choi__content-block ol {
  margin-bottom: 15px;
  color: #333333;
}

.page-huong-dan-choi__content-block ul li,
.page-huong-dan-choi__content-block ol li {
  margin-bottom: 8px;
  padding-left: 10px;
}

.page-huong-dan-choi__content-block a {
  color: #E53935;
  text-decoration: none;
}

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

.page-huong-dan-choi__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-huong-dan-choi__image--left {
  float: left;
  margin-right: 30px;
  width: 40%;
  max-width: 400px;
}

.page-huong-dan-choi__image--right {
  float: right;
  margin-left: 30px;
  width: 40%;
  max-width: 400px;
}

.page-huong-dan-choi__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  max-width: 800px;
}

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

.page-huong-dan-choi__faq-item {
  background: #F5F7FA;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px 20px;
  border: 1px solid #E0E0E0;
}

.page-huong-dan-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none;
}

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

.page-huong-dan-choi__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-huong-dan-choi__faq-toggle {
  font-size: 1.5em;
  color: #E53935;
  margin-left: 10px;
  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-top: 15px;
  color: #555555;
  font-size: 0.95em;
}

.page-huong-dan-choi__introduction .page-huong-dan-choi__content-block ul li::before,
.page-huong-dan-choi__registration .page-huong-dan-choi__content-block ul li::before,
.page-huong-dan-choi__deposit .page-huong-dan-choi__content-block ul li::before,
.page-huong-dan-choi__withdrawal .page-huong-dan-choi__content-block ul li::before,
.page-huong-dan-choi__app-download .page-huong-dan-choi__content-block ul li::before {
  content: '✔';
  color: #E53935;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Clear floats for image alignment */
.page-huong-dan-choi__content-block::after {
  content: '';
  display: table;
  clear: both;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-huong-dan-choi__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-huong-dan-choi__section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-huong-dan-choi__image--left,
  .page-huong-dan-choi__image--right {
    width: 45%;
    max-width: none;
  }
  .page-huong-dan-choi__image--center {
    width: 90%;
  }
  .page-huong-dan-choi__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }
  .page-huong-dan-choi__section-title {
    font-size: 2em;
  }
  .page-huong-choi__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-huong-dan-choi {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-huong-dan-choi__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-huong-dan-choi__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-huong-dan-choi__hero-content {
    padding: 0 15px 30px;
  }

  .page-huong-dan-choi__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 10px;
  }

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

  .page-huong-dan-choi__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-huong-dan-choi__btn-primary,
  .page-huong-dan-choi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-huong-dan-choi__btn--center {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-huong-dan-choi__section {
    margin-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-huong-dan-choi__content-block {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

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

  .page-huong-dan-choi__image--left,
  .page-huong-dan-choi__image--right {
    float: none;
    margin: 0 auto 20px auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-huong-dan-choi__image--center {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  .page-huong-dan-choi__faq-item {
    padding: 12px 15px;
  }

  .page-huong-dan-choi__faq-qtext {
    font-size: 1em;
  }

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

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

  .page-huong-dan-choi__section,
  .page-huong-dan-choi__card,
  .page-huong-dan-choi__container,
  .page-huong-dan-choi__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* No slider/masonry specific CSS as this is not a homepage */
}