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

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff; /* White text for dark backgrounds */
}

.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__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 50px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Fixed height for hero image on desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-about__description-center {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__btn {
  display: inline-block;
  padding: 12px 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; /* Register/Login color */
  color: #ffffff;
  border: 2px solid #C30808;
}

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

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

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

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

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

.page-about__light-bg .page-about__section-title {
  color: #017439;
}

.page-about__story-section, .page-about__why-choose-us-section, .page-about__commitment-section, .page-about__team-section, .page-about__contact-cta {
  padding: 60px 0;
}

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

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

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

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

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

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

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

.page-about__value-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for titles on dark background */
}

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

.page-about__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #333333;
}

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

.page-about__responsibility-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-about__responsibility-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-about__team-image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-about__team-image {
  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;
  }

  /* 1. Top section (hero) */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, not header-offset */
    padding-bottom: 30px;
  }

  .page-about__hero-image-wrapper {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  /* 2. Single column long text containers */
  .page-about__article-wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    margin-top: 40px;
  }

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

  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }

  .page-about__values-grid, .page-about__responsibility-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__value-title, .page-about__responsibility-title {
    font-size: 1.3rem;
  }

  .page-about__feature-list li {
    font-size: 0.95rem;
  }

  /* 3. General images and figures */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-about__content-grid img,
  .page-about__team-image-wrapper img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 4. Buttons and button containers */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
  }

  /* 5. No specific registration tutorial or FAQ accordion for this page */
  /* (FAQ is presented as regular text blocks as per instructions) */
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    height: 400px;
  }

  .page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
  }

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

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__text-block, .page-about__image-block {
    flex: none;
    width: 100%;
  }

  .page-about__values-grid, .page-about__responsibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}