/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F4F7FB; /* Body background color */
  line-height: 1.6;
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB;
  text-align: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image {
  margin-bottom: 20px;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__hero-content {
  padding-bottom: 40px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: #1F2D3D;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tai-xiu__intro-text {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tai-xiu__cta-buttons--center {
  justify-content: center;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__btn-secondary:hover {
  background: #f0f5ff;
  color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__content-section {
  padding: 60px 0;
}

.page-tai-xiu__dark-section {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title,
.page-tai-xiu__dark-section .page-tai-xiu__text-block,
.page-tai-xiu__dark-section .page-tai-xiu__card-title,
.page-tai-xiu__dark-section .page-tai-xiu__card-text,
.page-tai-xiu__dark-section .page-tai-xiu__list-item {
  color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
  color: #ffffff;
}

.page-tai-xiu__sub-title {
  font-size: 1.6em;
  color: #1F2D3D;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tai-xiu__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-tai-xiu__list-item {
  margin-bottom: 10px;
  line-height: 1.7;
}

.page-tai-xiu__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-tai-xiu__card {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  color: #1F2D3D;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333333;
}

.page-tai-xiu__dark-section .page-tai-xiu__card-title {
  color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__card-text {
  color: #f0f0f0;
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #1F2D3D;
  cursor: pointer;
  background-color: #f8faff;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
  background-color: #e0e9ff;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-question::marker {
  display: none;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-tai-xiu__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-tai-xiu__text-center {
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 15px;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Still small top padding */
  }

  .page-tai-xiu__main-title {
    font-size: 2em !important;
    margin-bottom: 10px;
  }

  .page-tai-xiu__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__content-section {
    padding: 40px 0;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.4em;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu__card-text {
    font-size: 0.95em;
  }

  .page-tai-xiu__image-full-width,
  .page-tai-xiu__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__card-title {
    font-size: 1.2em;
  }

  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Ensure all content containers are responsive */
  .page-tai-xiu__hero-section,
  .page-tai-xiu__content-section,
  .page-tai-xiu__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* General image rules for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure all sections and divs containing images have proper padding/width */
  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}