/* style/tai-xiu-luat-choi-va-meo.css */
.page-tai-xiu-luat-choi-va-meo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Default background */
}

.page-tai-xiu-luat-choi-va-meo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-tai-xiu-luat-choi-va-meo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #F5F7FA;
}

.page-tai-xiu-luat-choi-va-meo__hero-image-container {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-tai-xiu-luat-choi-va-meo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-tai-xiu-luat-choi-va-meo__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-tai-xiu-luat-choi-va-meo__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu-luat-choi-va-meo__subtitle {
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 30px;
}

/* Section Titles */
.page-tai-xiu-luat-choi-va-meo__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

/* Text Blocks */
.page-tai-xiu-luat-choi-va-meo__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}

.page-tai-xiu-luat-choi-va-meo__highlight {
  color: #E53935;
  font-weight: bold;
}

.page-tai-xiu-luat-choi-va-meo__highlight-text {
  color: #FF5A4F;
  font-weight: bold;
}

/* Images within content */
.page-tai-xiu-luat-choi-va-meo__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-tai-xiu-luat-choi-va-meo__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu-luat-choi-va-meo__btn-primary,
.page-tai-xiu-luat-choi-va-meo__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
}

.page-tai-xiu-luat-choi-va-meo__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu-luat-choi-va-meo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.3);
}

.page-tai-xiu-luat-choi-va-meo__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-tai-xiu-luat-choi-va-meo__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.3);
}

/* Dark Background Sections */
.page-tai-xiu-luat-choi-va-meo__dark-bg {
  background-color: #E53935;
  color: #ffffff;
  padding: 60px 0;
}

.page-tai-xiu-luat-choi-va-meo__dark-bg .page-tai-xiu-luat-choi-va-meo__section-title,
.page-tai-xiu-luat-choi-va-meo__dark-bg .page-tai-xiu-luat-choi-va-meo__text-block {
  color: #ffffff;
}

.page-tai-xiu-luat-choi-va-meo__dark-bg .page-tai-xiu-luat-choi-va-meo__highlight-text {
  color: #FF5A4F;
}

/* Lists */
.page-tai-xiu-luat-choi-va-meo__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-tai-xiu-luat-choi-va-meo__list-item {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
}

.page-tai-xiu-luat-choi-va-meo__dark-bg .page-tai-xiu-luat-choi-va-meo__list-item {
  color: #ffffff;
}

/* Card Grid */
.page-tai-xiu-luat-choi-va-meo__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu-luat-choi-va-meo__card {
  background: #FFFFFF;
  color: #333333;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu-luat-choi-va-meo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu-luat-choi-va-meo__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-tai-xiu-luat-choi-va-meo__card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

/* FAQ Section */
.page-tai-xiu-luat-choi-va-meo__faq-list {
  margin-top: 30px;
}

.page-tai-xiu-luat-choi-va-meo__faq-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu-luat-choi-va-meo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-tai-xiu-luat-choi-va-meo__faq-item[open] .page-tai-xiu-luat-choi-va-meo__faq-question {
  background-color: #E53935;
  color: #ffffff;
  border-bottom-color: transparent;
}

.page-tai-xiu-luat-choi-va-meo__faq-item[open] .page-tai-xiu-luat-choi-va-meo__faq-toggle {
  color: #ffffff;
}

.page-tai-xiu-luat-choi-va-meo__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu-luat-choi-va-meo__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu-luat-choi-va-meo__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 20px;
  color: #E53935;
}

.page-tai-xiu-luat-choi-va-meo__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
}

/* Conclusion Section */
.page-tai-xiu-luat-choi-va-meo__conclusion-section {
  padding-bottom: 60px;
}

/* General image responsiveness */
.page-tai-xiu-luat-choi-va-meo img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu-luat-choi-va-meo__container {
    padding: 15px;
  }

  .page-tai-xiu-luat-choi-va-meo__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-tai-xiu-luat-choi-va-meo__section-title {
    font-size: 1.8rem;
  }

  .page-tai-xiu-luat-choi-va-meo__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-tai-xiu-luat-choi-va-meo__btn-primary,
  .page-tai-xiu-luat-choi-va-meo__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu-luat-choi-va-meo__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hero Section Mobile */
  .page-tai-xiu-luat-choi-va-meo__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tai-xiu-luat-choi-va-meo__hero-image-container {
    max-height: none;
  }

  .page-tai-xiu-luat-choi-va-meo__hero-image {
    object-fit: contain !important; /* Contain for mobile, prevent cropping */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu-luat-choi-va-meo__main-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .page-tai-xiu-luat-choi-va-meo__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Section Titles Mobile */
  .page-tai-xiu-luat-choi-va-meo__section-title {
    font-size: 1.6rem;
    padding-top: 30px;
    margin-bottom: 20px;
  }

  /* Text Blocks Mobile */
  .page-tai-xiu-luat-choi-va-meo__text-block,
  .page-tai-xiu-luat-choi-va-meo__list-item,
  .page-tai-xiu-luat-choi-va-meo__card-text {
    font-size: 0.95rem;
  }

  /* Images Mobile */
  .page-tai-xiu-luat-choi-va-meo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu-luat-choi-va-meo__image-content {
    margin: 20px auto;
  }

  /* Buttons Mobile */
  .page-tai-xiu-luat-choi-va-meo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-tai-xiu-luat-choi-va-meo__btn-primary,
  .page-tai-xiu-luat-choi-va-meo__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Card Grid Mobile */
  .page-tai-xiu-luat-choi-va-meo__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-tai-xiu-luat-choi-va-meo__card {
    padding: 20px;
  }

  .page-tai-xiu-luat-choi-va-meo__card-title {
    font-size: 1.2rem;
  }

  /* FAQ Mobile */
  .page-tai-xiu-luat-choi-va-meo__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-tai-xiu-luat-choi-va-meo__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}