.page-about {
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

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

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

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

.page-about__hero-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 150px;
}

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

.page-about__hero-btn--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-3px);
}

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

.page-about__hero-btn--login:hover {
  background-color: #E0A030;
  transform: translateY(-3px);
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 1200px;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  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 {
  background-color: #F8F8F8;
  padding: 80px 0;
}

.page-about__story-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

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

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

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

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

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

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

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

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

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

.page-about__cta-section .page-about__paragraph {
  color: #F0F0F0;
  margin-bottom: 40px;
}

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

.page-about__cta-btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 180px;
}

.page-about__cta-btn--register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-about__cta-btn--register:hover {
  background-color: #E0A030;
  transform: translateY(-3px);
}

.page-about__cta-btn--explore {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-about__cta-btn--explore:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-about__story-content {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__story-content p:first-of-type {
    order: 1;
  }
  .page-about__story-content img {
    order: 2;
  }
  .page-about__story-content p:last-of-type {
    order: 3;
  }
}

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

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

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

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

  .page-about__hero-btn {
    width: 100%;
    max-width: 250px;
  }

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

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

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

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

  /* Ensure images are responsive and do not cause horizontal scroll */
  .page-about img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .page-about__value-icon {
    width: 100%;
    max-width: 200px; /* Still meet min size but allow scaling down */
    height: auto;
  }

  /* Content area images must not be smaller than 200px display size */
  .page-about__story-image, .page-about__value-icon {
    min-width: 200px;
    min-height: 200px;
  }
}