/* General styles for the Tài Xỉu page */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

.page-tai-xiu__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  background-color: #F0F8FF; /* Light background for hero */
  padding-top: 10px; /* Minimal top padding, assuming shared.css handles body padding */
  padding-bottom: 60px;
}

.page-tai-xiu__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
}

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for H1 */
}

.page-tai-xiu__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-tai-xiu__btn-secondary {
  background-color: #EA7C07; /* Login color for secondary CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #c76506;
  border-color: #c76506;
}

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

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

/* Intro Section (Module 1) */
.page-tai-xiu__intro-section {
  padding: 80px 0;
  background-color: #F8F8F8; /* Light background */
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-tai-xiu__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-tai-xiu__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-tai-xiu__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-tai-xiu__feature-item:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__icon-box-media {
  width: 180px; /* Smaller size for desktop, will scale up in mobile media query */
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  box-shadow: 0 0 0 8px rgba(38, 169, 224, 0.2);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-tai-xiu__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Overview Section */
.page-tai-xiu__overview-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-tai-xiu__content-area {
  line-height: 1.7;
}

.page-tai-xiu__content-area h2,
.page-tai-xiu__content-area h3 {
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-tai-xiu__content-area h2 {
  text-align: center;
  margin-bottom: 40px;
}

.page-tai-xiu__content-area h3 {
  font-size: 1.8rem;
  margin-top: 40px;
}

.page-tai-xiu__content-area p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #333333;
}

.page-tai-xiu__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-tai-xiu__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-tai-xiu__list strong {
  color: #26A9E0;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  background-color: #26A9E0; /* Dark background for tips section */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 0;
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title,
.page-tai-xiu__tips-section .page-tai-xiu__section-description {
  color: #FFFFFF; /* White text for titles/descriptions */
}

.page-tai-xiu__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-tai-xiu__tip-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__tip-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 20px;
}

.page-tai-xiu__tip-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-tai-xiu__tip-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-tai-xiu__cta-center .page-tai-xiu__btn-primary {
  background-color: #EA7C07; /* Use login color for CTA in dark section */
  border-color: #EA7C07;
}

.page-tai-xiu__cta-center .page-tai-xiu__btn-primary:hover {
  background-color: #c76506;
  border-color: #c76506;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-tai-xiu__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-tai-xiu__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-tai-xiu__faq-item[open] summary {
  background-color: #e0e0e0;
  color: #26A9E0;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    padding: 40px 16px;
    gap: 30px;
  }
  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
  }
  .page-tai-xiu__main-title {
    text-align: center;
  }
  .page-tai-xiu__description {
    text-align: center;
  }
  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }
  .page-tai-xiu__icon-box-media {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Global mobile styles for images and containers (必写清单 5 - 通用图片与容器) */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tai-xiu__container,
  .page-tai-xiu__hero-container,
  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__tips-grid,
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO Section (必写清单 1) */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Minimal top padding */
    padding-bottom: 40px !important;
  }
  .page-tai-xiu__hero-container {
    flex-direction: column;
    padding: 30px 0 !important; /* Adjusted padding */
    gap: 20px;
  }
  .page-tai-xiu__main-title {
    font-size: 2rem !important;
    text-align: center !important;
  }
  .page-tai-xiu__description {
    font-size: 1rem !important;
    text-align: center !important;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  /* Buttons (必写清单 6 - 按钮与按钮容器) */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Intro Section (Module 1 - 必写清单 2) */
  .page-tai-xiu__intro-section {
    padding: 60px 0 !important;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8rem !important;
  }
  .page-tai-xiu__section-description {
    font-size: 1rem !important;
    margin-bottom: 30px;
  }
  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-tai-xiu__icon-box-media {
    width: 200px !important; /* Maintain square aspect ratio */
    height: 200px !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 6px rgba(38, 169, 224, 0.2) !important;
  }
  .page-tai-xiu__feature-title {
    font-size: 1.3rem !important;
  }
  .page-tai-xiu__feature-text {
    font-size: 0.95rem !important;
  }

  /* Overview Section (必写清单 4 - 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版) */
  .page-tai-xiu__overview-section {
    padding: 60px 0 !important;
  }
  .page-tai-xiu__content-area h2 {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }
  .page-tai-xiu__content-area h3 {
    font-size: 1.5rem !important;
    margin-top: 30px !important;
  }
  .page-tai-xiu__content-area p,
  .page-tai-xiu__list li {
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
  }
  .page-tai-xiu__list {
    margin-left: 15px !important;
  }

  /* Tips Section (必写清单 4 - 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版) */
  .page-tai-xiu__tips-section {
    padding: 60px 0 !important;
  }
  .page-tai-xiu__tips-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-tai-xiu__tip-title {
    font-size: 1.4rem !important;
  }
  .page-tai-xiu__tip-text {
    font-size: 0.95rem !important;
  }
  .page-tai-xiu__cta-center {
    margin-top: 30px !important;
  }

  /* FAQ Section (必写清单 4 - 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版) */
  .page-tai-xiu__faq-section {
    padding: 60px 0 !important;
  }
  .page-tai-xiu__faq-list {
    margin-top: 30px !important;
  }
  .page-tai-xiu__faq-item summary {
    padding: 15px 20px !important;
    font-size: 1.1rem !important;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.5rem !important;
  }
  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.95rem !important;
  }
}