/* style/tai-xiu-chien-thuat-choi.css */

/* Base styles for the page content */
.page-tai-xiu-chien-thuat-choi {
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for consistent spacing */
.page-tai-xiu-chien-thuat-choi__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Section Titles */
.page-tai-xiu-chien-thuat-choi__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F3C54D; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-tai-xiu-chien-thuat-choi__subsection-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFB04A; /* Lighter gold for sub-titles */
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Text Blocks */
.page-tai-xiu-chien-thuat-choi__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Lists */
.page-tai-xiu-chien-thuat-choi__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-tai-xiu-chien-thuat-choi__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Images in content */
.page-tai-xiu-chien-thuat-choi__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-tai-xiu-chien-thuat-choi__btn-primary,
.page-tai-xiu-chien-thuat-choi__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-tai-xiu-chien-thuat-choi__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8;
  border: none;
}

.page-tai-xiu-chien-thuat-choi__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tai-xiu-chien-thuat-choi__btn-secondary {
  background: transparent;
  color: #FFB04A;
  border: 2px solid #FFB04A;
}

.page-tai-xiu-chien-thuat-choi__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C;
}

/* Hero Section */
.page-tai-xiu-chien-thuat-choi__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  background-color: #140C0C; /* Matches page background */
  position: relative;
  overflow: hidden;
}

.page-tai-xiu-chien-thuat-choi__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu-chien-thuat-choi__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-tai-xiu-chien-thuat-choi__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: bold;
  color: #F3C54D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu-chien-thuat-choi__hero-description {
  font-size: 1.1rem;
  color: #FFF1E8;
  margin-bottom: 30px;
}

.page-tai-xiu-chien-thuat-choi__hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-tai-xiu-chien-thuat-choi__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu-chien-thuat-choi__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Guide Section (main content) */
.page-tai-xiu-chien-thuat-choi__guide-section {
  background-color: #2A1212; /* Card BG color for this section */
  padding: 60px 0;
}

/* Strategy Cards Grid */
.page-tai-xiu-chien-thuat-choi__strategies-section {
  padding: 60px 0;
}

.page-tai-xiu-chien-thuat-choi__strategy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu-chien-thuat-choi__strategy-card {
  background-color: #2A1212; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-tai-xiu-chien-thuat-choi__card-title {
  font-size: 1.5rem;
  color: #FFB04A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu-chien-thuat-choi__card-description {
  font-size: 1rem;
  color: #FFF1E8;
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take available space */
}

.page-tai-xiu-chien-thuat-choi__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content varies */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu-chien-thuat-choi__cta-block {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #2A1212;
  border-radius: 12px;
}

.page-tai-xiu-chien-thuat-choi__cta-text {
  font-size: 1.5rem;
  color: #F3C54D;
  margin-bottom: 30px;
  font-weight: bold;
}

/* Why jn88 Section */
.page-tai-xiu-chien-thuat-choi__why-jn88-section {
  background-color: #140C0C; /* Background color */
  padding: 60px 0;
}

.page-tai-xiu-chien-thuat-choi__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu-chien-thuat-choi__feature-item {
  background-color: #2A1212; /* Card BG color */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu-chien-thuat-choi__feature-title {
  font-size: 1.3rem;
  color: #FFB04A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-tai-xiu-chien-thuat-choi__feature-description {
  font-size: 0.95rem;
  color: #FFF1E8;
}

/* FAQ Section */
.page-tai-xiu-chien-thuat-choi__faq-section {
  background-color: #2A1212; /* Card BG color for this section */
  padding: 60px 0;
}

.page-tai-xiu-chien-thuat-choi__faq-list {
  margin-top: 40px;
}

.page-tai-xiu-chien-thuat-choi__faq-item {
  background-color: #140C0C; /* Background color */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu-chien-thuat-choi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFF1E8;
  cursor: pointer;
  background-color: #140C0C; /* Background color */
  transition: background-color 0.3s ease;
}

.page-tai-xiu-chien-thuat-choi__faq-question:hover {
  background-color: #2A1212; /* Card BG color on hover */
}

/* Hide default details marker */
.page-tai-xiu-chien-thuat-choi__faq-item summary::-webkit-details-marker,
.page-tai-xiu-chien-thuat-choi__faq-item summary::marker {
  display: none;
}

.page-tai-xiu-chien-thuat-choi__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu-chien-thuat-choi__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFB04A;
}

.page-tai-xiu-chien-thuat-choi__faq-item[open] .page-tai-xiu-chien-thuat-choi__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-tai-xiu-chien-thuat-choi__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  color: #FFF1E8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tai-xiu-chien-thuat-choi__faq-item[open] .page-tai-xiu-chien-thuat-choi__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

/* Final CTA Section */
.page-tai-xiu-chien-thuat-choi__final-cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-tai-xiu-chien-thuat-choi__final-cta-section .page-tai-xiu-chien-thuat-choi__section-title {
  margin-bottom: 20px;
}

.page-tai-xiu-chien-thuat-choi__final-cta-section .page-tai-xiu-chien-thuat-choi__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.page-tai-xiu-chien-thuat-choi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tai-xiu-chien-thuat-choi__section-title {
    font-size: 2.2rem;
  }
  .page-tai-xiu-chien-thuat-choi__subsection-title {
    font-size: 1.6rem;
  }
  .page-tai-xiu-chien-thuat-choi__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-tai-xiu-chien-thuat-choi__hero-content {
    text-align: center;
  }
  .page-tai-xiu-chien-thuat-choi__hero-cta {
    justify-content: center;
  }
  .page-tai-xiu-chien-thuat-choi__strategy-card-grid,
  .page-tai-xiu-chien-thuat-choi__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-tai-xiu-chien-thuat-choi__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-tai-xiu-chien-thuat-choi__hero-container {
    padding: 20px 15px;
  }
  .page-tai-xiu-chien-thuat-choi__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 size for mobile */
    margin-bottom: 15px;
  }
  .page-tai-xiu-chien-thuat-choi__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-tai-xiu-chien-thuat-choi__hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add horizontal padding to CTA container */
  }
  .page-tai-xiu-chien-thuat-choi__btn-primary,
  .page-tai-xiu-chien-thuat-choi__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* General Section Spacing and Titles */
  .page-tai-xiu-chien-thuat-choi__container {
    padding: 30px 15px;
  }
  .page-tai-xiu-chien-thuat-choi__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-tai-xiu-chien-thuat-choi__subsection-title {
    font-size: 1.4rem;
  }

  /* Guide and Strategy Sections */
  .page-tai-xiu-chien-thuat-choi__guide-section,
  .page-tai-xiu-chien-thuat-choi__strategies-section,
  .page-tai-xiu-chien-thuat-choi__why-jn88-section,
  .page-tai-xiu-chien-thuat-choi__faq-section,
  .page-tai-xiu-chien-thuat-choi__final-cta-section {
    padding: 40px 0;
  }

  /* Strategy Cards Grid */
  .page-tai-xiu-chien-thuat-choi__strategy-card-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-tai-xiu-chien-thuat-choi__strategy-card {
    padding: 20px;
  }
  .page-tai-xiu-chien-thuat-choi__card-title {
    font-size: 1.3rem;
  }
  .page-tai-xiu-chien-thuat-choi__cta-block {
    margin-top: 40px;
    padding: 30px 15px;
  }
  .page-tai-xiu-chien-thuat-choi__cta-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  /* Why jn88 Section */
  .page-tai-xiu-chien-thuat-choi__features-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-tai-xiu-chien-thuat-choi__feature-item {
    padding: 20px;
  }
  .page-tai-xiu-chien-thuat-choi__feature-title {
    font-size: 1.2rem;
  }

  /* FAQ Section */
  .page-tai-xiu-chien-thuat-choi__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-tai-xiu-chien-thuat-choi__faq-toggle {
    font-size: 1.3rem;
  }
  .page-tai-xiu-chien-thuat-choi__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Final CTA Section */
  .page-tai-xiu-chien-thuat-choi__final-cta-section .page-tai-xiu-chien-thuat-choi__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-tai-xiu-chien-thuat-choi__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add horizontal padding to CTA container */
  }

  /* Universal Image Responsive */
  .page-tai-xiu-chien-thuat-choi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images or content */
  .page-tai-xiu-chien-thuat-choi__section,
  .page-tai-xiu-chien-thuat-choi__card,
  .page-tai-xiu-chien-thuat-choi__container,
  .page-tai-xiu-chien-thuat-choi__hero-container,
  .page-tai-xiu-chien-thuat-choi__strategy-card,
  .page-tai-xiu-chien-thuat-choi__feature-item,
  .page-tai-xiu-chien-thuat-choi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}