.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__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Fallback background color */
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

.page-about__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

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

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

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-about__text-block--light {
  color: #f0f0f0;
}

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

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

.page-about__info-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

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

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

.page-about__card-text {
  font-size: 1em;
  color: #555555;
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-about__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

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

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

.page-about__contact-cta-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-about__btn-primary--yellow-text {
  color: #FFFF00;
}

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

/* Tablet/Small Desktop */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 10px 20px;
  }

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

  .page-about__info-card {
    padding: 25px;
  }

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

  .page-about__list-item {
    font-size: 1em;
  }
}

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

  /* 1. Top section title + CTA */
  .page-about__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-about__hero-content {
    padding: 20px 10px;
    border-radius: 5px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }

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

  .page-about__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 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: 12px 15px;
  }

  /* 2. Single column long text containers */
  .page-about__article-wrap,
  .page-about__contact-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }

  /* 3. General images and figure */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
  }

  .page-about__value-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

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

  .page-about__card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .page-about__list-item {
    padding: 12px 15px;
    margin-bottom: 10px;
  }

  .page-about__contact-cta-section {
    padding: 40px 0;
  }

  /* No explicit FAQ section, but if present, rules would go here */
  /* 5. Registration tutorial & FAQ (Placeholder for structure, actual content not present) */
  /* .page-about__faq-item, .page-about__faq-question, .page-about__faq-answer { ... responsive styles ... } */
}