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

.page-about__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #000000; /* Dark background for hero section */
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px; /* Added padding to bottom */
}

.page-about__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* For z-index of text over image */
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
  z-index: 1;
  position: relative;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  z-index: 1;
  position: relative;
}

.page-about__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
  font-size: 1.1em;
}

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

.page-about__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-about__btn--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-about__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -80px; /* Overlap with content slightly for visual appeal */
  position: relative;
  z-index: 0;
  border-radius: 8px;
  max-width: 1200px; /* Constrain image width */
  min-width: 200px; /* Ensure min width */
}

.page-about__content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
}

.page-about__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__section-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure min width */
}

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

.page-about__value-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-about__value-description {
  font-size: 1em;
  color: #555555;
}

.page-about__btn--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

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

.page-about__cta-section {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

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

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

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

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 80px);
    padding-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn {
    width: 100%;
    max-width: 300px;
    min-width: unset;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure all images are responsive and don't overflow */
  .page-about__hero-image,
  .page-about__section-image,
  .page-about__content-wrapper img,
  .page-about__values-grid img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min width for all content images */
  }
  .page-about__hero-image {
    margin-top: -40px; /* Adjust overlap for mobile */
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}