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

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

.page-about__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__cta-buttons--center {
  margin-top: 30px;
}

.page-about__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 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;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #005f2c;
  transform: translateY(-2px);
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-about__section-title--white {
  color: #FFFFFF;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.05em;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__figure {
  margin: 30px 0;
  text-align: center;
}

.page-about__figure--right {
  float: right;
  margin: 15px 0 15px 30px;
  max-width: 680px; /* Adjust max-width for float */
  width: 100%;
  box-sizing: border-box;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-about__figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

.page-about__introduction-section {
  background-color: #ffffff;
  clear: both; /* Clear floats from previous section */
}

.page-about__why-choose-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-about__description--white {
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

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

.page-about__feature-text {
  font-size: 1em;
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-about__feature-list {
  list-style-type: disc;
  margin-left: 20px;
  font-size: 0.95em;
  color: #555555;
}

.page-about__commitment-section {
  background-color: #f5f5f5;
  padding: 60px 0;
}

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

.page-about__commitment-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__commitment-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__commitment-text {
  font-size: 1em;
  color: #333333;
  line-height: 1.6;
}

.page-about__join-us-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-about__contact-section {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-about__copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #666666;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 0 30px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

  .page-about__figure--right {
    float: none;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  /* 1. Top section (hero) and CTA */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

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

  .page-about__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-about__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 2. Single column long text container */
  .page-about__article-wrap {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section {
    padding: 30px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

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

  /* 3. General images and figure */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-about__figure, .page-about__figure--right {
    float: none;
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and button containers (already covered above in top section) */
  .page-about__cta-buttons, .page-about__button-group, .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
  }

  /* 5. Feature/Commitment grids */
  .page-about__feature-grid, .page-about__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card, .page-about__commitment-item {
    padding: 20px;
  }

  .page-about__feature-title, .page-about__commitment-title {
    font-size: 1.3em;
  }

  .page-about__feature-list {
    margin-left: 15px;
  }

  .page-about__copyright {
    padding: 15px;
  }

  .page-about__dark-bg {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-about__light-bg {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}