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

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

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

.page-about__hero-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

.page-about__text-content {
  max-width: 800px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
  color: #017439;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
}

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

.page-about__section:nth-of-type(even) {
  background-color: #f8f8f8;
}

.page-about__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

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

.page-about__text-block {
  flex: 1;
}

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

.page-about__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-about__text-block a:hover {
  color: #005a2d;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-block--center {
  margin-top: 40px;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.page-about__value-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
}

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

.page-about__value-card p {
  color: #555555;
}

.page-about__text-center {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
}

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

.page-about__product-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-about__product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-about__product-link {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: inherit;
}

.page-about__product-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__product-item p {
  color: #555555;
}

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

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-section p {
  color: #f0f0f0;
}

.page-about__dark-section a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-about__dark-section a:hover {
  color: #FFD700;
}

@media (max-width: 1024px) {
  .page-about__hero-image {
    width: 90%;
  }

  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-about__content-flex--reverse {
    flex-direction: column; /* Stacks vertically even when reversed */
  }

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens by default */
  }
  
  .page-about__content-flex--reverse .page-about__image-block {
    order: 0; /* Text appears above image if original was reversed */
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + Dual CTA */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
    padding: 0 15px; /* Add padding to prevent text touching edges */
  }

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

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

  /* 4. Buttons and button containers */
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px; /* Adjust padding for mobile */
  }

  /* 2. Single-column long text containers */
  .page-about__section {
    padding: 40px 0;
  }
  
  .page-about__container {
    padding: 0 15px !important; /* Ensure containers have padding */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-flex--reverse {
    flex-direction: column; /* Ensure vertical stacking even for reversed order */
  }

  .page-about__image-block {
    order: -1; /* Ensure image is above text block */
  }

  .page-about__content-flex--reverse .page-about__image-block {
    order: -1; /* Ensure image is above text block even if original was reversed */
  }

  /* 3. General images and figure */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__values-grid,
  .page-about__product-grid {
    grid-template-columns: 1fr; /* Single column for grids */
    gap: 20px;
  }

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

  .page-about__value-title,
  .page-about__product-title {
    font-size: 1.3em;
  }
  
  /* 5. Registration tutorial and FAQ blocks (general text readability) */
  .page-about p,
  .page-about li {
    font-size: 15px;
    line-height: 1.6;
  }
}