.page-about {
  padding-top: var(--header-offset, 120px);
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken background image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

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

.page-about__hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: #000000; /* Dark text for light button */
}

.page-about__hero-button--register {
  background-color: #FCBC45; /* Login button color */
  margin-right: 15px;
}

.page-about__hero-button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-about__story-section,
.page-about__values-section,
.page-about__cta-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-about__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-about__subsection-title {
  font-size: 2em;
  color: #FCBC45;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-about__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333333;
}

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

.page-about__value-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__value-image {
  width: 100%;
  max-width: 400px; /* Constrain image width within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

.page-about__cta-section {
  text-align: center;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
}

.page-about__cta-section .page-about__section-title {
  color: #FFFFFF;
}

.page-about__cta-section .page-about__text-content {
  color: #f0f0f0;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
  color: #000000; /* Dark text for light button */
}

.page-about__cta-button--register {
  background-color: #FCBC45; /* Login button color */
}

.page-about__cta-button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-about__cta-button--explore {
  background-color: #FFFFFF; /* Register button color */
}

.page-about__cta-button--explore:hover {
  background-color: #e9e9e9;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-button,
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin-bottom: 15px; /* Stack buttons on mobile */
  }
  .page-about__hero-button--register {
    margin-right: 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__subsection-title {
    font-size: 1.5em;
  }
  .page-about__text-content,
  .page-about__card-description {
    font-size: 0.95em;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-about__cta-button {
    width: 80%;
    margin: 0 auto 15px auto;
  }
  .page-about__content-wrapper {
    padding: 0 15px;
  }
  /* Mobile image overflow prevention */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__hero-image {
    filter: brightness(0.5); /* Slightly darker on mobile for better text contrast */
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__hero-section {
    min-height: 350px;
  }
}

/* Ensure all content images are at least 200px wide for content sections */
.page-about__value-image {
  min-width: 200px;
  min-height: 200px;
}

/* Prevent hero image filter from being applied to content images */
.page-about__value-image, .page-about__text-content img {
  filter: none; /* Reset filter for all images outside hero */
}