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

.page-luat-choi-da-ga-thom {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
}

.page-luat-choi-da-ga-thom__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-luat-choi-da-ga-thom__hero-section {
  padding-top: 10px; /* Fixed header spacing */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--background-color);
}

.page-luat-choi-da-ga-thom__hero-content {
  padding: 20px 0;
}

.page-luat-choi-da-ga-thom__main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.page-luat-choi-da-ga-thom__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--text-black);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-luat-choi-da-ga-thom__description {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-luat-choi-da-ga-thom__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-luat-choi-da-ga-thom__btn-primary,
.page-luat-choi-da-ga-thom__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 300px; /* Limit button width on desktop */
  width: 100%; /* Ensure button takes full width of max-width */
}

.page-luat-choi-da-ga-thom__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-luat-choi-da-ga-thom__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-luat-choi-da-ga-thom__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-luat-choi-da-ga-thom__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

.page-luat-choi-da-ga-thom__section {
  padding: 40px 0;
}

.page-luat-choi-da-ga-thom__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--text-black);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-luat-choi-da-ga-thom__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-luat-choi-da-ga-thom p {
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-luat-choi-da-ga-thom__subsection-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-luat-choi-da-ga-thom__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1em;
  color: var(--text-main);
}

.page-luat-choi-da-ga-thom__list li {
  margin-bottom: 8px;
}

.page-luat-choi-da-ga-thom__figure {
  margin: 30px 0;
  text-align: center;
}

.page-luat-choi-da-ga-thom__figure-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-luat-choi-da-ga-thom__figure-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.page-luat-choi-da-ga-thom__dark-bg .page-luat-choi-da-ga-thom__article-wrap {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-luat-choi-da-ga-thom__dark-bg .page-luat-choi-da-ga-thom__section-title,
.page-luat-choi-da-ga-thom__dark-bg .page-luat-choi-da-ga-thom__subsection-title,
.page-luat-choi-da-ga-thom__dark-bg p,
.page-luat-choi-da-ga-thom__dark-bg li {
  color: #ffffff;
}

.page-luat-choi-da-ga-thom__dark-bg .page-luat-choi-da-ga-thom__list li {
  color: #ffffff;
}

.page-luat-choi-da-ga-thom__promo-box {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 6px 20px rgba(111, 163, 255, 0.4);
}

.page-luat-choi-da-ga-thom__promo-title {
  font-size: clamp(1.6em, 3vw, 2.2em);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-luat-choi-da-ga-thom__promo-box p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-luat-choi-da-ga-thom__faq-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.page-luat-choi-da-ga-thom__faq-question {
  font-size: 1.2em;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-luat-choi-da-ga-thom__faq-answer {
  font-size: 1em;
  color: var(--text-main);
  padding-left: 10px;
}

.page-luat-choi-da-ga-thom__cta-bottom {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-luat-choi-da-ga-thom__last-update {
  text-align: right;
  font-size: 0.85em;
  color: #888;
  margin-top: 30px;
  font-style: italic;
}

/* Responsive styles for tablets and mobile */
@media (max-width: 1024px) {
  .page-luat-choi-da-ga-thom__main-title {
    font-size: 2.5em;
  }

  .page-luat-choi-da-ga-thom__section-title {
    font-size: 2em;
  }

  .page-luat-choi-da-ga-thom__subsection-title {
    font-size: 1.6em;
  }

  .page-luat-choi-da-ga-thom__promo-title {
    font-size: 1.8em;
  }

  .page-luat-choi-da-ga-thom__article-wrap {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-luat-choi-da-ga-thom {
    font-size: 15px;
    line-height: 1.55;
  }

  /* 1. 顶区标题 + 双 CTA */
  .page-luat-choi-da-ga-thom__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-luat-choi-da-ga-thom__main-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }

  .page-luat-choi-da-ga-thom__description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-luat-choi-da-ga-thom__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  /* 4. 按钮与按钮容器 */
  .page-luat-choi-da-ga-thom__btn-primary,
  .page-luat-choi-da-ga-thom__btn-secondary,
  .page-luat-choi-da-ga-thom a[class*="button"],
  .page-luat-choi-da-ga-thom 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 !important;
    padding-right: 15px !important;
  }
  
  .page-luat-choi-da-ga-thom__cta-buttons,
  .page-luat-choi-da-ga-thom__button-group,
  .page-luat-choi-da-ga-thom__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-luat-choi-da-ga-thom__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  .page-luat-choi-da-ga-thom__container {
    padding: 0 15px;
  }

  /* 2. 单栏长文容器 */
  .page-luat-choi-da-ga-thom__article-wrap {
    padding: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-luat-choi-da-ga-thom__section-title {
    font-size: 1.6em !important;
    margin-bottom: 20px;
  }

  .page-luat-choi-da-ga-thom__subsection-title {
    font-size: 1.3em !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-luat-choi-da-ga-thom p,
  .page-luat-choi-da-ga-thom li,
  .page-luat-choi-da-ga-thom__faq-answer {
    font-size: 0.95em !important;
  }

  .page-luat-choi-da-ga-thom__list {
    margin-left: 20px;
  }

  /* 3. 通用图片与 figure */
  .page-luat-choi-da-ga-thom img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-luat-choi-da-ga-thom__hero-image-wrap,
  .page-luat-choi-da-ga-thom__figure {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-luat-choi-da-ga-thom__promo-box {
    padding: 20px;
  }

  .page-luat-choi-da-ga-thom__promo-title {
    font-size: 1.5em !important;
    margin-bottom: 10px;
  }

  .page-luat-choi-da-ga-thom__promo-box p {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  /* 5. 注册教程与 FAQ 区块 (FAQ is h3 paragraphs here) */
  .page-luat-choi-da-ga-thom__faq-question {
    font-size: 1.1em !important;
  }
}