/* style/bao-mat.css */
.page-bao-mat {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.page-bao-mat__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-bao-mat__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-bao-mat__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-bao-mat__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-bao-mat__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-bao-mat__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */\  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-bao-mat__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-bao-mat__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-bao-mat__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-bao-mat__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-bao-mat__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-bao-mat__btn-secondary {
  background: none;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-bao-mat__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-bao-mat__content-section {
  padding: 60px 0;
}

.page-bao-mat__dark-section {
  background-color: #11271B; /* Card BG */
}

.page-bao-mat__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-bao-mat__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  text-align: justify;
}

.page-bao-mat__info-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-bao-mat__info-card--alt {
  background-color: #0A4B2C; /* Deep Green */
  border-color: #13994A;
}

.page-bao-mat__card-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-bao-mat__figure {
  margin: 20px 0;
  width: 100%;
  max-width: 680px; /* Match image placeholder width */
  height: auto;
  overflow: hidden;
  border-radius: 8px;
}

.page-bao-mat__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-bao-mat__figcaption {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 10px;
}

.page-bao-mat__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  text-align: justify;
}

.page-bao-mat__advice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-bao-mat__advice-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bao-mat__advice-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-bao-mat__advice-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

.page-bao-mat__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-bao-mat__promo-box {
  background-color: #11271B; /* Card BG */
  border: 2px solid #57E38D; /* Glow */
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 0 30px rgba(87, 227, 141, 0.5);
  max-width: 900px;
  margin: 0 auto;
}

.page-bao-mat__promo-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.page-bao-mat__promo-text {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

.page-bao-mat__promo-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-bao-mat__main-title {
    font-size: 2.8em;
  }

  .page-bao-mat__section-title {
    font-size: 2.2em;
  }

  .page-bao-mat__promo-title {
    font-size: 2.4em;
  }

  .page-bao-mat__article-wrap {
    padding: 30px 15px;
  }

  .page-bao-mat__content-section {
    padding: 50px 0;
  }

  .page-bao-mat__info-card {
    padding: 25px;
  }

  .page-bao-mat__advice-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-bao-mat__promo-box {
    padding: 40px;
  }
}

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

  /* 1. Top section title + Dual CTA */
  .page-bao-mat__hero-section {
    padding-top: 10px !important; /* Small top padding */
    margin-bottom: 40px;
  }

  .page-bao-mat__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-bao-mat__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-bao-mat__hero-cta-buttons,
  .page-bao-mat__promo-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* 2. Single column long text container */
  .page-bao-mat__article-wrap,
  .page-bao-mat__content-section,
  .page-bao-mat__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-bao-mat__content-section {
    padding: 40px 0;
  }

  .page-bao-mat__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-bao-mat__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* 3. Generic images and figures */
  .page-bao-mat__figure {
    margin: 15px 0;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-bao-mat__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-bao-mat__info-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-bao-mat__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-bao-mat__card-text {
    font-size: 0.9em;
  }

  .page-bao-mat__advice-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-bao-mat__advice-item {
    padding: 20px;
  }

  .page-bao-mat__advice-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-bao-mat__advice-text {
    font-size: 0.85em;
  }

  .page-bao-mat__cta-section {
    padding: 60px 0;
  }

  .page-bao-mat__promo-box {
    padding: 30px;
    max-width: 100%;
  }

  .page-bao-mat__promo-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-bao-mat__promo-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 5. Registration tutorial and FAQ blocks - N/A for this page based on outline, but generic content rules apply */
  /* If there were specific FAQ/tutorial blocks, their mobile styles would be here. */
}