.page-bao-mat-va-an-toan {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.page-bao-mat-va-an-toan__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-bao-mat-va-an-toan__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f8f8f8;
}

.page-bao-mat-va-an-toan__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #017439;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-bao-mat-va-an-toan__intro-text,
.page-bao-mat-va-an-toan__section-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-bao-mat-va-an-toan__cta-group,
.page-bao-mat-va-an-toan__action-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-bao-mat-va-an-toan__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-bao-mat-va-an-toan__btn--primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-bao-mat-va-an-toan__btn--primary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

.page-bao-mat-va-an-toan__btn--secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-bao-mat-va-an-toan__btn--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-bao-mat-va-an-toan__content-section {
  padding: 60px 0;
}

.page-bao-mat-va-an-toan__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-bao-mat-va-an-toan__dark-section .page-bao-mat-va-an-toan__section-title {
  color: #ffffff;
}

.page-bao-mat-va-an-toan__dark-section .page-bao-mat-va-an-toan__section-description {
  color: #e0e0e0;
}

.page-bao-mat-va-an-toan__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #017439;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-bao-mat-va-an-toan__feature-grid,
.page-bao-mat-va-an-toan__info-grid,
.page-bao-mat-va-an-toan__article-grid,
.page-bao-mat-va-an-toan__certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-bao-mat-va-an-toan__feature-card,
.page-bao-mat-va-an-toan__info-card,
.page-bao-mat-va-an-toan__article-card,
.page-bao-mat-va-an-toan__certification-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-bao-mat-va-an-toan__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-bao-mat-va-an-toan__feature-figure,
.page-bao-mat-va-an-toan__article-figure,
.page-bao-mat-va-an-toan__certification-figure {
  margin: 0 0 15px 0;
  width: 100%;
  max-width: 680px; /* Max width for images */
}

.page-bao-mat-va-an-toan__feature-image,
.page-bao-mat-va-an-toan__article-image,
.page-bao-mat-va-an-toan__certification-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-bao-mat-va-an-toan__feature-caption,
.page-mat-va-an-toan__article-caption,
.page-bao-mat-va-an-toan__certification-caption {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.page-bao-mat-va-an-toan__feature-title,
.page-bao-mat-va-an-toan__info-title,
.page-bao-mat-va-an-toan__article-title,
.page-bao-mat-va-an-toan__certification-title {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-bao-mat-va-an-toan__feature-text,
.page-bao-mat-va-an-toan__info-text,
.page-bao-mat-va-an-toan__article-text {
  font-size: 1rem;
  color: #555;
  text-align: left;
}

.page-bao-mat-va-an-toan__list {
  text-align: left;
  margin-bottom: 15px;
  padding-left: 20px;
  color: #555;
}

.page-bao-mat-va-an-toan__list li {
  margin-bottom: 8px;
}

.page-bao-mat-va-an-toan__cta-box {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 60px;
}

.page-bao-mat-va-an-toan__cta-text {
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 20px;
  font-weight: 500;
}

.page-bao-mat-va-an-toan__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-bao-mat-va-an-toan__faq-section .page-bao-mat-va-an-toan__section-title {
  color: #ffffff;
}

.page-bao-mat-va-an-toan__faq-section .page-bao-mat-va-an-toan__section-description {
  color: #e0e0e0;
}

.page-bao-mat-va-an-toan__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-bao-mat-va-an-toan__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-bao-mat-va-an-toan__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #017439;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
}

.page-bao-mat-va-an-toan__faq-question:hover {
  background-color: #f0f0f0;
}

.page-bao-mat-va-an-toan__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-bao-mat-va-an-toan__faq-item.active .page-bao-mat-va-an-toan__faq-toggle {
  transform: rotate(45deg);
}

.page-bao-mat-va-an-toan__faq-answer {
  max-height: 0;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #ffffff;
  color: #333333;
}

.page-bao-mat-va-an-toan__faq-item.active .page-bao-mat-va-an-toan__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-bao-mat-va-an-toan__faq-answer p {
  margin: 0;
  font-size: 1rem;
}

.page-bao-mat-va-an-toan__action-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f8f8;
}

.page-bao-mat-va-an-toan__action-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-bao-mat-va-an-toan__action-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-bao-mat-va-an-toan {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-bao-mat-va-an-toan__container {
    padding: 0 15px !important;
  }

  /* 1. Top section title + CTA */
  .page-bao-mat-va-an-toan__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-bao-mat-va-an-toan__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-bao-mat-va-an-toan__intro-text,
  .page-bao-mat-va-an-toan__section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-bao-mat-va-an-toan__cta-group,
  .page-bao-mat-va-an-toan__action-cta-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 4. Buttons and button containers */
  .page-bao-mat-va-an-toan__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  /* 2. Single column content wrap */
  .page-bao-mat-va-an-toan__content-section,
  .page-bao-mat-va-an-toan__faq-section,
  .page-bao-mat-va-an-toan__action-section {
    padding: 40px 0;
  }

  .page-bao-mat-va-an-toan__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-bao-mat-va-an-toan__feature-grid,
  .page-bao-mat-va-an-toan__info-grid,
  .page-bao-mat-va-an-toan__article-grid,
  .page-bao-mat-va-an-toan__certification-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-bao-mat-va-an-toan__feature-card,
  .page-bao-mat-va-an-toan__info-card,
  .page-bao-mat-va-an-toan__article-card,
  .page-bao-mat-va-an-toan__certification-card {
    padding: 20px;
  }

  .page-bao-mat-va-an-toan__feature-title,
  .page-bao-mat-va-an-toan__info-title,
  .page-bao-mat-va-an-toan__article-title,
  .page-bao-mat-va-an-toan__certification-title {
    font-size: 1.25rem;
  }

  .page-bao-mat-va-an-toan__feature-text,
  .page-bao-mat-va-an-toan__info-text,
  .page-bao-mat-va-an-toan__article-text {
    font-size: 0.95rem;
  }

  /* 3. General images and figure */
  .page-bao-mat-va-an-toan img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min size on mobile */
  }
}