/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #f5f5f5;
  text-align: center;
  padding-bottom: 40px;
}

.page-about__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-about__hero-text-block {
  text-align: center;
  margin-bottom: 30px;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__hero-image-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-about__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* Sections */
.page-about__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__text-block p {
  color: #ffffff;
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__content-grid .page-about__text-block,
.page-about__content-grid .page-about__image-block {
  flex: 1;
}

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

/* Values Section */
.page-about__values-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-about__value-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-card p {
  color: #555555;
  font-size: 1em;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 60px 0;
}

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

.page-about__why-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__why-item .page-about__why-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__why-item p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-about__cta-section {
  text-align: center;
  margin-top: 40px;
}

.page-about__cta-section--inline {
  text-align: left;
  margin-top: 30px;
}

/* Final CTA Section */
.page-about__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__final-cta-section .page-about__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* General image and button responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-about__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-about__hero-content-wrapper {
    padding: 15px;
  }

  .page-about__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mission & Vision Section */
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .page-about__text-block p {
    font-size: 1em;
  }

  .page-about__content-grid {
    flex-direction: column; /* Stack content blocks vertically */
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-about__content-grid--reverse {
    flex-direction: column; /* Maintain vertical stacking */
  }

  /* Values Section */
  .page-about__values-grid {
    grid-template-columns: 1fr; /* Single column for values */
    gap: 20px;
  }

  .page-about__value-card {
    padding: 20px;
  }

  .page-about__value-title {
    font-size: 1.3em;
  }

  /* Why Choose Us Section */
  .page-about__why-grid {
    grid-template-columns: 1fr; /* Single column for why items */
    gap: 20px;
  }

  .page-about__why-item {
    padding: 20px;
  }

  .page-about__why-item .page-about__why-title {
    font-size: 1.3em;
  }

  .page-about__cta-section--inline {
    text-align: center;
  }

  /* Journey & Future Section */
  .page-about__journey-future-section .page-about__content-grid {
    flex-direction: column-reverse; /* Text first, then image for this section */
  }

  /* Final CTA Section */
  .page-about__final-cta-section {
    padding: 50px 0;
  }

  .page-about__final-cta-section .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* General mobile image sizing */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers handle overflow */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content-wrapper,
  .page-about__values-grid,
  .page-about__why-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific overrides for padding if needed, ensure it's not double */
  .page-about__dark-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__values-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__journey-future-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__final-cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* No specific guide-box, home-content-box, or blog-section in this about page, so no mobile styles for them here. */
/* If they were present, their mobile styles would be explicitly defined as per the '必写清单'. */