/* Base styles for the page */
.page-cong-cu-du-doan-ty-so {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF1E8); /* Default text color for dark body background */
  background-color: var(--background-color, #140C0C); /* Default background color */
}

.page-cong-cu-du-doan-ty-so__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-cong-cu-du-doan-ty-so__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-cong-cu-du-doan-ty-so__dark-bg {
  background-color: var(--background-color, #140C0C);
  color: var(--text-main, #FFF1E8);
}

.page-cong-cu-du-doan-ty-so__light-bg {
  background-color: #f8f8f8;
  color: #333333; /* Dark text for light background */
}

.page-cong-cu-du-doan-ty-so__dark-section {
  background-color: var(--deep-red, #7E0D0D);
  color: #ffffff;
}

.page-cong-cu-du-doan-ty-so__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so p {
  margin-bottom: 15px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so ol {
  list-style: decimal inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so li {
  margin-bottom: 8px;
  color: inherit;
}

.page-cong-cu-du-doan-ty-so strong {
  font-weight: bold;
}

/* Hero Section */
.page-cong-cu-du-doan-ty-so__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cong-cu-du-doan-ty-so__hero-image {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

.page-cong-cu-du-doan-ty-so__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cong-cu-du-doan-ty-so__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  color: var(--text-main, #FFF1E8);
}

.page-cong-cu-du-doan-ty-so__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--gold, #F3C54D);
}

.page-cong-cu-du-doan-ty-so__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main, #FFF1E8);
}

/* CTA Buttons */
.page-cong-cu-du-doan-ty-so__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-cong-cu-du-doan-ty-so__btn-primary,
.page-cong-cu-du-doan-ty-so__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cong-cu-du-doan-ty-so__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
}

.page-cong-cu-du-doan-ty-so__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cong-cu-du-doan-ty-so__btn-secondary {
  background: transparent;
  color: var(--gold, #F3C54D);
  border: 2px solid var(--gold, #F3C54D);
}

.page-cong-cu-du-doan-ty-so__btn-secondary:hover {
  background: var(--gold, #F3C54D);
  color: var(--deep-red, #7E0D0D);
  transform: translateY(-2px);
}

/* Benefits Section */
.page-cong-cu-du-doan-ty-so__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cong-cu-du-doan-ty-so__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-cong-cu-du-doan-ty-so__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--deep-red, #7E0D0D);
}

/* Types Section */
.page-cong-cu-du-doan-ty-so__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cong-cu-du-doan-ty-so__type-item {
  background-color: var(--card-bg, #2A1212);
  color: var(--text-main, #FFF1E8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-cong-cu-du-doan-ty-so__type-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cong-cu-du-doan-ty-so__type-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--gold, #F3C54D);
}

.page-cong-cu-du-doan-ty-so__type-item p {
  padding: 0 15px 20px;
  font-size: 16px;
  flex-grow: 1;
}

/* How It Works Section */
.page-cong-cu-du-doan-ty-so__content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
  align-items: flex-start;
}

.page-cong-cu-du-doan-ty-so__text-block {
  text-align: left;
  color: #333333;
}

.page-cong-cu-du-doan-ty-so__text-block h3 {
  color: var(--deep-red, #7E0D0D);
}

.page-cong-cu-du-doan-ty-so__text-block ul {
  list-style: disc;
  padding-left: 20px;
}

.page-cong-cu-du-doan-ty-so__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Odds Role Section */
.page-cong-cu-du-doan-ty-so__content-flex {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.page-cong-cu-du-doan-ty-so__content-flex .page-cong-cu-du-doan-ty-so__text-block {
  flex: 1;
  color: #ffffff;
}

.page-cong-cu-du-doan-ty-so__content-flex .page-cong-cu-du-doan-ty-so__text-block h3 {
  color: var(--gold, #F3C54D);
}

.page-cong-cu-du-doan-ty-so__image-block--right {
  flex-shrink: 0;
  width: 400px;
}

/* Guide Section */
.page-cong-cu-du-doan-ty-so__guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cong-cu-du-doan-ty-so__guide-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  padding-left: 80px;
}

.page-cong-cu-du-doan-ty-so__guide-number {
  position: absolute;
  left: 30px;
  top: 30px;
  font-size: 36px;
  font-weight: bold;
  color: var(--deep-red, #7E0D0D);
  line-height: 1;
}

.page-cong-cu-du-doan-ty-so__guide-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--deep-red, #7E0D0D);
}

.page-cong-cu-du-doan-ty-so__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Notes Section */
.page-cong-cu-du-doan-ty-so__notes-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-cong-cu-du-doan-ty-so__notes-list li {
  background-color: var(--card-bg, #2A1212);
  color: var(--text-main, #FFF1E8);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-cong-cu-du-doan-ty-so__notes-list li p {
  margin: 0;
}

/* FAQ Section */
details.page-cong-cu-du-doan-ty-so__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: #fff;
}
details.page-cong-cu-du-doan-ty-so__faq-item summary.page-cong-cu-du-doan-ty-so__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;
  background-color: #ffffff;
  color: #333333;
}
details.page-cong-cu-du-doan-ty-so__faq-item summary.page-cong-cu-du-doan-ty-so__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cong-cu-du-doan-ty-so__faq-item summary.page-cong-cu-du-doan-ty-so__faq-question:hover {
  background: #f5f5f5;
}
.page-cong-cu-du-doan-ty-so__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-cong-cu-du-doan-ty-so__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cong-cu-du-doan-ty-so__faq-item .page-cong-cu-du-doan-ty-so__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Conclusion Section */
.page-cong-cu-du-doan-ty-so__conclusion-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-cong-cu-du-doan-ty-so__conclusion-section .page-cong-cu-du-doan-ty-so__section-title,
.page-cong-cu-du-doan-ty-so__conclusion-section .page-cong-cu-du-doan-ty-so__section-description {
  color: var(--text-main, #FFF1E8);
}

/* General image responsive styles */
.page-cong-cu-du-doan-ty-so img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cong-cu-du-doan-ty-so__hero-image {
    height: 500px;
  }
  .page-cong-cu-du-doan-ty-so__main-title {
    font-size: 48px;
  }
  .page-cong-cu-du-doan-ty-so__section-title {
    font-size: 32px;
  }
  .page-cong-cu-du-doan-ty-so__sub-title {
    font-size: 22px;
  }
  .page-cong-cu-du-doan-ty-so__content-grid {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
  .page-cong-cu-du-doan-ty-so__image-block--right {
    width: 300px;
  }
  .page-cong-cu-du-doan-ty-so__content-flex {
    flex-direction: column;
    align-items: center;
  }
  .page-cong-cu-du-doan-ty-so__image-block--right {
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cong-cu-du-doan-ty-so__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }
  .page-cong-cu-du-doan-ty-so__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }
  .page-cong-cu-du-doan-ty-so__hero-image img {
    object-fit: contain !important; /* Mobile: prevent cropping */
    aspect-ratio: unset !important;
  }
  .page-cong-cu-du-doan-ty-so__hero-content {
    padding: 0 15px;
  }
  .page-cong-cu-du-doan-ty-so__main-title {
    font-size: clamp(32px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-cong-cu-du-doan-ty-so__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-cong-cu-du-doan-ty-so__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  /* General sections and containers */
  .page-cong-cu-du-doan-ty-so__section {
    padding: 40px 0;
  }
  .page-cong-cu-du-doan-ty-so__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Decorative title + Long text SEO area */
  .page-cong-cu-du-doan-ty-so__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 15px;
  }
  .page-cong-cu-du-doan-ty-so__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cong-cu-du-doan-ty-so__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-cong-cu-du-doan-ty-so__text-block, .page-cong-cu-du-doan-ty-so p, .page-cong-cu-du-doan-ty-so li {
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
  }

  /* Product display area (general grid/card responsiveness) */
  .page-cong-cu-du-doan-ty-so__benefits-grid,
  .page-cong-cu-du-doan-ty-so__types-grid,
  .page-cong-cu-du-doan-ty-so__guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-cong-cu-du-doan-ty-so__card,
  .page-cong-cu-du-doan-ty-so__type-item,
  .page-cong-cu-du-doan-ty-so__guide-item {
    padding: 20px;
    width: 100%;
    box-sizing: border-box !important;
  }
  .page-cong-cu-du-doan-ty-so__card-title,
  .page-cong-cu-du-doan-ty-so__type-title {
    font-size: 20px;
  }
  .page-cong-cu-du-doan-ty-so__type-item img {
    height: 200px;
  }
  .page-cong-cu-du-doan-ty-so__guide-item {
    padding-left: 60px;
  }
  .page-cong-cu-du-doan-ty-so__guide-number {
    font-size: 30px;
    left: 20px;
    top: 20px;
  }

  /* How it works section */
  .page-cong-cu-du-doan-ty-so__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-cong-cu-du-doan-ty-so__image-block {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Odds Role Section */
  .page-cong-cu-du-doan-ty-so__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-cong-cu-du-doan-ty-so__image-block--right {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Notes Section */
  .page-cong-cu-du-doan-ty-so__notes-list li {
    padding: 20px;
  }

  /* FAQ Section */
  details.page-cong-cu-du-doan-ty-so__faq-item summary.page-cong-cu-du-doan-ty-so__faq-question { padding: 15px; }
  .page-cong-cu-du-doan-ty-so__faq-qtext { font-size: 15px; }
  details.page-cong-cu-du-doan-ty-so__faq-item .page-cong-cu-du-doan-ty-so__faq-answer { padding: 0 15px 15px; }

  /* Universal image and container sizing for mobile */
  .page-cong-cu-du-doan-ty-so img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-cong-cu-du-doan-ty-so__section, .page-cong-cu-du-doan-ty-so__card, .page-cong-cu-du-doan-ty-so__container, .page-cong-cu-du-doan-ty-so__hero-section,
  .page-cong-cu-du-doan-ty-so__benefits-section, .page-cong-cu-du-doan-ty-so__types-section, .page-cong-cu-du-doan-ty-so__how-it-works-section, .page-cong-cu-du-doan-ty-so__odds-role-section,
  .page-cong-cu-du-doan-ty-so__guide-section, .page-cong-cu-du-doan-ty-so__notes-section, .page-cong-cu-du-doan-ty-so__faq-section, .page-cong-cu-du-doan-ty-so__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cong-cu-du-doan-ty-so__hero-section {
      padding-left: 0;
      padding-right: 0;
  }
  .page-cong-cu-du-doan-ty-so__hero-image {
      padding-left: 0;
      padding-right: 0;
  }

  /* Buttons responsive styles */
  .page-cong-cu-du-doan-ty-so__btn-primary,
  .page-cong-cu-du-doan-ty-so__btn-secondary,
  .page-cong-cu-du-doan-ty-so a[class*="button"],
  .page-cong-cu-du-doan-ty-so 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;
    padding-right: 15px;
  }
  .page-cong-cu-du-doan-ty-so__cta-buttons,
  .page-cong-cu-du-doan-ty-so__button-group,
  .page-cong-cu-du-doan-ty-so__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-cong-cu-du-doan-ty-so__cta-buttons {
    flex-direction: column;
  }
  .page-cong-cu-du-doan-ty-so__cta-bottom {
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box;
  }
  .page-cong-cu-du-doan-ty-so__cta-bottom .page-cong-cu-du-doan-ty-so__btn-primary {
      width: 100%;
  }
}

/* Color Contrast Fixes (as per requirements) */
.page-cong-cu-du-doan-ty-so__text-contrast-fix {
  color: var(--text-main, #FFF1E8) !important;
  text-shadow: none !important;
}

/* Ensure proper contrast for light background sections */
.page-cong-cu-du-doan-ty-so__light-bg .page-cong-cu-du-doan-ty-so__section-title,
.page-cong-cu-du-doan-ty-so__light-bg .page-cong-cu-du-doan-ty-so__section-description,
.page-cong-du-doan-ty-so__light-bg .page-cong-cu-du-doan-ty-so__card-title,
.page-cong-cu-du-doan-ty-so__light-bg .page-cong-cu-du-doan-ty-so__guide-title,
.page-cong-cu-du-doan-ty-so__light-bg p,
.page-cong-cu-du-doan-ty-so__light-bg li {
  color: #333333; /* Ensure dark text on light background */
}
.page-cong-cu-du-doan-ty-so__light-bg .page-cong-cu-du-doan-ty-so__sub-title {
  color: var(--deep-red, #7E0D0D);
}