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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-about__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-about__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-about__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-about__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

.page-about__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-about__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  z-index: 0;
  position: relative;
}

.page-about__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__story-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-about__story-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
}

.page-about__story-text {
  flex: 1;
  font-size: 1.1em;
  color: #333333;
}

.page-about__story-text p {
  margin-bottom: 20px;
}

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image wrapper has a minimum width */
}

.page-about__story-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-about__values-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

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

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-about__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  text-align: center;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-about__button--primary:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

.page-about__button--secondary:hover {
  background-color: transparent;
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

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

  .page-about__story-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__story-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px 30px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__button {
    width: 100%;
    padding: 12px 25px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-about__story-section, .page-about__values-section, .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

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

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

  /* Ensure all images are responsive and do not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure content area images are not too small */
.page-about__hero-image,
.page-about__story-image {
  min-width: 200px;
  min-height: 200px;
}