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

.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Black background for hero section */
  color: #FFFFFF; /* White text on black background */
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px; /* Add some padding below content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-about__main-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FCBC45; /* Gold accent for title */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.page-about__btn--register {
  background-color: #FFFFFF; /* White background for register */
  color: #000000; /* Black text on white */
  border: 2px solid #FFFFFF;
}

.page-about__btn--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-about__btn--login {
  background-color: #FCBC45; /* Gold background for login */
  color: #000000; /* Black text on gold */
  border: 2px solid #FCBC45;
}

.page-about__btn--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-about__story-section, .page-about__mission-section, .page-about__commitment-section, .page-about__why-choose-us-section, .page-about__join-us-section {
  padding: 60px 0;
}

.page-about__story-section {
  background-color: #f5f5f5;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  min-width: 200px; /* Ensure minimum size */
}

.page-about__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__mission-content {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__mission-item {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__item-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-about__commitment-section {
  background-color: #f5f5f5;
}

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

.page-about__commitment-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-about__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: #000000;
}

.page-about__why-choose-us-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #FCBC45;
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__item-heading {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-item .page-about__paragraph {
  text-align: left;
}

.page-about__feature-item .page-about__link {
  color: #FCBC45;
}

.page-about__feature-item .page-about__link:hover {
  color: #FFFFFF;
}

.page-about__join-us-section {
  text-align: center;
  background-color: #FFFFFF;
}

.page-about__join-us-content {
  background-color: #000000;
  color: #FFFFFF;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__join-us-content .page-about__section-title {
  color: #FCBC45;
  padding-top: 0;
  margin-bottom: 20px;
}

.page-about__join-us-content .page-about__paragraph {
  margin-bottom: 30px;
}

.page-about__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

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

  .page-about__intro-text {
    font-size: 1em;
  }

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

  .page-about__btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .page-about__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-about__mission-content {
    flex-direction: column;
  }

  .page-about__mission-item {
    min-width: unset;
    max-width: 100%;
  }

  .page-about__commitment-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-list {
    grid-template-columns: 1fr;
  }

  .page-about__join-us-content {
    padding: 30px;
  }

  /* Mobile image scaling for content area */
  .page-about img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-about {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.7em;
  }

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