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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px;
  background-color: #ffffff;
  color: #333333;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #017439;
}

.page-about__hero-image-wrapper {
    margin: 0;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

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

.page-about__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: justify;
}

.page-about__dark-bg .page-about__text-block {
  color: #e0e0e0;
}

.page-about__image-figure {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-about__image-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

.page-about__dark-bg .page-about__image-caption {
  color: #cccccc;
}

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

.page-about__feature-card,
.page-about__benefit-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-about__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

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

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

@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__feature-grid,
  .page-about__benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + Dual CTA */
  .page-about__hero-section {
    padding: 10px 15px 30px;
  }
  .page-about__main-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 2. Single column long text container */
  .page-about__article-wrap {
    padding: 0 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-about__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 3. Generic images and figures */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__image-figure {
    margin: 30px auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__image-caption {
    font-size: 0.85em;
  }

  /* 4. Buttons and button containers (already covered in top section, reinforcing here) */
  .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--bottom {
    margin-top: 30px;
  }

  /* 5. Registration tutorial and FAQ blocks (general card/grid adaptation) */
  .page-about__feature-grid,
  .page-about__benefit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__feature-card,
  .page-about__benefit-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__card-text {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.6em !important;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__description,
  .page-about__text-block,
  .page-about__card-text {
    font-size: 0.9em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}